Commit Graph

813479 Commits

Author SHA1 Message Date
Matt Pietal
89965d1c75 Merge "Disable light reveal migration in teamfood; it is not and was not ready." into tm-qpr-dev 2022-12-12 17:20:55 +00:00
Shawn Lee
3d50899537 Merge "Added logging for setting mMotionAborted in NPVC" into tm-qpr-dev 2022-12-12 17:20:32 +00:00
Winson Chung
b7489ff5eb Add missing device config permission
Bug: 257123734
Test: Presubmit
Change-Id: I30a50392c726591cec4a1b09f1e2834de5f85668
2022-12-12 17:18:51 +00:00
Alex Florescu
e8fdf35124 Merge "Revert "[Bouncer] refine entry for bouncer user switcher."" into tm-qpr-dev 2022-12-12 17:15:38 +00:00
Jorge Gil
33b9c7f1e0 Merge "Let DesktopModeController reorder tasks on TO_FRONT transitions" into tm-qpr-dev 2022-12-12 17:11:23 +00:00
Yuri Lin
af6ed7e4d9 Merge "Add UiEvents for cancellation reasons previously not covered" into tm-qpr-dev 2022-12-12 17:10:26 +00:00
Alison Cichowlas
6cfbbf7415 Merge "Register VolumeDialogImpl dumpable." into tm-qpr-dev am: b2ab9d9433
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20542889

Change-Id: I0aa6f8fe466e399051ad80e4c8da4769b79e77d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 17:02:38 +00:00
Kholoud Mohamed
ebd8e686dd Prevent uninstalling the device management role
Bug: 249047613
Test: manual
Change-Id: I071e049a01f8e638a289a8b6082fc9a4494ca6dd
2022-12-12 16:57:58 +00:00
Michal Brzezinski
f1984df1f3 Forcing closing QS when going from SHADE_LOCKED to KEYGUARD
This is follow-up to ag/20411848 which fixed scrims showing up when going from expanded shade to keyguard with power double press.
The original CL missed the case of going to keyguard from SHADE_LOCKED state, so it's added here.

Fixes: 251025114
Test: NotificationPanelViewControllerTest
Change-Id: I95283f64bc43f2dc45a58cb4ff4b9fff5ffd1799
2022-12-12 16:53:01 +00:00
Alison Cichowlas
b2ab9d9433 Merge "Register VolumeDialogImpl dumpable." into tm-qpr-dev 2022-12-12 16:37:32 +00:00
Hassan Ali
5c25dffac3 Merge "Add framework-configinfrastructure.stubs lib" am: 6192fb8f35 am: ca37855a67
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2333936

Change-Id: I5dc65b05d8e096afe885e68b6fd4a64e346cf9d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 16:23:28 +00:00
Miranda Kephart
6e830364a6 Switch to "quiet" screenshot success when window destroyed
Currently, if the screenshot UI is dismissed before the screenshot
finishes saving, we'll get a spurious "SCREENSHOT_INTERACTION_TIMEOUT"
log. This is because the screenshot saving triggers
"showUiOnActionsReady", which updates the UI and resets the timeout.
Updating the UI is a no-op in this situation since the window/view
are no longer attached, but the timeout is reset, causing a
timeout log six seconds later.

It doesn't make any sense to try to show UI after dismissal, so we
should just do the same thing we do for the "old" screenshot during
successive screenshots and save silently.

Bug: 262242456
Fix: 262242456
Test: make statsd_testdrive && $ANDROID_HOST_OUT/bin/statsd_testdrive 90
Change-Id: I0de70d839502c7799da8a8b31e69cfbca0955bd4
2022-12-12 11:09:07 -05:00
Caitlin Shkuratov
6fdfe2a862 [Chipbar] Enable chipbar to handle chipbars with different priorities.
This CL re-writes almost everything about how chipbar works,
unfortunately. I realized there were some bugs in the implementation of
handling multiple chipbars at once, and with the addition of priorities
it made it easier to just start from scratch.

Fixes: 261895766
Fixes: 258019006

Test: ttt chipbar then active unlock chipbar -> active unlock chipbar
shown, ttt chipbar re-shows after the active unlock chipbar disappears
Test: active unlock chipbar then ttt chipbar -> active unlock chipbar
still displayed, ttt chipbar shows up after active unlock disappears
Test: ttt flow from started -> triggered -> succeeded
Test: ttt flow works for multiple IDs
Test: ttt chipbar, then active unlock chipbar, then ttt chipbar with
updated info -> when active unlock chipbar disappears, ttt chipbar with
updated info *and updated timeout* is displayed
Test: atest TemporaryViewDisplayControllerTest

Change-Id: I7f077f7e05834c34cfd05ab72e307d2798a18ddf
2022-12-12 15:57:02 +00:00
Hassan Ali
ca37855a67 Merge "Add framework-configinfrastructure.stubs lib" am: 6192fb8f35
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2333936

Change-Id: I8687dafdcd1144d1dc80e4c77f8bcb7fa232f536
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 15:53:53 +00:00
Vadim Caen
d981f36641 Adding OWNERS of virtual device as owner of the related tests
Change-Id: I04d43328b2da93c12ba373efced4dc89181fc674
Test: N/A
Bug: N/A
2022-12-12 15:44:24 +00:00
Anton Potapov
4f5395dc32 Merge "Revert "Move NetworkControllerImpl to @LongRunning thread to prevent @Background from being stuck"" into tm-qpr-dev am: 24e16e4a21
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20689186

Change-Id: I8e92709657d9a7ca9eb156531f4d0c160c2a0b43
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 15:15:21 +00:00
Shaowei Shen
36bb7c3161 Merge "[Output Switcher] [Group by Type] Add MediaItem to store data" into tm-qpr-dev am: f537e31939
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20641148

Change-Id: I5ab87cbd0dc822af5a915b80e1c14466237cd310
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 15:14:27 +00:00
Hassan Ali
6192fb8f35 Merge "Add framework-configinfrastructure.stubs lib" 2022-12-12 15:11:30 +00:00
Anton Potapov
24e16e4a21 Merge "Revert "Move NetworkControllerImpl to @LongRunning thread to prevent @Background from being stuck"" into tm-qpr-dev 2022-12-12 15:07:55 +00:00
Shaowei Shen
f537e31939 Merge "[Output Switcher] [Group by Type] Add MediaItem to store data" into tm-qpr-dev 2022-12-12 14:56:51 +00:00
Beverly
142812d152 Make sure aodInterrupts are cancelled am: b681e2f5a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20670987

Change-Id: I295d55b643392373f059a46cfc54c71c6826c5e5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 14:44:58 +00:00
Beverly Tai
1ea9048f4f Merge "Allow UDFPS to be triggerd from AOD_PAUSED state" into tm-qpr-dev am: 631554e252
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20670986

Change-Id: I85aa6e7915e44978bce9079d1eb5c2a968629245
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 14:42:05 +00:00
Fabian Kozynski
8bb840de27 Merge changes from topic "261990919" into tm-qpr-dev am: 938aed255a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20692108

Change-Id: I04ff6149d5378482dd8ce7fb7a9fdc21637e0010
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 14:39:27 +00:00
Vania Januar
1be537d0f7 Flag for USI low battery notifications.
Bug: 250908244
Test: is just a flag
Change-Id: I33f5c48cdc2b0f693a0583e187d16057e075a233
2022-12-12 14:28:56 +00:00
Beverly
b681e2f5a8 Make sure aodInterrupts are cancelled
Else, the UDFPS fingerDown state can be stale
and cause downstream bugs (ie: remaining in the screen on state
instead of transitioninf back to AoD since the DozeMachine
thinks that the user is still interacting with UDFPS).

Test: manually fail UDFPS from AoD, observe device goes back
into DOZE_AOD 5+ seconds after the fingerprint failure
Test: atest UdfpsControllerTest
Fixes: 261758656

Change-Id: Ied60ead5aae4f00e57d0e9457581bf3796392aca
2022-12-12 14:26:05 +00:00
chiachangwang
75a2cb1e22 Use new VpnTransportInfo constructor
Use new VpnTransportInfo with extra boolean to indicate whether
long-lived TCP connections are expensive in the VPN network.

Bug: 259000745
Test: atest FrameworksNetTests
Change-Id: If8b717a65a204b26e6fbffee698c17294ce64931
2022-12-12 14:25:34 +00:00
Beverly Tai
631554e252 Merge "Allow UDFPS to be triggerd from AOD_PAUSED state" into tm-qpr-dev 2022-12-12 14:17:48 +00:00
Fabian Kozynski
938aed255a Merge changes from topic "261990919" into tm-qpr-dev
* changes:
  Allow any app to show panel, based on flag
  Add flag to allow panels for all apps
2022-12-12 14:17:40 +00:00
Beverly
4f8dbef6bd Allow UDFPS to be triggerd from AOD_PAUSED state
And from the AOD_PAUSING state.

So if users immediately attempt UDFPS right after
the prox sensor has become unblocked, the
authentication will still go through rather than
being dropped. The UDFPS longpress gesture is also
prox gated (by the sensor), so this is a safe change.

Test: programmatically set DOZE_AOD_PAUSED and see that UDFPS
longpress can still be triggered when prox isn't blocked
Test: atest DozeTriggersTest
Fixes: 244011650
Change-Id: Ic4f7956cb6082bec5c55d5177c8546e12b969378
2022-12-12 14:17:19 +00:00
omarmt
784ccbdc54 Add reset PULSING roundness on NotificationEntry removed
Test: atest HeadsUpAppearanceControllerTest
Test: manual test
Bug: 261963279
Change-Id: I617b06f9e4c05b2bfbccf1e77d0c7eaf12106b91
2022-12-12 14:05:17 +00:00
Riddle Hsu
c974894b15 Merge "Use seamless for collecting transition with fixed rotation" into tm-qpr-dev am: 1b89cdbde8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20674431

Change-Id: Ia7969ec38d2e93717096cd7580d195549c7ad9a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 14:01:55 +00:00
Caitlin Shkuratov
a2c8f68c08 [SB Refactor] Implement tinting in the new wifi view.
Bug: 238425913
Test: manual: Verify wifi icon updates to be the same color as all the
other status bar icons (e.g. light vs dark mode)
Test: atest MobileStatusBarWifiViewTest

Change-Id: I132cc62a8f8b69fc750c5f0b34750f5a1151be76
2022-12-12 14:00:58 +00:00
Riddle Hsu
1b89cdbde8 Merge "Use seamless for collecting transition with fixed rotation" into tm-qpr-dev 2022-12-12 13:31:57 +00:00
Android Build Coastguard Worker
5562aa5f71 Merge cherrypicks of ['ag/20707506'] into tm-qpr2-release.
Change-Id: I263826e8c5edbabd55c3e6adc0f5a62f934d8a3f
2022-12-12 13:26:34 +00:00
Alex Florescu
cbc06e5ac9 Revert "[Bouncer] refine entry for bouncer user switcher."
This reverts commit 66430ca292.

Reason for revert: b/261941458

Change-Id: Id77e5e37c2d6117d54dbbf17d1f4a6b5c0cffd48
(cherry picked from commit 4da665d4a4)
Merged-In: Id77e5e37c2d6117d54dbbf17d1f4a6b5c0cffd48
2022-12-12 13:26:27 +00:00
Jordan Demeulenaere
ef818aeab8 Merge changes from topic "sysui-typography" into tm-qpr-dev am: d964925ed8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19500381

Change-Id: I0dbe7832bb19ee02db38b0cb153dc912b64b2b07
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 12:52:05 +00:00
Jordan Demeulenaere
3eb0ba03eb Define the SystemUI typography am: 8c222cabb6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19500380

Change-Id: I31b5cf7035ee591f980dc5a291eda1cceeca450e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 12:51:22 +00:00
Fiona Campbell
4be1126d25 Allow No Sensor to be Specified in DDC
Adding the following:
<proxSensor/>

to the DDC, will stop any fallback from being used, and allow the usage
of no sensor to be used for that display. This is useful for when a
display has no sensor and the fallback should not be used. If this is
not added to the ddc, the fallback will still only occur if the display
is the default display.

Bug: 202604469
Test: dumpsys display | grep mProximitySensor
Test: com.android.server.display
Change-Id: I018b334a443f6b9a36aaeca70c673bac86446402
Merged-In: I8508a191b7c7c5990929e4d020ffd144c7faeef7
2022-12-12 12:20:08 +00:00
Jordan Demeulenaere
d964925ed8 Merge changes from topic "sysui-typography" into tm-qpr-dev
* changes:
  Remove references to "google-sans" in SystemUITypography
  Define the SystemUI typography
2022-12-12 11:59:34 +00:00
Aurélien Pomini
91e37785db Add trace to generateCrop in wallpaperManagerService
generateCrop does some IO operations and could be responsible for some lock contention; it is useful to know how long it takes to run.

Test: treehugger
Bug: 247076432
Change-Id: I710641d3b15eeca7a34cf6a6b508e769b6604532
2022-12-12 11:36:52 +00:00
Aurélien Pomini
38545343c6 Remove usage of GlEngine
The new Engine of ImageWallpaper, a CanvasEngine, was enabled in droidFood under a flag. It has been tested for several weeks and is ready to be enabled by default, wihtout any flag.

The ImageWallpaperTest has been slightly refactored to fix all warnings and reintroduce two GL tests that were ignored.

A very small fix was added in ImageWallpaper.java: if the bitmap fails to load (which should not happen) for another user than USER_SYSTEM, it will be reset to default for this user and not for USER_SYSTEM.

Test: atest ImageWallpaperTest
Test: atest WallpaperLocalColorExtractorTest
Fixes: 243768810
Bug: 243402530
Bug: 254512923
Change-Id: I0bfbe9b6aee7a4da349b412399196504511b69f0
Merged-In: I0bfbe9b6aee7a4da349b412399196504511b69f0
2022-12-12 11:36:38 +00:00
Nick Chameyev
0636a8fb4a Merge "[Unfold transition] Add haptics effect" into tm-qpr-dev am: 37b5e8b974
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20402666

Change-Id: I820d081269cee8f8b29ba554399146585ab970d2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 10:59:46 +00:00
Alex Florescu
4da665d4a4 Revert "[Bouncer] refine entry for bouncer user switcher."
This reverts commit 66430ca292.

Reason for revert: b/261941458

Change-Id: Id77e5e37c2d6117d54dbbf17d1f4a6b5c0cffd48
2022-12-12 10:46:36 +00:00
Nick Chameyev
37b5e8b974 Merge "[Unfold transition] Add haptics effect" into tm-qpr-dev 2022-12-12 10:17:18 +00:00
Nick Chameyev
61e549a232 [Unfold transition] Add haptics effect
Adds haptics effect when the animation is about
to end. The effect is played when the animation is
cancelled because of timeout or when the device
is unfolded quickly.

Bug: 200555479
Test: atest com.android.systemui.unfold.progress.PhysicsBasedUnfoldTransitionProgressProviderTest
Test: manual test
Change-Id: I0d6c8098b1c86e37547793644bf450d69c166c50
2022-12-12 10:16:36 +00:00
shaoweishen
0160b80640 [Output Switcher] [Group by Type] Add MediaItem to store data
Apply new class MediaItem to store item in the list, this change will
not have impact on layout and functionality should remain the same.
This is first refactor stage of making OutputSwitcher support custom
item, which will be used to apply grouping devices by type request.

design: go/output-switcher-custom-items

Bug: 255124239
Test: atest MediaOutputAdapterTest MediaOutputControllerTest MediaOutputBaseDialogTest MediaOutputDialogTest
Change-Id: Ibda4f0af1204d9e9eb48a3137d50ab591a276319
2022-12-12 09:52:13 +00:00
Anton Potapov
047f064575 Revert "Move NetworkControllerImpl to @LongRunning thread to prevent @Background from being stuck"
This reverts commit 4db94a0a62.

Reason for revert: Performance regression found: b/261773357. I'll rework this with a completely separated thread.

Change-Id: I1ea65fdeeeb1693ba283f446dee9ba92d148442d
Fixes: 261773357
2022-12-12 09:23:33 +00:00
Jeff Chang
eedcc99716 Merge "Check lock-task mode if task_on_home is applied" into tm-qpr-dev am: 2016b1dcd1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20673616

Change-Id: Ifec394bfa5e6b9e9bf327dc1cae96b719386e308
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 06:48:31 +00:00
Jerry Chang
21db01d2d3 Update to check package name for multi-instnaces split
Update to check package name to determine whether it is launching the
same app adjacently or not instead of checking component name. This is
to cover more cases when the running task was started from a different
component with its app icon.

Bug: 255224696
Test: atest WMShellUnitTests
Test: check with the repro steps in bug.
Change-Id: I135d6cf518cda603484824dfae61290672f443c7
2022-12-12 06:16:59 +00:00
Jeff Chang
2016b1dcd1 Merge "Check lock-task mode if task_on_home is applied" into tm-qpr-dev 2022-12-12 06:00:52 +00:00