Commit Graph

413420 Commits

Author SHA1 Message Date
wilsonshih
4dd0712877 Fix pinned stack destination been overwrite by obsolete animator.
There is a race condition when an app leave from landscape mode and enter
pinned stack in portrait mode. First racer is that TaskStack will post
animateBounds to animation thread, the second is #onConfigurationChanged
will ask TaskStack to update new stack bounds if needed.

When the first animation executed, it will call TaskStack#onAnimationEnd
then #setPinnedStackSize, however, this bounds may already obsoleted if
configuration changed happen after first animation is posted.

To fix this issue, we can cancel the existing animator via verifying the
final destination, and prevent animator set obsoleted bounds back if the
animation is canceled.

Fix: 129723312
Test: Try reproduce this issue over 100+ times.
Test: atest ActivityManagerPinnedStackTests
Test: atest BoundsAnimationControllerTests

Change-Id: I5d42cbe576e7683b22679b1e97be07063c2a05d6
2019-04-16 14:34:20 +08:00
Shawn Lin
be0106abce Merge "Remove DocumentsStatsLog.java" into qt-dev 2019-04-12 01:49:12 +00:00
TreeHugger Robot
34e39c3f2a Merge "Pass the package of caller to getPasspointConfigurations into WifiService" into qt-dev 2019-04-12 01:46:27 +00:00
Kevin Chyn
20d039537f Merge "Make sure biometric icon ends in authenticated state" into qt-dev 2019-04-12 01:22:54 +00:00
Chiachang Wang
fa124d7bf4 Merge "Migrate NetworkStack metrics off StatsLog.write" into qt-dev 2019-04-12 01:04:30 +00:00
TreeHugger Robot
6ce0a59623 Merge changes I98573a5c,Ic7394f24 into qt-dev
* changes:
  Enable checks for MANAGE_TEST_NETWORKS in TestNetworkService
  Cleanup of Test Network service
2019-04-12 00:54:45 +00:00
TreeHugger Robot
662eb71dd0 Merge "Cleans up userId loop in clearPackageStateForUser" into qt-dev 2019-04-12 00:42:11 +00:00
Kevin Chyn
a0d2d2021d Merge changes from topic "face-logging" into qt-dev
* changes:
  Populate debug value for biometric atoms
  Adding debug value to Biometric atoms.
2019-04-12 00:14:36 +00:00
TreeHugger Robot
1d66b0b0d0 Merge "Update LoadedApk instead of re-creating on outdated cache" into qt-dev 2019-04-12 00:08:22 +00:00
TreeHugger Robot
116ca5db5b Merge "Adds sanity checks to session commit and abandon" into qt-dev 2019-04-12 00:07:21 +00:00
Lorenzo Colitti
5c7c6a4b7d Merge "Add support for TAP interfaces in TestNetworkManager." into qt-dev 2019-04-11 23:50:59 +00:00
Kevin Chyn
4858da4aa6 Populate debug value for biometric atoms
Fixes: 130363518

Test: Builds
Change-Id: I73e8bbb6d9f310ee025bce271bf9470b47626ecc
2019-04-11 16:41:44 -07:00
Yao Chen
f9585ca911 Merge "Add a config option to save the metrics data locally." into qt-dev 2019-04-11 23:33:14 +00:00
Peiyong Lin
8f0e1cddbf Merge "[GraphicsEnvironment] Expose API to query whether an app should use game driver." into qt-dev 2019-04-11 23:21:29 +00:00
Olivier Gaillard
769fc61488 Merge "Fix a problem with ValueMetric when used with conditions and no diffs." into qt-dev 2019-04-11 23:20:49 +00:00
Ying Zheng
a4b089bd10 Merge "Revert "Flip default value of headless user 0 flag."" into qt-dev 2019-04-11 23:08:01 +00:00
TreeHugger Robot
e355349c9e Merge "Magnify language selector dialog" into qt-dev 2019-04-11 23:04:48 +00:00
Hayden Gomes
5d211a8253 Merge "Add IntRange for min and max volume index getters" into qt-dev 2019-04-11 22:54:07 +00:00
TreeHugger Robot
e54aa32b9c Merge "[RTT] Clean up doc" into qt-dev 2019-04-11 22:36:39 +00:00
Philip P. Moltmann
0922770725 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
2019-04-11 22:35:14 +00:00
Kevin Chyn
8d9fe53e98 Make sure biometric icon ends in authenticated state
Bug: 129501166

Test: Manual
Change-Id: I8cef5f6b60e463906b54dd152f880219b68ae038
2019-04-11 15:28:57 -07:00
TreeHugger Robot
3d6d6f0085 Merge "Changed intents for data and saver tiles" into qt-dev 2019-04-11 22:20:13 +00:00
Philip P. Moltmann
08ccf9bba4 Merge "Handle onBindingDied in AbstractRemoteService" into qt-dev 2019-04-11 22:12:49 +00:00
Issei Suzuki
832c8a2cb8 Merge "Make activities invisible when the display is turned off." into qt-dev 2019-04-11 21:46:20 +00:00
TreeHugger Robot
3fe3dc7f5f Merge "Update documentation for fingerprint -> biometric" into qt-dev 2019-04-11 21:25:52 +00:00
Yao Chen
9a43b4f027 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
2019-04-11 14:15:43 -07:00
TreeHugger Robot
73913e3bf6 Merge "Fixing HardwareBuffer leak when creating a bitmap" into qt-dev 2019-04-11 21:06:40 +00:00
David Brazdil
618940c95f Merge "Update AppComponentFactory.instantiateClassLoader docs" into qt-dev 2019-04-11 20:46:24 +00:00
Olivier Gaillard
fbee91656b Fix a problem with ValueMetric when used with conditions and no diffs.
Bug: 130353160
Test: atest statsd_test
Change-Id: Ic045caaf38770b1d2ada46859bb13220ffc81ccd
2019-04-11 20:43:54 +00:00
Patrick Baumann
b3ba162ce0 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
2019-04-11 13:40:51 -07:00
TreeHugger Robot
44058c6efa Merge "MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS when doing default permission grants" into qt-dev 2019-04-11 20:30:42 +00:00
Philip P. Moltmann
9408f5804d Use PermissionPolicySve for fg perm app-ops
This avoids having to call into app-ops manager while holding the
package manager lock

Fixes: 124731615, 123436301
Test: atest CtsPermissionTestCases:android.permission.cts.SplitPermissionTest
Change-Id: Ie7d5302b4265ed012e2303f3c6e6c7219ff3afa9
2019-04-11 13:15:53 -07:00
Philip P. Moltmann
4868772bf1 Make perm policy synchronizer per user
Test: atest CtsAppOpsTestCases:android.app.appops.cts.AppOpsTest
            CtsPermission2TestCases:android.permission2.cts.RestrictedPermissionsTest
Bug: 124731615
Change-Id: Idac97b37d1f1268d211109a70d1b1627d4893342
2019-04-11 13:14:25 -07:00
Philip P. Moltmann
bd4943b44e 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
2019-04-11 13:11:30 -07:00
TreeHugger Robot
25076a030e Merge "Support status_bar_padding_top" into qt-dev 2019-04-11 20:06:19 +00:00
Benedict Wong
0b4bba67ae 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 3ec38dc553)
2019-04-11 20:04:19 +00:00
Benedict Wong
b4e98f3b0b 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 7df36ed96a)
2019-04-11 20:04:06 +00:00
Lucas Dupin
863b3c8574 Merge "Dark Theme QS tile" into qt-dev 2019-04-11 20:02:23 +00:00
Hayden Gomes
695f8022fe Add IntRange for min and max volume index getters
Test: Built and ran on device
Bug: 129265140
Change-Id: Ibebc1c54de7e09e81dabd65c22e4fea8450547c8
2019-04-11 12:13:57 -07:00
joshmccloskey
1fad0f695d Adding debug value to Biometric atoms.
Bug: 129438832
Test: It builds
Change-Id: I86e3a39f0bd1ac0986a350611657a34b512e0aef
Merged-In: I86e3a39f0bd1ac0986a350611657a34b512e0aef
(cherry picked from commit 7d7cad2289)

Change-Id: I1a62086556093bea800e0756c757ba47a01b2c13
2019-04-11 11:46:24 -07:00
Winson
71cf350f8e 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
2019-04-11 11:36:04 -07:00
Alison Cichowlas
902e82278a Merge "Add a longpress timeout config for screenshot chord" into qt-dev 2019-04-11 18:33:43 +00:00
Gopinath Elanchezhian
7fc8ac4e22 Merge "Add option to enable tracing all the launches." into qt-dev 2019-04-11 18:07:46 +00:00
Patrick Baumann
00321b7026 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
2019-04-11 11:07:13 -07:00
TreeHugger Robot
1970cfddb3 Merge "Fix NetworkControllerDataTest fail if inflateSignalStrength is true" into qt-dev 2019-04-11 17:49:48 +00:00
TreeHugger Robot
dec79c3e94 Merge "BubbleData [5/n]: Split up StackView.setExpandedBubble" into qt-dev 2019-04-11 17:39:06 +00:00
TreeHugger Robot
49e9f80efd Merge "Wait for RELRO before starting WebViewZygote at boot." into qt-dev 2019-04-11 17:27:55 +00:00
TreeHugger Robot
ab48af4b76 Merge "Check device owner by callingUid in ActivityStarter" into qt-dev 2019-04-11 17:23:56 +00:00
Ecco Park
fedd61650e 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>
2019-04-11 17:04:23 +00:00
Lucas Dupin
046282eabd 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
2019-04-11 09:58:11 -07:00