OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Fri, 12 Apr 2019 06:01:17 +0000 (06:01 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Add additional logging for ongoing and foreground bubble types." into qt-dev
TreeHugger Robot [Fri, 12 Apr 2019 03:38:09 +0000 (03:38 +0000)]
Merge "Add additional logging for ongoing and foreground bubble types." into qt-dev

5 years agoMerge changes I7368f9b4,I7a6bec4f,I3eb9f7bc,I53d05702,I5cb6c9e0, ... into qt-dev
TreeHugger Robot [Fri, 12 Apr 2019 03:19:59 +0000 (03:19 +0000)]
Merge changes I7368f9b4,I7a6bec4f,I3eb9f7bc,I53d05702,I5cb6c9e0, ... into qt-dev

* changes:
  p2p: unit tests for WifiP2pWfdInfo
  p2p: unit tests for WifiP2pInfo
  p2p: unit tests for WifiP2pProvDiscEvent
  p2p: unit tests for WifiP2pDeviceList
  p2p: unit tests for WifiP2pConfig
  p2p: unit tests for P2P UPNP service discovery
  p2p: unit tests for P2P DNS SD service discovery
  p2p: unit tests for WifiP2pGroup
  p2p: unit tests for WifiP2pGroupList

5 years agoMerge "Set pending client to null after it's been started" into qt-dev
Kevin Chyn [Fri, 12 Apr 2019 03:18:17 +0000 (03:18 +0000)]
Merge "Set pending client to null after it's been started" into qt-dev

5 years agoMerge "Address nit in NetworkStackUtils" into qt-dev
Chiachang Wang [Fri, 12 Apr 2019 03:15:00 +0000 (03:15 +0000)]
Merge "Address nit in NetworkStackUtils" into qt-dev

5 years agoMerge "Remove DocumentsStatsLog.java" into qt-dev
Shawn Lin [Fri, 12 Apr 2019 01:49:12 +0000 (01:49 +0000)]
Merge "Remove DocumentsStatsLog.java" into qt-dev

5 years agoMerge "Pass the package of caller to getPasspointConfigurations into WifiService...
TreeHugger Robot [Fri, 12 Apr 2019 01:46:27 +0000 (01:46 +0000)]
Merge "Pass the package of caller to getPasspointConfigurations into WifiService" into qt-dev

5 years agoMerge "Make sure biometric icon ends in authenticated state" into qt-dev
Kevin Chyn [Fri, 12 Apr 2019 01:22:54 +0000 (01:22 +0000)]
Merge "Make sure biometric icon ends in authenticated state" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 12 Apr 2019 01:05:22 +0000 (18:05 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5de69143a335c0e8f44b1da367f4814ab9182a4a

5 years agoMerge "Migrate NetworkStack metrics off StatsLog.write" into qt-dev
Chiachang Wang [Fri, 12 Apr 2019 01:04:30 +0000 (01:04 +0000)]
Merge "Migrate NetworkStack metrics off StatsLog.write" into qt-dev

5 years agoAddress nit in NetworkStackUtils
Chiachang Wang [Thu, 11 Apr 2019 19:43:52 +0000 (12:43 -0700)]
Address nit in NetworkStackUtils

Follow up commit to fix nit in aosp/937891

Bug: 120013793
Test: Build
Change-Id: I61a6306d3c439a2d72323ab56e2b47771cc60d48
Merged-In: Ide4741305724a9e0d26305f8406c5445f9de12b3
(cherry picked from commit cfb4e06b14925a7ed4324df0e40ec521256ed249)

5 years agoMerge changes I98573a5c,Ic7394f24 into qt-dev
TreeHugger Robot [Fri, 12 Apr 2019 00:54:45 +0000 (00:54 +0000)]
Merge changes I98573a5c,Ic7394f24 into qt-dev

* changes:
  Enable checks for MANAGE_TEST_NETWORKS in TestNetworkService
  Cleanup of Test Network service

5 years agoSet pending client to null after it's been started
Kevin Chyn [Fri, 12 Apr 2019 00:47:32 +0000 (17:47 -0700)]
Set pending client to null after it's been started

Pending client can now be started in two places. Originally it was only
started when onError was received (previous client canceled). We recently
discovered some enumerate bugs likely due to system boot timing changes,
where Keyguard authenticate() can occur while enumerate() is still going.

As a result, we queue clients while enumerate is happening and start them
when enumerate finishes. We need to remember to set the pending client to
null.

Fixes: 130208531

Test: Fingerprint works during cold boot
Change-Id: I5fe1c7a9fc96875f3d87048b12e601755d7f4963

5 years agoMerge "Cleans up userId loop in clearPackageStateForUser" into qt-dev
TreeHugger Robot [Fri, 12 Apr 2019 00:42:11 +0000 (00:42 +0000)]
Merge "Cleans up userId loop in clearPackageStateForUser" into qt-dev

5 years agoMerge changes from topic "face-logging" into qt-dev
Kevin Chyn [Fri, 12 Apr 2019 00:14:36 +0000 (00:14 +0000)]
Merge changes from topic "face-logging" into qt-dev

* changes:
  Populate debug value for biometric atoms
  Adding debug value to Biometric atoms.

5 years agoMerge "Update LoadedApk instead of re-creating on outdated cache" into qt-dev
TreeHugger Robot [Fri, 12 Apr 2019 00:08:22 +0000 (00:08 +0000)]
Merge "Update LoadedApk instead of re-creating on outdated cache" into qt-dev

5 years agoMerge "Adds sanity checks to session commit and abandon" into qt-dev
TreeHugger Robot [Fri, 12 Apr 2019 00:07:21 +0000 (00:07 +0000)]
Merge "Adds sanity checks to session commit and abandon" into qt-dev

5 years agoMerge "Add support for TAP interfaces in TestNetworkManager." into qt-dev
Lorenzo Colitti [Thu, 11 Apr 2019 23:50:59 +0000 (23:50 +0000)]
Merge "Add support for TAP interfaces in TestNetworkManager." into qt-dev

5 years agoPopulate debug value for biometric atoms
Kevin Chyn [Thu, 11 Apr 2019 20:02:56 +0000 (13:02 -0700)]
Populate debug value for biometric atoms

Fixes: 130363518

Test: Builds
Change-Id: I73e8bbb6d9f310ee025bce271bf9470b47626ecc

5 years agoMerge "Add a config option to save the metrics data locally." into qt-dev
Yao Chen [Thu, 11 Apr 2019 23:33:14 +0000 (23:33 +0000)]
Merge "Add a config option to save the metrics data locally." into qt-dev

5 years agoMerge "[GraphicsEnvironment] Expose API to query whether an app should use game drive...
Peiyong Lin [Thu, 11 Apr 2019 23:21:29 +0000 (23:21 +0000)]
Merge "[GraphicsEnvironment] Expose API to query whether an app should use game driver." into qt-dev

5 years agoMerge "Fix a problem with ValueMetric when used with conditions and no diffs." into...
Olivier Gaillard [Thu, 11 Apr 2019 23:20:49 +0000 (23:20 +0000)]
Merge "Fix a problem with ValueMetric when used with conditions and no diffs." into qt-dev

5 years agoMerge "Revert "Flip default value of headless user 0 flag."" into qt-dev
Ying Zheng [Thu, 11 Apr 2019 23:08:01 +0000 (23:08 +0000)]
Merge "Revert "Flip default value of headless user 0 flag."" into qt-dev

5 years agoMerge "Magnify language selector dialog" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 23:04:48 +0000 (23:04 +0000)]
Merge "Magnify language selector dialog" into qt-dev

5 years agoMerge "Add IntRange for min and max volume index getters" into qt-dev
Hayden Gomes [Thu, 11 Apr 2019 22:54:07 +0000 (22:54 +0000)]
Merge "Add IntRange for min and max volume index getters" into qt-dev

5 years agoMerge "[RTT] Clean up doc" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 22:36:39 +0000 (22:36 +0000)]
Merge "[RTT] Clean up doc" into qt-dev

5 years agoMerge changes from topic "DoNotCallAppOpsFromPermMananager" into qt-dev
Philip P. Moltmann [Thu, 11 Apr 2019 22:35:14 +0000 (22:35 +0000)]
Merge changes from topic "DoNotCallAppOpsFromPermMananager" into qt-dev

* changes:
  Use PermissionPolicySve for fg perm app-ops
  Make perm policy synchronizer per user
  Make perm policy sve ready for additional usages

5 years agoMake sure biometric icon ends in authenticated state
Kevin Chyn [Thu, 11 Apr 2019 22:28:57 +0000 (15:28 -0700)]
Make sure biometric icon ends in authenticated state

Bug: 129501166

Test: Manual
Change-Id: I8cef5f6b60e463906b54dd152f880219b68ae038

5 years agoMerge "Changed intents for data and saver tiles" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 22:20:13 +0000 (22:20 +0000)]
Merge "Changed intents for data and saver tiles" into qt-dev

5 years agoMerge "Handle onBindingDied in AbstractRemoteService" into qt-dev
Philip P. Moltmann [Thu, 11 Apr 2019 22:12:49 +0000 (22:12 +0000)]
Merge "Handle onBindingDied in AbstractRemoteService" into qt-dev

5 years agoMerge "Make activities invisible when the display is turned off." into qt-dev
Issei Suzuki [Thu, 11 Apr 2019 21:46:20 +0000 (21:46 +0000)]
Merge "Make activities invisible when the display is turned off." into qt-dev

5 years agoMerge "Update documentation for fingerprint -> biometric" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 21:25:52 +0000 (21:25 +0000)]
Merge "Update documentation for fingerprint -> biometric" into qt-dev

5 years agoAdd a config option to save the metrics data locally.
Yao Chen [Wed, 10 Apr 2019 17:43:20 +0000 (10:43 -0700)]
Add a config option to save the metrics data locally.

Usually after config owner calls statsd to get data, statsd will remove that data
forever. This cl adds an option to save historical data locally so that when a bugreport
is taken, it contains historical statsd metrics for debugging.

+ All existing guardrail on storage still apply, and local history data has lower
  priority when the guardrail is hit. On top of that, statsd will remove history
  files that are more than 2 days old.

+ Also fixed issues inside StorageManager (e.g.,
   using string::compare to sort by timestamp is problematic, redundant file size read, etc)

Test: statsd_test and manually
Fix: 126562025

Change-Id: I5238b9fd3069cbef5bcccabd2212bc4d6c734702

5 years agoMerge "Fixing HardwareBuffer leak when creating a bitmap" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 21:06:40 +0000 (21:06 +0000)]
Merge "Fixing HardwareBuffer leak when creating a bitmap" into qt-dev

5 years agoMerge "Update AppComponentFactory.instantiateClassLoader docs" into qt-dev
David Brazdil [Thu, 11 Apr 2019 20:46:24 +0000 (20:46 +0000)]
Merge "Update AppComponentFactory.instantiateClassLoader docs" into qt-dev

5 years agoFix a problem with ValueMetric when used with conditions and no diffs.
Olivier Gaillard [Thu, 11 Apr 2019 10:48:01 +0000 (11:48 +0100)]
Fix a problem with ValueMetric when used with conditions and no diffs.

Bug: 130353160
Test: atest statsd_test
Change-Id: Ic045caaf38770b1d2ada46859bb13220ffc81ccd

5 years agoCleans up userId loop in clearPackageStateForUser
Patrick Baumann [Thu, 11 Apr 2019 20:40:51 +0000 (13:40 -0700)]
Cleans up userId loop in clearPackageStateForUser

This change fixes incorrect user ID references while clearing package
state in the case that it is being called with USER_ALL. Thankfully
this scenario can only take place when a non-system child package is
uninstalled for all users.

Fixes: 120814622
Test: atest AppSecurityTests
Change-Id: I462c383ad68efcde88eaacdb62dfcd6490f343e0

5 years agoMerge "MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS when doing default permission grants...
TreeHugger Robot [Thu, 11 Apr 2019 20:30:42 +0000 (20:30 +0000)]
Merge "MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS when doing default permission grants" into qt-dev

5 years agoUse PermissionPolicySve for fg perm app-ops
Philip P. Moltmann [Wed, 10 Apr 2019 23:58:24 +0000 (16:58 -0700)]
Use PermissionPolicySve for fg perm app-ops

This avoids having to call into app-ops manager while holding the
package manager lock

Fixes: 124731615123436301
Test: atest CtsPermissionTestCases:android.permission.cts.SplitPermissionTest
Change-Id: Ie7d5302b4265ed012e2303f3c6e6c7219ff3afa9

5 years agoMake perm policy synchronizer per user
Philip P. Moltmann [Thu, 11 Apr 2019 17:40:30 +0000 (10:40 -0700)]
Make perm policy synchronizer per user

Test: atest CtsAppOpsTestCases:android.app.appops.cts.AppOpsTest
            CtsPermission2TestCases:android.permission2.cts.RestrictedPermissionsTest
Bug: 124731615
Change-Id: Idac97b37d1f1268d211109a70d1b1627d4893342

5 years agoMake perm policy sve ready for additional usages
Philip P. Moltmann [Thu, 11 Apr 2019 17:05:48 +0000 (10:05 -0700)]
Make perm policy sve ready for additional usages

We want to use the permission policy services for other things than
restriction of permissions. Hence factor out the restriction code from
the framework.

Also add some comments

Test: atest CtsAppOpsTestCases:android.app.appops.cts.AppOpsTest
            CtsPermission2TestCases:android.permission2.cts.RestrictedPermissionsTest
Bug: 124731615
Change-Id: Ic32f2097af805c3f06dd9cf625b3160f62a576b2

5 years agoMerge "Support status_bar_padding_top" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 20:06:19 +0000 (20:06 +0000)]
Merge "Support status_bar_padding_top" into qt-dev

5 years agoEnable checks for MANAGE_TEST_NETWORKS in TestNetworkService
Benedict Wong [Tue, 9 Apr 2019 23:29:43 +0000 (16:29 -0700)]
Enable checks for MANAGE_TEST_NETWORKS in TestNetworkService

This commit re-enables enforcement of the MANAGE_TEST_NETWORK
permission, which is only granted to the shell. CTS tests using this
permission should use UiAutomation.adoptShellPermissionIdentity() to
gain access.

Bug: 72950854
Test: IPsec CTS tests using this passing
Change-Id: I98573a5c68e45abbbaddef01f6ac74a6a18e26f9
Merged-In: I98573a5c68e45abbbaddef01f6ac74a6a18e26f9
(cherry picked from commit 3ec38dc5530db151388879a521d6d3b94679a0de)

5 years agoCleanup of Test Network service
Benedict Wong [Wed, 13 Mar 2019 04:54:16 +0000 (21:54 -0700)]
Cleanup of Test Network service

This follow-up change performs some cleanup changes without affecting
functionality

Bug: 72950854
Test: Compiles, CTS tests using this pass
Change-Id: Ic7394f24f11d713c9374b438182e29d2a02ea236
Merged-In: Ic7394f24f11d713c9374b438182e29d2a02ea236
(cherry picked from commit 7df36ed96a807f258aef43e558ef127b27b90756)

5 years agoMerge "Dark Theme QS tile" into qt-dev
Lucas Dupin [Thu, 11 Apr 2019 20:02:23 +0000 (20:02 +0000)]
Merge "Dark Theme QS tile" into qt-dev

5 years agoAdd IntRange for min and max volume index getters
Hayden Gomes [Thu, 11 Apr 2019 17:44:18 +0000 (10:44 -0700)]
Add IntRange for min and max volume index getters

Test: Built and ran on device
Bug: 129265140
Change-Id: Ibebc1c54de7e09e81dabd65c22e4fea8450547c8

5 years agoAdding debug value to Biometric atoms.
joshmccloskey [Mon, 1 Apr 2019 20:32:53 +0000 (13:32 -0700)]
Adding debug value to Biometric atoms.

Bug: 129438832
Test: It builds
Change-Id: I86e3a39f0bd1ac0986a350611657a34b512e0aef
Merged-In: I86e3a39f0bd1ac0986a350611657a34b512e0aef
(cherry picked from commit 7d7cad22899df12d44edfccb0245e972c14c005e)

Change-Id: I1a62086556093bea800e0756c757ba47a01b2c13

5 years agoUpdate LoadedApk instead of re-creating on outdated cache
Winson [Wed, 10 Apr 2019 01:00:08 +0000 (18:00 -0700)]
Update LoadedApk instead of re-creating on outdated cache

Recreating the entire object drops the mApplication inside,
so multiple Application instances are unexpectedly created.

Instead, call into updateApplicationInfo to replace
the Resources object manually.

Bug: 129890769

Test: device boots, applies overlay paths correctly; was unable
to reproduce a case where the overlays are missing from the
system itself, other Resources/caching changes may have
decreased the occurrence rate

Change-Id: Ib5e7d6ca79ac5b37d5691ce327e3b66cc4672335

5 years agoMerge "Add a longpress timeout config for screenshot chord" into qt-dev
Alison Cichowlas [Thu, 11 Apr 2019 18:33:43 +0000 (18:33 +0000)]
Merge "Add a longpress timeout config for screenshot chord" into qt-dev

5 years agoMerge "Add option to enable tracing all the launches." into qt-dev
Gopinath Elanchezhian [Thu, 11 Apr 2019 18:07:46 +0000 (18:07 +0000)]
Merge "Add option to enable tracing all the launches." into qt-dev

5 years agoAdds sanity checks to session commit and abandon
Patrick Baumann [Tue, 9 Apr 2019 22:07:25 +0000 (15:07 -0700)]
Adds sanity checks to session commit and abandon

This change ensures we cannot commit or abandon a child session that has
been added to a parent session. It also ensures that a child session
being added to a parent has not already been added to another parent and
that it has not yet been committed or destroyed.

Fixes: 129534286
Test: atest CtsAtomicInstallTestCases:AtomicInstallTest
Change-Id: Id1b3524acb5bf546f7239ae644fb3080c0d3128b

5 years agoMerge "Fix NetworkControllerDataTest fail if inflateSignalStrength is true" into...
TreeHugger Robot [Thu, 11 Apr 2019 17:49:48 +0000 (17:49 +0000)]
Merge "Fix NetworkControllerDataTest fail if inflateSignalStrength is true" into qt-dev

5 years agoMerge "BubbleData [5/n]: Split up StackView.setExpandedBubble" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 17:39:06 +0000 (17:39 +0000)]
Merge "BubbleData [5/n]: Split up StackView.setExpandedBubble" into qt-dev

5 years agoAdd additional logging for ongoing and foreground bubble types.
Steven Wu [Thu, 11 Apr 2019 14:47:42 +0000 (10:47 -0400)]
Add additional logging for ongoing and foreground bubble types.

Bug: 123543171
Test: manual
Change-Id: Id7045fa89632703dec48a3f53b4f3dc6cb11efd8

5 years agoMerge "Wait for RELRO before starting WebViewZygote at boot." into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 17:27:55 +0000 (17:27 +0000)]
Merge "Wait for RELRO before starting WebViewZygote at boot." into qt-dev

5 years agoMerge "Check device owner by callingUid in ActivityStarter" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 17:23:56 +0000 (17:23 +0000)]
Merge "Check device owner by callingUid in ActivityStarter" into qt-dev

5 years agoPass the package of caller to getPasspointConfigurations into WifiService
Ecco Park [Wed, 10 Apr 2019 21:48:17 +0000 (14:48 -0700)]
Pass the package of caller to getPasspointConfigurations into WifiService

The package information of caller is needed to check the SDK version in
WifiService layer.

Bug: 124301934
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I07020da22f044bdd32d376787fc14690bf926513
Signed-off-by: Ecco Park <eccopark@google.com>
5 years agoDark Theme QS tile
Lucas Dupin [Thu, 11 Apr 2019 03:17:32 +0000 (20:17 -0700)]
Dark Theme QS tile

Creates Dark Theme tile and adds it to the default config,
under the fold.

Test: manually toggle tile
Fixes: 130253100
Change-Id: I2859d2eb20db1c6d9dd8e8e24979294316b905bb

5 years agoChanged intents for data and saver tiles
Fabian Kozynski [Thu, 11 Apr 2019 16:22:39 +0000 (12:22 -0400)]
Changed intents for data and saver tiles

Changed the intents to point to the right settings. The intent in
CellularTile will point to the carrier selected as default for data if
there is one.

Test: manual, using DSDS
Fixes: 122676059
Change-Id: I71a8eac1754eaadda156209315a3a469e7e4f6d0

5 years agoMerge "Drop the 'initial' of suppressInitialNotification API" into qt-dev
Mady Mellor [Thu, 11 Apr 2019 16:28:34 +0000 (16:28 +0000)]
Merge "Drop the 'initial' of suppressInitialNotification API" into qt-dev

5 years agoAdd option to enable tracing all the launches.
gopinath [Wed, 3 Apr 2019 22:05:43 +0000 (15:05 -0700)]
Add option to enable tracing all the launches.

This option is disabled by default.

Bug: b/129888684, b/130154337

Test : Ran app launch test case locally.

Change-Id: I1305361adf0cb80e2be6a191b8639f7a53e9abfc
(cherry picked from commit 806aa81113c8bbbb7c4566f0b87858dc2f41a3b6)

5 years agoRevert "Flip default value of headless user 0 flag."
Ying Zheng [Thu, 11 Apr 2019 16:14:34 +0000 (16:14 +0000)]
Revert "Flip default value of headless user 0 flag."

This reverts commit 4214a0933d5f060970cbeae145566597aaa29e40.

Reason for revert: need to update per build

Bug: 130310171
Change-Id: I9ff55e9de4ec3ad64451ef41f34cbfe9b793a5e9

5 years agoMerge "throw securityexception for notifyNetworkChange" into qt-dev
Chen Xu [Thu, 11 Apr 2019 15:56:02 +0000 (15:56 +0000)]
Merge "throw securityexception for notifyNetworkChange" into qt-dev

5 years agoMerge "Remove remaining deepCopy() usages in TextClassifier" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 15:54:52 +0000 (15:54 +0000)]
Merge "Remove remaining deepCopy() usages in TextClassifier" into qt-dev

5 years agoMerge "Fixed PackageWatchdog health check state" into qt-dev
Zimuzo Ezeozue [Thu, 11 Apr 2019 15:54:46 +0000 (15:54 +0000)]
Merge "Fixed PackageWatchdog health check state" into qt-dev

5 years agoMerge "Retry getting DynamicSystem service" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 15:53:52 +0000 (15:53 +0000)]
Merge "Retry getting DynamicSystem service" into qt-dev

5 years agoMake activities invisible when the display is turned off.
Issei Suzuki [Thu, 11 Apr 2019 14:46:37 +0000 (16:46 +0200)]
Make activities invisible when the display is turned off.

Bug: 127650360
Test: atest ActivityManagerMultiDisplayTests and existing tests pass.
Change-Id: I0943ef1024b32902826de6fd20ab2a8641059bd7

5 years agoFix NetworkControllerDataTest fail if inflateSignalStrength is true
andychou [Thu, 11 Apr 2019 15:40:49 +0000 (23:40 +0800)]
Fix NetworkControllerDataTest fail if inflateSignalStrength is true

NetworkControllerBaseTest doesn't consider inflate signal strength
condition. Consider inflate condition when compare icon.

Bug: 130317133
Test: atest NetworkControllerDataTest pass
Change-Id: I2f9e994cb169001d4081ecead3702f9ef00234ff

5 years agoMerge "Sharesheet - 4->8 direct share expansion fix" into qt-dev
Matt Pietal [Thu, 11 Apr 2019 15:30:34 +0000 (15:30 +0000)]
Merge "Sharesheet - 4->8 direct share expansion fix" into qt-dev

5 years agothrow securityexception for notifyNetworkChange
chen xu [Thu, 11 Apr 2019 09:16:19 +0000 (02:16 -0700)]
throw securityexception for notifyNetworkChange

throw exception instead of check permission and return.

Bug: 130329121
Test: Build
Change-Id: I9f0e60312ebd0baaf1538a6e658414211b17991b

5 years agoMerge "Add state callbacks to launcher" into qt-dev
Winson Chung [Thu, 11 Apr 2019 15:22:36 +0000 (15:22 +0000)]
Merge "Add state callbacks to launcher" into qt-dev

5 years agoHandle onBindingDied in AbstractRemoteService
Philip P. Moltmann [Wed, 10 Apr 2019 19:28:45 +0000 (12:28 -0700)]
Handle onBindingDied in AbstractRemoteService

If the package is "pm clear"-ed the binding dies permanently and has to
be re-created. Hence force an unbind at this time.

Test: atest CtsPermissionTestCases:android.permission.cts.LocationAccessCheckTest#notificationIsShownAgainAfterUninstallAndReinstall
Bug: 129480112
Change-Id: I3f9b106e2f172f8d5b6510a07c4b1f060de192bd

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 15:14:27 +0000 (15:14 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 15:10:17 +0000 (15:10 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Update comment per review feedback" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 15:06:37 +0000 (15:06 +0000)]
Merge "Update comment per review feedback" into qt-dev

5 years agoCheck device owner by callingUid in ActivityStarter
Ricky Wai [Wed, 10 Apr 2019 17:40:17 +0000 (18:40 +0100)]
Check device owner by callingUid in ActivityStarter

Bug: 129565838
Test: atest ActivityStarterTests
Change-Id: Ic75a3198f7de34078ba3b9c794db893779e7bb77

5 years ago[RTT] Clean up doc
Etan Cohen [Thu, 11 Apr 2019 14:00:42 +0000 (07:00 -0700)]
[RTT] Clean up doc

Bug: 130329871
Test: N/A
Change-Id: Ia8c95cdaf98e121f01fc4409cd557735168171ec

5 years agoMerge "Do not allow moveToFront() and moveTaskToFront() when app is in background...
Ricky Wai [Thu, 11 Apr 2019 13:33:04 +0000 (13:33 +0000)]
Merge "Do not allow moveToFront() and moveTaskToFront() when app is in background" into qt-dev

5 years agoMigrate NetworkStack metrics off StatsLog.write
Chiachang Wang [Thu, 11 Apr 2019 13:24:28 +0000 (21:24 +0800)]
Migrate NetworkStack metrics off StatsLog.write

Now that the new metrics API can be used, NetworkStack
metrics need to migrate off the legacy StatsLog.write.

Bug: 130323000
Test: Test with ./out/host/linux-x86/bin/statsd_testdrive 121
      to ensure log properly
Test: Ensure NetworkStackStatsLog will be generated as expected
Test: atest NetworkStackTest

Change-Id: I8c70503cf1d9f1d06f30a1936d2d88857d0cff53

5 years agoMerge "Add lifecycle tests to NetworkMonitorTest" into qt-dev
Chiachang Wang [Thu, 11 Apr 2019 13:15:40 +0000 (13:15 +0000)]
Merge "Add lifecycle tests to NetworkMonitorTest" into qt-dev

5 years agoUpdate comment per review feedback
Todd Kennedy [Thu, 11 Apr 2019 13:14:15 +0000 (06:14 -0700)]
Update comment per review feedback

Treehugger was being a pain and I wanted to submit if it passsed.
It passed, so, need to adjust in a separate change.

Bug: 123919310
Test: None. This is a comment change only
Change-Id: Ib49cea7d814a7cb4566d663a2805ed56763454e8

5 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 11 Apr 2019 13:11:31 +0000 (06:11 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ic2368d119ddd7e16c500dedefae454a50052edf0

5 years agoMerge "Mark testEarliestAlarmSet as flaky" into qt-dev
Jorim Jaggi [Thu, 11 Apr 2019 13:09:53 +0000 (13:09 +0000)]
Merge "Mark testEarliestAlarmSet as flaky" into qt-dev

5 years agoMark testEarliestAlarmSet as flaky
Jorim Jaggi [Thu, 11 Apr 2019 12:44:31 +0000 (14:44 +0200)]
Mark testEarliestAlarmSet as flaky

Blocks presubmits.

Test: n/a
Bug: 130313408
Change-Id: Ia716510866676c6aefeb2765bfef7a1a030cd791

5 years agoFixed PackageWatchdog health check state
Zimuzo [Fri, 5 Apr 2019 16:06:25 +0000 (17:06 +0100)]
Fixed PackageWatchdog health check state

1. Receiving List<PackageInfo>:
Since I29e2d619a5296716c29893ab3aa2f35f69bfb4d7, we now receive a
List of PackageInfo instead of Strings for packages supporting
explicit health checks. Now, we parse this List<PackageInfo> from
ExtServices instead of trying to parse List<String> and we use the
health check timeout in the PackageInfo as the health check expiry
deadline instead of using the total package expiry time.

2. Updating health check durations onSupportedPackages:
Before, we always updated the health check duration for a
package if the package is supported and the health check state is
not PASSED, this caused the health check duration for a package to
never reduce as long as we kept getting onSupportedPackages. Now, we
improved the readability of the state transitions onSupportedPackages.
We now correctly only update the health check duration for supported
packages in the INACTIVE state.

3. FAILED state:
Before we only had INACTIVE, ACTIVE and PASSED states. When a package
has failed the health check we could notify the observer multiple
times in quick succession and get into a bad internal state with
negative health check durations. Now we added check to ensure we
don't try to schedule with a Handler with a negative duration and we
defined a negative health check duration to be a new FAILED state if the
health check is not passed. This clearly defines the state transitions
as seen below:

+----------+     +---------+    +------+
|          |     |         |    |      |
| INACTIVE +---->+ ACTIVE  +--->+PASSED|
|          |     |         |    |      |
+-----+----+     +----+----+    +------+
      |               |
      |               |
      |               |
      |               |
      |          +----v----+
      |          |         |
      +----------> FAILED  |
                 |         |
                 +---------+

4. Uptime state:
Everytime we pruned observers, we scheduled the next prune and stored
the current SystemClock#uptimeMillis. This allowed us determine how
much time had elapsed for the next prune. The uptime was not correclty
updated when starting to observe already observed packages. With the
following sequence of events:

-monitor package A for 1hr
-30mins elapsed
-monitor package A again for 1hr

A would expire 30mins from the last event instead of 1hr.
This was because the second time around, we
saved the new state to disk but did not reschedule so did not update
the uptime at last schedule, so 1hr from the first event, we would
prune packages with the original uptime and incorrectly expire A
earlier. Now we update all internal state, fixed this and added a test
for this case.

5. Readability
Improved method variable names, logging and comments.

Bug: 120598832
Test: Manual testing && atest PackageWatcdogTest
Change-Id: I1512d5938848ad26b668636405fe9b0db50d3a2e

5 years agoMerge "Merge caller targets and ranked targets." into qt-dev
Alison Cichowlas [Thu, 11 Apr 2019 12:24:22 +0000 (12:24 +0000)]
Merge "Merge caller targets and ranked targets." into qt-dev

5 years agoMerge "Override actionModeCloseDrawable in Theme.DeviceDefault.DocumentsUI" into...
TreeHugger Robot [Thu, 11 Apr 2019 12:13:21 +0000 (12:13 +0000)]
Merge "Override actionModeCloseDrawable in Theme.DeviceDefault.DocumentsUI" into qt-dev

5 years agoAdd support for TAP interfaces in TestNetworkManager.
Lorenzo Colitti [Thu, 11 Apr 2019 11:59:16 +0000 (04:59 -0700)]
Add support for TAP interfaces in TestNetworkManager.

Bug: 72950854
Test: builds, boots
Change-Id: I88bfd7f37c0ba0228f8288fe92212618ce134e4f
Merged-In: I88bfd7f37c0ba0228f8288fe92212618ce134e4f
(cherry picked from commit ba2eb5e0621c4f2a2c86a641998b4ae1953ae4b8)

5 years agoAdd lifecycle tests to NetworkMonitorTest
Lorenzo Colitti [Wed, 10 Apr 2019 09:57:17 +0000 (02:57 -0700)]
Add lifecycle tests to NetworkMonitorTest

- Ensure that NetworkMonitor quits when notifyNetworkDisconnected
  is called.
- Ensure that BroadcastReceivers are registered when a captive
  portal is detected and unregistered when the network validates
  or when NetworkMonitor quits.

Bug: 122164725
Test: atest FrameworksNetTests NetworkStackTests
Test: atest --generate-new-metrics 10 NetworkStackTests:com.android.server.connectivity.NetworkMonitorTest
Test: test fails if "Don't leak captive portal broadcast receivers." change reverted
Change-Id: I1202626face33cc1e1ec02016b95da487b3335c8
Merged-In: I1202626face33cc1e1ec02016b95da487b3335c8
(cherry picked from commit bb41c8f7513cf1547fc1724c1c3343321f56c18e)

5 years agoUpdate AppComponentFactory.instantiateClassLoader docs
David Brazdil [Tue, 9 Apr 2019 16:18:31 +0000 (17:18 +0100)]
Update AppComponentFactory.instantiateClassLoader docs

Clarify the intended use and properties of the default class loader.

Bug: 128524313
Test: n/a
Merged-In: Iae82554f9294d5248b98f1fa72fc1a47993e86fd
Change-Id: Iae82554f9294d5248b98f1fa72fc1a47993e86fd
(cherry picked from commit 59a97141c8ad3e3d9d3d5c4db1f59d4c9847177c)

5 years agoRetry getting DynamicSystem service
Po-Chien Hsueh [Thu, 11 Apr 2019 08:36:54 +0000 (16:36 +0800)]
Retry getting DynamicSystem service

DynamicSystemService might not be ready even sysprop init.svc.gsid
is "running". Move connect() into retry loop.

Bug: 130336119
Test: boot the device and check logcat
Change-Id: Iab5065bf139abcf6c19dcc3553f8a3ca1642e7b3

5 years agoOverride actionModeCloseDrawable in Theme.DeviceDefault.DocumentsUI
Tony Huang [Wed, 10 Apr 2019 06:03:23 +0000 (14:03 +0800)]
Override actionModeCloseDrawable in Theme.DeviceDefault.DocumentsUI

Since RRO do not support to override theme which indicate specific
attr to reference private resource at Q, defined actionModeCloseDrawable
in Theme.DeviceDefault.DocumentsUI can ensure all Q devices apply the
reasonable design.

Fix: 130209354
Test: visual
Test: atest DocumentsUIGoogleTests
Change-Id: I7751aaa753e92a860dc20b873967631a4070595e

5 years agoRemove DocumentsStatsLog.java
shawnlin [Tue, 9 Apr 2019 08:32:33 +0000 (16:32 +0800)]
Remove DocumentsStatsLog.java

This file is no longer needed since we now use the new design of statsd
for mainline module.

Fixes: 130203187
Test: make
Change-Id: I9003e9b49c533861969a0355d008565bb1cffa6c

5 years agoMerge "Fix onBlockedStatusChanged does not work on multiple networks" into qt-dev
Junyu Lai [Thu, 11 Apr 2019 06:58:48 +0000 (06:58 +0000)]
Merge "Fix onBlockedStatusChanged does not work on multiple networks" into qt-dev

5 years agoMerge "Fix regression from ag/6938053 where the pointer is in wrong place" into qt-dev
Mady Mellor [Thu, 11 Apr 2019 06:57:25 +0000 (06:57 +0000)]
Merge "Fix regression from ag/6938053 where the pointer is in wrong place" into qt-dev

5 years agoAdd '-u <user id>' option to 'adb shell ime reset'
Yohei Yukawa [Thu, 11 Apr 2019 06:23:25 +0000 (23:23 -0700)]
Add '-u <user id>' option to 'adb shell ime reset'

This is a preparation to add end-to-end CTS for per-profile IME mode.

In order to allow CTS tests to switch IME via shell command in
multi-user environment, this CL adds '-u <user id>' option to
  adb shell ime reset

Bug: 122924287
Test: Manually tested as follows:
  1. Build aosp_blueline-userdebug and flash it
  2. make -j SoftKeyboard
  3. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
  4. adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard
  5. adb shell ime set com.example.android.softkeyboard/.SoftKeyboard
  6. adb shell pm create-user test
  7. adb shell am switch-user 10
  8. adb shell ime list -s -u 0
     -> com.android.inputmethod.latin/.LatinIME
        com.example.android.softkeyboard/.SoftKeyboard
  9. adb shell ime reset -u 0
     -> Reset current and enabled IMEs for user #0
          Selected: com.android.inputmethod.latin/.LatinIME
           Enabled: com.android.inputmethod.latin/.LatinIME
 10. adb shell ime list -s -u 0
     -> com.android.inputmethod.latin/.LatinIME
Test: Manually tested as follows.
  1. Build aosp_blueline-userdebug and flash it
  2. adb shell pm create-user restricted_test
  3. adb root
  4. adb shell pm set-user-restriction --user 10 no_debugging_features 1
  5. adb shell ime reset -u all
     -> Reset current and enabled IMEs for user #0
          Selected: com.android.inputmethod.latin/.LatinIME
           Enabled: com.android.inputmethod.latin/.LatinIME
        User #10 is restricted with DISALLOW_DEBUGGING_FEATURES
Change-Id: Ie330c6faa76f366b78c15c0161873a051a3d40e3

5 years agoAdd '-u <user id>' option to 'adb shell ime set'
Yohei Yukawa [Thu, 11 Apr 2019 06:23:17 +0000 (23:23 -0700)]
Add '-u <user id>' option to 'adb shell ime set'

This is a preparation to add end-to-end CTS for per-profile IME mode.

In order to allow CTS tests to switch IME via shell command in
multi-user environment, this CL adds '-u <user id>' option to
  adb shell ime set <ime id>

Another notable behavior change in this CL is that
  adb shell ime set <ime id>
now gracefully fails with showing one-line error message when <ime id>
does not exist.  Previously it failed with showing a stacktrace
because of unhandled IllegalArgumentException.

Bug: 122924287
Test: Manually tested as follows:
  1. Build aosp_blueline-userdebug and flash it
  2. make -j SoftKeyboard
  3. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
  4. adb shell pm create-user test
  5. adb shell am switch-user 10
  6. adb shell ime enable -u 0 com.example.android.softkeyboard/.SoftKeyboard
     -> Input method com.example.android.softkeyboard/.SoftKeyboard: now enabled for user #0
  7. adb shell ime set -u 0 com.example.android.softkeyboard/.SoftKeyboard
     -> Input method com.example.android.softkeyboard/.SoftKeyboard selected for user #0
Test: Manually tested as follows.
  1. Build aosp_blueline-userdebug and flash it
  2. adb shell pm create-user restricted_test
  3. adb root
  4. adb shell pm set-user-restriction --user 10 no_debugging_features 1
  5. adb shell ime set -u all com.android.inputmethod.latin/.LatinIME
     -> Input method com.android.inputmethod.latin/.LatinIME: now disabled for user #0
        User #10 is restricted with DISALLOW_DEBUGGING_FEATURES.
Change-Id: I397cf0fb418a395dcafc0ab0d8d4e553b0f2eaab

5 years agoAdd '-u <user id>' option to 'adb shell ime enable'
Yohei Yukawa [Thu, 11 Apr 2019 06:20:51 +0000 (23:20 -0700)]
Add '-u <user id>' option to 'adb shell ime enable'

This is a preparation to add end-to-end CTS for per-profile IME mode.

In order to allow CTS tests to enable/disable IMEs via shell command
in multi-user environment, this CL adds '-u <user id>' option to
  adb shell ime enable <ime id>
and
  adb shell ime disable <ime id>

Note that '-u' option is already supposed in 'adb shell ime list' [1].

 [1]: I192a0f5a1375170d17a4c08af94f23966dbaea8b
      7f8ee4b9ddd31ad36a12c5278b27990dc76011cc

Bug: 122924287
Test: Manually tested as follows:
  1. Build aosp_blueline-userdebug and flash it
  2. make -j SoftKeyboard
  3. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
  4. adb shell pm create-user test
  5. adb shell am switch-user 10
  6. adb shell ime enable -u 0 com.example.android.softkeyboard/.SoftKeyboard
     -> Input method com.example.android.softkeyboard/.SoftKeyboard: now enabled for user #0
  7. adb shell ime disable -u 0 com.example.android.softkeyboard/.SoftKeyboard
     -> Input method com.example.android.softkeyboard/.SoftKeyboard: now disabled for user #0
Test: Manually tested as follows.
  1. Build aosp_blueline-userdebug and flash it
  2. adb shell pm create-user test
  3. adb shell pm create-user restricted_test
  4. adb root
  5. adb shell pm set-user-restriction --user 11 no_debugging_features 1
  6. adb shell am switch-user 10
  7. adb shell am switch-user 11
  8. adb shell am switch-user 0
  9. adb shell ime disable -u all com.android.inputmethod.latin/.LatinIME
     -> Input method com.android.inputmethod.latin/.LatinIME: now disabled for user #0
        Input method com.android.inputmethod.latin/.LatinIME: now disabled for user #10
        User #11 is restricted with DISALLOW_DEBUGGING_FEATURES.
Change-Id: Ia0f873e4589a9fc3f549469e3d1d966640dc2df5

5 years agoMerge "Fix puller callback with gauge/value metric" into qt-dev
TreeHugger Robot [Thu, 11 Apr 2019 05:40:33 +0000 (05:40 +0000)]
Merge "Fix puller callback with gauge/value metric" into qt-dev

5 years agoMerge "[automerger skipped] Merge changes from topic "am-09249f80-e618-46fc-ac06...
Android Build Merger (Role) [Thu, 11 Apr 2019 05:37:50 +0000 (05:37 +0000)]
Merge "[automerger skipped] Merge changes from topic "am-09249f80-e618-46fc-ac06-c7fdc73c36ae" into oc-dev am: 07a485743a am: 30826bd658 am: d89cac1562 -s ours am: 0f512b2eba -s ours am skip reason: change_id I8ee3f876fcaffa63636645f0f59709cd147254ef with SHA1 5ab98de315 is in history" into qt-dev