summaryrefslogtreecommitdiff
path: root/packages/SystemUI/tests
Commit message (Collapse)AuthorAgeFilesLines
* For the wallet card & icon, only allow the drawable be loaded from bitmap.Brad Lassey2025-07-081-0/+39
| | | | | | | | | | | | Test: manual Bug: 366403307 Flag: EXEMPT bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:eb5a9b8a829dace87d592c0d1c0b29f2dfc49fc0) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6030a441a422761b16453917a26d4123799e8acb) Merged-In: I0033f6ba7ce7f9b9d592e7ce44e63ba804ceb348 Change-Id: I0033f6ba7ce7f9b9d592e7ce44e63ba804ceb348 Change-Id: Ia26d891dad2f1f3a2148d84f991decc7a8ca31c7
* Block clipboard UI when device is lockedMiranda Kephart2024-12-301-1/+44
| | | | | | | | | | | | | | | | | | | | | | | | | In some situations (see bug for details) it's possible to enter the clipboard even while the device is locked, and from there access the provided intents. Users should not be able to access intents from this state; this change adds an additional check before showing the interactive UI. The behavior is identical to what we do when user setup is not complete (b/251778420): we show a toast to note that content has been copied, but no interactive UI. Interactive UI is only blocked when device is locked (i.e. requiring pin entry/password/biometric/etc), not if the keyguard is up but trivially dismissable. Bug: 317048495 Test: atest ClipboardListenerTest; verification using steps in linked bug as well as forcing text content to appear client-side, to verify that even if text content is received in the ClipboardListener, no interactive UI appears. (cherry picked from commit 2976ca86d5c5be558191a1fe706d4cd0d7ccdecb) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b9ffec803b31f1b57756105c9fbfd0cb672fcfde) Merged-In: I1a48cbe64852dce3fba69915ca11dad8878f66eb Change-Id: I1a48cbe64852dce3fba69915ca11dad8878f66eb
* 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-232-0/+47
| | | | | | | | Bug: 317503801 Test: atest ExpandableNotificationRowTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:83975c515773d345c64cadac1cd639ae5c4a8397) Merged-In: I11c5b39f2d9d8f0788acab43640a6d4abcd5a179 Change-Id: I11c5b39f2d9d8f0788acab43640a6d4abcd5a179
* Update media_controls_lock_screen setting behaviorBeth Thibodeau2024-06-232-28/+50
| | | | | | | | | | | | | When the setting is disabled, hide the media carousel everywhere when the device is on lockscreen, not just in the keyguard layout Bug: 314333719 Test: manual Test: atest MediaHierarchyManagerTest Flag: NONE (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a441f4acd62cce1059818ce8e9b7ab93b0079e50) Merged-In: I4f618e4013db894291e6fca9d49bceb1cb7e4bd9 Change-Id: I4f618e4013db894291e6fca9d49bceb1cb7e4bd9
* Unbind TileService onNullBindingFabián Kozynski2024-02-151-0/+21
| | | | | | | | | | Test: atest TileLifecycleManagerTest Test: manual: adb shell dumpsys activity service Test: sts test Bug: 300903792 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3b93880c0b0052fe03c781a9768b81b098a353c0) Merged-In: Ia8126ac65432b124683960e3ebf47301ba6172a1 Change-Id: Ia8126ac65432b124683960e3ebf47301ba6172a1
* [SB][Privacy] Fetch current active appops on startup.Caitlin Shkuratov2024-01-091-0/+217
| | | | | | | | | | | | | | | | | | | | | This also updates SysUI's chip animation scheduler to ignore an `isTooEarly` check if the chip animation is forced to be visible (which is true for privacy events). Bug: 294104969 Test: start recording, then kill systemui via adb-> verify privacy chip reappears after restart. Pull down shade and verify chip is correctly attributed. Stop recording and verify chip/dot disappears. Test: open camera, then kill systemui via adb -> verify privacy chip reappears after restart. Pull down shade and verify chip is correctly attributed. Close camera and verify chip/dot disappears. Test: smoke test of privacy chip and dot Test: atest AppOpsControllerTest SystemStatusAnimationSchedulerImplTest (cherry picked from commit 084a7afb4bb41e0cdfdbe67bdd60728d940b4331) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:dac02d61f8cf755f733ef6c2fbd0f939ea13ee23) Merged-In: I664bb3003a2f6871113406e3257b7118bbdf2ab5 Change-Id: I664bb3003a2f6871113406e3257b7118bbdf2ab5
* DO NOT MERGE Ensure finish lockscreen when usersetup incompleteAaron Liu2024-01-091-1/+3
| | | | | | | | | | | | | Ensure that when the usersetup for the user is not complete, we do not want to go to lockscreen, even if lockscreen is not disabled. Bug: 222446076 Test: add Unit test, Test: Wipe device, auth sim pin in setup, observe that lockscreen is not there. (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:080a4992b2eaaffcfd3429d74050347cdcfe5168) Merged-In: I8e33db8eb6e2c917966cab3d6a4f982670473040 Change-Id: I8e33db8eb6e2c917966cab3d6a4f982670473040
* Disable priority conversation widget for secondary usersJulia Reynolds2023-12-142-0/+75
| | | | | | | | | | | Test: NotificationConversationInfoTest.java Test: make a conversation priority on the primary user Test: make a conversation priority on a secondary user Bug: 288896269 (cherry picked from commit adf620316dcfaf19d7d4a73e2c63322b4a3a4d3a) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7444c007743970a9d6877c1b3fd2b28143687281) Merged-In: I3f3991d2cb7fb9970cc8ada39ceae9a7ff2fcb31 Change-Id: I3f3991d2cb7fb9970cc8ada39ceae9a7ff2fcb31
* Add userId check before loading icon in Device ControlsAnton Potapov2023-10-072-1/+83
| | | | | | | | | | Test: manual with the steps from the bug Test: manual with a normal icon Test: atest CanUseIconPredicate Test: atest ControlViewHolderTest Bug: 272025416 Merged-In: Ib0e677f7ccbed6299ea07939519c7dcf6d371bec Change-Id: Ib0e677f7ccbed6299ea07939519c7dcf6d371bec
* Merge tag 'android-13.0.0_r76' of ↵Julian Veit2023-09-263-20/+303
|\ | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into HEAD Android 13.0.0 release 76 Change-Id: Id0fa6f618d383eecee8fd2d96761f1be82bb3b99
| * DO NOT MERGE Adding tests for updated EmptyShadeView logicShawn Lee2023-09-011-0/+28
| | | | | | | | | | | | | | | | | | | | | | Tests for ag/22688474 Bug: 267060171 Test: tests run (cherry picked from commit 6a19675b120b497618259cbcdedde4ffb68389c8) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e6fe1a0ef1ebb9123f4ed943c8470a873efbaada) Merged-In: I35ba4652a125c8c83e18138f0fb0a51f3ef65b73 Change-Id: I35ba4652a125c8c83e18138f0fb0a51f3ef65b73
| * Remove ControlsProviderSelectorActivity finish onAnton Potapov2023-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ControlsFavoritingActivity start When ControlsProviderSelectorActivity starts ControlsFavouritingActivity it uses ControlsActivity instance for transitions. ControlsActivity interacts with ControlsBindingController to get a list of controls. This interaction prevents load from happening because ControlsBindingController has a global state, and prevents users from adding a second Controls app. Removing finishing ControlsProviderSelectorActivity prevents ControlsActivity from being started. Test: manual with the steps from the bug Test: atest ControlsProviderSelectorActivityTest Fixes: 283070266 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:442c1002a8563c291c149d18e143e1880a82a27e) Merged-In: I02ddaa5e823379510e9c81a8d803d5269e6d85ad Change-Id: I02ddaa5e823379510e9c81a8d803d5269e6d85ad
| * Improve user handling when querying for resumable mediaBeth Thibodeau2023-09-012-6/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Before trying to query recent media from a saved component, check whether the current user actually has that component installed - Track user when creating the MediaBrowser, in case the user changes before the MBS returns a result Test: atest MediaResumeListenerTest Bug: 284297711 (cherry picked from commit e566a250ad61e269119b475c7ebdae6ca962c4a7) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:01d527cdfd135aa8a2e76c693137fbba5d109a8b) Merged-In: I838ff0e125acadabc8436a00dbff707cc4be6249 Change-Id: I838ff0e125acadabc8436a00dbff707cc4be6249
| * [DO NOT MERGE] Update quickshare intent rather than recreatingMiranda Kephart2023-09-011-0/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, we extract the quickshare intent and re-wrap it as a new PendingIntent once we get the screenshot URI. This is insecure as it leads to executing the original with SysUI's permissions, which the app may not have. This change switches to using Intent.fillin to add the URI, keeping the original PendingIntent and original permission set. Bug: 278720336 Fix: 278720336 Test: manual (to test successful quickshare), atest SaveImageInBackgroundTaskTest (to verify original pending intent unchanged) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:589ce3909c6e9e30f073df86e7de4503854a032a) Merged-In: Icad3d5f939fcfb894e2038948954bc2735dbe326 Change-Id: Icad3d5f939fcfb894e2038948954bc2735dbe326
* | Improve user handling when querying for resumable mediaBeth Thibodeau2023-09-182-15/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Before trying to query recent media from a saved component, check whether the current user actually has that component installed - Track user when creating the MediaBrowser, in case the user changes before the MBS returns a result Test: atest MediaResumeListenerTest Bug: 284297711 (cherry picked from commit e566a250ad61e269119b475c7ebdae6ca962c4a7) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d61741288b4d7614e4677428aac6418f6f1d79f0) Merged-In: I838ff0e125acadabc8436a00dbff707cc4be6249 Change-Id: I838ff0e125acadabc8436a00dbff707cc4be6249
* | Merge tag 'android-13.0.0_r72' of ↵George Zacharia2023-08-095-2/+55
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Do not load drawable for wallet card if the card image icon iscreatedSilin Huang2023-06-161-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with content URI. This prevents the primary user from accessing the secondary user's photos for QAW card images. Test: manually, atest Bug: 272020068 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ff753ae693065685d85bbda6af2953905fdf434c) Merged-In: I6932c5131b3c795bac4ea9b537938e7ef4f3ea4e Change-Id: I6932c5131b3c795bac4ea9b537938e7ef4f3ea4e
| * | Make sure to reset isFoldHandledMatt Pietal2023-05-091-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A previous commit reset this flag in select circumstances. However, there are other paths that also need to be covered. Always reset isFoldHandled every single time the device has been folded and the screen has turned on. This should fully prevent errant calls to showAodUI(), which forces keyguard to show over any other screen. Paths that could've produced the issue involve: 1. Unfold and unlock 2. Fold the device, it should go to AOD 3. Cover the prox sensor (as if putting in purse/pocket) and let screen timeout until black. 4. Wait a few moments to let the device really sleep 5. Uncover sensor and unlock with Side FPS immediately Test: atest FoldAodAnimationsControllerTest Fixes: 273681779 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:dd564d207d24e83a5f724f632bf80e5ce6764046) Merged-In: I3260125fa545494c28e52ecf02825704ffbad295 Change-Id: I3260125fa545494c28e52ecf02825704ffbad295
| * | Set corner radius to 0 when castingAaron Liu2023-05-094-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Don't show home controls complication if not available.Lucas Silva2023-04-281-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a toggle to disable home controls in Settings, and we need to honor that toggle when determining if the complication should be shown on the dream. Bug: 278964460 Test: atest DreamOverlayStateControllerTest Test: flashed device and disabled toggle in settings, verified home controls does not show on clock dream (cherry picked from commit 2955b163175b3dbdf69df34ea0c6f8c8c40642d3) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f7cf03045f46a10d1cdb0f0c0134cb06ad2c44e7) Merged-In: I4e72f4619fd0ebbf5a78620796f0114ceabc9365 Change-Id: I4e72f4619fd0ebbf5a78620796f0114ceabc9365
| * | Restrict maximum size of FontInterpolator font cachesJernej Virag2023-04-251-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a memory leak where Fonts were leaked within detailed lock screen animations. We're occasionally animating fonts via several axes which causes a low occurence of cache hits. This resulted in hundreds of Font instances being kept in the cache. Bug: 275486055 Test: Verified behaviour on cheetah Expanded and ran unit tests for affected classes Benchmarked rendering time with reduced cache - increase of duration of draw() command for 0.3ms with 10 item cache. 50 item cache increased draw() command duration for 0.15ms on average which is not worth the tradeoff in memory. (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b7bc5640491d0a4cc0fd6c02f73c82912b1e3996) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:39dbe90004924912f49e141b2051bc27752f7c1a) Merged-In: Id6e2b127f44f5e553ff7ac4ba640fd4f6f4698b0 Change-Id: Id6e2b127f44f5e553ff7ac4ba640fd4f6f4698b0
| * | Fix KeyguardSecurityContainerControllerTestAaron Liu2023-04-251-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixing tests that are failing for other build targets. For orientation, I think the orientation in resources is already defined as landscape, which is causing the failure in the test. For the gravity, we have different overlays based on screen size so we can be so specific with gravity. Test: Run on ABTD Fixes: 268367452 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8eb68c7ebef719a1459e01c1624a82f98991ca57) Merged-In: Ie341c5d85845098b358f247e6eb8fad05ff0029c Change-Id: Ie341c5d85845098b358f247e6eb8fad05ff0029c
| * | Reset NSSL translationY after a transision gets cancelledAndrás Kurucz2023-04-201-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We update the translationY of the NSSL upon multiple transitions. If the Occluded -> LockScreen transition is cancelled, there is no other transition that is taking over. It causes the NSSL to get stuck with some negative translateY value. This caused the Notifications and the NotificationShelf to be shifted slightly upwards. This fix resets the translation to 0 if the transition was interrupted and not completed successfully. Fixes: 273591201 Test: atest OccludedToLockscreenTransitionViewModelTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3a23e91c1a76f22ac0da52e942e405525c539b2a) Merged-In: If0c162a7f1b8a2cf3d261692f5ce333331c36a7b Change-Id: If0c162a7f1b8a2cf3d261692f5ce333331c36a7b
| * | Fix home controls showing on low light dreamWilliam Xiao2023-04-161-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Low light should never show complications, so short circuit early and don't return any in the state controller. Bug: 277746325 Test: atest DreamOverlayStateControllerTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f501b295e11d22455f661707adad9d020b193d25) Merged-In: Iae6388dafa69098b70e9229bc562172fec1fb149 Change-Id: Iae6388dafa69098b70e9229bc562172fec1fb149
* | | Merge tag 'android-13.0.0_r71' of ↵George Zacharia2023-08-092-1/+29
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 71 (TQ3A.230805.001.B1) * tag 'android-13.0.0_r71' of https://android.googlesource.com/platform/frameworks/base: Fix weather complication disappearing after timer pause DO NOT MERGE Hide EmptyShadeView when on bouncer DO NOT MERGE Adding tests for updated EmptyShadeView logic USB: update logic for reporting playback and capture capability of USB devices. Remove ControlsProviderSelectorActivity finish on ControlsFavoritingActivity start Prevent force showing system bars for TaskView 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 [RESTRICT AUTOMERGE] Always set last report configuration for starting window. Fix split cannot active if app trampoline launch new task Update the timing of clearing SplitRequest Gates RotationResolverService with a config flag Change-Id: Ief3bf540e89f59ee0a480d028be0c61371d8cbd2
| * | | DO NOT MERGE Adding tests for updated EmptyShadeView logicShawn Lee2023-06-141-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests for ag/22688474 Bug: 267060171 Test: tests run (cherry picked from commit 6a19675b120b497618259cbcdedde4ffb68389c8) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e6fe1a0ef1ebb9123f4ed943c8470a873efbaada) Merged-In: I35ba4652a125c8c83e18138f0fb0a51f3ef65b73 Change-Id: I35ba4652a125c8c83e18138f0fb0a51f3ef65b73
| * | | Remove ControlsProviderSelectorActivity finish onAnton Potapov2023-06-141-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ControlsFavoritingActivity start When ControlsProviderSelectorActivity starts ControlsFavouritingActivity it uses ControlsActivity instance for transitions. ControlsActivity interacts with ControlsBindingController to get a list of controls. This interaction prevents load from happening because ControlsBindingController has a global state, and prevents users from adding a second Controls app. Removing finishing ControlsProviderSelectorActivity prevents ControlsActivity from being started. Test: manual with the steps from the bug Test: atest ControlsProviderSelectorActivityTest Fixes: 283070266 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:442c1002a8563c291c149d18e143e1880a82a27e) Merged-In: I02ddaa5e823379510e9c81a8d803d5269e6d85ad Change-Id: I02ddaa5e823379510e9c81a8d803d5269e6d85ad
* | | Merge tag 'android-13.0.0_r67' of ↵George Zacharia2023-08-093-29/+29
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 67 (TQ3A.230805.001) * tag 'android-13.0.0_r67' of https://android.googlesource.com/platform/frameworks/base: 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. Change-Id: Ice3533cb5ebf4868cc9aa0500568b899293872ab
| * | Do not load drawable for wallet card if the card image icon iscreatedSilin Huang2023-06-141-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with content URI. This prevents the primary user from accessing the secondary user's photos for QAW card images. Test: manually, atest Bug: 272020068 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ff753ae693065685d85bbda6af2953905fdf434c) Merged-In: I6932c5131b3c795bac4ea9b537938e7ef4f3ea4e Change-Id: I6932c5131b3c795bac4ea9b537938e7ef4f3ea4e
* | | Merge tag 'android-13.0.0_r63' of ↵George Zacharia2023-08-022-1/+29
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0-r52 Android 13.0.0 release 63 Change-Id: I89d2c7a713cd97f805f07f604090a6d779117575
| * | | Remove ControlsProviderSelectorActivity finish onAnton Potapov2023-05-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ControlsFavoritingActivity start When ControlsProviderSelectorActivity starts ControlsFavouritingActivity it uses ControlsActivity instance for transitions. ControlsActivity interacts with ControlsBindingController to get a list of controls. This interaction prevents load from happening because ControlsBindingController has a global state, and prevents users from adding a second Controls app. Removing finishing ControlsProviderSelectorActivity prevents ControlsActivity from being started. Test: manual with the steps from the bug Test: atest ControlsProviderSelectorActivityTest Fixes: 283070266 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:442c1002a8563c291c149d18e143e1880a82a27e) Merged-In: I02ddaa5e823379510e9c81a8d803d5269e6d85ad Change-Id: I02ddaa5e823379510e9c81a8d803d5269e6d85ad
| * | | DO NOT MERGE Adding tests for updated EmptyShadeView logicShawn Lee2023-05-271-0/+28
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests for ag/22688474 Bug: 267060171 Test: tests run (cherry picked from commit 6a19675b120b497618259cbcdedde4ffb68389c8) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e6fe1a0ef1ebb9123f4ed943c8470a873efbaada) Merged-In: I35ba4652a125c8c83e18138f0fb0a51f3ef65b73 Change-Id: I35ba4652a125c8c83e18138f0fb0a51f3ef65b73
* | | Merge tag 'android-13.0.0_r52' of ↵George Zacharia2023-08-02482-11070/+39396
|\| | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/frameworks/base into t13.0 Android 13.0.0 Release 52 (TQ3A.230605.012) Change-Id: Ic80f318636f1f70bbd009504352ddde511d0dead
| * | Don't show home controls complication if not available.Lucas Silva2023-04-271-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a toggle to disable home controls in Settings, and we need to honor that toggle when determining if the complication should be shown on the dream. Bug: 278964460 Test: atest DreamOverlayStateControllerTest Test: flashed device and disabled toggle in settings, verified home controls does not show on clock dream (cherry picked from commit 2955b163175b3dbdf69df34ea0c6f8c8c40642d3) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f7cf03045f46a10d1cdb0f0c0134cb06ad2c44e7) Merged-In: I4e72f4619fd0ebbf5a78620796f0114ceabc9365 Change-Id: I4e72f4619fd0ebbf5a78620796f0114ceabc9365
| * | Restrict maximum size of FontInterpolator font cachesJernej Virag2023-04-221-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a memory leak where Fonts were leaked within detailed lock screen animations. We're occasionally animating fonts via several axes which causes a low occurence of cache hits. This resulted in hundreds of Font instances being kept in the cache. Bug: 275486055 Test: Verified behaviour on cheetah Expanded and ran unit tests for affected classes Benchmarked rendering time with reduced cache - increase of duration of draw() command for 0.3ms with 10 item cache. 50 item cache increased draw() command duration for 0.15ms on average which is not worth the tradeoff in memory. (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b7bc5640491d0a4cc0fd6c02f73c82912b1e3996) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:39dbe90004924912f49e141b2051bc27752f7c1a) Merged-In: Id6e2b127f44f5e553ff7ac4ba640fd4f6f4698b0 Change-Id: Id6e2b127f44f5e553ff7ac4ba640fd4f6f4698b0
| * | Fix KeyguardSecurityContainerControllerTestAaron Liu2023-04-221-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixing tests that are failing for other build targets. For orientation, I think the orientation in resources is already defined as landscape, which is causing the failure in the test. For the gravity, we have different overlays based on screen size so we can be so specific with gravity. Test: Run on ABTD Fixes: 268367452 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8eb68c7ebef719a1459e01c1624a82f98991ca57) Merged-In: Ie341c5d85845098b358f247e6eb8fad05ff0029c Change-Id: Ie341c5d85845098b358f247e6eb8fad05ff0029c
| * | Reset NSSL translationY after a transision gets cancelledAndrás Kurucz2023-04-171-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We update the translationY of the NSSL upon multiple transitions. If the Occluded -> LockScreen transition is cancelled, there is no other transition that is taking over. It causes the NSSL to get stuck with some negative translateY value. This caused the Notifications and the NotificationShelf to be shifted slightly upwards. This fix resets the translation to 0 if the transition was interrupted and not completed successfully. Fixes: 273591201 Test: atest OccludedToLockscreenTransitionViewModelTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3a23e91c1a76f22ac0da52e942e405525c539b2a) Merged-In: If0c162a7f1b8a2cf3d261692f5ce333331c36a7b Change-Id: If0c162a7f1b8a2cf3d261692f5ce333331c36a7b
| * | Fix home controls showing on low light dreamWilliam Xiao2023-04-141-0/+17
| |/ | | | | | | | | | | | | | | | | | | | | Low light should never show complications, so short circuit early and don't return any in the state controller. Bug: 277746325 Test: atest DreamOverlayStateControllerTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f501b295e11d22455f661707adad9d020b193d25) Merged-In: Iae6388dafa69098b70e9229bc562172fec1fb149 Change-Id: Iae6388dafa69098b70e9229bc562172fec1fb149
| * Stop tracking unseen notifs on AOD transition initSteve Elliott2023-04-101-0/+33
| | | | | | | | | | | | Fixes: 275032839 Test: atest KeyguardCoordinatorTest Change-Id: Ic3d2d56ab0b5112bf810d7fbef3aaac762633c67
| * Fix media showing AOD in split shade and double-line clock disabledChristian Göllner2023-04-051-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For split shade, media is not automatically hidden when going to AOD. When using the double line clock, this is not an issue, as the clock container takes the whole size of the keyguard status container, hiding also media. For single line clock, the clock container uses less space, making media visible. In single shade, media is part of the NSSL container, which already gets hidden during AOD, also hiding media. Test: KeyguardMediaControllerTest.kt Test: Manually - Single shade, and split shade, with the double line clock setting enabled and disabled, while media is showing. Then going from/to AOD. Fixes: 276682118 Change-Id: Ie2f4ac3aab4bcdb69f33c57292ff0c9a073bbcae
| * Merge "Change the use of ScreenLifecycle to WakefulnessLifecycle." into ↵Mike Schneider2023-04-031-17/+31
| |\ | | | | | | | | | tm-qpr-dev
| | * Change the use of ScreenLifecycle to WakefulnessLifecycle.Mike Schneider2023-04-031-17/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a better fit for the signal in launcher, since it identifies whether the device is awake or asleep, where asleep also inclues AoD. Also adding SYSUI_STATE_NOTIFICATION_PANEL_VISIBLE to the IntDef and debug getSystemUiStateString, since it was missing. Test: manual, unit tests Bug: 275319714 Change-Id: I8a3275e177967c24f3bcd30308f11b3524e9d53d
| * | Merge "Fix TestUnfoldProgressListener when there are no progress" into ↵TreeHugger Robot2023-04-031-1/+1
| |\ \ | | |/ | |/| | | | tm-qpr-dev
| | * Fix TestUnfoldProgressListener when there are no progressNicolo' Mazzucato2023-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | .last() was failing when there was still no progress. Test: RemoteUnfoldTransitionReceiverTest Bug: 276407993 Change-Id: I82afe7a94e29975b96c749885fcbf87a0eeaa89c
| * | Merge changes from topic "267565290" into tm-qpr-devBryce Lee2023-04-024-17/+223
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Allow swiping down notification shade over dream. Allow in-progress touch sessions to continue outside resume. Correct display dimensions considered. Suppress transient bars over dreams.
| | * | Allow swiping down notification shade over dream.Bryce Lee2023-03-311-0/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changelist enables swiping down the notification shade over the dream. NotificationShadeTouchHandler tracks swipes that originate from the status bar area of the dream and redirects these motion events to the NotificationPanelViewController. Test: atest NotificationShadeTouchHandlerTest Bug: 267565290 Change-Id: I72d54cf33601dacc0a2a6adfd2b7639615061c09 Merged-In: I72d54cf33601dacc0a2a6adfd2b7639615061c09
| | * | Allow in-progress touch sessions to continue outside resume.Bryce Lee2023-03-311-2/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, touch sessions are terminated outside the resume lifecycle state. This behavior causes issues when a touch behavior is directly leading to another state, such as dragging down the notification shade. This changelist allows in-progress touch sessions to continue until the session is popped. Note that lifecycle states here are used abstractly and do not correspond to Activity usage. Also, touch sessions are still forcefully ended in the case of resetting the touch monitor due to the destroy lifecycle state or from starting monitoring again. Test: atest DreamOverlayTouchMonitorTest#testPauseWithNoActiveSessions atest DreamOverlayTouchMonitorTest#testDeferredPauseWithActiveSessions atest DreamOverlayTouchMonitorTest#testDestroyWithActiveSessions Bug: 267565290 Change-Id: Ibac6e94bcf6b8c4d751349edfbcb04b2fe53285a Merged-In: Ibac6e94bcf6b8c4d751349edfbcb04b2fe53285a
| | * | Correct display dimensions considered.Bryce Lee2023-03-313-15/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changelist makes sure the full screen size is considered when accounting for the dream overlay. Previously, insets would be subtracted from the overall dimensions. Test: atest DreamOverlayTouchMonitorTest#testReportedDisplayBounds Fixes: 267565290 Change-Id: I48c072491efc62c49385ae5f4684d99585a05895 Merged-In: I48c072491efc62c49385ae5f4684d99585a05895
| * | | Merge "Reset isFoldHandled" into tm-qpr-devMatt Pietal2023-03-301-0/+24
| |\ \ \