OSDN Git Service

android-x86/frameworks-base.git
6 years agoNew attribute textFontWeight for selecting weight in the font family
Seigo Nonaka [Thu, 22 Feb 2018 19:26:39 +0000 (11:26 -0800)]
New attribute textFontWeight for selecting weight in the font family

Note that AppCompatTextView doesn't work well with this attribute since
it overwrites the selected Typeface.

Bug: 63135308
Test: atest android.widget.cts.TextViewFontWeightTest
Change-Id: I76ee5e3007ea5f96249d2a0bfb66ff5975c62522

6 years agoMerge "Deprecate all inner classes of FingerprintManager"
TreeHugger Robot [Mon, 26 Feb 2018 17:34:07 +0000 (17:34 +0000)]
Merge "Deprecate all inner classes of FingerprintManager"

6 years agoMerge "CoreTests: Tidy up legacy tests."
Narayan Kamath [Mon, 26 Feb 2018 17:11:50 +0000 (17:11 +0000)]
Merge "CoreTests: Tidy up legacy tests."

6 years agoMerge "Fix hard to touch and stuck navbar rotate icon"
Mike Digman [Mon, 26 Feb 2018 17:09:22 +0000 (17:09 +0000)]
Merge "Fix hard to touch and stuck navbar rotate icon"

6 years agoMerge "Remove incorrectly specified @UserIdInt"
TreeHugger Robot [Mon, 26 Feb 2018 16:59:29 +0000 (16:59 +0000)]
Merge "Remove incorrectly specified @UserIdInt"

6 years agoMerge "Check printing restriction for correct user."
Vladislav Kuzkokov [Mon, 26 Feb 2018 16:11:10 +0000 (16:11 +0000)]
Merge "Check printing restriction for correct user."

6 years agoMerge "Revert "Add deep link to the assisted dialing settings.""
TreeHugger Robot [Mon, 26 Feb 2018 16:02:34 +0000 (16:02 +0000)]
Merge "Revert "Add deep link to the assisted dialing settings.""

6 years agoMerge "Revert "Add the assisted dialing carrier config.""
TreeHugger Robot [Mon, 26 Feb 2018 16:02:34 +0000 (16:02 +0000)]
Merge "Revert "Add the assisted dialing carrier config.""

6 years agoMerge "Remove obsolete pragma statements"
TreeHugger Robot [Mon, 26 Feb 2018 15:38:58 +0000 (15:38 +0000)]
Merge "Remove obsolete pragma statements"

6 years agoMerge "Fix ANR for real"
Jorim Jaggi [Mon, 26 Feb 2018 15:27:44 +0000 (15:27 +0000)]
Merge "Fix ANR for real"

6 years agoMerge "Remove account param from generateKey method"
TreeHugger Robot [Mon, 26 Feb 2018 15:16:18 +0000 (15:16 +0000)]
Merge "Remove account param from generateKey method"

6 years agoMerge "Tear down broadcast receiver in RemoteInputView and SmartReplyView tests"
TreeHugger Robot [Mon, 26 Feb 2018 15:06:15 +0000 (15:06 +0000)]
Merge "Tear down broadcast receiver in RemoteInputView and SmartReplyView tests"

6 years agoMerge "Remove FrameworkShadowPackageManager"
Bernardo Rufino [Mon, 26 Feb 2018 15:02:06 +0000 (15:02 +0000)]
Merge "Remove FrameworkShadowPackageManager"

6 years agoMerge "Remove account from WrappedApplicationKey"
TreeHugger Robot [Mon, 26 Feb 2018 14:52:19 +0000 (14:52 +0000)]
Merge "Remove account from WrappedApplicationKey"

6 years agoMerge "MediaMetadata2: Add radio frequency and callsigns"
Jaewan Kim [Mon, 26 Feb 2018 14:50:48 +0000 (14:50 +0000)]
Merge "MediaMetadata2: Add radio frequency and callsigns"

6 years agoMediaMetadata2: Add radio frequency and callsigns
Jaewan Kim [Thu, 22 Feb 2018 07:46:17 +0000 (16:46 +0900)]
MediaMetadata2: Add radio frequency and callsigns

This is request from the Android Auto Embeded, where the Android is
running on the car kit and needs support radio application

Test: Run all MediaComponents tests once
Change-Id: I09780878ac3a1075c79f51879ffb76913a8215a2

6 years agoMerge "Slightly refactor IPv4 default router interface selection" am: 701421c6c9...
Erik Kline [Mon, 26 Feb 2018 13:29:19 +0000 (13:29 +0000)]
Merge "Slightly refactor IPv4 default router interface selection" am: 701421c6c9 am: 95c373341e
am: 8ac26bad64

Change-Id: I7ab4b7b3eaa7c81d58990747f3f894e8f9dacfd6

6 years agoMerge "Slightly refactor IPv4 default router interface selection" am: 701421c6c9
Erik Kline [Mon, 26 Feb 2018 13:20:31 +0000 (13:20 +0000)]
Merge "Slightly refactor IPv4 default router interface selection" am: 701421c6c9
am: 95c373341e

Change-Id: I39795019a58b2c91bd427775e304e4b1b934db85

6 years agoMerge "Slightly refactor IPv4 default router interface selection"
Erik Kline [Mon, 26 Feb 2018 13:06:33 +0000 (13:06 +0000)]
Merge "Slightly refactor IPv4 default router interface selection"
am: 701421c6c9

Change-Id: I1c8b9f95c8711c191e0e95cf72a5f4e5a3c3fc53

6 years agoTear down broadcast receiver in RemoteInputView and SmartReplyView tests
Petr Cermak [Fri, 23 Feb 2018 15:54:34 +0000 (15:54 +0000)]
Tear down broadcast receiver in RemoteInputView and SmartReplyView tests

Bug: 73803843
Test: atest RemoteInputViewTest SmartReplyViewTest
Change-Id: Iea933874fd76d445971864c743dd02b20ff1e1e9

6 years agoMerge "Add test for KeyChainSnapshot Parcelable"
TreeHugger Robot [Mon, 26 Feb 2018 12:42:11 +0000 (12:42 +0000)]
Merge "Add test for KeyChainSnapshot Parcelable"

6 years agoMerge "Remove MediaSession2Record"
TreeHugger Robot [Mon, 26 Feb 2018 11:58:16 +0000 (11:58 +0000)]
Merge "Remove MediaSession2Record"

6 years agoAdd test for KeyChainSnapshot Parcelable
Robert Berry [Mon, 26 Feb 2018 00:23:06 +0000 (00:23 +0000)]
Add test for KeyChainSnapshot Parcelable

Bug: 73811828
Test: runtest frameworks-core -p android.security.keystore.recovery
Change-Id: I9448ff791f4f8b82621df2d4343febdce86dbf42

6 years agoMerge "Add tests for Recovery Controller Parcelables"
TreeHugger Robot [Mon, 26 Feb 2018 11:16:43 +0000 (11:16 +0000)]
Merge "Add tests for Recovery Controller Parcelables"

6 years agoMerge "Slightly refactor IPv4 default router interface selection"
Treehugger Robot [Mon, 26 Feb 2018 10:54:28 +0000 (10:54 +0000)]
Merge "Slightly refactor IPv4 default router interface selection"

6 years agoRemove FrameworkShadowPackageManager
Bernardo Rufino [Sun, 25 Feb 2018 12:51:25 +0000 (12:51 +0000)]
Remove FrameworkShadowPackageManager

Robolectruc upstreamed this and we picked up in 3.6.1 already :)

Test: m - j RunFrameworksServicesRoboTests
Change-Id: I9df1d1dfc56c5aa1d27e36396ddd21c053a3199d

6 years agoMerge "Definitely abort reconnecting to native daemon during shutdown" am: 2fd5af1036...
Tetsutoki Shiozawa [Mon, 26 Feb 2018 08:05:10 +0000 (08:05 +0000)]
Merge "Definitely abort reconnecting to native daemon during shutdown" am: 2fd5af1036 am: 282c038240
am: 89d30c03d0

Change-Id: I74677602cd4642c2b441fb353a9f0824a238deae

6 years agoMerge "Add device capabilities." am: 86316a4b42 am: 472d796ab2
Holly Jiuyu Sun [Mon, 26 Feb 2018 07:58:03 +0000 (07:58 +0000)]
Merge "Add device capabilities." am: 86316a4b42 am: 472d796ab2
am: 291f3f305c  -s ours

Change-Id: Idc8d7903649d371624cf84edbb48d747ab7be7fe

6 years agoMerge "Definitely abort reconnecting to native daemon during shutdown" am: 2fd5af1036
Tetsutoki Shiozawa [Mon, 26 Feb 2018 07:50:37 +0000 (07:50 +0000)]
Merge "Definitely abort reconnecting to native daemon during shutdown" am: 2fd5af1036
am: 282c038240

Change-Id: I034072b89d0a8b9362940155ae2e2d173fde1b33

6 years agoMerge "Add device capabilities." am: 86316a4b42
Holly Jiuyu Sun [Mon, 26 Feb 2018 07:44:07 +0000 (07:44 +0000)]
Merge "Add device capabilities." am: 86316a4b42
am: 472d796ab2

Change-Id: I4837a521093dcc41bf7a3597d43c04e5f95c1c81

6 years agoMerge "Definitely abort reconnecting to native daemon during shutdown"
Tetsutoki Shiozawa [Mon, 26 Feb 2018 07:43:18 +0000 (07:43 +0000)]
Merge "Definitely abort reconnecting to native daemon during shutdown"
am: 2fd5af1036

Change-Id: I42d34accd9b56d1090a76632751447653cc8dd61

6 years agoMerge "Add device capabilities."
Holly Jiuyu Sun [Mon, 26 Feb 2018 07:35:22 +0000 (07:35 +0000)]
Merge "Add device capabilities."
am: 86316a4b42

Change-Id: I9aa51ecb8f3784e449b29358307646848ef3a309

6 years agoMerge "Definitely abort reconnecting to native daemon during shutdown"
Treehugger Robot [Mon, 26 Feb 2018 06:49:52 +0000 (06:49 +0000)]
Merge "Definitely abort reconnecting to native daemon during shutdown"

6 years agoMerge "Add device capabilities."
Holly Jiuyu Sun [Mon, 26 Feb 2018 05:49:29 +0000 (05:49 +0000)]
Merge "Add device capabilities."

6 years agoMerge "Add hashCode() in UiccAccessRule."
Jiuyu Sun [Mon, 26 Feb 2018 05:48:14 +0000 (05:48 +0000)]
Merge "Add hashCode() in UiccAccessRule."

6 years agoRemove incorrectly specified @UserIdInt
Yohei Yukawa [Mon, 26 Feb 2018 02:31:47 +0000 (11:31 +0900)]
Remove incorrectly specified @UserIdInt

This is a follow up CL to my previous CL [1], which introduced
TextServicesManagerServicve.SessionRequest for internal state
management.

It turns out that SessionRequest#mUserId was incorrectly marked with
@UserIdInt, even though it actually stores uid, not user ID int.

This CL addresses the confusion by removing @UserIdInt as well as
renaming it to SessionRequest#mUid.

There should be no behavior change actually.

 [1]: I92e7aa40dc9ea14f67d355f0bfa15325b775d27b

Bug: 7254002
Test: compile
Change-Id: I94f19d028be3b24fe0f3d848236ea9ca68e537b4

6 years agoMediaBrowser2: Fix naming inconsistencies
Hyundo Moon [Thu, 22 Feb 2018 08:10:10 +0000 (17:10 +0900)]
MediaBrowser2: Fix naming inconsistencies

This CL modifies following APIs:

1. getLibraryRoot() related
 - onGetRoot => onGetLibraryRoot
 - onGetRootResult => onGetLibraryRootDone

2. getItem() related
 - onLoadItem => onGetItem
   - Also renamed argument: itemId => mediaId
 - onItemLoaded => onGetItemDone

3. getChildren() related
 - notifyChildrenChanged/onChildrenChanged
   - Renamed argument: childCount => itemCount
 - onLoadChildren => onGetChildren
 - onChildrenLoaded => onGetChildrenDone

4. getSearchResult() related
 - onLoadSearchResult => onGetSearchResult
 - onSearchResultLoaded => onGetSearchResultDone

Bug: 73711101
Test: Passed MediaBrowser2Test
Change-Id: Ic8d6530d3913d9becdaada32283e9fe1f7e534a9

6 years agoRemove MediaSession2Record
Sungsoo Lim [Tue, 13 Feb 2018 07:02:24 +0000 (16:02 +0900)]
Remove MediaSession2Record

Test: passed MediaComponentsTest
Change-Id: I787c20f3c44f481960203699af563109a022e3d4

6 years agoAdd tests for Recovery Controller Parcelables
Robert Berry [Sun, 25 Feb 2018 23:27:18 +0000 (23:27 +0000)]
Add tests for Recovery Controller Parcelables

Bug: 73811828
Test: runtest frameworks-core -p android.security.keystore.recovery
Change-Id: I0e77713cc3a3c6ee19e134628792782879ec2849

6 years agoRemove account from WrappedApplicationKey
Robert Berry [Sun, 25 Feb 2018 22:19:08 +0000 (22:19 +0000)]
Remove account from WrappedApplicationKey

Recovery controller will no longer be aware of accounts. It is up to
the recovery agent to decide where to upload keys, and if so what
accounts to use.

Bug: 73811828
Test: runtest frameworks-core -p android.security.keystore.recovery
Change-Id: I929076d948f4d36ba88b68cca08058a5cdde0107

6 years agoMerge "Import some plugin documentation into the tree"
TreeHugger Robot [Sun, 25 Feb 2018 19:59:22 +0000 (19:59 +0000)]
Merge "Import some plugin documentation into the tree"

6 years agoRemove account param from generateKey method
Robert Berry [Fri, 23 Feb 2018 15:59:02 +0000 (15:59 +0000)]
Remove account param from generateKey method

Bug: 73811828
Test: runtest frameworks-services -p
      com.android.server.locksettings.recoverablekeystore
Change-Id: If2f4174beea9cfb8c852139a7594815c377dbe7a

6 years agoMerge "Remove packageName from getRecoveryStatus"
Robert Berry [Sun, 25 Feb 2018 14:08:47 +0000 (14:08 +0000)]
Merge "Remove packageName from getRecoveryStatus"

6 years agoOmit inferred network policies from backup.
Jeff Sharkey [Sun, 25 Feb 2018 02:09:20 +0000 (19:09 -0700)]
Omit inferred network policies from backup.

Inferred network policies might include carrier-protected data that
we can't export per CDD.  We continue to backup policies that have
been explicitly set by the end user.

Test: builds, boots
Bug: 24786071
Change-Id: I9de3308dfde72435627e8042fee4bcbb480e92dc

6 years agoMerge "Revert "Block adb from changing certain settings value when corresponding...
TreeHugger Robot [Sat, 24 Feb 2018 22:13:53 +0000 (22:13 +0000)]
Merge "Revert "Block adb from changing certain settings value when corresponding user""

6 years agoMerge "Fix NPE in NetworkMetrics" am: cb0714332d am: 34d08160bd
Hugo Benichi [Sat, 24 Feb 2018 19:30:40 +0000 (19:30 +0000)]
Merge "Fix NPE in NetworkMetrics" am: cb0714332d am: 34d08160bd
am: ca13c0553a

Change-Id: I66e07968b013c941706d4c772684fa8851e0ccf3

6 years agoMerge "Fix NPE in NetworkMetrics" am: cb0714332d
Hugo Benichi [Sat, 24 Feb 2018 19:21:43 +0000 (19:21 +0000)]
Merge "Fix NPE in NetworkMetrics" am: cb0714332d
am: 34d08160bd

Change-Id: I5c182e9cba857d291ea16fb8bd6b0a66d11cf432

6 years agoMerge "Fix NPE in NetworkMetrics"
Hugo Benichi [Sat, 24 Feb 2018 19:13:03 +0000 (19:13 +0000)]
Merge "Fix NPE in NetworkMetrics"
am: cb0714332d

Change-Id: Icd844e6f04d93e9092b7fbf109ece537dfff4116

6 years agoMerge "Fix NPE in NetworkMetrics"
Hugo Benichi [Sat, 24 Feb 2018 17:54:01 +0000 (17:54 +0000)]
Merge "Fix NPE in NetworkMetrics"

6 years agoMerge "Stop throwing exceptions in TouchExplorer"
Phil Weaver [Sat, 24 Feb 2018 13:57:09 +0000 (13:57 +0000)]
Merge "Stop throwing exceptions in TouchExplorer"

6 years agoRevert "Block adb from changing certain settings value when corresponding user"
Yueming Wang [Sat, 24 Feb 2018 03:30:17 +0000 (03:30 +0000)]
Revert "Block adb from changing certain settings value when corresponding user"

This reverts commit 4140f6c4e3de454dfbcf060112517408ac69e96c.

Reason for revert: This CL is merged accidentally as it got merged together with another CL.

Change-Id: I043a5872f370775a4261a1ca7ccb00489a588303

6 years agoMerge "Flip order of arguments"
TreeHugger Robot [Sat, 24 Feb 2018 10:25:40 +0000 (10:25 +0000)]
Merge "Flip order of arguments"

6 years agoMerge "Ignore stopped state when becoming visible and ensuring configuration."
TreeHugger Robot [Sat, 24 Feb 2018 10:25:18 +0000 (10:25 +0000)]
Merge "Ignore stopped state when becoming visible and ensuring configuration."

6 years agoMerge "Add CertPath to KeyChainSnapshot and startRecoverySession"
TreeHugger Robot [Sat, 24 Feb 2018 10:19:21 +0000 (10:19 +0000)]
Merge "Add CertPath to KeyChainSnapshot and startRecoverySession"

6 years agoMerge "Avoid creating temporary objects in FiterValue()."
TreeHugger Robot [Sat, 24 Feb 2018 10:13:19 +0000 (10:13 +0000)]
Merge "Avoid creating temporary objects in FiterValue()."

6 years agoAvoid creating temporary objects in FiterValue().
Yangster-mac [Fri, 23 Feb 2018 21:08:03 +0000 (13:08 -0800)]
Avoid creating temporary objects in FiterValue().

It reduces the cpu time from 1000ns to 750ns

Test: statsd test.
Change-Id: Ifa7e98e3368f8d55f85c7b09d05a6c416482981d

6 years agoMerge "Fixes crash when tap on nav bar without using quickstep"
TreeHugger Robot [Sat, 24 Feb 2018 03:37:30 +0000 (03:37 +0000)]
Merge "Fixes crash when tap on nav bar without using quickstep"

6 years agoMerge "Let sendShowMessage called from hide to show" am: e7d04d728c am: f91fddddd1
tiansiming [田思明] [Sat, 24 Feb 2018 03:04:26 +0000 (03:04 +0000)]
Merge "Let sendShowMessage called from hide to show" am: e7d04d728c am: f91fddddd1
am: ef2ac4066b

Change-Id: Ic2dc363d4a26b9c3a10e0b7d1072765501eec383

6 years agoMerge "Let sendShowMessage called from hide to show" am: e7d04d728c
tiansiming [田思明] [Sat, 24 Feb 2018 02:56:15 +0000 (02:56 +0000)]
Merge "Let sendShowMessage called from hide to show" am: e7d04d728c
am: f91fddddd1

Change-Id: I8aa277a5448b999496b79f6b5721738d3b5f9af7

6 years agoMerge "Let sendShowMessage called from hide to show"
tiansiming [田思明] [Sat, 24 Feb 2018 02:43:03 +0000 (02:43 +0000)]
Merge "Let sendShowMessage called from hide to show"
am: e7d04d728c

Change-Id: If406d79d0489a9c61322c0937fce2c9a9a5c4dc1

6 years agoMerge "Store carrier app name in global settings for SIM dialog/notification"
TreeHugger Robot [Sat, 24 Feb 2018 02:38:26 +0000 (02:38 +0000)]
Merge "Store carrier app name in global settings for SIM dialog/notification"

6 years agoMerge "Fix sleep time in Cellular"
TreeHugger Robot [Sat, 24 Feb 2018 02:37:38 +0000 (02:37 +0000)]
Merge "Fix sleep time in Cellular"

6 years agoMerge "Explicitly do not support SEARCH_SERVICE on UI_MODE_TYPE_WATCH"
TreeHugger Robot [Sat, 24 Feb 2018 02:13:27 +0000 (02:13 +0000)]
Merge "Explicitly do not support SEARCH_SERVICE on UI_MODE_TYPE_WATCH"

6 years agoMerge "Wrap raw binder interface into public classes" am: a4bde27012 am: 3cd878df0f
Ruchi Kandoi [Sat, 24 Feb 2018 02:12:34 +0000 (02:12 +0000)]
Merge "Wrap raw binder interface into public classes" am: a4bde27012 am: 3cd878df0f
am: 21b4edb3cd

Change-Id: I9797e593a44b86f32f6c8c343d8bb15076e6ca87

6 years agoMerge "Wrap raw binder interface into public classes" am: a4bde27012
Ruchi Kandoi [Sat, 24 Feb 2018 02:04:37 +0000 (02:04 +0000)]
Merge "Wrap raw binder interface into public classes" am: a4bde27012
am: 3cd878df0f

Change-Id: I896528596006eb76241e706bb71d958214fb6499

6 years agoMerge "BatteryStatsImpl: Fix parceling error"
TreeHugger Robot [Sat, 24 Feb 2018 02:03:24 +0000 (02:03 +0000)]
Merge "BatteryStatsImpl: Fix parceling error"

6 years agoMerge "Fixed an issue where the collapsing was called on the wrong thread"
TreeHugger Robot [Sat, 24 Feb 2018 01:52:41 +0000 (01:52 +0000)]
Merge "Fixed an issue where the collapsing was called on the wrong thread"

6 years agoMerge "Wrap raw binder interface into public classes"
Ruchi Kandoi [Sat, 24 Feb 2018 01:51:26 +0000 (01:51 +0000)]
Merge "Wrap raw binder interface into public classes"
am: a4bde27012

Change-Id: Idd3b7a5563b2432654af1a331a6f040c1e98832a

6 years agoMerge "Update wear default app icon color."
Andrew Zeng [Sat, 24 Feb 2018 01:36:50 +0000 (01:36 +0000)]
Merge "Update wear default app icon color."

6 years agoMerge "Fixed the actions for the ambient layout"
Selim Cinek [Sat, 24 Feb 2018 01:28:54 +0000 (01:28 +0000)]
Merge "Fixed the actions for the ambient layout"

6 years agoMerge "Let sendShowMessage called from hide to show"
Treehugger Robot [Sat, 24 Feb 2018 01:27:13 +0000 (01:27 +0000)]
Merge "Let sendShowMessage called from hide to show"

6 years agoMerge "Implement issue #73301635: Ability to extract device configuration"
TreeHugger Robot [Sat, 24 Feb 2018 01:21:34 +0000 (01:21 +0000)]
Merge "Implement issue #73301635: Ability to extract device configuration"

6 years agoMerge "Update the Bluetooth Active Device state in the Device Manager"
TreeHugger Robot [Sat, 24 Feb 2018 01:07:45 +0000 (01:07 +0000)]
Merge "Update the Bluetooth Active Device state in the Device Manager"

6 years agoMerge "Fix strict mode violation"
Mike Ma [Sat, 24 Feb 2018 00:50:29 +0000 (00:50 +0000)]
Merge "Fix strict mode violation"

6 years agoAdd CertPath to KeyChainSnapshot and startRecoverySession
Bo Zhu [Fri, 23 Feb 2018 05:43:52 +0000 (21:43 -0800)]
Add CertPath to KeyChainSnapshot and startRecoverySession

CertPath will include a cert of the trusted hardware and necessary
intermediate certificates.

Bug: 73784851
Change-Id: Ic70616b8f119891a82402b91035456e404c5f6de
Test: adb shell am instrument -w -e package \
com.android.server.locksettings.recoverablekeystore \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

6 years agoMerge "Added CTS test cases for getNetworkId() and getSystemId()"
TreeHugger Robot [Sat, 24 Feb 2018 00:37:08 +0000 (00:37 +0000)]
Merge "Added CTS test cases for getNetworkId() and getSystemId()"

6 years agoMerge "Improve reporting of bucketing reason"
TreeHugger Robot [Sat, 24 Feb 2018 00:24:03 +0000 (00:24 +0000)]
Merge "Improve reporting of bucketing reason"

6 years agoMerge "Wrap raw binder interface into public classes"
Treehugger Robot [Sat, 24 Feb 2018 00:19:29 +0000 (00:19 +0000)]
Merge "Wrap raw binder interface into public classes"

6 years agoFix hard to touch and stuck navbar rotate icon
Mike Digman [Fri, 23 Feb 2018 23:08:53 +0000 (15:08 -0800)]
Fix hard to touch and stuck navbar rotate icon

Hide rotate button on Quickstep navbar grab. Prior signals
didn't always capture this. Launcher now also changes its
requested orientation on touch, ignore that. Pause callback
made hide animator unexpectedly isRunning=true causing the
icon to never fade out, should be fixed now.

Test: manual
Change-Id: I4bb39d57d9cef5748aadf2f18c640feba3f53775

6 years agoRemove obsolete pragma statements
Siarhei Vishniakou [Fri, 23 Feb 2018 23:48:10 +0000 (15:48 -0800)]
Remove obsolete pragma statements

These pragma statements used to guard against compiler warnings in Sk..
code. They are no longer necessary.

Test: make
Change-Id: I9f7f88276edb546ba08c7344c142eb487a04f978

6 years agoExplicitly do not support SEARCH_SERVICE on UI_MODE_TYPE_WATCH
Erik Wolsheimer [Tue, 5 Dec 2017 21:11:50 +0000 (13:11 -0800)]
Explicitly do not support SEARCH_SERVICE on UI_MODE_TYPE_WATCH

Bug: 69950606
Change-Id: Ia195e88d8652cd7875d0ce03875034698367001c
(cherry picked from commit 980ba14b921932e85cdc0447af0398778a1c0d64)

6 years agoIgnore stopped state when becoming visible and ensuring configuration.
Wale Ogunwale [Fri, 23 Feb 2018 04:44:56 +0000 (20:44 -0800)]
Ignore stopped state when becoming visible and ensuring configuration.

We normally don't ensure configuration for activities in the stopped
state since it doesn't make sense to be relaunching something that isn't
visible. However, if the activity is becoming visible, then ignore the
stopped state allowing the configuration to be ensured and the activity
relaunched if needed.

Change-Id: If953b624105c8c522f01cfb8fc68ded4fb18698d
Fixes: 73696401
Test: atest ActivityLifecycleTests#testRelaunchConfigurationChangedWhileBecomingVisible

6 years agoFixed the actions for the ambient layout
Selim Cinek [Fri, 23 Feb 2018 23:22:04 +0000 (15:22 -0800)]
Fixed the actions for the ambient layout

Change-Id: I9620144cf20f0f2ee6b0d0fa3cc6e81778357db3
Fixes: 73819192
Test: add ambient notification, observe no action overlap

6 years agoMerge "SettingsLib: Move DefaultAppInfo CandidateInfo from Settings"
TreeHugger Robot [Fri, 23 Feb 2018 23:31:47 +0000 (23:31 +0000)]
Merge "SettingsLib: Move DefaultAppInfo CandidateInfo from Settings"

6 years agoImplement issue #73301635: Ability to extract device configuration
Dianne Hackborn [Tue, 20 Feb 2018 18:31:02 +0000 (10:31 -0800)]
Implement issue #73301635: Ability to extract device configuration

am get-config can now return its information as a protobuf,
so that we have a nice machine readable representation of the
configuration available.  This is available through the new
"--proto" option.

Also add a new "--device" option which will include additional
device configuration information in the output.

Defined the protos to contain all of this information.  Updated
Configuration to generate everything it should in the proto.

The output has been changed so that configuration history
will not be returned unless you specify the --days option.

Bug: 73301635
Test: Booted, ran, output

Change-Id: I074b92b45d6b1da1c1a499080db9e006d12b9fea

6 years agoAdd device capabilities.
Holly Jiuyu Sun [Wed, 7 Feb 2018 04:33:00 +0000 (20:33 -0800)]
Add device capabilities.

Bug: 72223709
Test: Unit test
Merged-In: I35a74e88767f772f764734d1f535848ba43629b9
Change-Id: I35a74e88767f772f764734d1f535848ba43629b9

6 years agoMerge "Add userRestriction attribute in Location settings injector."
TreeHugger Robot [Fri, 23 Feb 2018 23:18:47 +0000 (23:18 +0000)]
Merge "Add userRestriction attribute in Location settings injector."

6 years agoFixed an issue where the collapsing was called on the wrong thread
Selim Cinek [Fri, 23 Feb 2018 19:19:45 +0000 (11:19 -0800)]
Fixed an issue where the collapsing was called on the wrong thread

With work profiles, the collapsing of the panel would happen on the wrong
thread.

Change-Id: I617465d9b285d456162bb7d9ed6ee27659ab1134
Fixes: 73728329
Test: unlock work profile from work profile notification

6 years agoFlip order of arguments
Kurt Nelson [Thu, 22 Feb 2018 19:21:15 +0000 (11:21 -0800)]
Flip order of arguments

Callbacks as the second parameter is more Kotlin friendly.

Bug: 73751206
Test: cts-tradefed run commandAndExit cts-dev --module CtsOsTestCases --test android.os.cts.StrictModeTest
Change-Id: Ib9c9469be1b81dc65e74c9e303f474c54a43b18b

6 years agoMerge "Extrating out icon generation logic so that it can customized"
Sunny Goyal [Fri, 23 Feb 2018 23:12:08 +0000 (23:12 +0000)]
Merge "Extrating out icon generation logic so that it can customized"

6 years agoFixes crash when tap on nav bar without using quickstep
Matthew Ng [Fri, 23 Feb 2018 23:02:07 +0000 (15:02 -0800)]
Fixes crash when tap on nav bar without using quickstep

Fixes crash on nav bar by setting default pos/states of home button and
track opacity to avoid null error when tapping the nav bar before using
quick scrub. Also fixes the lack of animation of quick scrub when it
retracts.

Fixes: 73814434
Test: tap the nav bar upon reboot (or kill sysui process) before using
quickscrub

Change-Id: I2d35dcdf6e860ffb3959d48b4a4cdc319e939d1b

6 years agoFix NPE in NetworkMetrics
Hugo Benichi [Fri, 23 Feb 2018 23:01:30 +0000 (08:01 +0900)]
Fix NPE in NetworkMetrics

addTcpStatsResult() in NetworkMetrics was not checking for the nullness
of the pendingSummary object and trying to add stats regardless.

This patch fixes addTcpStatsResult() so that it populates pendingSummary
if necessary, similarly to addConnectResult() and addDnsResult()

Bug: 73825228
Test: runtest frameworks-net
Change-Id: I616a4be0e6e5920bd2f5c58292fea769bd516df7

6 years agoMerge "Add information of microphone on peripheral for mic enumeration APIs."
TreeHugger Robot [Fri, 23 Feb 2018 22:55:50 +0000 (22:55 +0000)]
Merge "Add information of microphone on peripheral for mic enumeration APIs."

6 years agoMerge changes from topic "wipedata"
TreeHugger Robot [Fri, 23 Feb 2018 22:54:44 +0000 (22:54 +0000)]
Merge changes from topic "wipedata"

* changes:
  Rename WipeDataWithReason API to wipeData.
  Block adb from changing certain settings value when corresponding user restriction is on.

6 years agoSlightly refactor IPv4 default router interface selection
Erik Kline [Fri, 23 Feb 2018 22:16:06 +0000 (14:16 -0800)]
Slightly refactor IPv4 default router interface selection

Test: as follows
    - built
    - flashed
    - booted
    - USB tethering to dualstack wifi yields log lines like:

        14:33:31.970 - Looking for default routes on: {InterfaceName: wlan0 ...
        14:33:31.970 - IPv4/IPv6 upstream interface(s): wlan0/null

      and working tethering
    - runtest frameworks-net passes
Bug: 64380515
Bug: 64382985
Bug: 64976379
Change-Id: Iac94d870653ae1b71df00e8179cc4ecdb7ac412f

6 years agoMerge "Add timestamp for events pulled by companision service."
TreeHugger Robot [Fri, 23 Feb 2018 22:33:21 +0000 (22:33 +0000)]
Merge "Add timestamp for events pulled by companision service."

6 years agoMerge "Add support for hot launch in App launch test."
Gopinath Elanchezhian [Fri, 23 Feb 2018 22:20:22 +0000 (22:20 +0000)]
Merge "Add support for hot launch in App launch test."

6 years agoMerge "Alignment of clock and shade"
Lucas Dupin [Fri, 23 Feb 2018 22:11:06 +0000 (22:11 +0000)]
Merge "Alignment of clock and shade"

6 years agoUpdate the Bluetooth Active Device state in the Device Manager
Pavlin Radoslavov [Wed, 7 Feb 2018 00:14:00 +0000 (16:14 -0800)]
Update the Bluetooth Active Device state in the Device Manager

The Bluetooth Active Device state should be updated for all
CachedBluetoothDevice entries.
This should be done inside CachedBluetoothDeviceManager in SettingsLib
instead of BluetoothDeviceUpdater in the Settings app.

Also:
 * Added a new CachedBluetoothDeviceManagerTest.java unit test
 * Added a new method CachedBluetoothDevice.isActiveDevice()
   for testing.

Bug: 72316092
Test: Manual - two headsets and switching the active device
      Unit tests - "make RunSettingsLibRoboTests -j 40"
Change-Id: Ic3fbf667c66ed2de8e5c3352bc1ffd829a9052cf

6 years agoStore carrier app name in global settings for SIM dialog/notification
goneil [Sat, 17 Feb 2018 01:33:56 +0000 (17:33 -0800)]
Store carrier app name in global settings for SIM dialog/notification

Bug: 70042722
Test: Manual QA
Change-Id: If3e97e90a37ac4e585a64c21ddfe234259cd0813