Commit Graph

781408 Commits

Author SHA1 Message Date
Matt Pietal
013f20d89c [DO NOT MERGE] Keyguard - Treat messsages to lock with priority am: 82c01c46ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16852007

Change-Id: I6175592d64c7a9aa902cb480a2943d40a7845cfc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 23:38:14 +00:00
Evan Rosky
34a703b4c5 Manually manage memory of native objects
Even though these surfaces/transactions are unreachable, it still
takes time for the GC/NativeRegistry/FinalizerQueue to actually
flush/free references (even if you force GC, it won't flush the
NativeRegistry/FinalizerQueue). This skews the results of our
memory benchmark tests since they measure instantaneous memory.

So, add logic to manually release Transactions/SurfaceControls
when we know they won't be used. This is extra tricky due to
unparceling creating new refcounts. To resolve this, we assume
that all remotes are getting a COPY of all surfaces and then we
make deep-ish copies on the CALLER side if the binder is actually
local. We can't alter the logic on the receiver side because the
binders are one-way and thus PID information isn't available.

Bug: 258913831
Test: systemui-notification-memory-suite-demo and check aggregates
Change-Id: If094e7eeb248a8674e8094cf5cf3019b2cd58047
2022-11-28 23:20:52 +00:00
Evan Rosky
c20814583e Use an isolated token to represent shell transitions
The Transition object itself used to be the token; however,
this means binder can hold onto it and prevent GC. This is
also more consistent with how WM handles tokens in general

Bug: 258913831
Test: atest TransitionTests
Change-Id: Ibe04cca04dd517629bd2fec707224574293a1bc2
2022-11-28 23:19:06 +00:00
TreeHugger Robot
a2e320eebf Merge "[DO NOT MERGE] Keyguard - Treat messsages to lock with priority" into qt-dev 2022-11-28 22:55:00 +00:00
Jorge Gil
0cd96a9eed Create window decors for leaf tasks & skip non-leafs
Fixes the logic that intended to filter out window decorations for
non-leaf tasks. Previously, non-root leafs were mistakenly skipped
instead of their parents, which went unnoticed until freeform tasks
were nested and the non-root leafs were missing the caption bar.

Bug: None
Test: nest freeform tasks, leaf tasks have window decorations.
Change-Id: Ia958fb43319d17a0e33e28497e52293954706416
2022-11-28 22:48:39 +00:00
Xiaowen Lei
6f9be4420b Rename updateMediaLuma to updateMedianLuma.
Looks like a simple typo. I found it confusing, thought the function had
something to do with media.

Bug: 260624151
Test: passing existing tests.
Change-Id: I4a5f821a44d4eb32aa566a4c7ba2505ed8d35f88
Merged-In: I4a5f821a44d4eb32aa566a4c7ba2505ed8d35f88
(cherry picked from commit 65555750a3)
2022-11-28 22:48:08 +00:00
Aaron Liu
1203527128 [User Switcher] Set default value if setting null.
Copies the logic of user manager which defaults to the device resources
in order to determine if user switcher is enabled by default.

Fixes: 254240785
Test: Added a unit test.
Test: wipe device. Skip setup. Open user switcher, observe that there
should be an add button in the fullscreen user switcher.

Change-Id: I0864de61e7bb9dd7436082f2bf486cf4887a192a
2022-11-28 14:37:54 -08:00
Rahul Banerjee
23a1d2e38d Merge "Add Teamfood flag enabling Predictive Back at runtime." into tm-qpr-dev 2022-11-28 22:18:20 +00:00
Caitlin Shkuratov
4bca303dff [SB Refactor] Add table logging for airplane mode.
Bug: 238425913
Test: `adb shell dumpsys activity service
com.android.systemui/.SystemUIService AirplaneTableLog` -> dumps the
list of airplane mode changes
Test: atest TableLogBufferTest

Change-Id: Ia89bcd96089934c4b611adea26de82d5c094780a
2022-11-28 22:17:51 +00:00
Caitlin Shkuratov
e3926eeb91 [SB Refactor] Ensure the initial value is also logged to the table.
Bug: 259454430
Bug: 238425913
Test: `adb shell dumpsys activity service
com.android.systemui/.SystemUIService WifiTableLog` -> the first logs
have all the columns with the Inactive network values
Test: atest PairwiseFlowTest
Test: atest TableLogBufferTest

Change-Id: Iae6b1b70aadc7ac0459b6b800191ff8f2103e244
2022-11-28 22:17:48 +00:00
TreeHugger Robot
05fafde8c8 Merge "Remove @Nullable annotation for onConfigurationChanged." into tm-qpr-dev 2022-11-28 22:17:02 +00:00
Jay Aliomer
a22acacab5 setup robolectric for sysui
re-organize tests based on categories: on-device and robolectric

Fixes: 257246579
Test: SysuiResourceLoadingTest

Change-Id: I8f31f99e612f4aaaadcb6c8df9f46d9388cfec9b
2022-11-28 22:15:27 +00:00
Jean-Michel Trivi
dcb2710560 Merge "AudioDeviceVolumeManager and VolumeInfo API changes" into tm-qpr-dev 2022-11-28 22:09:30 +00:00
Jay Aliomer
aed6e83f41 Make golden path relative to $ANDROID_BUILD_TOP
Fixes: 255775000
Test: manually update goldens
Change-Id: Ieb94704e408e0e9b53bd8599af52e012b40c644e
2022-11-28 22:03:32 +00:00
Michael Mikhail
b272ead9bb Merge "Fix media control flash when unlock device" into tm-qpr-dev 2022-11-28 21:49:47 +00:00
Yuri Lin
70a74616e9 Merge "Revert "Allow conversation channels to inherit canBypassDnd from their parent."" into tm-qpr-dev 2022-11-28 21:01:11 +00:00
Rahul Banerjee
c9ac8d3db5 Migrate ScreenshotController to Predictive Back
Bug: 258493176
Test: Tested manually, as discussed with gwasserman@, it is not feasible to write a test for this right now.
Change-Id: I30e5a587ae8121dbbfc61e15f6b904e67ee52a91
2022-11-28 12:16:58 -08:00
Yuri Lin
e1d1d03364 Revert "Allow conversation channels to inherit canBypassDnd from their parent."
This reverts commit c6ca8afec1.

Reason for revert: actually we don't want to do this; see comments on original commit

Change-Id: I4495bb3ae1cf0be0997efdbdaf150c2a4f63c450
2022-11-28 20:00:47 +00:00
Michael Mikhail
ecd9e0c087 Fix media control flash when unlock device
It adds a new condition when the large screen is in landscape, the
media controls is on lockscreen, and the next location will be in qs.
the media controls should not animate while switching from lockscreen
location to qs location

Bug: 251717467.
Bug: 252981595.
Test: atest MediaHierarchyManagerTest.
Test: Check the media control is not flashing anymore.
Change-Id: Ib242e7f6e87191fc6094aed260e4828ca5f13d70
2022-11-28 19:55:06 +00:00
Rahul Banerjee
6905290329 Add Teamfood flag enabling Predictive Back at runtime.
Bug: 255854141
Test: Passed presubmit
Change-Id: I6add68a4f9e68136d82c38502825d02cdfb70bf0
2022-11-28 19:47:43 +00:00
Brad Hinegardner
b96b7ad9e9 Merge "Create Flashlight Prebuilt quick affordance" into tm-qpr-dev 2022-11-28 19:40:06 +00:00
Brad Hinegardner
f846f1dabf Add margin above ambient indication container
Add margin when not on stand so the text isn't as close to under display fingerprint sensor.

Support multiple device heights

Bug: 259681713
Test: verified manually with simulated now playing song, and physically on stand
Change-Id: I409b8e8662d726c8f08b8a2a6733d6dc9efe6830
2022-11-28 14:31:21 -05:00
Derek Jedral
f46c0ebb9c Fix TrustAgent showing unclear string.
TrustAgents currently show the string "Device was locked manually" if
the trustagent times out, or if lockUser() was called. Changed to show a
more generic string, informing the user that they need to authenticate
with whatever credentials they have set up (instead of using the
trustagent).

Test: LockPatternUtilsTest. Manual test lockUser and trust timeout, verify biometrics works and string appears.
Bug: 243710694
Change-Id: Ia2f3c560ad0f959f0117f8967f556c3c026747a3
2022-11-28 19:15:43 +00:00
Beth Thibodeau
7ca3dd1d74 [automerger skipped] Merge "Initialize horizontal panel as GONE and add logs" into tm-dev am: 2d2cda16fc am: 4738db29e2 -s ours
am skip reason: Merged-In Ic338a0c7772410bdb0964e4686ac0283947e657c with SHA-1 09855a1123 is already in history

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

Change-Id: I19bb86aedc6913eefccb78e85e5ff2cb88c7a68c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 18:57:19 +00:00
Fabian Kozynski
04088cff0e Merge "Restrict panels to preferred apps" into tm-qpr-dev 2022-11-28 18:34:42 +00:00
Jay Aliomer
1f0592c9ea Merge "Revert "Revert "Enable DemoMode for new QS clock""" into tm-qpr-dev 2022-11-28 18:33:02 +00:00
Beth Thibodeau
4738db29e2 Merge "Initialize horizontal panel as GONE and add logs" into tm-dev am: 2d2cda16fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20551664

Change-Id: Ib56eda70593fcf94d873cc5379fb7d17409525b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 18:32:46 +00:00
Shawn Lee
4dfa86ae18 Merge "Fixed animation breakage when QS area tapped during expand/collapse" into tm-qpr-dev 2022-11-28 18:13:48 +00:00
Beth Thibodeau
73bf6685f6 Simplify config changes and request media host layout updates
- Each QSPanelController* class had its own OnConfigurationChangeListener,
  in addition to an overridable method in the base class that was called
  in the listener - moved the child class listener code into that method
  so there's a single listener registered.
- When reattaching the media host after an orientation change,
  explicitly call setLayoutParams to ensure that a layout update is
  requested
- Add more info about current config to dumpsys

Bug: 198319256
Test: atest com.android.systemui.qs
Test: manual - verify media view looks correct when rotating
Change-Id: I5b34ba85e98b4fbf8fe3b24893d0423146aa5f75
Merged-In: I5b34ba85e98b4fbf8fe3b24893d0423146aa5f75
(cherry picked from commit 48cd3b609d)
2022-11-28 18:03:06 +00:00
An An Yu
5f5f20fd8e Remove @Nullable annotation for onConfigurationChanged.
Test: none

Bug: 237342281
Change-Id: Ia9e971152b7e297a78d79cbb79690f66d3029c9f
2022-11-28 18:01:14 +00:00
Beth Thibodeau
2d2cda16fc Merge "Initialize horizontal panel as GONE and add logs" into tm-dev 2022-11-28 17:55:55 +00:00
Matt Pietal
3c255ba900 [automerger skipped] Merge "[DO NOT MERGE] Keyguard - Treat messsages to lock with priority" into rvc-qpr-dev am: 493f00624f -s ours am: 05b8999152 -s ours am: de32f78b27 -s ours am: 683a5f0988 -s ours am: 75f88336ac -s ours am: 26146c573d -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ib1a98c0aa4a132ab74e490004d5504b71a8b5439
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 17:25:42 +00:00
Matt Pietal
84ddc987c8 [automerger skipped] [DO NOT MERGE] Keyguard - Treat messsages to lock with priority am: 51c5dae6bb -s ours am: 2d7c67b6bf -s ours am: d72736e00c -s ours am: 17c6a6435a -s ours am: fbcc3f3f51 -s ours am: fdae47e4c7 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Icc405631f078042f164e38880b297a6a94e69bad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 17:25:34 +00:00
Chris Poultney
aebffa1f2a Merge "Add override to WallpaperManager.peekBitmapDimensions with which param" into tm-qpr-dev 2022-11-28 17:11:06 +00:00
Oleg Blinnikov
82d0be71f5 Add rounded corners to letterbox when taskbar is visible
Previously letterbox corners were not rounded
when taskbar was minimized.

This is because taskbar insets height was
smaller than taskbar_frame_height

This check is not necessary, and crop
of the application window is applied correctly

Change-Id: Ib3f0737b6cfd593a7bf3dbf9205e4cc9a3f9b506
Bug: 259679233
Test: manual
2022-11-28 17:05:04 +00:00
Matt Pietal
26146c573d [automerger skipped] Merge "[DO NOT MERGE] Keyguard - Treat messsages to lock with priority" into rvc-qpr-dev am: 493f00624f -s ours am: 05b8999152 -s ours am: de32f78b27 -s ours am: 683a5f0988 -s ours am: 75f88336ac -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ifee366969a30f66a978eabf70a0cb5968cbf2a63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 17:01:07 +00:00
Matt Pietal
fdae47e4c7 [automerger skipped] [DO NOT MERGE] Keyguard - Treat messsages to lock with priority am: 51c5dae6bb -s ours am: 2d7c67b6bf -s ours am: d72736e00c -s ours am: 17c6a6435a -s ours am: fbcc3f3f51 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ie8fd2581eb82adffcdc7519a046918fec60d72c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 17:01:02 +00:00
Hawkwood Glazier
876efc4b26 Ensure final height of UMO transition is the hostView's height
Since the targetHost should be measured correctly, and it sets
the child view's size when it is added (either by remeasuring
or by directly setting it), setting it again to the target bounds
is unnessecary and potentially buggy.

Additionally, when we obtain a view state, we always obtain it
at an expansion of 1f. This prevents any squishiness from being
applied when remeasuring.

Test: Manual
Bug: 232528163
Change-Id: I0a4e6c457663dfe376ad7754f6d151f47d3aeaf3
2022-11-28 18:00:12 +01:00
TreeHugger Robot
36c8d8681b Merge "[SB Refactor] Implement a table log buffer." into tm-qpr-dev 2022-11-28 16:52:52 +00:00
Matt Pietal
75f88336ac [automerger skipped] Merge "[DO NOT MERGE] Keyguard - Treat messsages to lock with priority" into rvc-qpr-dev am: 493f00624f -s ours am: 05b8999152 -s ours am: de32f78b27 -s ours am: 683a5f0988 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I933252b7402348c2cf298133a28bdff0c12a77a4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 16:22:45 +00:00
Matt Pietal
fbcc3f3f51 [automerger skipped] [DO NOT MERGE] Keyguard - Treat messsages to lock with priority am: 51c5dae6bb -s ours am: 2d7c67b6bf -s ours am: d72736e00c -s ours am: 17c6a6435a -s ours
am skip reason: subject contains skip directive

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

Change-Id: I255e2e365e02456e79f861c7e1d6ca23b96dae0e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 16:22:08 +00:00
Matt Pietal
683a5f0988 [automerger skipped] Merge "[DO NOT MERGE] Keyguard - Treat messsages to lock with priority" into rvc-qpr-dev am: 493f00624f -s ours am: 05b8999152 -s ours am: de32f78b27 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ibb546d811b13433d569fbaae29924d89d1206551
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 15:55:47 +00:00
Matt Pietal
17c6a6435a [automerger skipped] [DO NOT MERGE] Keyguard - Treat messsages to lock with priority am: 51c5dae6bb -s ours am: 2d7c67b6bf -s ours am: d72736e00c -s ours
am skip reason: subject contains skip directive

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

Change-Id: I1fcb6a4775af3498ac98fb26dbc818e2c531b16e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 15:55:28 +00:00
Matt Pietal
de32f78b27 [automerger skipped] Merge "[DO NOT MERGE] Keyguard - Treat messsages to lock with priority" into rvc-qpr-dev am: 493f00624f -s ours am: 05b8999152 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iaf9a22f255361ff1400814622e1cbf89ac586f61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 15:26:45 +00:00
Matt Pietal
d72736e00c [automerger skipped] [DO NOT MERGE] Keyguard - Treat messsages to lock with priority am: 51c5dae6bb -s ours am: 2d7c67b6bf -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iaea9152ee45b491d22149898b058bc20f5a685b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 15:26:30 +00:00
Matt Pietal
05b8999152 [automerger skipped] Merge "[DO NOT MERGE] Keyguard - Treat messsages to lock with priority" into rvc-qpr-dev am: 493f00624f -s ours
am skip reason: subject contains skip directive

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

Change-Id: I1e6f5147b3e5394152244ddb5a5e143e16f6ca45
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 14:51:28 +00:00
Matt Pietal
2d7c67b6bf [automerger skipped] [DO NOT MERGE] Keyguard - Treat messsages to lock with priority am: 51c5dae6bb -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ia9ec74eab2d09febd9b31c810cae75c2025693d2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-28 14:50:57 +00:00
Jay Aliomer
55202753f7 Revert "Revert "Enable DemoMode for new QS clock""
This reverts commit 7a1df387ef.

Reason for revert: Fixing original failure

Change-Id: Iae0abe01212f72dd21fbd4dd79634e2a954049be
2022-11-28 14:49:14 +00:00
Brad Hinegardner
072497479a Create Flashlight Prebuilt quick affordance
Bug: 256687331
Test: New Unit test, verified manually via toggling flag and activating flashlight quick affordance
Change-Id: I833f60bcd0f6b2f4049a0a2a5de2de0b41f6283f
2022-11-28 09:38:46 -05:00
Johannes Gallmann
91265752f1 Merge "Add androidx.core.animation dependency for better testability" into tm-qpr-dev 2022-11-28 13:53:24 +00:00