OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Avoid APF JNEBS instruction with R1 as it doesn't work" into nyc-dev
Paul Jensen [Mon, 18 Apr 2016 10:56:13 +0000 (10:56 +0000)]
Merge "Avoid APF JNEBS instruction with R1 as it doesn't work" into nyc-dev

8 years agoMerge "Register the UI Thread as a sensitive thread to the runtime" into nyc-dev
Calin Juravle [Mon, 18 Apr 2016 10:40:29 +0000 (10:40 +0000)]
Merge "Register the UI Thread as a sensitive thread to the runtime" into nyc-dev

8 years agoRemove unnecessary allocation+unboxing of objects.
Narayan Kamath [Fri, 15 Apr 2016 17:32:45 +0000 (18:32 +0100)]
Remove unnecessary allocation+unboxing of objects.

Transforming String->int can be done with 0 allocations
using Integer.parseInt.

bug: 28078871
Change-Id: I8d9f322d7154728849dde61ef282046032858d60

8 years agoMerge "Always send configuration changes to activity." into nyc-dev
TreeHugger Robot [Mon, 18 Apr 2016 05:43:14 +0000 (05:43 +0000)]
Merge "Always send configuration changes to activity." into nyc-dev

8 years agoMerge "Don't allow pinned activities to request visible behind" into nyc-dev
TreeHugger Robot [Mon, 18 Apr 2016 04:19:34 +0000 (04:19 +0000)]
Merge "Don't allow pinned activities to request visible behind" into nyc-dev

8 years agoMake android.net.metrics Event classes @SystemApi
Hugo Benichi [Fri, 15 Apr 2016 03:15:47 +0000 (12:15 +0900)]
Make android.net.metrics Event classes @SystemApi

Bug: 28204408
Change-Id: I8ffe833213bbc03a7f70c51789f4899ee08f6e08

8 years agoFixes fatal linter errors in android.net.metrics
Hugo Benichi [Fri, 15 Apr 2016 07:56:28 +0000 (16:56 +0900)]
Fixes fatal linter errors in android.net.metrics

This patch changes how Event classes are organized:
 - Base IpConnectivityEvent class does not implement Parcelable because
   it cannot be final (has children). It also becomes abstract because
   it is not supposed to be instantiated and logged directly.
 - All children classes becomes final because they are Parcelable.
 - All constructors of all children classes become private, because they
   are supposed to be instantiated with their associated logEvent()
   methods.
 - All instance fields of all children classes become public final.
      Rational: if private, the ConnectivityMetrics app cannot read
      their data.

Bug: 28204408
Change-Id: I1a4689c422230c6ed034307dec54a61daf8a6598

8 years agoFix spurious DHCP parse error logging.
Hugo Benichi [Mon, 18 Apr 2016 00:04:04 +0000 (09:04 +0900)]
Fix spurious DHCP parse error logging.

This patch moves the event logging of DHCP response packet parse errors
to DHCPClient in a single place. It also logs receive IO errors as
DHCPErrors instead of DHCPClientEvents.

BUG=28197345

Change-Id: I7ad666cff4d8b97915880477347fbb3f588fdb2a

8 years agoAlways send configuration changes to activity.
Wale Ogunwale [Sat, 16 Apr 2016 18:38:50 +0000 (11:38 -0700)]
Always send configuration changes to activity.

We are not sending override configuration changes to activities if the change in
configuration is not significant enough (i.e did resources will not be reloaded
due to the change). This breaks apps that rely on getting onConfigurationChanged()
call whenever the config changes regardless of if resources will be reloaded.
We no deliver all configuration changes to the activity.

Bug: 28177873
Bug: 23904868
Change-Id: Icc979dabb8bc93ae8a976ef6074cd2559aedca67

8 years agoDon't allow pinned activities to request visible behind
Wale Ogunwale [Sat, 16 Apr 2016 17:54:30 +0000 (10:54 -0700)]
Don't allow pinned activities to request visible behind

Also, release visible behind when pinning a visible behind activity.

Bug: 28042883
Change-Id: I1162d7639626f669f648ff82f5c367cb7b3fe6e6

8 years agoMerge "ShortcutManager: Categories should be Set, not List." into nyc-dev
Makoto Onuki [Sat, 16 Apr 2016 15:18:38 +0000 (15:18 +0000)]
Merge "ShortcutManager: Categories should be Set, not List." into nyc-dev

8 years agoMerge "SettingsLib: Build with AAPT2" into nyc-dev
Adam Lesinski [Sat, 16 Apr 2016 07:01:07 +0000 (07:01 +0000)]
Merge "SettingsLib: Build with AAPT2" into nyc-dev

8 years agoMerge "ExifInterface: keep the original metadata data instead of strings" into nyc-dev
Jaesung Chung [Sat, 16 Apr 2016 02:41:22 +0000 (02:41 +0000)]
Merge "ExifInterface: keep the original metadata data instead of strings" into nyc-dev

8 years agoMerge "Fix broken statusbar disable flags" into nyc-dev
TreeHugger Robot [Sat, 16 Apr 2016 00:53:20 +0000 (00:53 +0000)]
Merge "Fix broken statusbar disable flags" into nyc-dev

8 years agoMerge "Address API review for UserManager user creation" into nyc-dev
Amith Yamasani [Sat, 16 Apr 2016 00:18:20 +0000 (00:18 +0000)]
Merge "Address API review for UserManager user creation" into nyc-dev

8 years agoShortcutManager: Categories should be Set, not List.
Makoto Onuki [Fri, 15 Apr 2016 21:46:35 +0000 (14:46 -0700)]
ShortcutManager: Categories should be Set, not List.

Bug 27923857

Change-Id: Ife859da8e66478174f6c4463316886a23e5aa4e0

8 years agoMerge "Switch JankTracker to FrameInfo::duration()" into nyc-dev
John Reck [Fri, 15 Apr 2016 23:47:00 +0000 (23:47 +0000)]
Merge "Switch JankTracker to FrameInfo::duration()" into nyc-dev

8 years agoMerge "Camera2: Stop repeating request for abandoned output" into nyc-dev
Chien-Yu Chen [Fri, 15 Apr 2016 23:38:12 +0000 (23:38 +0000)]
Merge "Camera2: Stop repeating request for abandoned output" into nyc-dev

8 years agoMerge "Fallback to Recents when Downloads is not available." into nyc-dev
TreeHugger Robot [Fri, 15 Apr 2016 23:30:39 +0000 (23:30 +0000)]
Merge "Fallback to Recents when Downloads is not available." into nyc-dev

8 years agoFix broken statusbar disable flags
Adrian Roos [Fri, 15 Apr 2016 23:28:03 +0000 (16:28 -0700)]
Fix broken statusbar disable flags

Fixes a bug where the disable flags were
always applied to user 0 instead of the current
user because the user switch dispatch from
WindowManager was broken.

Change-Id: Ib2faf0777c5367af5bf07cb2d11c51ed0222d65c
Fixes: 28062568

8 years agoExifInterface: keep the original metadata data instead of strings
Jaesung Chung [Wed, 6 Apr 2016 15:45:51 +0000 (00:45 +0900)]
ExifInterface: keep the original metadata data instead of strings

This CL makes ExifInterface store the tag values as the original forms
and the format validiation is added that compares the given value and
the data format specificed in EXIF specification in order to keep the
valid tag values only.

Bug: 27583378, Bug: 27614052, Bug: 28075709
Change-Id: If60bbddefe74c4b87b4ce64b5fc79e467e36a5b9

8 years agoMerge "Handle delete failure notifications correctly." into nyc-dev
TreeHugger Robot [Fri, 15 Apr 2016 23:11:59 +0000 (23:11 +0000)]
Merge "Handle delete failure notifications correctly." into nyc-dev

8 years agoCamera2: Stop repeating request for abandoned output
Chien-Yu Chen [Thu, 14 Apr 2016 20:33:00 +0000 (13:33 -0700)]
Camera2: Stop repeating request for abandoned output

Stop repeating request if any of its output stream is abandoned
and notify that repeating request has been stopped.

Update binder tests for binder interface changes.

Update CameraDeviceImpl to expect an exception when canceling
a repeating request that is already stopped.

Bug: 21270879
Change-Id: I9fa72ae7218948aac88cb1a8e57839bd022c4a5e

8 years agoMerge "Increase SearchView touch targets to meet GAR3." into nyc-dev
Aurimas Liutikas [Fri, 15 Apr 2016 22:47:09 +0000 (22:47 +0000)]
Merge "Increase SearchView touch targets to meet GAR3." into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Baligh Uddin [Fri, 15 Apr 2016 22:32:50 +0000 (22:32 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Baligh Uddin [Fri, 15 Apr 2016 22:23:42 +0000 (22:23 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Baligh Uddin [Fri, 15 Apr 2016 22:23:37 +0000 (22:23 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Baligh Uddin [Fri, 15 Apr 2016 22:23:26 +0000 (22:23 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Fix sw legacy compat path in SurfaceView" into nyc-dev
John Reck [Fri, 15 Apr 2016 22:22:39 +0000 (22:22 +0000)]
Merge "Fix sw legacy compat path in SurfaceView" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Baligh Uddin [Fri, 15 Apr 2016 22:22:30 +0000 (22:22 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Baligh Uddin [Fri, 15 Apr 2016 22:22:26 +0000 (22:22 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Baligh Uddin [Fri, 15 Apr 2016 22:22:20 +0000 (22:22 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoSwitch JankTracker to FrameInfo::duration()
John Reck [Fri, 15 Apr 2016 22:16:38 +0000 (15:16 -0700)]
Switch JankTracker to FrameInfo::duration()

Fixes: 27533462

FrameInfo::duration() will remove time spent waiting
in the queue from the duration. This is desired because
that time is otherwise accounted for by the previous frame,
so we don't want to double count it.

This shows up mostly in TestSceneRunner & shadowgrid2
due to a combination of slow frame times and continous rendering.

Change-Id: I27c42d5c24d266de4ada8ea00ec9164d518754f8

8 years agoHide nav bar buttons in screen pinning dialog when appropriate.
Winson [Fri, 15 Apr 2016 04:17:23 +0000 (21:17 -0700)]
Hide nav bar buttons in screen pinning dialog when appropriate.

- Also fix wrong hint text to disable screen pinning

Bug: 26314479
Change-Id: I7fc79c92511eba5e6d23dc307bb75c1710ff9e41

8 years agoMerge "Slow down entrance animation on tablets a bit" into nyc-dev
Jorim Jaggi [Fri, 15 Apr 2016 21:54:01 +0000 (21:54 +0000)]
Merge "Slow down entrance animation on tablets a bit" into nyc-dev

8 years agoMerge "Retain loaders through stopped config changes" into nyc-dev
Adam Powell [Fri, 15 Apr 2016 21:40:52 +0000 (21:40 +0000)]
Merge "Retain loaders through stopped config changes" into nyc-dev

8 years agoSlow down entrance animation on tablets a bit
Jorim Jaggi [Fri, 15 Apr 2016 21:13:33 +0000 (14:13 -0700)]
Slow down entrance animation on tablets a bit

Also fix an issue where resize was not called.

And make the translation a bit larger, because the
animation is longer.

Bug: 27870534
Change-Id: Ia6128db8108fe57bee96816fc95fd0811d941ffb

8 years agoMerge "Properly notify magnification listener" into nyc-dev
Svetoslav Ganov [Fri, 15 Apr 2016 21:32:03 +0000 (21:32 +0000)]
Merge "Properly notify magnification listener" into nyc-dev

8 years agoProperly notify magnification listener
Svetoslav Ganov [Fri, 15 Apr 2016 21:01:42 +0000 (14:01 -0700)]
Properly notify magnification listener

bug:28088856

Change-Id: Iffd848082f035319aab3af177921bb3085844ab0

8 years agoMerge "Fix first-time usage." into nyc-dev
Felipe Leme [Fri, 15 Apr 2016 21:23:16 +0000 (21:23 +0000)]
Merge "Fix first-time usage." into nyc-dev

8 years agoAddress API review for UserManager user creation
Amith Yamasani [Fri, 15 Apr 2016 20:55:01 +0000 (13:55 -0700)]
Address API review for UserManager user creation

Don't return null from createUserCreationIntent()
Provide a way for apps to query if the device
supports multiple users.

Some additional documentation for UserManager class to
make things clear about the types of users and relationship
with accounts.

Change-Id: I768d816e73a1d7f61cdc415f9e482adc79e2715a
Fixes: 28150359

8 years agoMerge "Player superclass for handling AppOps features" into nyc-dev
Eric Laurent [Fri, 15 Apr 2016 21:05:24 +0000 (21:05 +0000)]
Merge "Player superclass for handling AppOps features" into nyc-dev

8 years agoMerge "Fix missing permission check when saving pattern/password" into nyc-dev
Jim Miller [Fri, 15 Apr 2016 21:03:15 +0000 (21:03 +0000)]
Merge "Fix missing permission check when saving pattern/password" into nyc-dev

8 years agoMerge "Adding some new multi-endpoint stuff." into nyc-dev
Tyler Gunn [Fri, 15 Apr 2016 21:01:11 +0000 (21:01 +0000)]
Merge "Adding some new multi-endpoint stuff." into nyc-dev

8 years agoIncrease SearchView touch targets to meet GAR3.
Aurimas Liutikas [Fri, 15 Apr 2016 20:55:53 +0000 (13:55 -0700)]
Increase SearchView touch targets to meet GAR3.

- Allow SearchView to expand to 48dp height if possible.
- Make the search clear button have 48dp height if possible.
- Expand the search TextView touch target height to 48dp is possible.

Framework version of patch ag/912646

Bug: 19479861
Change-Id: Ibaaef2afa20b8c05eaac8f028df4f616f2f96eb1

8 years agoMerge "Fix wrong transition when dock minimized and docked app launched" into nyc-dev
TreeHugger Robot [Fri, 15 Apr 2016 20:46:39 +0000 (20:46 +0000)]
Merge "Fix wrong transition when dock minimized and docked app launched" into nyc-dev

8 years agoFix sw legacy compat path in SurfaceView
John Reck [Fri, 15 Apr 2016 20:46:29 +0000 (13:46 -0700)]
Fix sw legacy compat path in SurfaceView

Fixes: 28074239

Need to convert from scaled window to screen before
updating position of the SurfaceView

Change-Id: I75dec23408c32ec01e88193ea38b1fb253b3fd6f

8 years agoMerge "Hide multi-endpoint APIs." into nyc-dev
Tyler Gunn [Fri, 15 Apr 2016 20:28:55 +0000 (20:28 +0000)]
Merge "Hide multi-endpoint APIs." into nyc-dev

8 years agoMerge "Add a dimmed dismiss icon below task card view" into nyc-dev
Sid Soundararajan [Fri, 15 Apr 2016 20:19:50 +0000 (20:19 +0000)]
Merge "Add a dimmed dismiss icon below task card view" into nyc-dev

8 years agoMerge "Added useExternalScores field to WifiConfiguration." into nyc-dev
Jeremy Joslin [Fri, 15 Apr 2016 20:14:01 +0000 (20:14 +0000)]
Merge "Added useExternalScores field to WifiConfiguration." into nyc-dev

8 years agoMerge "Turn off HWUI_ENABLE_OPENGL_VALIDATION" into nyc-dev
John Reck [Fri, 15 Apr 2016 20:12:28 +0000 (20:12 +0000)]
Merge "Turn off HWUI_ENABLE_OPENGL_VALIDATION" into nyc-dev

8 years agoMerge "Fixed bug with activity moved to pinned stack left in resumed state." into...
TreeHugger Robot [Fri, 15 Apr 2016 20:09:52 +0000 (20:09 +0000)]
Merge "Fixed bug with activity moved to pinned stack left in resumed state." into nyc-dev

8 years agoMerge "Expose RTT capability APIs for secure RTT." into nyc-dev
Steve Malkos [Fri, 15 Apr 2016 20:03:21 +0000 (20:03 +0000)]
Merge "Expose RTT capability APIs for secure RTT." into nyc-dev

8 years agoMerge "Add a callback for when a gl functor is released" into nyc-dev
John Reck [Fri, 15 Apr 2016 19:26:14 +0000 (19:26 +0000)]
Merge "Add a callback for when a gl functor is released" into nyc-dev

8 years agoFix wrong transition when dock minimized and docked app launched
Jorim Jaggi [Fri, 15 Apr 2016 05:02:39 +0000 (22:02 -0700)]
Fix wrong transition when dock minimized and docked app launched

When having an app docked and then going home, and then launching
the app from the homescreen, we had a wrong transition because
getTopMost task was already set to the launched app, because
getRunningTasks doesn't exclude the docked stack. Instead of adding
flags for getRunningTasks, which sounds risky, we just pass a "force"
value when we launch recents in this state.

Bug: 27154882
Change-Id: Iee4512fed13115dbbe8b74413ff1fa9b87afa0ef

8 years agoFix minor issue with IME
Jorim Jaggi [Fri, 15 Apr 2016 02:55:35 +0000 (19:55 -0700)]
Fix minor issue with IME

Because we only "carve" out the area for the IME once it's actually
visible now, we need to relayout the windows when we show it - else
they won't update the insets until the next real layout happens.

Bug: 28175599
Change-Id: Ie0af1225da03905bfcb52044e212812c892c88a9

8 years agoFix first-time usage.
Felipe Leme [Fri, 15 Apr 2016 18:32:53 +0000 (11:32 -0700)]
Fix first-time usage.

When tests run for the first time, the list of activities that can
handle ACTION_SEND_MULTIPLE might not be scrollable, which was cause the
scrollForward() method to fail.

BUG: 27431998
Change-Id: I5992bc9fec6291c74c4af7887ee66eb4f96e87c0

8 years agoMerge "Always assign layer when restacking special windows." into nyc-dev
Rob Carr [Fri, 15 Apr 2016 18:52:00 +0000 (18:52 +0000)]
Merge "Always assign layer when restacking special windows." into nyc-dev

8 years agoMerge "Make ConnectivityMetricsLogger and related classes @SystemApi" into nyc-dev
Pavel Zhamaitsiak [Fri, 15 Apr 2016 18:45:05 +0000 (18:45 +0000)]
Merge "Make ConnectivityMetricsLogger and related classes @SystemApi" into nyc-dev

8 years agoTurn off HWUI_ENABLE_OPENGL_VALIDATION
John Reck [Fri, 15 Apr 2016 18:31:09 +0000 (11:31 -0700)]
Turn off HWUI_ENABLE_OPENGL_VALIDATION

Fixes: 28212865

Disable glGetError() checking after every gl call

Change-Id: I849934172a56150122a8d0114b0307515d988fe7

8 years agoHide multi-endpoint APIs.
Tyler Gunn [Fri, 15 Apr 2016 18:28:44 +0000 (11:28 -0700)]
Hide multi-endpoint APIs.

Per feature council decision, the multi-endpoint APIs will be @hide for
the N release.

Bug: 28196918
Change-Id: Ia80b089bc754ce87ca208382eb79442b5265844d

8 years agoMerge "Update interface quota on the handler" into nyc-dev
Amith Yamasani [Fri, 15 Apr 2016 18:22:11 +0000 (18:22 +0000)]
Merge "Update interface quota on the handler" into nyc-dev

8 years agoMerge "Fix VR mode handling when the screen blanks and unblanks." into nyc-dev
Craig Donner [Fri, 15 Apr 2016 18:22:00 +0000 (18:22 +0000)]
Merge "Fix VR mode handling when the screen blanks and unblanks." into nyc-dev

8 years agoRetain loaders through stopped config changes
Adam Powell [Fri, 15 Apr 2016 18:14:37 +0000 (11:14 -0700)]
Retain loaders through stopped config changes

Framework edition

Previously we would throw away any stopped LoaderManagers when we went
to retain instances to pass along as nonConfigurationInstances during
config changes or similar activity restarts. This causes loaders to do
more work than they need to when a calling activity starts a new
activity on top, a config change happens (e.g. screen rotation) and
then the top activity is finished, restarting the caller in a new
configuration. The loaders would go through onReset unnecessarily,
potentially throwing away data to be reloaded again after the config
change completes.

Instead of throwing away stopped LoaderManagers in this case, restart
them and retain them across the config change so they can resume where
they left off.

Bug 27176186

Change-Id: Ia52c6448d2ad41dcb25d493770d9ffae20a19d2a

8 years agoMerge "Connect WifiScanner synchronously without sync barrier" into nyc-dev
Mitchell Wills [Fri, 15 Apr 2016 18:10:45 +0000 (18:10 +0000)]
Merge "Connect WifiScanner synchronously without sync barrier" into nyc-dev

8 years agoMerge "CEC: Remove listener records only if they are currently used" into nyc-dev
TreeHugger Robot [Fri, 15 Apr 2016 18:10:23 +0000 (18:10 +0000)]
Merge "CEC: Remove listener records only if they are currently used" into nyc-dev

8 years agoAlways assign layer when restacking special windows.
Robert Carr [Fri, 15 Apr 2016 17:58:37 +0000 (10:58 -0700)]
Always assign layer when restacking special windows.

In assignAndIncreaseLayerIfNeeded we need to always
restack the special windows, even if we are stacking them
downwards, otherwise they could be left at too high of
a value from a previous pass. This check was added by
me originally, as a now revealed poorly thought out attempt
to avoid changing existing behavior too much.

Bug: 28139028
Change-Id: I305499e194f2c6bcf7a38c80af1e64bd1fc20943

8 years agoHandle delete failure notifications correctly.
Steve McKay [Fri, 15 Apr 2016 16:51:31 +0000 (09:51 -0700)]
Handle delete failure notifications correctly.

Case was omitted in dialog, resulting in UnsupportedOperationException.
Remove a redundant flag check.

Bug: 28204292
Change-Id: I313d61c72596d4a127f61d557af7300f50d26bf0

8 years agoAdd a callback for when a gl functor is released
John Reck [Thu, 14 Apr 2016 17:38:54 +0000 (10:38 -0700)]
Add a callback for when a gl functor is released

Bug: 27709981

Change-Id: Id5be3e8f88d6d84a9c59c7ed23e7e8862feefbe8

8 years agoMerge "Added new actions for Data Saver stats." into nyc-dev
TreeHugger Robot [Fri, 15 Apr 2016 17:53:40 +0000 (17:53 +0000)]
Merge "Added new actions for Data Saver stats." into nyc-dev

8 years agoMerge "Update FloatingToolbar overflow button." into nyc-dev
Abodunrinwa Toki [Fri, 15 Apr 2016 17:52:08 +0000 (17:52 +0000)]
Merge "Update FloatingToolbar overflow button." into nyc-dev

8 years agoMerge "Fix ref count of fillGradient and strokeGradient" into nyc-dev
Doris Liu [Fri, 15 Apr 2016 17:47:21 +0000 (17:47 +0000)]
Merge "Fix ref count of fillGradient and strokeGradient" into nyc-dev

8 years agoMerge "TIF: Specify the default implementation of onTune(Uri, Bundle)" into nyc-dev
TreeHugger Robot [Fri, 15 Apr 2016 17:39:12 +0000 (17:39 +0000)]
Merge "TIF: Specify the default implementation of onTune(Uri, Bundle)" into nyc-dev

8 years agoRegister the UI Thread as a sensitive thread to the runtime
Calin Juravle [Tue, 12 Apr 2016 13:12:04 +0000 (14:12 +0100)]
Register the UI Thread as a sensitive thread to the runtime

Bug: 27865109
Bug: 28065407
Change-Id: I46194d444530770f505ac5e653536be2da7dd08b

8 years agoFix parse flags
Todd Kennedy [Wed, 13 Apr 2016 17:49:29 +0000 (10:49 -0700)]
Fix parse flags

Setting PARSE_IS_SYSTEM to the parse flags happens long after the
APK is actually parsed. So, we fail to pick up the boot aware and
protected storage attributes. Instead, always pull them from the
manifest, but, remove the flags if the package is not actually a
system package.

Also, we were incorrectly skipping certificate verification if
the flag PARSE_IS_SYSTEM was set. However, this flag is used for
_any_ system package -- whether it's physically on /system or if
it's an unbundled update. Instead, we should only skip this step
if the flag PARSE_IS_SYSTEM_DIR. We can implicitly trust any
APK actually stored in /system.

On a different note ... At some point, we will break apart the
parse flags into actual parse flags [i.e. those that change
physically parsing an APK] and policy flags [i.e. those that
change the interpretation of the APK contents].

Bug: 28116074
Bug: 28088617
Change-Id: I85246b0cb18fb5647df3618107910e288137fbc7

8 years agoCEC: Remove listener records only if they are currently used
Donghyun Cho [Fri, 15 Apr 2016 00:12:03 +0000 (09:12 +0900)]
CEC: Remove listener records only if they are currently used

HdmiControlService manages listeners in listener record instances, and
remove them when binders become disconnected. However, if the listener
and its record are replaced due to new listener, the record for the new
listener should not be set as null by previous binder's disconnection
signal.

Bug: 28069465
Change-Id: I2984d8f93d6443048cf5d3f2988b3c6cf362f012
(cherry picked from commit f5c2a1f58dc95b9800ffb6ebf405c11acc6626b2)

8 years agoMerge "Use a binder instead of a bundle in removeSubscriptionWithOptions" into nyc-dev
Sungsoo Lim [Fri, 15 Apr 2016 16:42:46 +0000 (16:42 +0000)]
Merge "Use a binder instead of a bundle in removeSubscriptionWithOptions" into nyc-dev

8 years agoMerge "Remove all icon bitmaps when a publisher is uninstalled." into nyc-dev
Makoto Onuki [Fri, 15 Apr 2016 16:34:17 +0000 (16:34 +0000)]
Merge "Remove all icon bitmaps when a publisher is uninstalled." into nyc-dev

8 years agoUpdate interface quota on the handler
Amith Yamasani [Wed, 13 Apr 2016 21:04:53 +0000 (14:04 -0700)]
Update interface quota on the handler

This avoids making expensive netd calls while holding the mRulesLock

Doesn't fix the problem of turning on hotspot while WiFi was connected.
It is no longer blocked on isNetworkMetered() call though.

Partial fix for following bugs...
Bug: 27857665
Bug: 28201280
Change-Id: I62f3c0b0571292cc1e156b48ce3329def41cdd07

8 years agoAdded useExternalScores field to WifiConfiguration.
Jeremy Joslin [Fri, 15 Apr 2016 01:19:25 +0000 (18:19 -0700)]
Added useExternalScores field to WifiConfiguration.

Bug: 25562019
Change-Id: Ie3b02875b74f6decb1d4be0107a5a8161f66d657

8 years agoAdded new actions for Data Saver stats.
Felipe Leme [Thu, 14 Apr 2016 21:26:56 +0000 (14:26 -0700)]
Added new actions for Data Saver stats.

BUG: 28166693
Change-Id: I9b7bba21da622ade9a419f3717a2d18a87f4143d

8 years agoMerge "Revert "Revert "Throw security exception for non-parent aware APIs""" into...
Benjamin Franz [Fri, 15 Apr 2016 15:34:51 +0000 (15:34 +0000)]
Merge "Revert "Revert "Throw security exception for non-parent aware APIs""" into nyc-dev

8 years agoMerge "Don't do layout in hasGlyph for codepoint + vs" into nyc-dev
Raph Levien [Fri, 15 Apr 2016 15:20:20 +0000 (15:20 +0000)]
Merge "Don't do layout in hasGlyph for codepoint + vs" into nyc-dev

8 years agoMerge "Notification slider update." into nyc-dev
Julia Reynolds [Fri, 15 Apr 2016 15:18:22 +0000 (15:18 +0000)]
Merge "Notification slider update." into nyc-dev

8 years agoRevert "Revert "Throw security exception for non-parent aware APIs""
Benjamin Franz [Fri, 15 Apr 2016 07:57:52 +0000 (08:57 +0100)]
Revert "Revert "Throw security exception for non-parent aware APIs""

This reverts commit a26c6265641543aef24245b84064b8f58de66c29.

Bug: 27532279
Change-Id: I0c0394a8abf12e7382e7083a0b9d7f8385c3a63d

8 years agoNotification slider update.
Julia Reynolds [Thu, 7 Apr 2016 00:31:05 +0000 (20:31 -0400)]
Notification slider update.

Bug: 27558254
Change-Id: I5e03aacf3aafb900f45d227a031a5dbb328ba18f

8 years agoMerge "Don't show the unlock notification when Work mode is off" into nyc-dev
Benjamin Franz [Fri, 15 Apr 2016 14:53:41 +0000 (14:53 +0000)]
Merge "Don't show the unlock notification when Work mode is off" into nyc-dev

8 years agoMerge "Maybe decrypt user when quiet mode is disabled" into nyc-dev
Benjamin Franz [Fri, 15 Apr 2016 14:53:16 +0000 (14:53 +0000)]
Merge "Maybe decrypt user when quiet mode is disabled" into nyc-dev

8 years agoMerge "Fix cannot unlock keyguard when work challege is unified and work mode is...
Ricky Wai [Fri, 15 Apr 2016 13:44:52 +0000 (13:44 +0000)]
Merge "Fix cannot unlock keyguard when work challege is unified and work mode is off" into nyc-dev

8 years agoAvoid APF JNEBS instruction with R1 as it doesn't work
Paul Jensen [Thu, 14 Apr 2016 18:51:02 +0000 (14:51 -0400)]
Avoid APF JNEBS instruction with R1 as it doesn't work

APF version 2 and prior versions fail to execute JNEBS with R1 argument.
The APF interpreter tries to use R1's value as the number of bytes to
compare, as well as the offset within the packet to compare at.
This change makes ApfFilter avoid using this and makes the APF generator
throw if this is used.  This was limiting the IPv4 filter, causing it to
only drop multicast (when multicast filtering was enabled), rather than
a wider range of broadcast packets.

Bug: 28206777

Change-Id: I8d116e024e8bd641b21053c6b1defc734d744467

8 years agoMaybe decrypt user when quiet mode is disabled
Benjamin Franz [Mon, 4 Apr 2016 17:52:21 +0000 (18:52 +0100)]
Maybe decrypt user when quiet mode is disabled

When quiet mode is disabled for a user and that user is not currently
decrypted, we show a confirm credentials screen to trigger decryption
of that user. Only if that was successful, do we actually disable quiet
mode.

Bug: 27764124
Change-Id: Ib1f649194d89e225dad62c14f3ddba1fa3d79da2

8 years agoUpdate FloatingToolbar overflow button.
Abodunrinwa Toki [Wed, 13 Apr 2016 13:53:28 +0000 (14:53 +0100)]
Update FloatingToolbar overflow button.

1. Change the background ripple to the type used in the ActionBar.
   It looks better.

Bug: 28206428
Change-Id: I2c3ebdc2479ec554c6b06d637b418a52a1794d7b

8 years agoMerge "Metrics logging for DNS queries." into nyc-dev
TreeHugger Robot [Fri, 15 Apr 2016 11:14:56 +0000 (11:14 +0000)]
Merge "Metrics logging for DNS queries." into nyc-dev

8 years agoMerge "Call notifyLockedProfile in TrustManagerService instead of KeyguardViewMediato...
Nicolas Prévot [Fri, 15 Apr 2016 09:52:54 +0000 (09:52 +0000)]
Merge "Call notifyLockedProfile in TrustManagerService instead of KeyguardViewMediator." into nyc-dev

8 years agoFix cannot unlock keyguard when work challege is unified and work mode is off
Ricky Wai [Thu, 14 Apr 2016 09:00:22 +0000 (10:00 +0100)]
Fix cannot unlock keyguard when work challege is unified and work mode is off

Bug: 28138657
Change-Id: I20e2f571d9ac76c0cd92251de7e068f6c7fb3367

8 years agoMetrics logging for DNS queries.
Lorenzo Colitti [Tue, 12 Apr 2016 14:29:19 +0000 (23:29 +0900)]
Metrics logging for DNS queries.

Bug: 28204408
Change-Id: I05fc9b580aa20d99e8766057e17a38b5eb6267e8

8 years agoDisambiguate NetworkCallback JavaDoc.
Lorenzo Colitti [Wed, 13 Apr 2016 13:00:02 +0000 (22:00 +0900)]
Disambiguate NetworkCallback JavaDoc.

The JavaDoc for many of the requestNetwork and
[un]registerNetworkCallback APIs incorrectly mentions the
PendingIntent version of the APIs instead of the NetworkCallback
version.

Also fix a minor issue in the registerDefaultNetworkCallback
JavaDoc: the default network request is an implementation detail,
so don't mention it. Instead, talk about the "system default
network".

Change-Id: Id94d98261daa2bd768c10e033cb8092729b21c91

8 years agoMerge changes Id603816c,I86e41324,I025d0558,I44d8dbac,Iabfc2e81, ... into nyc-dev
Rob Carr [Fri, 15 Apr 2016 06:20:26 +0000 (06:20 +0000)]
Merge changes Id603816c,I86e41324,I025d0558,I44d8dbac,Iabfc2e81, ... into nyc-dev

* changes:
  Only set mResizedWhileNotDragResizing for base windows.
  Fix Task dim with docked resize.
  Correct window replacement string comparison.
  Replace DimLayers with windows.
  Prevent premature window replacement.
  Correctly prevent entrance animation for replacing windows.
  Replace secondary app windows across activity relaunch.

8 years agoImport translations. DO NOT MERGE
Baligh Uddin [Fri, 15 Apr 2016 06:16:45 +0000 (23:16 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ibe3273d1791c214e6f9f311bbf37657a9051f830
Auto-generated-cl: translation import

8 years agoFix VR mode handling when the screen blanks and unblanks.
Craig Donner [Wed, 13 Apr 2016 17:19:04 +0000 (10:19 -0700)]
Fix VR mode handling when the screen blanks and unblanks.

When blanking the screen, turn off VR mode if it's enabled, and when waking up
after the keyboard goes away, turn it on if the top activity has requested VR
mode.

Bug: 26751056
Change-Id: Ib57b1c59e083e3615a02408d922c8c7be645ce92