OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Track libcore commit a2d9879b" am: 4aa106a790 am: b89ec268ab
Przemyslaw Szczepaniak [Thu, 23 Mar 2017 16:43:39 +0000 (16:43 +0000)]
Merge "Track libcore commit a2d9879b" am: 4aa106a790 am: b89ec268ab
am: 3dcac86f4c

Change-Id: Iefcd20cd6d268006357aea346fbfd683865f3955

7 years agoMerge "Track libcore commit a2d9879b" am: 4aa106a790
Przemyslaw Szczepaniak [Thu, 23 Mar 2017 16:37:52 +0000 (16:37 +0000)]
Merge "Track libcore commit a2d9879b" am: 4aa106a790
am: b89ec268ab

Change-Id: I0649915b7efcbfa2c14b68d16c4d0de71656d694

7 years agoMerge "Track libcore commit a2d9879b"
Przemyslaw Szczepaniak [Thu, 23 Mar 2017 16:31:28 +0000 (16:31 +0000)]
Merge "Track libcore commit a2d9879b"
am: 4aa106a790

Change-Id: I447493da10ec6e42b9b8fcc379ddae578ee78e91

7 years agoMerge "Allow exposing components via <meta-data>"
TreeHugger Robot [Thu, 23 Mar 2017 16:28:55 +0000 (16:28 +0000)]
Merge "Allow exposing components via <meta-data>"

7 years agoMerge "Track libcore commit a2d9879b"
Treehugger Robot [Thu, 23 Mar 2017 16:20:24 +0000 (16:20 +0000)]
Merge "Track libcore commit a2d9879b"

7 years agoMerge "Preload fonts from an array"
TreeHugger Robot [Thu, 23 Mar 2017 16:17:45 +0000 (16:17 +0000)]
Merge "Preload fonts from an array"

7 years agoMerge "QS: Fix labels in extremely long circumstances"
TreeHugger Robot [Thu, 23 Mar 2017 16:17:20 +0000 (16:17 +0000)]
Merge "QS: Fix labels in extremely long circumstances"

7 years agoMerge "QS: swap order of content description"
TreeHugger Robot [Thu, 23 Mar 2017 16:06:06 +0000 (16:06 +0000)]
Merge "QS: swap order of content description"

7 years agoMerge "Provide docs for the XML attributes related to fonts"
TreeHugger Robot [Thu, 23 Mar 2017 16:05:28 +0000 (16:05 +0000)]
Merge "Provide docs for the XML attributes related to fonts"

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Thu, 23 Mar 2017 16:03:00 +0000 (16:03 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Thu, 23 Mar 2017 15:59:06 +0000 (15:59 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Thu, 23 Mar 2017 15:55:42 +0000 (15:55 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Add ACTION_USER_RESTRICTIONS_CHANGED to protetced-broadcast."
Makoto Onuki [Thu, 23 Mar 2017 15:54:18 +0000 (15:54 +0000)]
Merge "Add ACTION_USER_RESTRICTIONS_CHANGED to protetced-broadcast."

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Thu, 23 Mar 2017 15:47:35 +0000 (15:47 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Thu, 23 Mar 2017 15:27:28 +0000 (15:27 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Audio focus: SDK/System API updates"
Jean-Michel Trivi [Thu, 23 Mar 2017 15:11:49 +0000 (15:11 +0000)]
Merge "Audio focus: SDK/System API updates"

7 years agoQS: Fix labels in extremely long circumstances
Jason Monk [Thu, 23 Mar 2017 14:39:14 +0000 (10:39 -0400)]
QS: Fix labels in extremely long circumstances

 - Center
 - Ellipsize
 - Don't clip

Test: visual
Change-Id: I67e5944b9eca3270f53db0fa27ad543c921caa31
Fixes: 36241054

7 years agoMerge "Skip ListPopupWindow position update if detached" am: c45b10a9cb am: 3107a17ba7
Alan Viverette [Thu, 23 Mar 2017 14:36:42 +0000 (14:36 +0000)]
Merge "Skip ListPopupWindow position update if detached" am: c45b10a9cb am: 3107a17ba7
am: 300bb66b2f

Change-Id: I5b7590805a1dfaf45eb1a8a9a22f6ab47a7dfdfa

7 years agoMerge "Default 'persist.sys.timezone' property to GMT if not set on init." am: 302b7a...
Przemyslaw Szczepaniak [Thu, 23 Mar 2017 14:35:30 +0000 (14:35 +0000)]
Merge "Default 'persist.sys.timezone' property to GMT if not set on init." am: 302b7a7075 am: 2f5a9febf4
am: 0276998354

Change-Id: I31eb2810b3cbc8a9ce5bf7c23ab821d68c8edbcc

7 years agoMerge "Skip ListPopupWindow position update if detached" am: c45b10a9cb
Alan Viverette [Thu, 23 Mar 2017 14:30:23 +0000 (14:30 +0000)]
Merge "Skip ListPopupWindow position update if detached" am: c45b10a9cb
am: 3107a17ba7

Change-Id: I9f2f95841e32aa49e4cb80fa57d34f55594931b3

7 years agoMerge "Default 'persist.sys.timezone' property to GMT if not set on init." am: 302b7a7075
Przemyslaw Szczepaniak [Thu, 23 Mar 2017 14:29:17 +0000 (14:29 +0000)]
Merge "Default 'persist.sys.timezone' property to GMT if not set on init." am: 302b7a7075
am: 2f5a9febf4

Change-Id: I43c05ca3f139fce4e08c7c40cc3823821341d176

7 years agoMerge "Skip ListPopupWindow position update if detached"
Alan Viverette [Thu, 23 Mar 2017 14:25:07 +0000 (14:25 +0000)]
Merge "Skip ListPopupWindow position update if detached"
am: c45b10a9cb

Change-Id: I85f5250d4b37b771ff4d39d80082e8355154ed57

7 years agoMerge "Default 'persist.sys.timezone' property to GMT if not set on init."
Przemyslaw Szczepaniak [Thu, 23 Mar 2017 14:23:53 +0000 (14:23 +0000)]
Merge "Default 'persist.sys.timezone' property to GMT if not set on init."
am: 302b7a7075

Change-Id: I3eba21ec64878deda2d3465fcac96384241f27aa

7 years agoMerge "Skip ListPopupWindow position update if detached"
Alan Viverette [Thu, 23 Mar 2017 14:17:28 +0000 (14:17 +0000)]
Merge "Skip ListPopupWindow position update if detached"

7 years agoMerge "Default 'persist.sys.timezone' property to GMT if not set on init."
Treehugger Robot [Thu, 23 Mar 2017 14:14:19 +0000 (14:14 +0000)]
Merge "Default 'persist.sys.timezone' property to GMT if not set on init."

7 years agoMerge "Added LocaleList on ViewStructure."
TreeHugger Robot [Thu, 23 Mar 2017 14:11:00 +0000 (14:11 +0000)]
Merge "Added LocaleList on ViewStructure."

7 years agoQS: swap order of content description
Jason Monk [Thu, 23 Mar 2017 14:05:18 +0000 (10:05 -0400)]
QS: swap order of content description

Put the locked state first and auto-rotate after.

Change-Id: I68704d12702ae442b7a2940ba29b196002d2f01c
Fixes: 29550246
Test: Click on autorotate

7 years agoPreload fonts from an array
Clara Bayarri [Fri, 17 Mar 2017 17:38:50 +0000 (17:38 +0000)]
Preload fonts from an array

Until now we were reusing the font tags, but it is not needed,
we can declare the list of fonts to preload with a simple
resources array.

Test: manual
Bug: 36119246
Change-Id: I39819018012c322aff62e13aa69ab35467be57ac

7 years agoProvide docs for the XML attributes related to fonts
Clara Bayarri [Fri, 17 Mar 2017 11:51:32 +0000 (11:51 +0000)]
Provide docs for the XML attributes related to fonts

Test: none
Bug: 357630943576390435763272
Change-Id: I01a5a3add755143903363bf47dcfe6dd986b9a28

7 years agoMerge "Revert "Allow the Instant App installer to be dynamic""
TreeHugger Robot [Thu, 23 Mar 2017 13:26:28 +0000 (13:26 +0000)]
Merge "Revert "Allow the Instant App installer to be dynamic""

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 23 Mar 2017 12:56:05 +0000 (05:56 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Add time markers to synthesizeToFile API."
TreeHugger Robot [Thu, 23 Mar 2017 12:26:33 +0000 (12:26 +0000)]
Merge "Add time markers to synthesizeToFile API."

7 years agoAdd API to request Bug Report with a certain title and description
Naveen Kalla [Fri, 17 Mar 2017 02:15:04 +0000 (19:15 -0700)]
Add API to request Bug Report with a certain title and description

ActivityManagerService will send the details to dumpstate and
BugreportProgressService will get the details from dumpstate and use
that for the notification.

Bug: 33561517
Test: Modify TelephonyMonitor to use this API and ensure that the
      notification uses that the title and description sent as arguments
      to the API. File a bug using betterBug and ensure that the
      information gets populated automatically.

Change-Id: I455f1df2278e5d569dd19c74245a0704dcf5a321

7 years agoRevert "Allow the Instant App installer to be dynamic"
Esteban Talavera [Thu, 23 Mar 2017 11:25:52 +0000 (11:25 +0000)]
Revert "Allow the Instant App installer to be dynamic"

Breaks work profile creation among other multi user issues

Bug: 36530935

This reverts commit 85942c2bc69385eb326cfe0e15ad9223bf1cffb5.

Change-Id: I0b5901a02ca590b7e8121aa8babe5b1c5819eca7

7 years agoMerge "Layoutlib changes to support the new ResourceUrl"
Diego Perez [Thu, 23 Mar 2017 10:06:40 +0000 (10:06 +0000)]
Merge "Layoutlib changes to support the new ResourceUrl"

7 years agoMerge "VPN profile: break up lockdown mode validation"
Charles He [Thu, 23 Mar 2017 08:49:46 +0000 (08:49 +0000)]
Merge "VPN profile: break up lockdown mode validation"

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 23 Mar 2017 07:56:16 +0000 (00:56 -0700)]
Import translations. DO NOT MERGE

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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 23 Mar 2017 07:41:07 +0000 (00:41 -0700)]
Import translations. DO NOT MERGE

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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 23 Mar 2017 07:34:50 +0000 (00:34 -0700)]
Import translations. DO NOT MERGE

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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 23 Mar 2017 07:24:52 +0000 (00:24 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Update xattrs when creating cache directories."
TreeHugger Robot [Thu, 23 Mar 2017 06:42:11 +0000 (06:42 +0000)]
Merge "Update xattrs when creating cache directories."

7 years agoMerge "Fix NetworkNotificationManagerTest"
TreeHugger Robot [Thu, 23 Mar 2017 06:25:33 +0000 (06:25 +0000)]
Merge "Fix NetworkNotificationManagerTest"

7 years agoMerge "Suppress SharedPreferences check for buggy apps."
TreeHugger Robot [Thu, 23 Mar 2017 06:14:09 +0000 (06:14 +0000)]
Merge "Suppress SharedPreferences check for buggy apps."

7 years agoMerge "Refactor cache behavior from "atmoic" to "group"."
TreeHugger Robot [Thu, 23 Mar 2017 06:04:44 +0000 (06:04 +0000)]
Merge "Refactor cache behavior from "atmoic" to "group"."

7 years agoUpdate xattrs when creating cache directories.
Jeff Sharkey [Thu, 23 Mar 2017 05:13:39 +0000 (23:13 -0600)]
Update xattrs when creating cache directories.

Typically installd will create cache directories for an app, and
store those inode numbers in the parent directory.  However, when an
app deletes and recreates a cache directory, the (now invalid) inode
number is left floating around, and we could end up pointing at a
useful non-cache directory.

Fix this by updating the xattr when we create the cache directory
out in userspace.

Test: builds, boots
Bug: 34185870
Change-Id: I71526dd73230c938aceabd2c0a8e89d44cc1f169

7 years agoMerge "Added a UserManager.DISALLOW_AUTOFILL restriction."
TreeHugger Robot [Thu, 23 Mar 2017 04:44:35 +0000 (04:44 +0000)]
Merge "Added a UserManager.DISALLOW_AUTOFILL restriction."

7 years agoSuppress SharedPreferences check for buggy apps.
Jeff Sharkey [Thu, 23 Mar 2017 04:35:41 +0000 (22:35 -0600)]
Suppress SharedPreferences check for buggy apps.

Test: Â¯\_(ツ)_/¯
Bug: 36500886
Change-Id: I2f42711977f43631ac492dfeef8e5969aa56002a

7 years agoRefactor cache behavior from "atmoic" to "group".
Jeff Sharkey [Thu, 23 Mar 2017 03:30:19 +0000 (21:30 -0600)]
Refactor cache behavior from "atmoic" to "group".

Using the word "atomic" has too much baggage relating to locking
guarantees, so move to something softer.

Add isQuotaSupported() for CTS tests.

Move CacheQuotaStrategy over to using SparseLongArray, which has a
more efficient memory footprint inside the system server.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 358128993568496936482620
Change-Id: I894f53e6f3bc76c77d1bb18c51db14833df14a49

7 years agoFix NetworkNotificationManagerTest
Hugo Benichi [Thu, 23 Mar 2017 03:32:27 +0000 (12:32 +0900)]
Fix NetworkNotificationManagerTest

The testNotificationsShownAndCleared test was not doing anything
because the list of notification to show was always empty.

This patch fixes this issue and actually makes the test loop on
non-empty collections, and also fixes another ordering issue in
assertions themselves, hidden until now by the first issue.

Test: runtest -x frameworks/base/tests/net/java/com/android/server/connectivity/NetworkNotificationManagerTest.java
Change-Id: I4837b1175d7c9133e9156e33acaa1e7e3341cc62

7 years agoMerge "Remove tests from SettingsLibShell"
TreeHugger Robot [Thu, 23 Mar 2017 03:13:54 +0000 (03:13 +0000)]
Merge "Remove tests from SettingsLibShell"

7 years agoMerge "Fix AppRestrictionsHelperTest."
TreeHugger Robot [Thu, 23 Mar 2017 02:38:35 +0000 (02:38 +0000)]
Merge "Fix AppRestrictionsHelperTest."

7 years agoMerge "Helper method in VideoCallImpl for testing"
TreeHugger Robot [Thu, 23 Mar 2017 02:37:33 +0000 (02:37 +0000)]
Merge "Helper method in VideoCallImpl for testing"

7 years agoMerge "Revisit logging in MediaRouter and MediaSessionRecord"
TreeHugger Robot [Thu, 23 Mar 2017 02:34:26 +0000 (02:34 +0000)]
Merge "Revisit logging in MediaRouter and MediaSessionRecord"

7 years agoMerge "Add missing type for USB headset devices"
TreeHugger Robot [Thu, 23 Mar 2017 02:22:49 +0000 (02:22 +0000)]
Merge "Add missing type for USB headset devices"

7 years agoMerge "Add more robust handling of daemon crashes"
TreeHugger Robot [Thu, 23 Mar 2017 02:22:22 +0000 (02:22 +0000)]
Merge "Add more robust handling of daemon crashes"

7 years agoMerge "Camera: Allow addSurface due to mismatched dataSpace for PRIVATE format"
TreeHugger Robot [Thu, 23 Mar 2017 02:21:27 +0000 (02:21 +0000)]
Merge "Camera: Allow addSurface due to mismatched dataSpace for PRIVATE format"

7 years agoAdded LocaleList on ViewStructure.
Felipe Leme [Thu, 23 Mar 2017 01:30:07 +0000 (18:30 -0700)]
Added LocaleList on ViewStructure.

Fixes: 36219641
Test: CtsAssistTestCases pass

Change-Id: I4f208a3b979a524d631e9d2c642b9b5a3cdccb22

7 years agoMerge "Bluetooth 5 Enable->Enabled (1/2)" am: fa69eeac5c am: cde107da6c
Jakub Pawlowski [Thu, 23 Mar 2017 01:33:35 +0000 (01:33 +0000)]
Merge "Bluetooth 5 Enable->Enabled (1/2)" am: fa69eeac5c am: cde107da6c
am: 88e9c86822

Change-Id: I10b47fa5566c05ddeef5e13ee9d1593c648a0b48

7 years agoMerge "Bluetooth 5 Enable->Enabled (1/2)" am: fa69eeac5c
Jakub Pawlowski [Thu, 23 Mar 2017 01:29:27 +0000 (01:29 +0000)]
Merge "Bluetooth 5 Enable->Enabled (1/2)" am: fa69eeac5c
am: cde107da6c

Change-Id: Id8151bf6c58a384b5ca264faae71b601a9dcfc63

7 years agoMerge "Move two target preference layout from settings to lib"
TreeHugger Robot [Thu, 23 Mar 2017 01:26:47 +0000 (01:26 +0000)]
Merge "Move two target preference layout from settings to lib"

7 years agoMerge "Bluetooth 5 Enable->Enabled (1/2)"
Jakub Pawlowski [Thu, 23 Mar 2017 01:25:31 +0000 (01:25 +0000)]
Merge "Bluetooth 5 Enable->Enabled (1/2)"
am: fa69eeac5c

Change-Id: Ia09cf5db2f69659a3b77e4c5e663d5977793df48

7 years agoMerge "Bluetooth 5 Enable->Enabled (1/2)"
Jakub Pawlowski [Thu, 23 Mar 2017 01:17:42 +0000 (01:17 +0000)]
Merge "Bluetooth 5 Enable->Enabled (1/2)"

7 years agoMerge "sendDialerCode API review"
Chen Xu [Thu, 23 Mar 2017 01:17:28 +0000 (01:17 +0000)]
Merge "sendDialerCode API review"

7 years agoMerge "Update IBatteryPropertiesRegistrar.aidl to support force updates" am: 0aae1708...
Adam Lesinski [Thu, 23 Mar 2017 01:11:57 +0000 (01:11 +0000)]
Merge "Update IBatteryPropertiesRegistrar.aidl to support force updates" am: 0aae170841 am: e4d926d9af
am: adecfd3e78

Change-Id: I4955b7f35dacd5266a479dc7523e63ed9ea1a527

7 years agoMerge "Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis." am...
Sanket Padawe [Thu, 23 Mar 2017 01:06:56 +0000 (01:06 +0000)]
Merge "Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis." am: 1df4c1ae54 am: bdee77da38
am: 7d75eff739  -s ours

Change-Id: Iad2d9551806b564be0177e6beb5a3598334972f7

7 years agoMerge "Update IBatteryPropertiesRegistrar.aidl to support force updates" am: 0aae170841
Adam Lesinski [Thu, 23 Mar 2017 01:02:56 +0000 (01:02 +0000)]
Merge "Update IBatteryPropertiesRegistrar.aidl to support force updates" am: 0aae170841
am: e4d926d9af

Change-Id: Ie8e717f2c5ca38e57d269d9d4d44599b897fb855

7 years agoMerge "Fix onCurrentVrActivityChanged callbacks."
TreeHugger Robot [Thu, 23 Mar 2017 01:02:08 +0000 (01:02 +0000)]
Merge "Fix onCurrentVrActivityChanged callbacks."

7 years agoFix AppRestrictionsHelperTest.
Sudheer Shanka [Thu, 23 Mar 2017 00:54:13 +0000 (17:54 -0700)]
Fix AppRestrictionsHelperTest.

Recently mockito has been updated to version 2.7.* and any(*.class) will now
reject null values.

Bug: 36531717
Test: runtest -x packages/SettingsLib/tests/integ/src/com/android/settingslib/users/AppRestrictionsHelperTest.java
Change-Id: Ia3ff2f470a95f6ee36a97eba8699425274500f17

7 years agoMerge "BluetoothGattCallbackExt removal" am: e2ddacaff4 am: 2a32d04a24
Jakub Pawlowski [Thu, 23 Mar 2017 00:58:44 +0000 (00:58 +0000)]
Merge "BluetoothGattCallbackExt removal" am: e2ddacaff4 am: 2a32d04a24
am: 822ddff283

Change-Id: I2bffe270bde8eecd2673b75fbd578f833b59f402

7 years agoMerge "Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis." am...
Sanket Padawe [Thu, 23 Mar 2017 00:57:56 +0000 (00:57 +0000)]
Merge "Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis." am: 1df4c1ae54
am: bdee77da38

Change-Id: Ie01e7db8f2c5eb4552db0ff7416998b67d70a501

7 years agoMerge "Bluetooth: log unexpected crashes and restarts" am: 25b6f08ece am: 3d4c1fd1fb
Marie Janssen [Thu, 23 Mar 2017 00:57:33 +0000 (00:57 +0000)]
Merge "Bluetooth: log unexpected crashes and restarts" am: 25b6f08ece am: 3d4c1fd1fb
am: e2967d4de3

Change-Id: I74a892c8455f40f73bc19d684c5f58e840ddbe68

7 years agoMerge "BluetoothGattCallbackExt removal" am: e2ddacaff4
Jakub Pawlowski [Thu, 23 Mar 2017 00:53:41 +0000 (00:53 +0000)]
Merge "BluetoothGattCallbackExt removal" am: e2ddacaff4
am: 2a32d04a24

Change-Id: Id25f495acb6864b1416a2730b5396be99105e43d

7 years agoMerge "Bluetooth: log unexpected crashes and restarts" am: 25b6f08ece
Marie Janssen [Thu, 23 Mar 2017 00:52:33 +0000 (00:52 +0000)]
Merge "Bluetooth: log unexpected crashes and restarts" am: 25b6f08ece
am: 3d4c1fd1fb

Change-Id: I423f7fb78ffdb2b72a1db780abf9119e6718c8ad

7 years agoBluetooth: Use content observer for airplane mode am: 400279def2
Ajay Panicker [Thu, 23 Mar 2017 00:51:58 +0000 (00:51 +0000)]
Bluetooth: Use content observer for airplane mode am: 400279def2
am: 84743eeed8

Change-Id: I610eecbb739633861f79b3fe053d09789393be22

7 years agoAdd ACTION_USER_RESTRICTIONS_CHANGED to protetced-broadcast.
Makoto Onuki [Thu, 23 Mar 2017 00:50:45 +0000 (17:50 -0700)]
Add ACTION_USER_RESTRICTIONS_CHANGED to protetced-broadcast.

Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.UserRestrictionsTest#testUserRestrictions_deviceOwnerOnly'
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.UserRestrictionsTest#testUserRestrictions_primaryProfileOwnerOnly'
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.UserRestrictionsTest#testUserRestrictions_secondaryProfileOwnerOnly'

Bug: 36355208
Change-Id: I7a002c1f796a3d1f6241577e6284a8e74bb96749

7 years agoMerge "Update IBatteryPropertiesRegistrar.aidl to support force updates"
Adam Lesinski [Thu, 23 Mar 2017 00:48:31 +0000 (00:48 +0000)]
Merge "Update IBatteryPropertiesRegistrar.aidl to support force updates"
am: 0aae170841

Change-Id: I8363aab4dbf0690b92988353d9360c713412a0be

7 years agoBluetooth: Use content observer for airplane mode
Ajay Panicker [Thu, 23 Mar 2017 00:47:22 +0000 (00:47 +0000)]
Bluetooth: Use content observer for airplane mode
am: 400279def2

Change-Id: I16d88bbe5e0326223b74903804ee1f40d367035d

7 years agoMerge "Fix MtpDocumentsProvider test."
TreeHugger Robot [Thu, 23 Mar 2017 00:46:00 +0000 (00:46 +0000)]
Merge "Fix MtpDocumentsProvider test."

7 years agoMerge "Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis."
Sanket Padawe [Thu, 23 Mar 2017 00:45:37 +0000 (00:45 +0000)]
Merge "Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis."
am: 1df4c1ae54

Change-Id: I9233a85edb9321faaeb3f7813d4020159e52b691

7 years agoMerge "BluetoothGattCallbackExt removal"
Jakub Pawlowski [Thu, 23 Mar 2017 00:44:06 +0000 (00:44 +0000)]
Merge "BluetoothGattCallbackExt removal"
am: e2ddacaff4

Change-Id: I59ba6c9950997ea447a5b021d509a72abc546661

7 years agoMerge "Bluetooth: log unexpected crashes and restarts"
Marie Janssen [Thu, 23 Mar 2017 00:42:53 +0000 (00:42 +0000)]
Merge "Bluetooth: log unexpected crashes and restarts"
am: 25b6f08ece

Change-Id: I1a0bfa2c8aba75dd60437680c5726f8c4e6c88ab

7 years agoRevisit logging in MediaRouter and MediaSessionRecord
Jaewan Kim [Wed, 22 Mar 2017 09:22:40 +0000 (18:22 +0900)]
Revisit logging in MediaRouter and MediaSessionRecord

This limits excessive logs from MediaRouter and MediaSessionRecord
- MediaRouter: Leave log only if there's change in the audio route.
- MediaSessionRecord: Leave log for the controller callback instead of
    dumping verbose stack traces.

Bug: 36497125
Test: Manual test
Change-Id: Ie0fe9f33388d1aa9f25c26b3b3f7c71fec409ba8

7 years agoAdded a UserManager.DISALLOW_AUTOFILL restriction.
Felipe Leme [Tue, 21 Mar 2017 21:13:58 +0000 (14:13 -0700)]
Added a UserManager.DISALLOW_AUTOFILL restriction.

bug: 35710740

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.LoginActivityTest#testUserRestriction
Test: cts-tradefed run commandAndExit cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDisallowAutofill_allowed
Test: cts-tradefed run commandAndExit cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedProfileOwnerTest#testDisallowAutofill_allowed
Test: cts-tradefed run commandAndExit cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDisallowAutofill_allowed

Change-Id: I41b2bf9fe3bc8df627c6650960bd11346c430a7e

7 years agoMerge "Add manufacturer and model to device ID attestation"
TreeHugger Robot [Thu, 23 Mar 2017 00:01:38 +0000 (00:01 +0000)]
Merge "Add manufacturer and model to device ID attestation"

7 years agosendDialerCode API review
fionaxu [Tue, 7 Mar 2017 00:05:24 +0000 (16:05 -0800)]
sendDialerCode API review

1. address the feeback from API review:
throw exception rather than a boolean return
throw Security exception for permission denial and non-default dailer app.
throw invalidStateException if telephonyServie unavaialble.
2. sendDialerCode API will only check permission and package match without
enforcing the format of secret code(*#*# CODE #*#*) as throwing an unchecked
exception for wrong bad format seems to be an overkill regarding the API usage.
Dialer calls this API for each keyboard press to check format and send the intent
altogether which is no longer appropriate if we plan to return void and will
reduce frquent API calls.
3. allow callers with carrier privilege
4. not require MODIFY_PHONE_STATE as third party dialer apps won't be
granted
5. TODO mark android.provider.Telephony.SECRET_CODE to be protected
after calling apps move to this API.

Bug:35767402
Test: Manual
Change-Id: I8287aa93f2f79d356935a48cf808705d9b49984b

7 years agoMerge "Update IBatteryPropertiesRegistrar.aidl to support force updates"
Treehugger Robot [Wed, 22 Mar 2017 23:53:59 +0000 (23:53 +0000)]
Merge "Update IBatteryPropertiesRegistrar.aidl to support force updates"

7 years agoMerge "Expose ACTION_STORAGE_LOW and ACTION_STORAGE_OK to Instant Apps"
TreeHugger Robot [Wed, 22 Mar 2017 23:50:35 +0000 (23:50 +0000)]
Merge "Expose ACTION_STORAGE_LOW and ACTION_STORAGE_OK to Instant Apps"

7 years agoMerge "Don't bind incorrect services."
Julia Reynolds [Wed, 22 Mar 2017 23:47:05 +0000 (23:47 +0000)]
Merge "Don't bind incorrect services."

7 years agoAdd more robust handling of daemon crashes
Jim Miller [Wed, 22 Mar 2017 23:40:10 +0000 (16:40 -0700)]
Add more robust handling of daemon crashes

It seems the new fingerprint daemon doesn't recover as quickly as before
and there's a finite chance reconnecting immediately will fail.

This changes the framework to be more robust about recovering by:

1. explicitly connecting to the daemon in isHardwareDetected()
2. ensuring we remove the current client when daemon death is detected
3. reset the daemon whenever we get HW_UNAVAILABLE so we try again

Test: manually kill daemon and verify FingerprintService reconnects

Partial fix for bug 36181191

Change-Id: Id530ed62be58b33af5b5b60083f3a69e4e8cd8bf

7 years agoMerge "Fix launching installer on missing split"
TreeHugger Robot [Wed, 22 Mar 2017 23:41:34 +0000 (23:41 +0000)]
Merge "Fix launching installer on missing split"

7 years agoMerge "Notification cleanup"
TreeHugger Robot [Wed, 22 Mar 2017 23:28:05 +0000 (23:28 +0000)]
Merge "Notification cleanup"

7 years agoMove two target preference layout from settings to lib
Fan Zhang [Wed, 22 Mar 2017 17:54:03 +0000 (10:54 -0700)]
Move two target preference layout from settings to lib

Change-Id: I5eda0cdcc4e8d8bb25f95ee12837d90179ac5c0a
Fix: 36511169
Test: make RunSettingsLibRoboTests

7 years agoRemove tests from SettingsLibShell
Colin Cross [Wed, 22 Mar 2017 22:58:40 +0000 (15:58 -0700)]
Remove tests from SettingsLibShell

The tests and the robolectric libraries are already in
SettingsLibRoboTests, and shouldn't be in the package being tested.
Including robolectric in the package causes it to go through
proguard, which complains about missing dependencies.

Also remove the unnecessary libraries that are already included
through frameworks/base/packages/SettingsLib/common.mk.

Test: m -j ANDROID_COMPILE_WITH_JACK=false RunSettingsLibRoboTests
Change-Id: I11f007c4321bb9b147f62010eae046f75d1a52e3

7 years agoFix onCurrentVrActivityChanged callbacks.
Ruben Brunk [Wed, 22 Mar 2017 22:43:24 +0000 (15:43 -0700)]
Fix onCurrentVrActivityChanged callbacks.

Bug: 36503317

Test: Use controller in a 3P VR application.

Change-Id: I1b11785077183c719e19f4f496677dba79e42dab

7 years agoBluetooth 5 Enable->Enabled (1/2)
Jakub Pawlowski [Wed, 22 Mar 2017 22:40:21 +0000 (15:40 -0700)]
Bluetooth 5 Enable->Enabled (1/2)

Test: manual
Bug: 30622771
Change-Id: I37b198927076a0267de67e1bd94eaea9e88e53bb

7 years agoMerge "SoundTriggerTestApp: also unload on error conditions"
TreeHugger Robot [Wed, 22 Mar 2017 22:31:44 +0000 (22:31 +0000)]
Merge "SoundTriggerTestApp: also unload on error conditions"

7 years agoMerge "Amend "Fix various flashes when..." CL"
Rob Carr [Wed, 22 Mar 2017 22:31:21 +0000 (22:31 +0000)]
Merge "Amend "Fix various flashes when..." CL"

7 years agoMerge "Update AccountManager JavaDoc."
TreeHugger Robot [Wed, 22 Mar 2017 22:26:19 +0000 (22:26 +0000)]
Merge "Update AccountManager JavaDoc."

7 years agoMerge "Hooked-up options menu closing"
Evan Rosky [Wed, 22 Mar 2017 22:12:54 +0000 (22:12 +0000)]
Merge "Hooked-up options menu closing"

7 years agoAudio focus: SDK/System API updates
Jean-Michel Trivi [Tue, 21 Mar 2017 18:18:24 +0000 (11:18 -0700)]
Audio focus: SDK/System API updates

Addressed API council notes: document some missing default values
  of AudioFocusRequest builder, remove getters on lister and
  handler.
Fix missing support of custom Handler for focus listener.
Integrate focus lock feature from AudioManager SystemAPI into
  new AudioFocusRequest class and builder. Deprecate system
  methods for focus requests that don't use AudioFocusRequest
Switch to a ConcurrentHashMap in AudioManager instead of a
  lock and HashMap to maintain the list of focus listeners
  for each AudioManager instance.
Clean up: all local IAudioService references can be made final.
  Add missing @Override for the Stub implementations.

Test: cts-tradefed run cts -m CtsMediaTestCases -t android.media.cts.AudioFocusTest
Bug: 30258418

Change-Id: I9e903379a607c723a2620821200547de679231d1