OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Update framework to use new SkColorSpace API"
TreeHugger Robot [Fri, 10 Feb 2017 20:20:53 +0000 (20:20 +0000)]
Merge "Update framework to use new SkColorSpace API"

7 years agoMerge "fallout from view::Surface / Surface split"
Mathias Agopian [Fri, 10 Feb 2017 20:04:58 +0000 (20:04 +0000)]
Merge "fallout from view::Surface / Surface split"

7 years agoMerge "Fix incorrect header highlight when in single-pane."
TreeHugger Robot [Fri, 10 Feb 2017 20:02:54 +0000 (20:02 +0000)]
Merge "Fix incorrect header highlight when in single-pane."

7 years agoMerge "Put shell on the idle/background whitelist"
Chris Tate [Fri, 10 Feb 2017 19:58:21 +0000 (19:58 +0000)]
Merge "Put shell on the idle/background whitelist"

7 years agoMerge "Clear mExtraDataKeys when clearing A11yNodeInfo."
TreeHugger Robot [Fri, 10 Feb 2017 19:58:06 +0000 (19:58 +0000)]
Merge "Clear mExtraDataKeys when clearing A11yNodeInfo."

7 years agoPut shell on the idle/background whitelist
Christopher Tate [Fri, 10 Feb 2017 19:23:43 +0000 (11:23 -0800)]
Put shell on the idle/background whitelist

Bug 35229549

Change-Id: I9f7dd66c37af9c28c9f0714be4358b94930c2d32

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Fri, 10 Feb 2017 19:10:32 +0000 (19:10 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "android.os.HwBinder.getService() in Java respects VINTF." am: 01f374c635 am...
Yifan Hong [Fri, 10 Feb 2017 18:57:22 +0000 (18:57 +0000)]
Merge "android.os.HwBinder.getService() in Java respects VINTF." am: 01f374c635 am: 71e77c865b am: 2e943c5379
am: 229e2d09ce

Change-Id: I12223be235ec60ef67c8e327226b816d7843bad9

7 years agoMerge "android.os.HwBinder.getService() in Java respects VINTF." am: 01f374c635 am...
Yifan Hong [Fri, 10 Feb 2017 18:53:07 +0000 (18:53 +0000)]
Merge "android.os.HwBinder.getService() in Java respects VINTF." am: 01f374c635 am: 71e77c865b
am: 2e943c5379

Change-Id: Ibbf18bc51e146abef1ab211614a98ec59031b1b9

7 years agoMerge "Log.wtf all privapp-permissions in a single message"
Fyodor Kupolov [Fri, 10 Feb 2017 18:50:29 +0000 (18:50 +0000)]
Merge "Log.wtf all privapp-permissions in a single message"

7 years agoMerge "android.os.HwBinder.getService() in Java respects VINTF." am: 01f374c635
Yifan Hong [Fri, 10 Feb 2017 18:48:14 +0000 (18:48 +0000)]
Merge "android.os.HwBinder.getService() in Java respects VINTF." am: 01f374c635
am: 71e77c865b

Change-Id: I37c99d5135046c6b0d2589f321cd8e4b235392e7

7 years agoMerge "Don't scroll popup parent in response to parent scrolling" into nyc-mr2-dev...
Alan Viverette [Fri, 10 Feb 2017 18:48:13 +0000 (18:48 +0000)]
Merge "Don't scroll popup parent in response to parent scrolling" into nyc-mr2-dev am: 41023417e7
am: 07a6ff6989

Change-Id: If7b5bd47dd0582ea2b6dec98207cac16058f4bc5

7 years agoMerge "Don't scroll popup parent in response to parent scrolling" into nyc-mr2-dev
Alan Viverette [Fri, 10 Feb 2017 18:43:47 +0000 (18:43 +0000)]
Merge "Don't scroll popup parent in response to parent scrolling" into nyc-mr2-dev
am: 41023417e7

Change-Id: I4e42386e1f227e2cb48bf37eb05bcf7f81b6d709

7 years agoMerge "android.os.HwBinder.getService() in Java respects VINTF."
Yifan Hong [Fri, 10 Feb 2017 18:43:37 +0000 (18:43 +0000)]
Merge "android.os.HwBinder.getService() in Java respects VINTF."
am: 01f374c635

Change-Id: I1db3c946211861e6edd7c03d9eaeae7a0cb412c4

7 years agoMerge "Don't scroll popup parent in response to parent scrolling" into nyc-mr2-dev
TreeHugger Robot [Fri, 10 Feb 2017 18:35:32 +0000 (18:35 +0000)]
Merge "Don't scroll popup parent in response to parent scrolling" into nyc-mr2-dev

7 years agoMerge "android.os.HwBinder.getService() in Java respects VINTF."
Yifan Hong [Fri, 10 Feb 2017 18:33:41 +0000 (18:33 +0000)]
Merge "android.os.HwBinder.getService() in Java respects VINTF."

7 years agoUpdate framework to use new SkColorSpace API
Matt Sarett [Fri, 10 Feb 2017 18:31:56 +0000 (13:31 -0500)]
Update framework to use new SkColorSpace API

Test: This compiles with SK_USE_LEGACY_NAMED_COLOR_SPACE
turned off.

Change-Id: Ie573f59e0aa475bab06b38589db3c6158ad82c5a

7 years agoClear mExtraDataKeys when clearing A11yNodeInfo.
Phil Weaver [Fri, 10 Feb 2017 18:10:01 +0000 (10:10 -0800)]
Clear mExtraDataKeys when clearing A11yNodeInfo.

Bug: 35244501
Test: Ran Accessibilitiy CTS. I can no longer get the test mentioned
in the bug to fail.

Change-Id: I69e5e1b5c8f12226837ced928fbd10ff77bcd235

7 years agoFix incorrect header highlight when in single-pane.
Filip Pavlis [Fri, 10 Feb 2017 15:51:41 +0000 (15:51 +0000)]
Fix incorrect header highlight when in single-pane.

Bug: 35216626
Test: Case will be covered in ag/1761868

Change-Id: I877823762a44d6545c80f4f59b29f190c389ba09

7 years agoMerge "Fix PlaybackActivityMonitor unmute path"
Jean-Michel Trivi [Fri, 10 Feb 2017 17:55:16 +0000 (17:55 +0000)]
Merge "Fix PlaybackActivityMonitor unmute path"

7 years agoMerge "Move auto-fill shell command off IPC"
TreeHugger Robot [Fri, 10 Feb 2017 17:52:06 +0000 (17:52 +0000)]
Merge "Move auto-fill shell command off IPC"

7 years agoMerge "Add storage management days to retain to settings for backup."
Daniel Nishi [Fri, 10 Feb 2017 17:50:18 +0000 (17:50 +0000)]
Merge "Add storage management days to retain to settings for backup."

7 years agoFix PlaybackActivityMonitor unmute path
Jean-Michel Trivi [Fri, 10 Feb 2017 17:47:30 +0000 (09:47 -0800)]
Fix PlaybackActivityMonitor unmute path

Clear the list of muted played after iterating over it.

Test: see repro test in b/35229719
Bug 35229719

Change-Id: I2e9860f8afbb625933091e45ea705903c74d629e

7 years agoMerge "Partially revert commit ff5659fbc3026e621bdd926e96096e2957cfd42e."
Narayan Kamath [Fri, 10 Feb 2017 17:07:41 +0000 (17:07 +0000)]
Merge "Partially revert commit ff5659fbc3026e621bdd926e96096e2957cfd42e."

7 years agoMerge "Stop using IntentService and use async receiver (2/2 - contract)"
Makoto Onuki [Fri, 10 Feb 2017 16:27:49 +0000 (16:27 +0000)]
Merge "Stop using IntentService and use async receiver (2/2 - contract)"

7 years agoMerge "SchedulingPolicyService: specify the beneficiary of priority boost"
Mikhail Naganov [Fri, 10 Feb 2017 16:19:41 +0000 (16:19 +0000)]
Merge "SchedulingPolicyService: specify the beneficiary of priority boost"

7 years agoMerge "Let apps link to noti settings and vice versa."
Julia Reynolds [Fri, 10 Feb 2017 16:05:07 +0000 (16:05 +0000)]
Merge "Let apps link to noti settings and vice versa."

7 years agoMerge changes from topic 'smartselect'
Abodunrinwa Toki [Fri, 10 Feb 2017 15:56:35 +0000 (15:56 +0000)]
Merge changes from topic 'smartselect'

* changes:
  Introduce a model file for language detection.
  Change package for LangId and SmartSelection.

7 years agoMerge "Add instrumentation for BackupManager during restore."
Stefano Tommasini [Fri, 10 Feb 2017 15:46:01 +0000 (15:46 +0000)]
Merge "Add instrumentation for BackupManager during restore."

7 years agoMerge "Revert "Set correct focus activity when using FLAG_ACTIVITY_REORDER_TO_FRONT""
Bryce Lee [Fri, 10 Feb 2017 15:40:50 +0000 (15:40 +0000)]
Merge "Revert "Set correct focus activity when using FLAG_ACTIVITY_REORDER_TO_FRONT""

7 years agoMove auto-fill shell command off IPC
Svet Ganov [Fri, 10 Feb 2017 11:45:28 +0000 (03:45 -0800)]
Move auto-fill shell command off IPC

Auto-fill has a shell command that is useful for development
which is currently exposed as a remote method allowing any app
to call it reflectively. Since only case this method is called
is when handling a shell command there is no need to expose it
to IPC over binder.

Test: manual

Change-Id: Iac20b4a39c7065e254f8aa277d1f2fd1c38b24a8

7 years agoPartially revert commit ff5659fbc3026e621bdd926e96096e2957cfd42e.
Narayan Kamath [Fri, 10 Feb 2017 14:53:10 +0000 (14:53 +0000)]
Partially revert commit ff5659fbc3026e621bdd926e96096e2957cfd42e.

ff5659fbc was intended to be a clean revert of 660cf30e2100d8ed401
that fixed a DOA issue. However, the author incorrectly rebased that
revert and picked up pieces of a separate change as well. This reverts
those sections of the change so that they can be submitted with the
correct attribution and with proper review.

Bug: 34415265
Bug: 34914977
Test: make

Change-Id: I977c3ba10bb05f04ac8cfd95d17954c454c83340

7 years agoAdd instrumentation for BackupManager during restore.
Stefanot [Mon, 6 Feb 2017 21:14:05 +0000 (21:14 +0000)]
Add instrumentation for BackupManager during restore.

This CL adds more instumentation to
backup/restore operation in the BackupManager. For more details please
point to:
https://docs.google.com/document/d/1sUboR28LjkT1wRXOwVOV3tLo0qisiCvzxIGmzCVEjbI/edit#
This first Cl introduces 3 events that we sent to the monitor.
The base cl is ag/1835775

Test: TODO

BUG: 34873525
Change-Id: I127fe739a7522078eecce2ae689a4607203a98da

7 years agoMerge "AutoSize TextView (part 9) - sanitize APIs naming"
TreeHugger Robot [Fri, 10 Feb 2017 13:38:21 +0000 (13:38 +0000)]
Merge "AutoSize TextView (part 9) - sanitize APIs naming"

7 years agoMerge "Add monitoring to backup in BackupManager."
Stefano Tommasini [Fri, 10 Feb 2017 12:52:27 +0000 (12:52 +0000)]
Merge "Add monitoring to backup in BackupManager."

7 years agoMerge "Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am...
Rubin Xu [Fri, 10 Feb 2017 12:38:03 +0000 (12:38 +0000)]
Merge "Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9 am: f85a20702a am: 0f2c853889" into nyc-mr2-dev-plus-aosp
am: 90629b8789  -s ours

Change-Id: I7567f5cb08144ad8331e0114a64ba701ceb7cca7

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293...
Rubin Xu [Fri, 10 Feb 2017 12:36:52 +0000 (12:36 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9 am: f85a20702a am: 060cde9802
am: 6ee5a0c8a5  -s ours

Change-Id: Idb3567f6db884a03d05bd4135e4dc53e44e325e4

7 years agoMerge "Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am...
Android Build Merger (Role) [Fri, 10 Feb 2017 12:33:37 +0000 (12:33 +0000)]
Merge "Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9 am: f85a20702a am: 0f2c853889" into nyc-mr2-dev-plus-aosp

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293...
Rubin Xu [Fri, 10 Feb 2017 12:32:57 +0000 (12:32 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9 am: f85a20702a
am: 0f2c853889

Change-Id: Icfdd2a6027c75e43c78f85109341ae088102548b

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293...
Rubin Xu [Fri, 10 Feb 2017 12:32:48 +0000 (12:32 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9 am: f85a20702a
am: 060cde9802

Change-Id: Ic591b48e298823b46f8d1fc25b0e01a82cc263b5

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293...
Rubin Xu [Fri, 10 Feb 2017 12:28:56 +0000 (12:28 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9
am: f85a20702a

Change-Id: I3861a5229fdb55f7dc7fd57e1706b34f9847d492

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293...
Rubin Xu [Fri, 10 Feb 2017 12:28:47 +0000 (12:28 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9
am: f85a20702a

Change-Id: If9e569ba66dc9e5876fab5ffd2a6c9b0a9fb923b

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293...
Rubin Xu [Fri, 10 Feb 2017 12:24:43 +0000 (12:24 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce
am: 72074e3ab9

Change-Id: I1cd4db65e0fe8c92628f22f94fe937cf64f2da04

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293
Rubin Xu [Fri, 10 Feb 2017 12:20:18 +0000 (12:20 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293
am: 824c8284ce

Change-Id: If4dfa2d7af980c91ec3d3f8faa7e7f4a39350c82

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev
Rubin Xu [Fri, 10 Feb 2017 12:16:19 +0000 (12:16 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev
am: 42f2e80293

Change-Id: Ic167e10a205b5c8f9df81cd20a6f08359d3807f4

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev
TreeHugger Robot [Fri, 10 Feb 2017 12:10:58 +0000 (12:10 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev

7 years agoMerge "Fix for bmgr whitelist"
Shreyas Basarge [Fri, 10 Feb 2017 11:58:26 +0000 (11:58 +0000)]
Merge "Fix for bmgr whitelist"

7 years agoAdd monitoring to backup in BackupManager.
Stefanot [Fri, 27 Jan 2017 12:03:53 +0000 (12:03 +0000)]
Add monitoring to backup in BackupManager.

This is the first CL of many that will add instumentation to
backup/restore operation in the BackupManager. For more details please
point to:
https://docs.google.com/document/d/1sUboR28LjkT1wRXOwVOV3tLo0qisiCvzxIGmzCVEjbI/edit#
This first Cl introduces 3 events that we sent to the monitor.

Test: ag/1858962 (same topic)

BUG: 34873525

Change-Id: I6c338b6fd9f4d7c8670dac201897250b6b170677

7 years agoImprove ACTION_PACKAGE_CHANGED handling in IMMS
Yohei Yukawa [Fri, 10 Feb 2017 03:30:22 +0000 (19:30 -0800)]
Improve ACTION_PACKAGE_CHANGED handling in IMMS

This CL fixes a false negative case when handling
ACTION_PACKAGE_CHANGED in IMMS#MyPackageMonitor with greatly reducing
unnecessary false positives cases as well.

PackageMonitor#onPackageChanged(), which is the default handler of
ACTION_PACKAGE_CHANGED, returns true when and only when the entire
package state is changed to let InputMethodManagerService (IMMS)
rebuild the list of available IMEs when it returns true. Here we have
a false negative case and false positive cases.

Case 1 - false negative (Bug 28181208)

  If ACTION_PACKAGE_CHANGED was about some components not the
  entire package itself, currently MyPackageMonitor#onPackageChanged()
  returns false and IMMS fails to rebuild the list of available IMEs.

Case 2 - false positive (contributing to Bug 32343335)

  Even if ACTION_PACKAGE_CHANGED was about a package that implements
  no IME service at all, currently MyPackageMonitor#onPackageChanged()
  returns true and IMMS ends up with rebuilding the list of avilable
  IMEs unnecessarily. Note that package replacement is a different
  story that should be dealt with ACTION_PACKAGE_{ADDED, REMOVED}.

For both cases, luckily we can easily ask PackageManager to give the
list of relevant package names that might contain IMEs regardless of
enabled/disabled state, which is exactly what we want to use the watch
list for ACTION_PACKAGE_CHANGED events.

For the case 3, we can just check the current user ID.

Test: Manually verified as follows.
       1. adb root
       2. adb install -r LatinIME.apk
       3. adb shell dumpsys input_method
           Make sure that com.android.inputmethod.latin/.LatinIME is
           recognized by IMMS.
       4. adb shell pm disable com.android.inputmethod.latin/.LatinIME
       5. adb shell dumpsys input_method
           Make sure that com.android.inputmethod.latin/.LatinIME is
           no longer recognized by IMMS.
       6. adb shell pm enable com.android.inputmethod.latin/.LatinIME
       7. adb shell dumpsys input_method
           Make sure that com.android.inputmethod.latin/.LatinIME is
           recognized by IMMS again.
Test: Manually verified as follows.
       1. Build a custom APK LatinIME_no_ime.apk that has no input
          method service.
       2. adb install -r LatinIME_no_ime.apk
       3. adb shell dumpsys input_method
           Make sure that com.android.inputmethod.latin/.LatinIME is
           not recognized by IMMS.
       4. adb install -r LatinIME.apk
       5. adb shell dumpsys input_method
           Make sure that com.android.inputmethod.latin/.LatinIME is
           recognized by IMMS.
       6. adb install -r LatinIME_no_ime.apk
       7. adb shell dumpsys input_method
           Make sure that com.android.inputmethod.latin/.LatinIME is
           no longer recognized by IMMS.
Bug: 32343335
Fixes: 28181208
Change-Id: I7b69c349318ce06a48d03a4468cf2c45bfb73dc2

7 years agoMerge "Fix tinting and sizing of tuner lock screen shortcuts"
TreeHugger Robot [Fri, 10 Feb 2017 06:36:05 +0000 (06:36 +0000)]
Merge "Fix tinting and sizing of tuner lock screen shortcuts"

7 years agoMerge "Expose api to retrieve wakelock information per client" am: 8fbf6a29d0 am...
Sooraj Sasindran [Fri, 10 Feb 2017 06:01:49 +0000 (06:01 +0000)]
Merge "Expose api to retrieve wakelock information per client" am: 8fbf6a29d0 am: 730c2d9c72  -s ours am: bae8d7a8c4  -s ours
am: 186c0839d8  -s ours

Change-Id: Ib31f1fbceb2fdc008500ffed8a765baa84d382a6

7 years agoMerge "Expose api to retrieve wakelock information per client" am: 8fbf6a29d0 am...
Sooraj Sasindran [Fri, 10 Feb 2017 05:57:13 +0000 (05:57 +0000)]
Merge "Expose api to retrieve wakelock information per client" am: 8fbf6a29d0 am: 730c2d9c72  -s ours
am: bae8d7a8c4  -s ours

Change-Id: I352f7dc305e64fa5e82bd3cccd9015732ab54504

7 years agoMerge "Expose api to retrieve wakelock information per client" am: 8fbf6a29d0
Sooraj Sasindran [Fri, 10 Feb 2017 05:50:12 +0000 (05:50 +0000)]
Merge "Expose api to retrieve wakelock information per client" am: 8fbf6a29d0
am: 730c2d9c72  -s ours

Change-Id: I17a8dfcf0be71bcb667e70bab2834f0b7fd42b3c

7 years agoMerge "Expose api to retrieve wakelock information per client"
Sooraj Sasindran [Fri, 10 Feb 2017 05:45:05 +0000 (05:45 +0000)]
Merge "Expose api to retrieve wakelock information per client"
am: 8fbf6a29d0

Change-Id: I1ca7d53b256333170b849cb1103c8b3ca0e76e0b

7 years agoMerge "Expose api to retrieve wakelock information per client"
Sooraj Sasindran [Fri, 10 Feb 2017 05:38:40 +0000 (05:38 +0000)]
Merge "Expose api to retrieve wakelock information per client"

7 years agoMerge "AudioService: check safe volume bypass early at boot"
TreeHugger Robot [Fri, 10 Feb 2017 05:12:01 +0000 (05:12 +0000)]
Merge "AudioService: check safe volume bypass early at boot"

7 years agoFix tinting and sizing of tuner lock screen shortcuts
Jason Monk [Thu, 9 Feb 2017 22:32:54 +0000 (14:32 -0800)]
Fix tinting and sizing of tuner lock screen shortcuts

Test: visual
Change-Id: I13f0281d38cd4d73322e9752d9bca36be2412917

7 years agoMerge "Remove user-specific data in WMS when the user is removed."
TreeHugger Robot [Fri, 10 Feb 2017 04:02:31 +0000 (04:02 +0000)]
Merge "Remove user-specific data in WMS when the user is removed."

7 years agoMerge "Remove build flag ANDROID_ENABLE_RENDERSCRIPT"
Po-Chien Hsueh [Fri, 10 Feb 2017 03:41:03 +0000 (03:41 +0000)]
Merge "Remove build flag ANDROID_ENABLE_RENDERSCRIPT"

7 years agoMerge "Expose api to retrieve wakelock information per client" into nyc-mr1-dev-plus...
Sooraj Sasindran [Fri, 10 Feb 2017 03:10:07 +0000 (03:10 +0000)]
Merge "Expose api to retrieve wakelock information per client" into nyc-mr1-dev-plus-aosp am: cbbf530125
am: 4c8fc962dc  -s ours

Change-Id: I30c51fef823abb8259f961b18f5bba1dcea357d8

7 years agoMerge "Expose api to retrieve wakelock information per client" into nyc-mr1-dev-plus...
Sooraj Sasindran [Fri, 10 Feb 2017 03:03:38 +0000 (03:03 +0000)]
Merge "Expose api to retrieve wakelock information per client" into nyc-mr1-dev-plus-aosp
am: cbbf530125

Change-Id: Id5ea5536246343a530f7579a31039421b3859de3

7 years agoMerge "Expose api to retrieve wakelock information per client" into nyc-mr1-dev-plus...
Sooraj Sasindran [Fri, 10 Feb 2017 02:58:40 +0000 (02:58 +0000)]
Merge "Expose api to retrieve wakelock information per client" into nyc-mr1-dev-plus-aosp

7 years agoAudioService: check safe volume bypass early at boot
Eric Laurent [Fri, 10 Feb 2017 02:29:15 +0000 (18:29 -0800)]
AudioService: check safe volume bypass early at boot

audio.safemedia.bypass property was sampled only after a 30 second
timeout after boot in case no MCC change config event is received.

If the property is true, skip the time out to speed up automated test
needing to disable the volume warning.

Bug: 31347265
Test: restart runtime with audio.safemedia.bypass true and check
no warning is displayed when raising volume to max

Change-Id: Ic31111200379e3cb4fddc651fa548a1bdff3384a

7 years agoMerge "Fix NPE in ClipboarService."
TreeHugger Robot [Fri, 10 Feb 2017 02:25:00 +0000 (02:25 +0000)]
Merge "Fix NPE in ClipboarService."

7 years agoRemove user-specific data in WMS when the user is removed.
Sudheer Shanka [Thu, 9 Feb 2017 19:01:44 +0000 (11:01 -0800)]
Remove user-specific data in WMS when the user is removed.

Change-Id: I60c8dd07dcc9d2a34cab1b8f16e5b1e1789d822f
Fixes: 32028192
Test: manual

7 years agoMerge "Fix WindowFrameTest error."
TreeHugger Robot [Fri, 10 Feb 2017 02:00:01 +0000 (02:00 +0000)]
Merge "Fix WindowFrameTest error."

7 years agoMerge "Adding a new internal method to get all valid scorers."
TreeHugger Robot [Fri, 10 Feb 2017 01:28:45 +0000 (01:28 +0000)]
Merge "Adding a new internal method to get all valid scorers."

7 years agoMerge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit" am: 851afe56b8 am...
Andreas Gampe [Fri, 10 Feb 2017 01:12:45 +0000 (01:12 +0000)]
Merge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit" am: 851afe56b8 am: 0e01cae667 am: 74acde1bc5
am: c28592da33  -s ours

Change-Id: If1bbd5d4040381b9bcd6e08598a7e35e01143015

7 years agoStop using IntentService and use async receiver (2/2 - contract)
Makoto Onuki [Fri, 10 Feb 2017 01:06:28 +0000 (17:06 -0800)]
Stop using IntentService and use async receiver (2/2 - contract)

Also:
- Set FLAG_RECEIVER_INCLUDE_BACKGROUND for ACTION_EVENT_REMINDER
- Remove the wake lock; with goAsync() now it's not needed.

Test: Manual test with: adb shell am broadcast --receiver-include-background -a android.intent.action.EVENT_REMINDER -d content:
Bug 35207106

Change-Id: I9e456f473f13b71df6e0dd1a1abdb0df8c26e6c7

7 years agoMerge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit" am: 851afe56b8 am...
Andreas Gampe [Fri, 10 Feb 2017 01:03:15 +0000 (01:03 +0000)]
Merge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit" am: 851afe56b8 am: 0e01cae667
am: 74acde1bc5

Change-Id: I40d67fcde4d9263d5c75d5c3f782a860dcff93f8

7 years agoMerge "Fixed an issue where the emergency affordance didn't show" into nyc-mr2-dev...
Selim Cinek [Fri, 10 Feb 2017 00:59:45 +0000 (00:59 +0000)]
Merge "Fixed an issue where the emergency affordance didn't show" into nyc-mr2-dev am: fbf2e0fb2c
am: 0fe3d064a3

Change-Id: I3b86cc62c28c8086ed57505581c33d7b578f893d

7 years agoMerge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit" am: 851afe56b8
Andreas Gampe [Fri, 10 Feb 2017 00:58:42 +0000 (00:58 +0000)]
Merge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit" am: 851afe56b8
am: 0e01cae667

Change-Id: Ifaa7595efaef554a47e05e030ccaf16a53a3bfce

7 years agoIntroduce a model file for language detection.
Abodunrinwa Toki [Thu, 9 Feb 2017 22:54:47 +0000 (22:54 +0000)]
Introduce a model file for language detection.

Test: cts-tradefed run cts-dev -m CtsViewTestCases -t
android.view.textclassifier.cts.TextClassificationManagerTest#testLanguageDetection
Bug: 34777495

Change-Id: Id4102732d303151839ae54630746f882a98dce29

7 years agoMerge "Revert "Camera2: Temporarily remove surface size 0 check""
TreeHugger Robot [Fri, 10 Feb 2017 00:57:03 +0000 (00:57 +0000)]
Merge "Revert "Camera2: Temporarily remove surface size 0 check""

7 years agoChange package for LangId and SmartSelection.
Abodunrinwa Toki [Thu, 9 Feb 2017 22:41:58 +0000 (22:41 +0000)]
Change package for LangId and SmartSelection.

Package change from android.text to android.view.textclassifier.
This change was delayed until the native library code was updated
to reflect this package change.

Test: cts-tradefed run cts-dev -m CtsViewTestCases -t android.view.textclassifier.cts.TextClassificationManagerTest
Bug: 34777495
Change-Id: I723aaf79f8fbed4758bb4ee6727dfb6a8e35bf99

7 years agoMerge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit"
Andreas Gampe [Fri, 10 Feb 2017 00:54:55 +0000 (00:54 +0000)]
Merge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit"
am: 851afe56b8

Change-Id: Ib21530d511158635793f6180d53f193d1f1b0d95

7 years agoMerge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit"
Treehugger Robot [Fri, 10 Feb 2017 00:45:55 +0000 (00:45 +0000)]
Merge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit"

7 years agoExpose api to retrieve wakelock information per client
Sooraj Sasindran [Mon, 18 Jul 2016 18:50:50 +0000 (11:50 -0700)]
Expose api to retrieve wakelock information per client

Expose api to retrieve wakelock information per client
Provide calling package name in cell info apis

BUG=31041780
Merged-In: Ie39fe59055eb7931bd179dd9e2537a7552c38af8
Change-Id: Ie39fe59055eb7931bd179dd9e2537a7552c38af8

7 years agoMerge "Zygote: Restore GL preload"
TreeHugger Robot [Fri, 10 Feb 2017 00:36:42 +0000 (00:36 +0000)]
Merge "Zygote: Restore GL preload"

7 years agoMerge "Fixed an issue where the emergency affordance didn't show" into nyc-mr2-dev
Selim Cinek [Fri, 10 Feb 2017 00:12:48 +0000 (00:12 +0000)]
Merge "Fixed an issue where the emergency affordance didn't show" into nyc-mr2-dev
am: fbf2e0fb2c

Change-Id: Ib1c45af5ffea1d09e14ac5daac61a1046d2594a2

7 years agoMerge "Fixed an issue where the emergency affordance didn't show" into nyc-mr2-dev
Selim Cinek [Fri, 10 Feb 2017 00:06:39 +0000 (00:06 +0000)]
Merge "Fixed an issue where the emergency affordance didn't show" into nyc-mr2-dev

7 years agoAdding a new internal method to get all valid scorers.
Jeremy Joslin [Thu, 9 Feb 2017 23:32:04 +0000 (15:32 -0800)]
Adding a new internal method to get all valid scorers.

New NetworkScoreManager method to get all valid scorers from the
NetworkScoreService. The implementation is stubbed out for the time
being.

Test: make
Bug: 35095406
Change-Id: Iece2cc10a0a9377f2d82385d172b06660bb9b130

7 years agoMerge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit"
Andreas Gampe [Thu, 9 Feb 2017 23:17:14 +0000 (23:17 +0000)]
Merge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit"

7 years agoFix for bmgr whitelist
Shreyas Basarge [Thu, 9 Feb 2017 13:38:49 +0000 (13:38 +0000)]
Fix for bmgr whitelist

The bmgr whitelist command was broken
after the selectTransport api cl. This
cl fixes it.

Bug: 34953486
Test: Verify that adb shell bmgr whitelist prints all whitelisted
transports
Change-Id: I3c3275258a45a035a0ca9404d1016ca5663cceaf

7 years agofallout from view::Surface / Surface split
Mathias Agopian [Thu, 9 Feb 2017 01:07:13 +0000 (17:07 -0800)]
fallout from view::Surface / Surface split

Test: built and booted device
Bug: treble
Change-Id: I8ec554f5726d597d944967a3924cc997a75453a2

7 years agoZygote: Restore GL preload
Jesse Hall [Thu, 9 Feb 2017 22:43:14 +0000 (14:43 -0800)]
Zygote: Restore GL preload

Preloading GLES drivers in Zygote was removed previously since it is
incompatible with updatable drivers. That caused some app startup
latency and system memory use regressions. This change re-adds GLES
driver preloading, but only on devices that don't support driver
updates.

Bug: 34611670
Bug: 35052548
Test: boot angler, systrace of Calculator app startup
Change-Id: Ibdc6b3c0ba4473574722641d4bfad4b375f908a3

7 years agoMerge "Remove downloads backup related Settings."
TreeHugger Robot [Thu, 9 Feb 2017 22:33:48 +0000 (22:33 +0000)]
Merge "Remove downloads backup related Settings."

7 years agoMerge "Dependency: Make non-class dependencies type-safe"
Adrian Roos [Thu, 9 Feb 2017 22:28:57 +0000 (22:28 +0000)]
Merge "Dependency: Make non-class dependencies type-safe"

7 years agoFix NPE in ClipboarService.
Sudheer Shanka [Thu, 9 Feb 2017 21:09:15 +0000 (13:09 -0800)]
Fix NPE in ClipboarService.

Check if primaryClip is null or not before trying to set the timestamp.

Fixes: 35144954
Test: cts-tradefed run singleCommand cts-dev --module -t \
      com.android.cts.devicepolicy.ManagedProfileTest#testCrossProfileCopyPaste

Change-Id: If322626553f42dda56a42adc2c6e4d206715a673

7 years agoMerge "Disable touch slop for generated gesture events"
TreeHugger Robot [Thu, 9 Feb 2017 22:06:33 +0000 (22:06 +0000)]
Merge "Disable touch slop for generated gesture events"

7 years agoFixed an issue where the emergency affordance didn't show
Selim Cinek [Wed, 8 Feb 2017 20:51:59 +0000 (12:51 -0800)]
Fixed an issue where the emergency affordance didn't show

The state wheather the sim affordance was needed before was
loaded but not saved locally if it didn't change, so any
further requests would have the default values if it stayed
true.

Test: add india sim, go into airplane mode, reboot, see emergency
button
Fixes: 34370542
Change-Id: I9da1f5ca8025df6c2618ab467e937cf5cf9aa132

7 years agoExpose api to retrieve wakelock information per client
Sooraj Sasindran [Mon, 18 Jul 2016 18:50:50 +0000 (11:50 -0700)]
Expose api to retrieve wakelock information per client

Expose api to retrieve wakelock information per client
Provide calling package name in cell info apis

BUG=31041780
Merged-In: Ie39fe59055eb7931bd179dd9e2537a7552c38af8
Change-Id: Ie39fe59055eb7931bd179dd9e2537a7552c38af8

7 years agoMerge "Add permission for instant apps creating foreground services"
Chad Brubaker [Thu, 9 Feb 2017 21:33:16 +0000 (21:33 +0000)]
Merge "Add permission for instant apps creating foreground services"

7 years agoFramework: Clean up RuntimeInit/ZygoteInit/WrapperInit
Andreas Gampe [Wed, 8 Feb 2017 03:44:37 +0000 (19:44 -0800)]
Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit

Move methods where they belong.

(cherry picked from commit 4e66db8d0c60e89f3a87bb05f38f82bda032ff0f)

Test: m
Test: Device boots
Change-Id: I805c6493078e960ff5b70d84dd93d2da6c7aa797

7 years agoFramework: Clean up RuntimeInit/ZygoteInit/WrapperInit
Andreas Gampe [Wed, 8 Feb 2017 03:44:37 +0000 (19:44 -0800)]
Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit

Move methods where they belong.

Test: m
Test: Device boots
Merged-In: I805c6493078e960ff5b70d84dd93d2da6c7aa797
Change-Id: I805c6493078e960ff5b70d84dd93d2da6c7aa797

7 years agoRevert "Camera2: Temporarily remove surface size 0 check"
Shuzhen Wang [Thu, 9 Feb 2017 21:13:04 +0000 (13:13 -0800)]
Revert "Camera2: Temporarily remove surface size 0 check"

This reverts commit bdabb0f582ddc4d9fe3df63030bdbe8e0a74348e.
Bug: 35027811
Test: Use camera from hangouts

7 years agoMerge "Check bg persistent-app policy against base uid, not nominal"
Chris Tate [Thu, 9 Feb 2017 20:47:29 +0000 (20:47 +0000)]
Merge "Check bg persistent-app policy against base uid, not nominal"

7 years agoFix WindowFrameTest error.
Robert Carr [Thu, 9 Feb 2017 20:41:03 +0000 (12:41 -0800)]
Fix WindowFrameTest error.

It appears somehow we are using real display sizes and it varies from
device to device. This itself is somewhat concerning, but easy enough
to handle. If you look at the line before the modified lines
it seems like this is what I meant to do initially but somehow it didn't happen.

Test: bit FrameworksServicesTests:com.android.server.wm.WindowFrameTests
Fixes: 35197592
Change-Id: I05880ba95a8ee3b790fb14daf00c878b4f85095c

7 years agoMerge "Fix issue #34592078: Mobile broadcast crash observed randomly..."
Dianne Hackborn [Thu, 9 Feb 2017 20:42:07 +0000 (20:42 +0000)]
Merge "Fix issue #34592078: Mobile broadcast crash observed randomly..."

7 years agoDependency: Make non-class dependencies type-safe
Adrian Roos [Thu, 9 Feb 2017 18:58:25 +0000 (19:58 +0100)]
Dependency: Make non-class dependencies type-safe

Introduces a new DependencyKey<V> type which allows
referring to non-class dependencies in a type-safe
way. This also improves performance because we no
longer need to perform string comparisons.

Test: runtest systemui
Change-Id: Idc948855a85a1899be41e7f0170c40e73e525024