Commit Graph

495152 Commits

Author SHA1 Message Date
Patrick Baumann
b0f1feb01f Construct AppsFilter cache on background thread
This change moves the initial bootstrapping of the apps filter cache off
onto a secondary thread to avoid impacting the boottime critical path.

Fixes: 162347084
Bug: 161250592
Test: atest AppsFilterTest AppEnumerationTests
Change-Id: Iafa85e838d7f753eaf74037c85f86ee1feeb17aa
(cherry picked from commit 6ab5b2975e)
Merged-In: Iafa85e838d7f753eaf74037c85f86ee1feeb17aa
Merged-In: Iac2948fb2ad66e45161627f637f039a5f4faf88c
2020-08-28 17:12:58 +00:00
Tiger Huang
046b604fd4 Merge "Dispatch insets to client if mState is changed" into rvc-qpr-dev 2020-08-06 20:58:40 +00:00
TreeHugger Robot
895dbfa8ef Merge "Make system-generated FGS notification PendingIntents immutable" into rvc-qpr-dev 2020-08-06 20:51:26 +00:00
Calin Juravle
484f9ac99f [automerger skipped] Merge "Notify IORap without including packages for secondary dex opt." into rvc-dev am: eddf0c94d2 -s ours am: 74cc42dcb1 -s ours
am skip reason: Change-Id Iae4fc0b6fc73707ada8895b38c3ae3f772ac2cd0 with SHA-1 8e41a2debb is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12280079

Change-Id: I84c6d4b86b84e2a97ab179507c3e625b8a21cee4
2020-08-06 19:37:20 +00:00
Calin Juravle
74cc42dcb1 [automerger skipped] Merge "Notify IORap without including packages for secondary dex opt." into rvc-dev am: eddf0c94d2 -s ours
am skip reason: Change-Id Iae4fc0b6fc73707ada8895b38c3ae3f772ac2cd0 with SHA-1 8e41a2debb is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12280079

Change-Id: Ia64d23ca6ed8b45553963af97ce65e153ab7af87
2020-08-06 19:22:53 +00:00
Calin Juravle
eddf0c94d2 Merge "Notify IORap without including packages for secondary dex opt." into rvc-dev 2020-08-06 19:08:29 +00:00
Tiger Huang
b6478edb09 Dispatch insets to client if mState is changed
Previous logic in onStateChanged notifies insetsChanged based on the
change of mLastDispatchedState, which can make us dispatch redundant
insets changes to the app.

In this CL, we only notifies insetsChanged if mState is really changed
in onStateChanged -- we use the final mState (after updateState and
applyLocalVisibilityOverride) to compare with the one before changing.

Fix: 161924448
Test: atest InsetsControllerTest WindowInsetsControllerTests
Test: Swipe up to home while IME open and see if there is any jank
Change-Id: Ia536cdf76805caa56ca1b6eaf2b3db83b6ecd94e
2020-08-06 17:26:57 +08:00
Riddle Hsu
e06c33bce3 Merge "Remove home snapshot immediately" into rvc-qpr-dev 2020-08-06 07:17:45 +00:00
Wayne Lin
9b5f3e1a3c Merge "Extend SUPL network request timeout for consecutive SUPL request" into rvc-d1-dev am: db9c531910
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12279987

Change-Id: Id5397d9253fe8ca89d2c64bc9d98ab035588cce2
2020-08-06 04:14:38 +00:00
Felipe Leme
17a946bc0d Merge "Fixed how com.android.server.pm.Settings handle pre-created users." into rvc-qpr-dev 2020-08-06 04:12:06 +00:00
Wayne Lin
db9c531910 Merge "Extend SUPL network request timeout for consecutive SUPL request" into rvc-d1-dev 2020-08-06 03:51:14 +00:00
Chavi Weingarten
464e51527f Merge "Revert "Reparent bounds layer if surface was replaced."" into rvc-d1-dev am: 15e6f37a16
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12308823

Change-Id: Iad5abb3a1498bbc45359a6e454aa446a0fc983d4
2020-08-06 01:41:08 +00:00
Chavi Weingarten
15e6f37a16 Merge "Revert "Reparent bounds layer if surface was replaced."" into rvc-d1-dev 2020-08-06 01:16:23 +00:00
Zhen Zhang
b0c1ac5b2e Merge "Fix bug: NullPointerException in ChooserActivity" into rvc-qpr-dev 2020-08-05 21:31:39 +00:00
Steve Elliott
31d1d2162e Mark implicit PendingIntents as immutable am: 599c3e4b75 am: fa64ffd0a2 am: 3ff2a5cbd1 am: 6cb8e4a157
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12296405

Change-Id: Ia9ffe0505707ac66cb2cd8864bf77bc6c361fdc2
2020-08-05 20:53:15 +00:00
Steve Elliott
d135ad5fef Mark implicit PendingIntents as immutable am: 7f0fd285c6 am: ae567e56d8 am: cff7b95c37
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12296406

Change-Id: I3be622ac290e94d9b6e4fb609e34fbfa2bb041d3
2020-08-05 20:53:05 +00:00
Steve Elliott
94b589ba46 Merge "Mark implicit PendingIntents as immutable" into rvc-dev am: e35ad478dc am: 205fd265d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12296407

Change-Id: Ia197c2216d188215dfc3ec465b00cf3a03774a35
2020-08-05 20:52:57 +00:00
Steve Elliott
6cb8e4a157 Mark implicit PendingIntents as immutable am: 599c3e4b75 am: fa64ffd0a2 am: 3ff2a5cbd1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12296405

Change-Id: I97946675a0cad34c0e6852ac4c28e8a7f8096c5a
2020-08-05 20:52:35 +00:00
Steve Elliott
3ff2a5cbd1 Mark implicit PendingIntents as immutable am: 599c3e4b75 am: fa64ffd0a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12296405

Change-Id: Ic0d9e93413dc96be874ff7de5d818db1b20ec24e
2020-08-05 20:37:35 +00:00
Steve Elliott
cff7b95c37 Mark implicit PendingIntents as immutable am: 7f0fd285c6 am: ae567e56d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12296406

Change-Id: I735f5f35f4951fa39689594240cfc63e1ca12fe9
2020-08-05 20:26:36 +00:00
Steve Elliott
205fd265d0 Merge "Mark implicit PendingIntents as immutable" into rvc-dev am: e35ad478dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12296407

Change-Id: I6eeeade5c75601576d89b31e5a968145e330b52f
2020-08-05 20:26:25 +00:00
Steve Elliott
fa64ffd0a2 Mark implicit PendingIntents as immutable am: 599c3e4b75
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12296405

Change-Id: I97e44abd90dd662e53443e0d8eb6535fdaaea877
2020-08-05 20:25:51 +00:00
Steve Elliott
ae567e56d8 Mark implicit PendingIntents as immutable am: 7f0fd285c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12296406

Change-Id: I29e112de4bcc44c0d2dc5245e66c0b5bff04a216
2020-08-05 20:25:43 +00:00
Steve Elliott
e35ad478dc Merge "Mark implicit PendingIntents as immutable" into rvc-dev 2020-08-05 20:08:37 +00:00
felipeal
4c789e0168 Fixed how com.android.server.pm.Settings handle pre-created users.
Its getAllUsers() method was not returning pre-created users, so
packages installed for a "regular" user were not marked as
"installed=false" for the pre-created users. Hence, when the
pre-created was "promoted" to a full user, it contained such
packages.

Here's how to reproduce the issue:

$ m -j ApiDemos

$ adb shell pm create-user --pre-create-only
Success: created user id 10

$ adb install --user cur $OUT/testcases/ApiDemos/arm64/ApiDemos.apk
Performing Streamed Install
Success

$ adb shell pm list packages --user cur | grep com.example.android.apis || echo
package:com.example.android.apis

$ adb shell pm list packages --user 10 | grep com.example.android.apis || echo "NOT FOUND"
package:com.example.android.apis # Should return "NOT FOUND"

$ adb shell pm create-user FullUserIAm
Success: created user id 10

$ adb shell pm list packages --user 10 | grep com.example.android.apis || echo "NOT FOUND"
package:com.example.android.apis # Should return "NOT FOUND"

With this fix, it returns "NOT FOUND" in the expected steps.

Fixes: 160252062
Fixes: 162847145
Test: see above

Change-Id: I6cd17ac588a4d95bf0ea704dd18387e19eeab374
(cherry picked from commit 00175974ba24d982ecfe760ee78a1a17bb326d04)
2020-08-05 10:26:39 -07:00
Zhen Zhang
7a6365ae7e Fix bug: NullPointerException in ChooserActivity
Add a null check for mResolverDrawerLayout in ChooserActivity

Bug: 162900698
Test: ChooserActivityTest
Change-Id: Id2b4442a0c5f22e1ecff04a1d20b48784ecc47dd
2020-08-05 16:13:51 +00:00
Youngjun Kwak
96540963a8 Merge "Fix flaky test in ConnectedDeviceVoiceRecognitionNotifierTest." into rvc-qpr-dev 2020-08-05 16:10:53 +00:00
Matt Pietal
40a85e2812 Merge "Controls - Reduce binding priority" into rvc-qpr-dev 2020-08-05 13:59:02 +00:00
Wayne Lin
eaae63437f Extend SUPL network request timeout for consecutive SUPL request
Extend timeout more than telephony retry timer to prevent CS release 2nd request before retry.

Bug: 159772456
Test: Consecutive emergency NI SUPL test, emergency NI SUPL test with/without SIM and SI SUPL test
Change-Id: Ib3e1f394adda6c2c2eacc38df941cc5e9fd8370d
2020-08-05 13:19:51 +00:00
Matt Pietal
4a28e3e8cc Controls UI - Do not throttle drag events
For range controls, many users will want to swipe multiple times in
order to set the desired level. Currently, if the user swipes twice in
fast succession, only the first set point will be sent. Do not block
these swipe events from being sent to the corresponding service.

Fixes: 162850998
Test: manual swipes on range controls
Change-Id: Ib3be25bd362b411b9cd089d49edec7747820d0e7
(cherry picked from commit 05ed2ceec9)
2020-08-05 12:30:39 +00:00
Matt Pietal
72235982a9 Controls - Reduce binding priority
Discussions with framework team led to addition of the
BIND_NOT_PERCEPTIBLE flag, which will help release the service when
the system is under memory pressure.

Fixes: 158771014
Test: manual
Change-Id: I58b25dd23dba88fbd9e5f9e3ad0a052cccd39d21
(cherry picked from commit 9a7bd8477f)
2020-08-05 12:29:57 +00:00
Bill Yi
160db07b3b [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: c710e6f333 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12308768

Change-Id: I68c3f4c059f4b634cf92551e7f98107959aecccd
2020-08-04 23:30:10 +00:00
TreeHugger Robot
e2a535da8a Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-08-04 22:01:51 +00:00
Bill Yi
18c29901f7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I941ab074bfc175558112212e52a798ec1c836546
2020-08-04 20:53:56 +00:00
kwaky
2bc72aa87f Fix flaky test in ConnectedDeviceVoiceRecognitionNotifierTest.
Bug: 161892451
Test: atest ConnectedDeviceVoiceRecognitionNotifierTest now passes
without flakiness (10/10)

Change-Id: I95acf0fdbfa7ff1bf6bf02f7c3defbed27510250
2020-08-04 13:49:26 -07:00
Chavi Weingarten
e6c662098d Revert "Reparent bounds layer if surface was replaced."
This was intended to fix a reparent issue when preserving
surfaces before the app was closed. That is no longer happening
so this change is no longer needed.

The reason this causes the flicker is it waits to reparent until
next frame. However, the frame can be submitted before WM gets a
chance to show the new Surface since that request is sent to WM.

Therefore, the SurfaceView can end up getting reparented to the
new SurfaceControl before the new SurfaceControl is visible,
causing it to be hidden for a few frames.

This reverts commit c1dcac9568.

Reason for revert: b/162377855

Fixes: 162377855
Test: Split screen with SurfaceView doesn't flicker
Change-Id: Ic7a209b7aa66e278b99a526d8427f140b31de0f6
2020-08-04 20:36:49 +00:00
Steve Elliott
599c3e4b75 Mark implicit PendingIntents as immutable
Bug: 156020795
Test: manual, atest
Change-Id: I72206c7a52b067b77d6542d170a6483713dfeee7
(cherry picked from commit 84e08280d3)
2020-08-04 20:22:46 +00:00
Steve Elliott
7f0fd285c6 Mark implicit PendingIntents as immutable
Bug: 156020795
Test: manual, atest
Change-Id: I72206c7a52b067b77d6542d170a6483713dfeee7
(cherry picked from commit 84e08280d3)
2020-08-04 20:21:51 +00:00
Bill Yi
c710e6f333 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I42d66695970ff56f25e2074b30a1bcdfe3eece9f
2020-08-04 20:17:08 +00:00
Riddle Hsu
a17c813b40 Remove home snapshot immediately
If the size of snapshot is mismatched, the removal of the starting
window will be deferred. But if the snapshot target is home, since
it is only presented for unlocking, it is better to dismiss it as
soon as possible to avoid outdated content from being shown on screen
if the windows of home have drawn.

Bug: 161530286
Test: Keep home on top and turn off screen with secured lock. Use
      fingerprint to unlock. If home is drawn fast enough, the
      previous state won't show on screen (e.g. the time on clock).
Change-Id: I103f49eb539f78455ad38f48f9cd853dee51b135
2020-08-05 01:37:01 +08:00
Fabian Kozynski
cc514fd00d Merge "Guard against NPE" into rvc-qpr-dev 2020-08-04 17:33:47 +00:00
Colin Cross
1ed9a7feb1 Merge "Use -target 8 for android_uiautomator" into rvc-dev am: 48666a1abb am: a5498a5d70
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12297232

Change-Id: Ic24765977f54fa9c4cb2974ea149c3f899fa4c3c
2020-08-04 16:57:07 +00:00
Colin Cross
a5498a5d70 Merge "Use -target 8 for android_uiautomator" into rvc-dev am: 48666a1abb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12297232

Change-Id: I241b4c142fb46364b85066948fa65ee6f9d5b25f
2020-08-04 16:46:11 +00:00
Colin Cross
48666a1abb Merge "Use -target 8 for android_uiautomator" into rvc-dev 2020-08-04 16:30:51 +00:00
Josh Tsuji
9020ed08e1 Merge "Remember the stack position, including across configuration changes." into rvc-qpr-dev 2020-08-04 15:17:30 +00:00
Alan Stokes
56dc3f4122 Merge "Don't include inaccessible data dirs in library paths." into rvc-qpr-dev 2020-08-04 07:56:42 +00:00
Dave Mankoff
b20a507711 Merge "Alert ProxCheck listeners directly when timing out." into rvc-d1-dev am: 350583bea0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12294057

Change-Id: Ifd4b2e396bcc1164f2e63bcfbba5565255b5a4dc
2020-08-04 01:09:05 +00:00
Colin Cross
51387a027d Use -target 8 for android_uiautomator
android_uiautomator is distributed as part of the SDK and should use
-target 8 for compatibility with old JDKs.

Bug: 150153790
Bug: 162522383
Test: javap -v -cp out/target/common/obj/JAVA_LIBRARIES/android_uiautomator_intermediates/classes.jar com.android.uiautomator.core.Configurator | grep "major version"
Change-Id: I6871ab5436232ad3bffff6bd26adf2de6b3c06ff
2020-08-03 18:03:40 -07:00
Dave Mankoff
350583bea0 Merge "Alert ProxCheck listeners directly when timing out." into rvc-d1-dev 2020-08-04 00:43:07 +00:00
Roshan Pius
b2c8cb2a53 Merge "Revert "Revert "SystemServer: Dynamically load wifi-service"" into rvc-qpr-dev 2020-08-04 00:26:24 +00:00