OSDN Git Service

android-x86/frameworks-base.git
7 years agoQS: Clean up dual target accessibility
Jason Monk [Thu, 23 Mar 2017 14:25:37 +0000 (10:25 -0400)]
QS: Clean up dual target accessibility

Remove "Open..." strings from toggles, since they don't open, and
add those strings to the labels. Also switch label accessibility types
to buttons.

Change-Id: Ic8382aaaecf74182970b5f8fdd914079f0109f0f
Fixes: 36538210
Test: Accessibility - select dual target QS tile

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 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 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 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 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 agoMerge "Revert "Update display contents when metrics change""
Andrii Kulian [Wed, 22 Mar 2017 21:57:27 +0000 (21:57 +0000)]
Merge "Revert "Update display contents when metrics change""

7 years agoMerge "Add skia/src/codec to core/jni include dirs"
TreeHugger Robot [Wed, 22 Mar 2017 21:51:51 +0000 (21:51 +0000)]
Merge "Add skia/src/codec to core/jni include dirs"

7 years agoRevert "Update display contents when metrics change"
Andrii Kulian [Wed, 22 Mar 2017 21:50:24 +0000 (21:50 +0000)]
Revert "Update display contents when metrics change"

This reverts commit eddb7c0985e1fac8bdbeaaed40c678c0dc9da321.

Reason for revert: b/36518752

Bug: 36518752
Change-Id: I39773db7b8d02aec360ca80d02b3c161ccf02786

7 years agoMerge "Do not check targetSdkVersion if only one package"
TreeHugger Robot [Wed, 22 Mar 2017 21:48:50 +0000 (21:48 +0000)]
Merge "Do not check targetSdkVersion if only one package"

7 years agoFix launching installer on missing split
Todd Kennedy [Wed, 22 Mar 2017 21:42:38 +0000 (14:42 -0700)]
Fix launching installer on missing split

Bonehead mistake; we were applying the post-resolution filters twice.
Don't do that!

Test: build and see that the installer runs when trying to launch a split that's not on the device
Change-Id: Ice65cdd7cc85d0394422009ba42f388f0ec2595c

7 years agoExpose ACTION_STORAGE_LOW and ACTION_STORAGE_OK to Instant Apps
Chad Brubaker [Wed, 22 Mar 2017 21:36:37 +0000 (14:36 -0700)]
Expose ACTION_STORAGE_LOW and ACTION_STORAGE_OK to Instant Apps

Instant Apps wont be started by these broadcasts, but if they're running
it gives them a chance to be good citizens on the device and help out
with a space crunch.

Test: manual
Bug: 33350280
Change-Id: I1700153b1c698a29e1e35535f64062544d071cab

7 years agoMerge "Adding source bounds hint to support better PiP transition."
TreeHugger Robot [Wed, 22 Mar 2017 21:27:36 +0000 (21:27 +0000)]
Merge "Adding source bounds hint to support better PiP transition."

7 years agoMerge "Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis."
Sanket Padawe [Wed, 22 Mar 2017 21:27:21 +0000 (21:27 +0000)]
Merge "Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis."

7 years agoMerge "AccountManagerService send pkg uid when creating notification channel"
Geoffrey Pitsch [Wed, 22 Mar 2017 21:15:59 +0000 (21:15 +0000)]
Merge "AccountManagerService send pkg uid when creating notification channel"

7 years agoMerge "Prevent downgrade of targetSandboxVersion"
TreeHugger Robot [Wed, 22 Mar 2017 21:14:00 +0000 (21:14 +0000)]
Merge "Prevent downgrade of targetSandboxVersion"

7 years agoMerge "Added concurrency test"
Fyodor Kupolov [Wed, 22 Mar 2017 21:02:08 +0000 (21:02 +0000)]
Merge "Added concurrency test"

7 years agoSoundTriggerTestApp: also unload on error conditions
Chris Thornton [Wed, 22 Mar 2017 20:50:04 +0000 (13:50 -0700)]
SoundTriggerTestApp: also unload on error conditions

When the service is killed/going down, it should unload all the sound
models it has running as part of being a good citizen.

Test: Kill/stop the service and see that the models are evicted from the
HAL

Change-Id: I6f88c8327682df5870b381d5bafda79e67fb7079

7 years agoMerge "Logging to track #36406078"
Amith Yamasani [Wed, 22 Mar 2017 20:49:27 +0000 (20:49 +0000)]
Merge "Logging to track #36406078"

7 years agoAccountManagerService send pkg uid when creating notification channel
Geoffrey Pitsch [Wed, 22 Mar 2017 20:42:43 +0000 (16:42 -0400)]
AccountManagerService send pkg uid when creating notification channel

AccountManager needs to pass the app's uid explicitly in order for the
channel lookup to not fail. Requires separate API that only system can
call.

Bug: 36511867
Test: Install Clankium and reboot device, observe Notification
Change-Id: I6ddd87d755b4b2129565dd275e799b0349a80936

7 years agoLogging to track #36406078
Amith Yamasani [Wed, 22 Mar 2017 20:37:15 +0000 (13:37 -0700)]
Logging to track #36406078

Bug: 36406078
Test: N/A
Change-Id: I9724fa8511686a342bf25d1979c17c0a4700e292

7 years agoMerge "AVRCP version interop pereference (3/3)"
TreeHugger Robot [Wed, 22 Mar 2017 20:37:44 +0000 (20:37 +0000)]
Merge "AVRCP version interop pereference (3/3)"

7 years agoAmend "Fix various flashes when..." CL
Robert Carr [Tue, 21 Mar 2017 02:04:30 +0000 (19:04 -0700)]
Amend "Fix various flashes when..." CL

Missing cosmetic changes from last patch set due to
a rebase error on my part.

Test: Cosmetic
Change-Id: I3a8a68e8cecd1947cd9e54d5fcfe8bb4a792265b

7 years agoMerge "SurfaceView: Fix Surface leak when changing format."
Rob Carr [Wed, 22 Mar 2017 20:26:36 +0000 (20:26 +0000)]
Merge "SurfaceView: Fix Surface leak when changing format."

7 years agoNotification cleanup
Julia Reynolds [Wed, 22 Mar 2017 14:52:11 +0000 (10:52 -0400)]
Notification cleanup

- remove EXTRA_ORIGINATING_USER_ID
- deprecate two icon extra fields; use the getters instead
- rename badge icon methods
- update some unclear documentation

Test: make, cts
Fixes: 33666468
Fixes: 36128288
Change-Id: Ic477259aab5f267fb72ab715d72195d6364cedae

7 years agoMerge "BluetoothGattCallbackExt removal"
Jakub Pawlowski [Wed, 22 Mar 2017 20:09:37 +0000 (20:09 +0000)]
Merge "BluetoothGattCallbackExt removal"

7 years agoMerge "PlayerBase: more general exception catching in release"
TreeHugger Robot [Wed, 22 Mar 2017 20:04:20 +0000 (20:04 +0000)]
Merge "PlayerBase: more general exception catching in release"

7 years agoDo not check targetSdkVersion if only one package
Fyodor Kupolov [Wed, 22 Mar 2017 19:57:04 +0000 (12:57 -0700)]
Do not check targetSdkVersion if only one package

Bug: 36485175
Test: AccountManagerServiceTest
Change-Id: Icef2a292dbf5119a5c2bb184aa2da7bcf8e7bd11

7 years agoAdding source bounds hint to support better PiP transition.
Winson Chung [Thu, 2 Mar 2017 23:40:51 +0000 (15:40 -0800)]
Adding source bounds hint to support better PiP transition.

Bug: 35396882
Test: Start a transition with source bounds hint.
Change-Id: I4897242af84744bc05a093111a15ea52e49815e8

7 years agoUpdate IBatteryPropertiesRegistrar.aidl to support force updates
Adam Lesinski [Wed, 22 Mar 2017 19:31:52 +0000 (19:31 +0000)]
Update IBatteryPropertiesRegistrar.aidl to support force updates

Change-Id: Ic4f705a20db32369d106462c47eb150850a3f638
Test: builds

7 years agoAdded concurrency test
Fyodor Kupolov [Wed, 22 Mar 2017 00:16:17 +0000 (17:16 -0700)]
Added concurrency test

Test 2 threads repeatedly calling getAccounts while 1 thread calls
setAuthToken.

Example output:
I AccountManagerServiceTest: readTotalTime=1468 avg=36.7
I AccountManagerServiceTest: writeTotalTime=813 avg=40

Bug: 36485175
Test: AccountManagerServiceTest
Change-Id: Iee66339ceeb8f149eb9fc0906c537db60465d475

7 years agoMerge "Update “don’t snooze” in expanded snooze menu to cancel"
TreeHugger Robot [Wed, 22 Mar 2017 19:25:14 +0000 (19:25 +0000)]
Merge "Update “don’t snooze” in expanded snooze menu to cancel"

7 years agoMerge "cherry-pick from nyc-mr1-dev docs: Removing Android docs from Gerrit Original...
TreeHugger Robot [Wed, 22 Mar 2017 19:21:09 +0000 (19:21 +0000)]
Merge "cherry-pick from nyc-mr1-dev docs: Removing Android docs from Gerrit Original Change-Id: I5331cdc968be817ff70ba32dd03fce76493a6ab8 Test: make ds-docs"

7 years agoAdd skia/src/codec to core/jni include dirs
Matt Sarett [Wed, 22 Mar 2017 19:12:25 +0000 (15:12 -0400)]
Add skia/src/codec to core/jni include dirs

This should allow a jpeg encoding change in Skia to land:
https://skia-review.googlesource.com/c/10011/

Test: NA

Change-Id: If2474a548c9e22c5a13bf14fd38bd344355ac29a

7 years agoMerge "Removing per-user PiP component."
Winson Chung [Wed, 22 Mar 2017 18:56:02 +0000 (18:56 +0000)]
Merge "Removing per-user PiP component."

7 years agoMerge "Update FontFamily_Delegate following Change Ia23ee6a7"
Jerome Gaillard [Wed, 22 Mar 2017 18:55:07 +0000 (18:55 +0000)]
Merge "Update FontFamily_Delegate following Change Ia23ee6a7"

7 years agoMerge "Fix crash on user switch."
TreeHugger Robot [Wed, 22 Mar 2017 18:41:57 +0000 (18:41 +0000)]
Merge "Fix crash on user switch."

7 years agoBluetooth: Use content observer for airplane mode
Ajay Panicker [Wed, 22 Feb 2017 20:23:15 +0000 (12:23 -0800)]
Bluetooth: Use content observer for airplane mode

We are making this switch as the airplane mode switch intent is going away.

Fix: 35256299
Test: Toggle Airplane Mode
Change-Id: I3b1e5bbdf689b0db98cfbb0ab377198d34f0ba05

7 years agoAVRCP version interop pereference (3/3)
Ajay Panicker [Mon, 20 Mar 2017 21:20:52 +0000 (14:20 -0700)]
AVRCP version interop pereference (3/3)

Add a mechanism to allow the user to select the AVRCP version broadcasted
through SDP in the developer options. This helps solve some interoperability
issues such as with Honda Carkits where broadcasting AVRCP version 1.6 causes
media metadata to fail.

Bug: 35956792
Test: Select AVRCP version through developer option
Change-Id: Ibc271063058b6324b1a0517c6b853f8d7e6eb0f3

7 years agoBluetoothGattCallbackExt removal
Jakub Pawlowski [Wed, 22 Mar 2017 18:22:18 +0000 (11:22 -0700)]
BluetoothGattCallbackExt removal

New methods should be added to BluetoothGattCallback, instead of
creating Ext class.

Test: manual
Bug: 30622771
Change-Id: I2567df5baace6bd2d2f30c36d2f62056408ca5d0

7 years agoMerge "Give shell the CHANGE_DEVICE_IDLE_TEMP_WHITELIST permission"
Chris Tate [Wed, 22 Mar 2017 18:07:43 +0000 (18:07 +0000)]
Merge "Give shell the CHANGE_DEVICE_IDLE_TEMP_WHITELIST permission"

7 years agoMerge "Do not allow Tasks to influence orientation under some conditions."
Bryce Lee [Wed, 22 Mar 2017 18:07:20 +0000 (18:07 +0000)]
Merge "Do not allow Tasks to influence orientation under some conditions."

7 years agoMerge "Revive old method to prevent crash internal app."
TreeHugger Robot [Wed, 22 Mar 2017 18:03:40 +0000 (18:03 +0000)]
Merge "Revive old method to prevent crash internal app."

7 years agoMerge "Add test configs to apct tests under frameworks/base"
Dan Shi [Wed, 22 Mar 2017 17:55:53 +0000 (17:55 +0000)]
Merge "Add test configs to apct tests under frameworks/base"