summaryrefslogtreecommitdiff
path: root/packages/SystemUI/tests/utils
Commit message (Collapse)AuthorAgeFilesLines
* Security fix for VPN app killable via lockscreen.Faye Yan2024-08-271-1/+3
| | | | | | | | | | | | | | | | Do not show the active apps dialog when the screen is locked. Instead prompt the user to unlock directly if clicked and only open the dialog on successsful unlock. Flag: NONE Bug: 304772709 Test: manually, locked and unlocked Test: atest com.android.systemui.qs.footer.ui.viewmodel.FooterActionsViewModelTest (cherry picked from commit d7628d5621c912399cefcddd9977199d62df320c) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:598d7a18601a04b9904f0e170cc7c1777a3389ff) Merged-In: I384699d478e5abcee3a165afc45211b9ed96334a Change-Id: I384699d478e5abcee3a165afc45211b9ed96334a
* Resolve message/conversation image Uris with the correct user idMatías Hernández2024-06-231-0/+22
| | | | | | | | Bug: 317503801 Test: atest ExpandableNotificationRowTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:83975c515773d345c64cadac1cd639ae5c4a8397) Merged-In: I11c5b39f2d9d8f0788acab43640a6d4abcd5a179 Change-Id: I11c5b39f2d9d8f0788acab43640a6d4abcd5a179
* Merge tag 'android-13.0.0_r72' of ↵George Zacharia2023-08-091-0/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 72 (TQ3C.230805.001.A3) * tag 'android-13.0.0_r72' of https://android.googlesource.com/platform/frameworks/base: Keyguard: use transition state for syncing occlude [RESTRICT AUTOMERGE] Report folding features to letterboxed apps. Send update config change when letterbox is moved Cancel current animation instead of candidate Merge "Resolve StatusHints image exploit across user." into sc-v2-dev am: e371b3018f Remove unnecessary padding code Use Settings.System.getIntForUser instead of getInt to make sure user specific settings are used DO NOT MERGE Verify URI permissions in MediaMetadata Visit URIs in themed remoteviews icons. Check URIs in sized remote views. Fix PrivacyChip not visible issue Update Pip launches to not enter pinned task if in background. Validate ComponentName for MediaButtonBroadcastReceiver Implement visitUris for RemoteViews ViewGroupActionAdd. Check URIs in notification public version. Preserve flags for non-runtime permissions upon package update. On device lockdown, always show the keyguard Ensure policy has no absurdly long strings Verify URI permissions for notification shortcutIcon. Do not load drawable for wallet card if the card image icon iscreated with content URI. ActivityManagerService: Allow openContentUri from vendor/system/product. Cancel current animation instead of candidate Report folding features to letterboxed apps. Send update config change when letterbox is moved Cancel current animation instead of candidate Cancel current animation instead of candidate Cancel current animation instead of candidate Cancel current animation instead of candidate Visit URIs in landscape/portrait custom remote views. [RESTRICT AUTOMERGE] Prevent installing apps in policy restricted work profile using ADB Verify URI permissions for EXTRA_REMOTE_INPUT_HISTORY_ITEMS. [1-time permissions] Use internal api to check proc states Watch uid proc state instead of importance for 1-time permissions Truncate ShortcutInfo Id Dismiss keyguard when simpin auth'd and... Only allow NEW_TASK flag when adjusting pending intents Grant URI permissions to the CallStyle-related ones Revert "Ensure that only SysUI can override pending intent launch flags" Ensure that only SysUI can override pending intent launch flags Revert "Improve first opaque activity candidate detection" Revert "Improve first opaque activity candidate detection" Revert "Improve first opaque activity candidate detection" Disable emoji compat initializer Disable emoji compat initializer Improve first opaque activity candidate detection Invalidate buffers on transform change Skip letterboxing if the activity below is embedded Unfreeze the surface when the transition is done Make sure to reset isFoldHandled Set corner radius to 0 when casting Refresh layout parameter for bounds change from relayout DO NOT SUBMIT: Don't ever show the build number. (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:252407fd77fcb126834be02233b799b230ee2c6e) Merged-In: I28e35f8686a66b6eb76f3a09a163c6873ca23ba0 Change-Id: I28e35f8686a66b6eb76f3a09a163c6873ca23ba0 Set corner radius to 0 when casting Refresh layout parameter for bounds change from relayout DO NOT SUBMIT: Don't ever show the build number. (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:252407fd77fcb126834be02233b799b230ee2c6e) Merged-In: I28e35f8686a66b6eb76f3a09a163c6873ca23ba0 Change-Id: I28e35f8686a66b6eb76f3a09a163c6873ca23ba0 Make sure to reset isFoldHandled Set corner radius to 0 when casting Refresh layout parameter for bounds change from relayout [RESTRICT AUTOMERGE] Always set last report configuration for starting window. Fix deadlock in BaseDataProducer. Set corner radius to 0 when casting Refresh layout parameter for bounds change from relayout Fixes foldable autorotation setting being out of sync in QS and Settings Fix split cannot active if app trampoline launch new task Update the timing of clearing SplitRequest Prevents activity being stopped while folding/unfolding device Gates RotationResolverService with a config flag Also reverse rotation for #freezeRotation path Don't show home controls complication if not available. Fixes foldable autorotation setting being out of sync in QS and Settings Fix split cannot active if app trampoline launch new task Update the timing of clearing SplitRequest Prevents activity being stopped while folding/unfolding device Gates RotationResolverService with a config flag Also reverse rotation for #freezeRotation path Update the disabled-opa navbar icon size to reflect icon change Restrict maximum size of FontInterpolator font caches Fix KeyguardSecurityContainerControllerTest Rename orientation request loop property Fixes flicker of not applying initial transform to leash Reset NSSL translationY after a transision gets cancelled AudioService: fix volume group setting name Make sure to clear outdated screenshot of splitting tasks Make sure to clear outdated screenshot of splitting tasks DO NOT MERGE Revert "Accept a Window as shown if it's in any transition" Fix home controls showing on low light dream DO NOT MERGE Fix crash related to getting the root of an unattached view Revert "Remove pip resize flicks" DO NOT MERGE Change-Id: I76f0d5e6c39a7066e44366571b6836ee4bf594f5
| * Set corner radius to 0 when castingAaron Liu2023-05-091-0/+5
| | | | | | | | | | | | | | | | | | | | | | When we are casting the device, set the corner radius to 0. Fixes: 276327242 Test: cast to device and notice that rounded corners are not there. (cherry picked from commit ae4dec818aa975d24522349468792e8546131bd0) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ebf8503944f705d497a0d3a3aadc454e3f7eb07b) Merged-In: I76427c0064c9935c76e3ec8662d6b7955bcbfd2b Change-Id: I76427c0064c9935c76e3ec8662d6b7955bcbfd2b
* | Merge tag 'android-13.0.0_r52' of ↵George Zacharia2023-08-0225-47/+684
|\| | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 52 (TQ3A.230605.012) Change-Id: Ic80f318636f1f70bbd009504352ddde511d0dead
| * [Status bar] Clarify the API between TileServices and status bar icons.Caitlin Shkuratov2023-03-151-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL re-names the StatusBarIconController APIs that are only used by TileServices to specifically have "tile" in them. Then, it's obvious why the implementation of the method considers those icons external instead of internal. This also fixes two bugs with the tile status bar icons. See first two linked bug fixes. Fixes: 273536393 Fixes: 273540833 Bug: 265307726 Test: Add tile service that has status icon -> verify icon is added (see b/265307726 for demo) Test: Remove tile service that has status icon -> verify icon is rmeoved (see b/265307726 for demo) Test: verify tile status icon is correct size Test: atest StatusBarIconControllerImplTest Change-Id: Ieac39be633e85ce5076272f9afc12f953839bedc
| * Remove visibility and show race condition.Aaron Liu2023-03-081-16/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Visibility and show were emitted by two different flows. Sometimes we were setting visibility to visible before show is called, leading to UI jank. I removed the visibility flow and added it into the show and hide flows. I also removed the hide flow for further simplification. Fixes: 263924084 Bug: 267821080 Test: Long press lock icon to show bouncer like 20 times. Test: Look at sim pin and sim puk views. Change-Id: Id5d0e86eb64844b06f6082e2c51c5a3e50c45a41
| * [DO NOT MERGE] Transitions: PRIMARY_BOUNCER -> GONEMatt Pietal2023-03-032-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the device unlocks while the bouncer is in transit, the bouncer will remain visible over the launcher for half a second while the appear animation completes while the scrim immediately disappears (while also undergoing numerous bad requests to transition to invalid states). To fix, control this animation using the transition repo instead and ignore all other incoming requests while it is running. Also, support a new mode for canceling transitions. Some transitions may want to continue from the canceled point, others may want to run the starting transition in full. Fixes: 268596047 Test: ScrimControllerTest KeyguardRepositoryImplTest NotificationShadeWindowViewControllerTest KeyguardTransitionScenariosTest KeyguardTransitionRepositoryTest Test: manual - Tested all bouncer variations, with and without face unlock Change-Id: Ib3f7587574a4445dffdd75493851ed066e3f191d
| * Merge "Revert "[DO NOT MERGE] Transitions - Smooth out bouncer -> gone"" ↵Matt Pietal2023-03-032-4/+1
| |\ | | | | | | | | | into tm-qpr-dev
| | * Revert "[DO NOT MERGE] Transitions - Smooth out bouncer -> gone"Neha Jain2023-03-022-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert submission 21608738-mpietal_smooth_bouncer Reason for revert: b/271382454 Reverted changes: /q/submissionid:21608738-mpietal_smooth_bouncer Change-Id: I44fbb56be8faab54818dc2d1b6a93c264113bff9
| * | Merge "Add basic structure for keyboard backlight indicator functionality" ↵Christian Göllner2023-03-031-0/+41
| |\ \ | | | | | | | | | | | | into tm-qpr-dev
| | * | Add basic structure for keyboard backlight indicator functionalityMichal Brzezinski2023-03-021-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - KeyboardBacklightInteractor produces events whenever keyboard backlight changes - That is consumed by BacklightDialogViewModel which based on that decides when dialog should be shown or hidden - That dialog state is consumed by KeyboardBacklightDialogCoordinator which creates and shows dialog or hides it - BacklightDialogContentViewModel is viewModel for dialog itself Flag: KEYBOARD_BACKLIGHT_INDICATOR Fixes: 268645018 Fixes: 268645743 Test: KeyboardBacklightChangeInteractorTest Test: BacklightDialogViewModelTest Change-Id: If2029ad8107e018e822237b576578444c34b9212
| * | | Merge changes Ide7d63a7,I9e075f29 into tm-qpr-devTreeHugger Robot2023-03-011-0/+1
| |\ \ \ | | |_|/ | |/| | | | | | | | | | | | | | * changes: Format files with the upcoming version of ktfmt Regenerate include file for ktfmt upgrade
| | * | Format files with the upcoming version of ktfmtJordan Demeulenaere2023-02-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL was generated automatically from the following command: $ external/ktfmt/prepare_upgrade.py --repo=frameworks/base/ --build_id=9645412 --bug_id=266197805 This CL formats all files already correctly formatted with the upcoming version of ktfmt. Bug: 266197805 Test: Presubmits Change-Id: Ide7d63a75fed98aabe348821355356c77f00a9ec Merged-In: Ide7d63a75fed98aabe348821355356c77f00a9ec
| * | | [DO NOT MERGE] Transitions - Smooth out bouncer -> goneMatt Pietal2023-02-282-1/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the device unlocks while the bouncer is in transit, the bouncer will remain visible over the launcher for half a second while the appear animation completes while the scrim immediately disappears (while also undergoing numerous bad requests to transition to invalid states). To fix, control this animation using the transition repo instead and ignore all other incoming requests while it is running. Also, support a new mode for canceling transitions. Some transitions may want to continue from the canceled point, others may want to run the starting transition in full. Fixes: 268596047 Test: ScrimControllerTest KeyguardRepositoryImplTest NotificationShadeWindowViewControllerTest KeyguardTransitionScenariosTest KeyguardTransitionRepositoryTest Test: manual - Tested all bouncer variations, with and without face unlock Change-Id: I6fdd0b796e8833539d06c8534182f1298c7e3a58
| * | Merge "Add remove app flow to the home controls panel" into tm-qpr-devAnton Potapov2023-02-271-0/+86
| |\ \
| | * | Add remove app flow to the home controls panelAnton Potapov2023-02-231-0/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing app also deletes favorites. Interface returns to the apps list when the user deletes the last app. Test: Added new tests + passing current in the same classes Bug: 265180342 Change-Id: I0549d12d666ebae73a7b987fb416963614ca6dd4
| * | | Merge "Replace user switching events with UserTracker" into tm-qpr-devAlex Stetson2023-02-241-4/+13
| |\ \ \
| | * | | Replace user switching events with UserTrackerAlex Stetson2023-02-151-4/+13
| | | |/ | | |/| | | | | | | | | | | | | | | | | Bug: 265864215 Test: atest SystemUITests Change-Id: I18923495bc3868e0f5a7d28ec55ae55525cbf044
| * | | Merge "Add repository to be the source of truth for device posture" into ↵Chandru S2023-02-242-0/+35
| |\ \ \ | | |_|/ | |/| | | | | | tm-qpr-dev
| | * | Add repository to be the source of truth for device postureChandru S2023-02-232-0/+35
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | Other changes: - Check config to see if face auth is supported by current posture Bug: 262838215 Test: atest DevicePostureRepositoryTest Change-Id: Idf5de785270b1c78e492039dfc03492b6ea5b7d6
| * / Move sidefps bouncer logic into interactor.Aaron Liu2023-02-211-4/+5
| |/ | | | | | | | | | | | | | | | | | | Also ensure that it does not show when disappear animation is running. Fixes: 264324648 Bug: 267821080 Test: open bouncer. Fold in different directions. Power off and on. Change-Id: Icc7065cab47b8adb74284715ce2813822d070c03 Merged-In: Icc7065cab47b8adb74284715ce2813822d070c03
| * Merge "Transitions - Add ALTERNATE_BOUNCER support" into tm-qpr-devBeverly Tai2023-02-153-10/+3
| |\
| | * Transitions - Add ALTERNATE_BOUNCER supportBeverly2023-02-143-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add KeyguardState.ALTERNATE_BOUNCER and distinguish this from the KeyguardState.PRIMARY_BOUNCER * Remove bouncer state from the KeyguardRepository; instead rely on the bouncer visibility states from KeyguardBouncerRepository Bug: 268240415 Test: manually check KeyguardTransitionAuditLogger logs Test: atest KeyguardInteractorTest KeyguardTransitionScenariosTest Change-Id: I130647913e5344e76e9e047f619022e7a9f1498e
| * | Merge "Clear set of "unseen" notifications when unlocked" into tm-qpr-devSteve Elliott2023-02-141-0/+31
| |\ \
| | * | Clear set of "unseen" notifications when unlockedSteve Elliott2023-02-141-0/+31
| | |/ | | | | | | | | | | | | | | | Bug: 267963644 Test: atest KeyguardCoordinatorTest Change-Id: I61200324f127f4a75ba0a7dd63c97b1423208c6e
| * / Introduce SelfExecutingMonitor for tests.Bryce Lee2023-02-141-0/+62
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | A number of tested components rely on monitors for pretext conditions. In these cases, a mocked monitor will not execute the callback in order for the logic to proceed. This change introduces and integrates SelfExecutingMonitor to handle this case. Bug: 261420432 Test: atest ComplicationTypesUpdaterTest Test: atest DreamClockTimeComplicationTest Test: atest DreamHomeControlsComplicationTest Test: atest SmartSpaceComplicationTest Change-Id: I2368bdcaa8a8a064484c160ddd95bf73882b733d
| * Merge "Allow `collectLastValue` to be used as a delegate" into tm-qpr-devMarcello Galhardo2023-02-071-3/+24
| |\
| | * Allow `collectLastValue` to be used as a delegateMarcello Galhardo2023-02-071-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | Test: manual Fixes: b/267486825 Change-Id: Ib5d733f77892ce2d01fdc6683621f5f51f87c4f4
| * | Add face auth enrollment state to BiometricSettingsRepositoryChandru S2023-02-061-0/+17
| | | | | | | | | | | | | | | | | | Bug: 262838215 Test: atest BiometricSettingsRepository Change-Id: I23a5a97796049c087ef8aefeaf0a12e44c096df0
| * | Fix sysui-studio compilation.Chandru S2023-01-311-1/+1
| |/ | | | | | | | | | | | | Bug: NA Test: NA Test: manually, tests in sysui-studio build without any errors Change-Id: I912ee7194932e0ac141d41a9604a7db89d8205a1
| * Add userSwitching state to UserRepositoryChandru S2023-01-311-0/+4
| | | | | | | | | | | | | | | | This is required to stop face auth in case the user is currently switching Bug: 262838215 Test: atest UserRepositoryTest Change-Id: I55d3a8832bf9ccae28a0d7349b173780a24265d0
| * Merge "Rename BiometricRepository to BiometricSettingsRepository." into ↵Chandru S2023-01-311-1/+1
| |\ | | | | | | | | | tm-qpr-dev
| | * Rename BiometricRepository to BiometricSettingsRepository.Chandru S2023-01-301-1/+1
| | | | | | | | | | | | | | | | | | Bug: 262838215 Test: atest BiometricSettingsRepositoryTest Change-Id: Iebb44653c29756f8bf489fb1f2c04f319ccbc7ab
| * | Merge "[DO NOT MERGE] Bouncer - Intercept touch events when not visible" ↵Matt Pietal2023-01-311-0/+128
| |\ \ | | |/ | |/| | | | into tm-qpr-dev
| | * [DO NOT MERGE] Bouncer - Intercept touch events when not visibleMatt Pietal2023-01-301-0/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a moment, when swiping on the lockscreen, that the bouncer showing state is set to true but it isn't quite visible. In this state, it is possible to interact with it. Only allow interaction if the bouncer is at least 90% visible. Also, refactor bouncer repository to an interface and add a FakeKeyguardBouncerRepository so it can be tested with coroutines. Test: atest PrimaryBouncerInteractorTest PrimaryBouncerInteractorWithCoroutinesTest Fixes: 260820843 Change-Id: I78cdf14521cc8cd02b6f2ab06e7ca518c92718c0
| * | Merge "Step 1 of Removing Ids from Flags." into tm-qpr-devDave Mankoff2023-01-301-7/+1
| |\ \ | | |/ | |/|
| | * Step 1 of Removing Ids from Flags.Dave Mankoff2023-01-261-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this change, we start relying more directly on the string names that are now associated with flags. The ids persist so that we can look up existing overrides and push them into the new system. After a couple of weeks, the plan will be to remove the ids entirely. Bug: 265188950 Test: manually built before and after cl to ensure overrides persist. Change-Id: I0faac671b43a0d24262e78ccdb4e23e44f73eeea
| * | [DO NOT MERGE] Add centralized DisplayTracker for SystemUIAlex Stetson2023-01-261-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In multi-user multi-display systems where there could be multiple SystemUI instances running, the concept of what displays are relevant for a particular SystemUI may change. By adding a DisplayTracker class to abstract away display retrieval and callbacks, these instances can return the information that is most accurate for them. Bug: 256236871 Test: atest SystemUITests Change-Id: I51c1a380a344fb45d5e0de2c5c6ba5610733a3a2
| * | Merge "Add SideFps AlternateBouncer" into tm-qpr-devBeverly Tai2023-01-261-0/+31
| |\ \ | | |/ | |/|
| | * Add SideFps AlternateBouncerBeverly2023-01-251-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only enabled if MODERN_ALTERNATE_BOUNCER is enabled. Bug: 237362467 Test: manual, normal cases 1. enable MODERN_ALTERNATE_BOUNCER flag 2. enroll side FPS 3. tap on a notification with an intent on LS 4. Observe: SideFPS bouncer, can auth from here 5. Repeat step 3 6. tap anywhere on screen 7. Observe: primary bouncer shows and side fps UI is still showing Test: manually check alternate bouncer doesn't show if fp is locked out Test: atest SideFpsControllerTest Test: atest DeviceEntryFingerprintAuthRepositoryTest Test: atest AlternateBouncerInteractorTest Change-Id: I5f02e0f67799df059a35dce34b8a12833ce5fac5
| * | Merge "Lock screen long-press to open wallpaper picker." into tm-qpr-devAle Nijamkin2023-01-252-1/+15
| |\ \
| | * | Lock screen long-press to open wallpaper picker.Alejandro Nijamkin2023-01-242-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements a long-press gesture on the lock screen that opens the wallpaper picker (WPP) screen (after properly unlocking the device). - Respects device state - Only works on the lock screen - does not work when unlocked, quick or quick-quick settings is shown, etc. - Lets other lock screen UI components receive and handle touch (including smart space, unlock/UDFPS, shortcuts, shade, and bouncer) - Flag gated - this is a brand new flag as we're not sure whether we want to roll this out and it can be rolled out berore the WPP revamp project - Logging included - logs long-press popup impressions and clicks, to help inform launch/no-launch decisions and identify falsing challenges Fix: 265987364 Test: manually verified that it matches the UX spec: does not work unless locked and showing the lock screen un-occluded (tested occlusion with the camera app). Does not work if quick settings or quick-quick settings is visible. Does not work if unlocked with or without the shade being shown. Test: manually verified that smart space clicks, notification clicks and long presses, UDFPS, and shortcut buttons all still work as advertised. Test: unit tests included Change-Id: I600f3e60a03b58691ffd66cddb1be6ff0c80b3ca
| * | | Merge "Make UserTrackerImpl use UserSwitchObserver instead of broadcast." ↵Yasin Kilicdere2023-01-251-1/+4
| |\ \ \ | | |_|/ | |/| | | | | | into tm-qpr-dev
| | * | Make UserTrackerImpl use UserSwitchObserver instead of broadcast.Yasin Kilicdere2023-01-251-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UserTrackerImp was listening to ACTION_USER_SWITCHED broadcast to do stuff that makes changes on the screen for a user switch. But since the broadcast is async (there is no way to tell back the broadcaster that the reciver has finished it's work), many times those UI changes were happening "after" the switch, whereas they should be done "while" the switch is happening, i.e. when the screen is frozen and UserSwithingDialog is visible. In order to achive this, UserSwitchObserver's onUserSwitching method should be used to do things while the screen is frozen for the user switch. This CL makes UserTrackerImpl use UserSwitchObserver instead of ACTION_USER_SWITCHED and provides onUserChanging method (in addition to already existing onUserChanged method) to it's subscribers. So that the subscribers can decide when their code should run, during or after the switch. This CL also moves work done in UserRepository from onUserChanged to onUserChanging because user pillar shown on top right of the tablet's screen was updating after the user switch. Now it updates during the switch, while the screen is frozen. Bug: 249527131 Bug: 265068243 Test: Manual visual test by adding a 5s delay to ACTION_USER_SWITCHED broadcast to make the jank consistent, and verifying the jank is gone after the fix. Test: atest UserTrackerImplTest Test: atest UserTrackerImplReceiveTest Test: atest UserRepositoryImplTest Change-Id: Ica2be8cc434cea4bb526a51eeb8171765f461172 Merged-In: Ica2be8cc434cea4bb526a51eeb8171765f461172
| * | | Merge changes from topics "265180342", "265979516_cts" into tm-qpr-devFabian Kozynski2023-01-241-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Add new add flow for panels Flag for new flows Add a persistence mechanism for panels' packages
| | * | | Add a persistence mechanism for panels' packagesFabian Kozynski2023-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow to persist the packages of apps that provide device controls panels after they are authorized (opted in) by the user. Packages that are in the seeding list (config_controlsPreferredPackages) will be auto-added, but only when creating the set of authorized package for the first time (per user). Test: atest AuthorizedPanelsRepositoryImplTest Fixes: 264414289 Change-Id: Ic23e6172158bba3cf960e81919978ec62da79150
| * | | | Merge changes from topic "predback-qs-dialog" into tm-qpr-devOmar Miatello2023-01-241-6/+12
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | * changes: Add Predictive Back animation from Dialog to QS tile Add a flag for predictive back animation in QS Dialog in Flags.kt. Add an AnimationFeatureFlags interface to access flags from AnimationLib module
| | * | | Add Predictive Back animation from Dialog to QS tileomarmt2023-01-231-6/+12
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | Test: atest BackTransformationTest Test: atest BackAnimationSpecTest Test: atest OnBackAnimationCallbackExtensionTest Bug: 238475317 Change-Id: I95bbeb3608906aa8f79177e62d94bafcf99b060c
| * / | SystemUI: remove unused code that showed radio status in CryptKeeper modeEric Biggers2023-01-231-5/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since support for Full Disk Encryption was removed in favor of File Based Encryption, "CryptKeeper mode" no longer exists and the "vold.decrypt" system property is never set. Therefore, remove the unused SystemUI code that showed the radio status in CryptKeeper mode. This is, very roughly, a revert of ag/1350315 which added this feature in 2016. However, the code has changed a bit since then. As discussed with Eric, I'm cherry picking this CL in master to tm-qpr-dev to mitigate a merge conflicts in a CL of mine and also to prevent the two branches from diverging. Bug: 208476087 Test: mp droid Change-Id: I6231762e8353113366eba92b686d6d61582fb2b7 Merged-In: I6231762e8353113366eba92b686d6d61582fb2b7