Commit Graph

781408 Commits

Author SHA1 Message Date
Caitlin Shkuratov
be24f1ce19 [SB Refactor] Add a flag to enable/disable icon debug colors.
Also remove some deprecated flags.

Fixes: 254512623
Fixes: 254512660
Bug: 238425913
Test: `adb shell cmd statusbar flag 611 on` -> icon shown in bright
debug colors
Test: `adb shell cmd statusbar flag 611 off` -> icon shows in normal
colors

Change-Id: I1cb97e5b12d1f26cd59d92fc0c670aadb59810b6
2022-11-30 20:37:01 +00:00
Vinit Nayak
54ede0bfca Ignore cropping taskbar for top app in split portrait
* See ag/20470413

Bug: 219411750
Test: Swipe up w/ stashed taskbar in portrait.
Thumbnail cutout doesn't appear when dragging to
fullscreen

Change-Id: I5f8279a3d7a1cfe14c6fafaa15307d258a6f2f10
2022-11-30 11:56:39 -08:00
Fabian Kozynski
dc5ae0129f Merge "Add repository for controls related settings" into tm-qpr-dev 2022-11-30 19:26:28 +00:00
maryam
b977f682d8 Rename WindowDecorModelView to reflect purposes
Changed method names in WindowDecorModel Interface to better reflect
their purposes and made onTaskChanging (Previously
setupWindowDecorationForTransition) to handle captionCreation if needed.

Test: Manual Testing and created CaptionWindowDecorViewModelTests
Bug: 257288823
Change-Id: I43672fa37accba97b4ea330e01082d00137a4b01
2022-11-30 11:09:06 -08:00
Josh Tsuji
206f2e7894 Migrate LightRevealScrim and all dependencies to flows.
Bug: 195430376
Test: atest LightRevealScrimRepositoryTest
Test: atest LightRevealScrimInteractorTest
Change-Id: I5ddede5301b4f3cf92d678e9276785823ae29d25
2022-11-30 14:05:59 -05:00
Jorge Gil
789c3395b6 Sort tasks by Z-order instead of lastActiveTime
lastActiveTime is not a reliable way to determine the Z order of
freeform tasks because it misses Z order changes of already
visible tasks (e.g. when bringing a semi occluded task to the top).
This change keeps track of the freeform task's Z-order by observing
TaskListener's appear/vanish and focus changes.

Bug: 258056163
Test: atest DesktopModeControllerTest DesktopModeTaskRepositoryTest
Test: manual:
 1. Clear all open tasks and enable desktop mode
 2. Launch YT from taskbar
 3. Launch Gmail from taskbar
 4. Tap on YT to bring to front
 5. Launch Photos from taskbar
Top->bottom order is Photos, YT, Gmail

Change-Id: I6f2751b32f43d7b8ac2f97ce4c06be7ffa4dec11
2022-11-30 19:02:32 +00:00
Aaron Liu
93bd046b16 [Bouncer] destroy and recreate view when...
Reloading color. In consequence, I removed as many reloadColor methods
from within the bouncer hierarchy as I could that were safe to remove.
By destroying the view, the newly inflated view should have the updated
colors.

Fixes: 260095692
Test: View pattern view after setting dark theme on and off.
Change-Id: Ic7037b06fc9b870fb9cb31af1bd7fdca0a12dbc0
2022-11-30 11:01:32 -08:00
Matt Pietal
4750e9657d Fix keyguard -> shade_locked scrim transition
A recent fix to not apply the bouncer scrim exposed this bug, where
pulling down the shade over the lockscreen was not correctly setting
the notif scrim.

Remove the hardcoded BLACK value, and align with all other ScrimStates
to use conditional logic for mClipsQsScrim.

Fixes: 259684978
Test: atest ScrimControllerTest
Test: manual pull down shade and use bouncer over lockscreen, in
regular and split shade modes

Change-Id: I057fad9149523e418f909bade90490effdc26eb5
2022-11-30 18:18:56 +00:00
Chandru
cd7dcc5983 Stop face auth if occluding app doesn't want face auth.
Fixes: 259521464
Test: atest KeyguardUpdateMonitorTest
Test: manually,
    1. Enroll face auth (Bypass or non-bypass doesn't matter)
    2. Lock the phone
    3. Open bouncer to unlock (face auth lock out state doesn't matter).
    4. Enter the pin/pattern/password to unlock
    5. Camera protection ring should not grow in size, scanning animation should not show up.

Change-Id: Ic35d8538a97bdab3ed22456f5055cbe20f1b56a1
2022-11-30 18:13:06 +00:00
Rahul Banerjee
d1b6b789e1 Enable SysUI Predictive Back in teamfood.
Bug: 255854141
Test: manual, and passed presubmit
Change-Id: I502967bd0c39206442cf98bea227f21363773798
2022-11-30 10:10:10 -08:00
Massimo Carli
016a8af1bc Shows "App isn't installed" while tapping on Home on Tablet
Fixes the problem about launching a letterboxed app
from home having the "App isn't installed" message.

Fixes: 260188035
Test: Launch apps from Home and check they all start without the
"App isn't installed" message

Change-Id: Ib7915841c290e82f45a43d20024a6f3d50127ce0
2022-11-30 18:05:59 +00:00
Alejandro Nijamkin
52b30beb2d Support animatable icons to quick affordances.
This CL adds support for animatable icons for quick affordances. It
starts by supporting them in the flashlight affordance.

Fix: 259295242
Test: manually tested the flashlight affordance. Made sure that toggling
it on and off properly animates the icon and that turning the display
off and on again does not animate the icon again.

Change-Id: I4e6d261fba0431e72c3df5904510ae89469e0177
2022-11-30 17:55:48 +00:00
Ale Nijamkin
eda61eeeeb Merge "Multi-user customizable quick affordances." into tm-qpr-dev 2022-11-30 17:51:53 +00:00
Miranda Kephart
ed0f72dae0 Merge "Turn on clipboard remote behavior by default" into tm-qpr-dev 2022-11-30 17:48:17 +00:00
Miranda Kephart
81a1b8bb85 Merge "Add null check for quick share intent" into tm-qpr-dev 2022-11-30 17:48:03 +00:00
Hawkwood Glazier
4714ab1317 Fix clock being too low in AOD
To fix the clock being too low, this undoes the relevant portions of
I3feea196bf348630697385e010a13955cdb0a897. We'll want to revert this
when we figure out why the clock is moving so low in AOD.

The clock still moves vertically a significant distance when entering and leaving AOD, but not so much as to overlap with the UDFPS/lock icon. I'm continuing to investigate what's causing that.

Test: Manual
Bug: 259758161
Change-Id: Iaeddce2d99a2b8db5afb6ac8ca508eeab3ae223e
2022-11-30 17:41:04 +00:00
Caitlin Shkuratov
c5cd47b216 [SB Refactor] Make some wifi pipeline classes into interfaces.
This is needed for WifiScreenshotTest so that more of the pipeline can
be faked out.

Bug: 238425913
Test: manual: verified new wifi icon still works
Test: atest WifiScreenshotTest
Test: atest all tests in statusbar.pipeline
Change-Id: I335451e62c5db01143226d7cdc3ee29b93301bf2
2022-11-30 17:08:54 +00:00
Yining Liu
6aeb8d9a44 Merge "Add logs to NotificationWakeUpCoordinator for bugreports" into tm-qpr-dev 2022-11-30 16:56:22 +00:00
Julia Tuttle
cd694efc2c Merge "Suppress HUNs for notifications with old whens" into tm-qpr-dev 2022-11-30 16:54:06 +00:00
Brad Hinegardner
6024e65930 Merge "Add margin above ambient indication container" into tm-qpr-dev 2022-11-30 16:30:32 +00:00
Tyler Gunn
92253d3b8f Add "not supported" string for MMI codes not supported by network.
Bug: 230841132
Test: Added new unit tests to verify the correct message is generated
when the network reports that a feature is not supported.

Change-Id: Idc7dc648dbe001d39d2e5a02803df38d98589aaf
Merged-In: Idc7dc648dbe001d39d2e5a02803df38d98589aaf
2022-11-30 16:01:21 +00:00
Beverly
dd9429a1d4 isUnlockingWithFaceAllowed checks lockout state
Test: atest KeyguardUpdateMonitorTest
Fixes: 245778799
Change-Id: Iee41b66823d75f7c020c93b5779b3d388cf004db
2022-11-30 15:55:52 +00:00
Victor Truong
55b3aa6dad Merge "Change shadow of cast icon in Dream." into tm-qpr-dev 2022-11-30 15:49:26 +00:00
Miranda Kephart
6b37d71772 Merge "Announce saving screenshot to work profile" into tm-qpr-dev 2022-11-30 15:17:34 +00:00
Justin Weir
dd3aaa81dc Prevent touch event dispatch on the top edge when collapsed
For some reason, touch events at y=0 can get dispatched all the
way to Quick Settings, even though it is not visible. This change
prevents that from happening in the most narrow way I could find.

Fixes: 235889526
Test: atest and manual
Change-Id: Iedbb3b55a94864d320b886ba7c29913ad4b8b145
2022-11-30 10:00:07 -05:00
Jerry Chang
66d7124d33 Revert "Fix win mode issues for unresizable apps"
This reverts commit 383b0006c5.

Reason for revert: b/260695808

Change-Id: Ic2f6b57534f393731e40c210f3b7b00b7c1fa6b8
2022-11-30 14:49:05 +00:00
Bill Yi
92f6ee3b4a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iad27dc6b12f69779caabf8b424b80ed7e77aa376
2022-11-30 06:43:30 -08:00
Justin Weir
0513b9e126 Merge "Remove more methods from CentralSurfaces" into tm-qpr-dev 2022-11-30 14:37:39 +00:00
Brad Hinegardner
95799ff292 Merge "Fix no guest visible while on multi user switcher" into tm-qpr-dev 2022-11-30 14:28:00 +00:00
Bill Yi
02cae22700 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4313374d195b9da4215ebd5b9b243409acbd7534
2022-11-30 05:21:15 -08:00
Beverly Tai
13ea38e020 Merge "Removed lockdown check for detectFingerprint" into tm-qpr-dev 2022-11-30 13:19:16 +00:00
Beverly Tai
a94c4e124a Merge "For non-udfps, detectFP if primaryAuth required" into tm-qpr-dev 2022-11-30 13:19:16 +00:00
Bill Yi
c3addc163f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I848d1c6b14c57492e2a28af0d4387520a9657ade
2022-11-30 04:43:00 -08:00
Riddle Hsu
3696021485 Merge "Reduce computing unused ChangeInfo in Transition" into tm-qpr-dev 2022-11-30 12:42:23 +00:00
Riddle Hsu
a1d7b13c9c Merge "Reduce surface placement of sync group" into tm-qpr-dev 2022-11-30 12:13:36 +00:00
Riddle Hsu
57e36f7140 Merge "Remove unnecessary wallpaper adjustment on transition" into tm-qpr-dev 2022-11-30 12:12:51 +00:00
Wesley Wang
8ec7a34b7e Update charging limited string
Bug: 260687359
Test: make test
Change-Id: Ia60a61b46dda945b5446291f4ff1f94ee9605493
2022-11-30 12:00:24 +00:00
Wesley Wang
13b8dee0da Merge "Update battery list item string" into tm-qpr-dev 2022-11-30 11:57:00 +00:00
Himanshu Gupta
22f1c3612a Fixing Storage Volume(s) Retrieval.
With ag/19901205 shared_profile's volumes were also listed in
StorageManager#updateExternalStorageFileQuotaType.

However, the above API can be called from MediaProvider process,
without MANAGE_EXTERNAL_STORAGE permissions, resulting in
SecurityException("Only File Manager Apps permitted") to be thrown
from StorageManagerService#getVolumeList

This fix allows the exception to be bypassed in case the caller is
Media Store process.

Bug: 235321217
Test: atest android.appsecurity.cts.StorageHostTest
Change-Id: I6835cc4d29f3e9c85731979aaf9ab12a30f6419b
(cherry picked from commit 65a5b2db39)
Merged-In: I6835cc4d29f3e9c85731979aaf9ab12a30f6419b
2022-11-30 11:17:08 +00:00
Riddle Hsu
4733e7031a Fix NPE from startNewTransition
With shell transition, the token can be null from
WindowOrganizerController#startNewTransition.
E.g. entering split screen.

Bug: 258913831
Test: atest TransitionTests
Change-Id: I77e85c4a340a88056c8188f5da99cf57bf52197e
2022-11-30 18:15:24 +08:00
Bill Yi
b5cb17d008 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iac5322a27c67416345fbf63f8a46c10daac13aab
2022-11-30 01:03:58 -08:00
TreeHugger Robot
b18b7e97ce Merge "Convert argument to intent in ChooseTypeAndAccountActivity" into qt-dev am: e5ca4abcaa am: 3f5a4111e0 am: 1ff659dc39 am: 874161de30 am: f02cbc8f7a am: 1dea09d8f9 am: 7107fe0c76 am: a745b401e0 am: 6400fcedad
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20541824

Change-Id: Ieecb4fada3ba8689e5ab478b0c5186ca942f8081
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 08:20:30 +00:00
TreeHugger Robot
6400fcedad Merge "Convert argument to intent in ChooseTypeAndAccountActivity" into qt-dev am: e5ca4abcaa am: 3f5a4111e0 am: 1ff659dc39 am: 874161de30 am: f02cbc8f7a am: 1dea09d8f9 am: 7107fe0c76 am: a745b401e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20541824

Change-Id: I9ab3411972c604a4f886b685e2ff296cce62f55a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 07:54:04 +00:00
TreeHugger Robot
a745b401e0 Merge "Convert argument to intent in ChooseTypeAndAccountActivity" into qt-dev am: e5ca4abcaa am: 3f5a4111e0 am: 1ff659dc39 am: 874161de30 am: f02cbc8f7a am: 1dea09d8f9 am: 7107fe0c76
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20541824

Change-Id: I7bd53798d321739c2d16d23c4f361bbfbe7490af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 07:08:15 +00:00
Jerry Chang
0f31aa29c2 Consolidate leaving split screen to pip mode behavior
Stop always putting another side to the bottom when a splitting task is
entering pip mode. Leave it to onStageHasChildrenChanged to handle, and
prevent expanding non-visible side to the top after dismissed the split
screen, so flows of leaving split to pip like swipe-to-home or launching
another fullscreen app won't expand another side to top unexpectedly.

When swipe-to-home from a split pair, it dismisses split screen.
However, it also performs fling divider to dismiss animation if one side
of the split is empty due to entering pip. Which might be conflicting
with each other and leaves the split layout modified with the fling
animation but not preperly reset divide position. Update to make sure it
always resets divide position and cancel running fling animation after
split screen dismissed.

Fix: 227727673
Test: atest WMShellUnitTests
Test: verify entering pip from split behavior with back-key, home-key
      and launching another fullscreen app.
Video: http://recall/-/fLARJNt42LVxc3tt86SneW/gvATxkQhdJ0APek6RwRHel
       http://recall/-/fLARJNt42LVxc3tt86SneW/QfHt9H0XtDNDSP3h1AA8K
       http://recall/-/fLARJNt42LVxc3tt86SneW/QnbdeWo2007s8ZuMf1Syn

Change-Id: I2c53ed21e4766d06180e670ee21534cd622db081
2022-11-30 06:47:31 +00:00
TreeHugger Robot
7107fe0c76 Merge "Convert argument to intent in ChooseTypeAndAccountActivity" into qt-dev am: e5ca4abcaa am: 3f5a4111e0 am: 1ff659dc39 am: 874161de30 am: f02cbc8f7a am: 1dea09d8f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20541824

Change-Id: I24bd217056d16126c6211185f5711c86b0f560b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 06:40:09 +00:00
Ilya Matyukhin
0672ae40db Merge changes from topic "new-udfps-touch" into tm-qpr-dev
* changes:
  Integrate new touch architecture with UdfpsController
  Change computed properties to regular in UdfpsOverlayParams
  Introduce testable UDFPS touch architecture
  Add rotatePointF to RotationUtils
  Add tryDismissingKeyguard() to UdfpsController
2022-11-30 06:12:34 +00:00
TreeHugger Robot
1dea09d8f9 Merge "Convert argument to intent in ChooseTypeAndAccountActivity" into qt-dev am: e5ca4abcaa am: 3f5a4111e0 am: 1ff659dc39 am: 874161de30 am: f02cbc8f7a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20541824

Change-Id: Id86e54d8d76c8730f8a825632df60182230bfccf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 06:06:48 +00:00
TreeHugger Robot
f02cbc8f7a Merge "Convert argument to intent in ChooseTypeAndAccountActivity" into qt-dev am: e5ca4abcaa am: 3f5a4111e0 am: 1ff659dc39 am: 874161de30
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20541824

Change-Id: I3f6fe30560bce9cf6b252b7e154ace99c3c78e99
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 05:29:29 +00:00
TreeHugger Robot
874161de30 Merge "Convert argument to intent in ChooseTypeAndAccountActivity" into qt-dev am: e5ca4abcaa am: 3f5a4111e0 am: 1ff659dc39
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20541824

Change-Id: I5800c817328e3f57eea1de497be3a7b41479a87a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 04:57:09 +00:00