TreeHugger Robot
83bf7e05e5
Merge "Reduce RM createResources lock contention" into rvc-qpr-dev-plus-aosp
2020-09-22 16:26:52 +00:00
Julia Reynolds
125d1725cd
DO NOT MERGE Revert "Remove app ops indicators from notifications" am: 8ec5bcb3d0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12615554
Change-Id: Ib5170725586b432972ab4b29129c1cadb53d50e1
2020-09-16 16:32:48 +00:00
Julia Reynolds
8ec5bcb3d0
DO NOT MERGE Revert "Remove app ops indicators from notifications"
...
This reverts commit 2778b62f1d .
Reason for revert: these icons are still needed
Change-Id: I219af393f3d4cd08e431f38a3b66408e12f258bb
Bug: 163076432
2020-09-16 15:09:03 +00:00
Jeff Sharkey
487d394296
Merge changes from topic "sep11" am: c0b288133a am: 69e6f07347 am: 741c0a78cc am: da7478b570
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426195
Change-Id: I79488866c538bf9e76d0a6429e30262978f6fdab
2020-09-15 00:13:08 +00:00
Jeff Sharkey
741c0a78cc
Merge changes from topic "sep11" am: c0b288133a am: 69e6f07347
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1426195
Change-Id: I7da537200efe31e803234bd1a0236843064186c8
2020-09-14 23:10:42 +00:00
Treehugger Robot
bc93881957
Merge "Replace 'whitelist' with 'allowlist'" am: 8ac6819c0e am: 3563eeb4ae am: 1d3e694b97 am: e022945d69
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1427048
Change-Id: I5725049a13c30e122e1f8b5e4e772b7431a4e32d
2020-09-14 22:44:28 +00:00
Jeff Sharkey
c0b288133a
Merge changes from topic "sep11"
...
* changes:
Update language to comply with Android's inclusive language guidance
Update language to comply with Android's inclusive language guidance
Update language to comply with Android's inclusive language guidance
Update language to comply with Android's inclusive language guidance
Update language to comply with Android's inclusive language guidance
Update language to comply with Android's inclusive language guidance
Update language to comply with Android's inclusive language guidance
Update language to comply with Android's inclusive language guidance
2020-09-14 21:52:13 +00:00
Treehugger Robot
1d3e694b97
Merge "Replace 'whitelist' with 'allowlist'" am: 8ac6819c0e am: 3563eeb4ae
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1427048
Change-Id: I70eb21c1ea9411974a1c07f6aaaf611760110c34
2020-09-14 21:27:14 +00:00
Julia Reynolds
71c18d2afc
Replace 'whitelist' with 'allowlist'
...
Change-Id: If7422064e59e6c055c9dae092ead298b81cf41e8
Test: atest
Bug: 161889253
Merged-In: I94a43c1c995052b034d8a5377786e1a15e4c9c59
2020-09-14 18:29:23 +00:00
Jeff Sharkey
a8cec413b6
Update language to comply with Android's inclusive language guidance
...
See https://source.android.com/setup/contribute/respectful-code for reference
Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: I245b8d9cac722da76ea67983738a3cbb9deb68df
2020-09-14 10:00:07 -06:00
Jeff Sharkey
16dd960d6f
Update language to comply with Android's inclusive language guidance
...
See https://source.android.com/setup/contribute/respectful-code for reference
Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: Id1a0f2a38e41badee3a34bd71af240511f273a7b
2020-09-14 10:00:05 -06:00
Jeff Sharkey
6516a83886
Update language to comply with Android's inclusive language guidance
...
See https://source.android.com/setup/contribute/respectful-code for reference
Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: Ifce5239991e3b78dd4757712e3b88093ad7161f0
2020-09-14 10:00:02 -06:00
Jeff Sharkey
705f6bec2d
Update language to comply with Android's inclusive language guidance
...
See https://source.android.com/setup/contribute/respectful-code for reference
Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: I53003332717baf57dc088b2f6b969cdb1863f65e
2020-09-14 09:59:01 -06:00
TreeHugger Robot
ae95e2a448
Merge "Sanitize more of the notification text fields" into rvc-dev am: ceb7aefd6f am: 1ed53ed94e am: 089f82deb6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12512483
Change-Id: I42bada5cf24216465486fe8b4a3c97c5f6c2edae
2020-09-10 00:54:48 +00:00
TreeHugger Robot
1ed53ed94e
Merge "Sanitize more of the notification text fields" into rvc-dev am: ceb7aefd6f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12512483
Change-Id: Ief6065688eb49cd0d795dbd892ea9bfa76290f2b
2020-09-10 00:20:15 +00:00
TreeHugger Robot
ceb7aefd6f
Merge "Sanitize more of the notification text fields" into rvc-dev
2020-09-09 23:55:10 +00:00
TreeHugger Robot
c0f911ce35
Merge "Require permission to create trusted displays" into rvc-dev am: 2c0137794d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12287404
Change-Id: Ifeaf09fda00fe2622ead045dc4f6f93c5129e5fc
2020-09-04 10:40:39 +00:00
TreeHugger Robot
3df1e7787a
Merge "Require permission to create trusted displays" into rvc-qpr-dev am: c2b395c713
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12400348
Change-Id: If006d013954518b763cc010fe50a54b97d29eb3e
2020-09-04 10:33:12 +00:00
Julia Reynolds
a19f9ed2b1
Sanitize more of the notification text fields
...
Test: manual; monitor SystemUI performance when an app tries to
post a messaging style notification with messages with long text
Bug: 158304295
Bug: 147358092
Merged-In: c953fdf6bc
Change-Id: I0e2ea12fc3351b1a56645b556720ea2306f5422a
(cherry picked from commit c953fdf6bc )
2020-09-03 19:42:23 +00:00
Xin Li
c8c8e8e8be
Merge RP1A.200720.011
...
Bug: 167588565
Merged-In: Iec7a26ecd68aca9c7a38cc8f441197a8237b0c8c
Change-Id: Ia8f5f008bc1f77115b644ab996aedc892fab68e7
2020-09-02 12:34:37 -07:00
Andrii Kulian
ef7b1333f0
Require permission to create trusted displays
...
Bug: 162627132
Test: atest VirtualDisplayTest#testTrustedVirtualDisplay
Test: atest
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles
Test: atest DisplayTest
Test: atest VirtualDisplayTest#testTrustedVirtualDisplay
Test: atest VirtualDisplayTest#testUntrustedSysDecorVirtualDisplay
Test: adb logcat -b events
Change-Id: Id06b2013ef5fdeadf321f14f8b611c733031d54d
Merged-In: Id06b2013ef5fdeadf321f14f8b611c733031d54d
2020-09-01 05:24:41 +00:00
Andrii Kulian
f21c885ca7
Require permission to create trusted displays
...
Bug: 162627132
Test: atest VirtualDisplayTest#testTrustedVirtualDisplay
Test: atest
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles
Test: atest DisplayTest
Test: atest VirtualDisplayTest#testTrustedVirtualDisplay
Test: atest VirtualDisplayTest#testUntrustedSysDecorVirtualDisplay
Test: adb logcat -b events
Change-Id: Id06b2013ef5fdeadf321f14f8b611c733031d54d
Merged-In: Id06b2013ef5fdeadf321f14f8b611c733031d54d
2020-09-01 13:22:29 +08:00
Xin Li
628590d7ec
Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
...
Bug: 166295507
Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27
Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
2020-08-31 21:21:38 -07:00
Marco Ballesio
bf61b8c858
Merge changes from topic "cgroup v2 freezer frameworks" into rvc-qpr-dev am: 7176835583
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12392113
Change-Id: I2f87b8c3fb60848bf8e9266116ddccbf0eb68f30
2020-08-28 18:16:01 +00:00
Marco Ballesio
7176835583
Merge changes from topic "cgroup v2 freezer frameworks" into rvc-qpr-dev
...
* changes:
freezer: reentrant enable/disable method
freezer: switch to cgroup v2 freezer
2020-08-28 17:49:06 +00:00
Marco Ballesio
12f3e8d6d4
freezer: reentrant enable/disable method
...
the app freezer state can be toggled in multiple situations when a
debugging tool like heapdump is invoked, or when system_server dumps its
binder connections. All these uses are potentially concurrent and a
robust method to handle reentrancy is necessary to avoid leaving the
freezer in a state incompatible with a specific operation.
This patch moves freezer enable and disable operations from Process to
CachedAppOptimizer (ActivityManager), introduces a new ActivityManager API
to centralize all freezer state changes to ActivityManager and modifies
client code accordingly.
Bug: 151225245
Test: manually verified that no regression are introduced on freezer
behavior, verified that concurrent behavior is handled properly
Change-Id: I7d588cc6e0499012dce64ed4e42ff2adb336062d
Merged-In: I7d588cc6e0499012dce64ed4e42ff2adb336062d
2020-08-27 16:05:57 -07:00
Charles Chen
9959c3349f
[RESTRICT AUTOMERGE] Make a context dervied from an UI context as an UI context am: b2444cbef5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12432005
Change-Id: Ie5a1f6808654d80fb54bed9665c1c95c4a0245d4
2020-08-27 17:11:45 +00:00
Charles Chen
b699ff316b
Merge "[RESTRICT AUTOMERGE] Make a context dervied from an UI context as an UI context" into rvc-qpr-dev
2020-08-27 16:53:29 +00:00
Charles Chen
117b9ab1d8
Merge "Respect UI Context for getDisplay" into rvc-qpr-dev am: c5ba62307c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12313930
Change-Id: I7d9bfc3f9e1854a3d86a26f905125c71fd9e854c
2020-08-27 03:05:15 +00:00
Charles Chen
c5ba62307c
Merge "Respect UI Context for getDisplay" into rvc-qpr-dev
2020-08-27 02:52:05 +00:00
Hongwei Wang
9f7f6506c9
[DO NOT MERGE] Sync app requested orientation on PiP exit am: a2673cdfd4
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12464246
Change-Id: I1d4a9a4d24d781107e86d4400f2e55cdcb113579
2020-08-27 01:43:58 +00:00
Hongwei Wang
02c5ea670f
Merge "[DO NOT MERGE] Sync app requested orientation on PiP exit" into rvc-qpr-dev
2020-08-27 01:29:35 +00:00
Hongwei Wang
a2673cdfd4
[DO NOT MERGE] Sync app requested orientation on PiP exit
...
When exiting PiP to fullscreen, SysUI compares the initial rotation
with the screen rotation and skips the animation if they are different,
with the intention that the app should get back to its state prior to PiP.
This generally works well except that app may request
setRequestedOrientation after entering PiP and the initial rotation
SysUI gets in onTaskAppeared would be obsoleted.
This is fixed in this CL by
- Adding a requestedOrientation field in TaskInfo to pass this
information to SysUI, in both onTaskAppeared and onTaskInfoChanged
callbacks
- Sync with the requested orientation as well as display rotation on PiP
exit. Moves also the information we need into PipWindowConfigurationCompact
Video: http://rcll/aaaaaabFQoRHlzixHdtY/gOPXfx5KO9krmzeor49DgG
Bug: 163218295
Test: See video
Change-Id: Idd0b9412dfdfd6fd293a800cded7c7a6b94cafde
2020-08-26 16:06:31 -07:00
Hongwei Wang
23b4bd372f
Remove entry from mLastReportedWindowingMode on destroy am: 5460282793
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12462024
Change-Id: I585dca4ebcd69ad4c31d350eb43045981baa56dd
2020-08-26 18:53:08 +00:00
Hongwei Wang
5460282793
Remove entry from mLastReportedWindowingMode on destroy
...
Bug: 166456665
Test: atest ActivityLifecyclePipTests \
ActivityLifecycleSplitScreenTests \
ActivityLifecycleTopResumedStateTests \
PinnedStackTests\
SplitScreenTests \
ActivityLifecycleKeyguardTests
Change-Id: If2cf664bdb62ac3082c02d2c6c1ad74b10761f62
2020-08-26 09:52:46 -07:00
Charles Chen
b2444cbef5
[RESTRICT AUTOMERGE] Make a context dervied from an UI context as an UI context
...
fixes: 165833103
Test: atest StrictModeTest ContextAccessTest
Test: atest InputMethodServiceTest InputMethodServiceStrictModeTest
Merged-In: Ia97e1a0cc290be516d2618148600238b3273c54c
Change-Id: Ia97e1a0cc290be516d2618148600238b3273c54c
2020-08-26 11:47:08 +08:00
Narayan Kamath
6987690464
Merge "AppOpsManager: Add OP_RECORD_AUDIO_HOTWORD" into rvc-qpr-dev am: 046d6480cc
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12434705
Change-Id: Ib81552912e1013bfc5b344ca94b51d29c3fe6d01
2020-08-25 10:12:53 +00:00
Narayan Kamath
046d6480cc
Merge "AppOpsManager: Add OP_RECORD_AUDIO_HOTWORD" into rvc-qpr-dev
2020-08-25 09:24:11 +00:00
TreeHugger Robot
e548482d8d
Merge "fix app prediction service doesn't clean-up properly." into rvc-qpr-dev am: 4cb7d8c878
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12221409
Change-Id: I880aa857e53bc499837b8cb2c1eeff84137a55be
2020-08-24 18:57:50 +00:00
TreeHugger Robot
4cb7d8c878
Merge "fix app prediction service doesn't clean-up properly." into rvc-qpr-dev
2020-08-24 18:27:26 +00:00
Narayan Kamath
68b3c98e14
AppOpsManager: Add OP_RECORD_AUDIO_HOTWORD
...
Bug: 162547999
Test: make
Change-Id: I1d072d93cb2e2b021b58d37d9340f8298acffa1b
2020-08-24 17:17:52 +01:00
Charles Chen
a4f73d7f1f
Respect UI Context for getDisplay
...
Before InputMethodService initializes, InputMethodService#getDisplay
will throw UnsupportedOperationException because it doesn't attach to
any display. However, it may make developers confuse about why
throwing exception for an UI context. This CL workarounds to also
check isUiContext flags to make the result of IMS#getDisplay consistent.
It should be considered to remove after IMS migrate to WindowContext
concept.
fixes: 161964893
Test: atest InputMethodServiceTest#testGetDisplayBeforeInitialization
Change-Id: Ie0bda707f0196b45a8851f645da7ecab6814bed6
2020-08-24 14:45:02 +08:00
Ryan Mitchell
88786f90f2
Reduce RM createResources lock contention
...
Reduce lock contention for processes that use
ResourcesManager#createResources on background threads by preloading
the apk assets into a temporary cache while the RM lock is not held.
As a result, multiple threads may be performing I/O opening the same
apk assets since multiple threads could be preloading the same apk
at once.
Bug: 111966000
Test: observe significantly less monitor contention with owner bg
threads calling android.app.ResourcesManager.createResources
Merged-In: Iccf383cb8e1a358af4f71ac242e2216dc5a19ff2
Change-Id: Iccf383cb8e1a358af4f71ac242e2216dc5a19ff2
(cherry picked from commit fb9a011b1d )
2020-08-20 16:40:59 -07:00
Philip P. Moltmann
67cfa22571
Add app-ops for camera/mic use during phone call am: 732608a6be
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12396940
Change-Id: If8cbb6d6535dc1858e475d59ad282b89560c7de7
2020-08-20 19:50:24 +00:00
Philip P. Moltmann
732608a6be
Add app-ops for camera/mic use during phone call
...
Test: Started a phone call, verified app-op was active
Bug: 162547999
Change-Id: I93bf59d24e3cfbeaede442571f09ba97f0990c75
2020-08-19 20:17:29 -07:00
Kweku Adams
769c4f6830
Merge "Allow package verifier to hide specific fgs notifications." into rvc-qpr-dev am: 1706f9c22f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12378562
Change-Id: I49a977a18f40504b7bea8e0280d975cccb18c897
2020-08-19 17:25:05 +00:00
Kweku Adams
1706f9c22f
Merge "Allow package verifier to hide specific fgs notifications." into rvc-qpr-dev
2020-08-19 17:14:33 +00:00
Kweku Adams
e49aa726f0
Allow package verifier to hide specific fgs notifications.
...
The package verifier performs some system critical work that the user
doesn't need to be explicitly aware of. This adds a mechanism for the
verifier to indicate which foreground service notifications should be
hidden, if possible.
Bug: 164440539
Test: use test app to confirm requested fgs notifications are hidden
Change-Id: Ib3eb0b71cc676c145557ade9def98a363e5abebb
2020-08-18 10:32:58 -07:00
Julia Reynolds
d3dc8e79cf
Merge "Remove app ops indicators from notifications" into rvc-qpr-dev am: 2659836775
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12361488
Change-Id: I70c1dd2665b51c442484577f0077ad4bebc0577d
2020-08-14 17:43:43 +00:00
Julia Reynolds
2778b62f1d
Remove app ops indicators from notifications
...
Test: atest
Bug: 163076432
Change-Id: I5b7514f765811ffd3b0aca63d0108591755974ab
Merged-In: I5b7514f765811ffd3b0aca63d0108591755974ab
2020-08-14 15:02:02 +00:00