* Positions the bubbles to show at the bottom of the screen, above the
'dismiss' target UI by default
* Adds flag to toggle bubbles to show at the top of the screen instead
* Adds flag to show bubble header as a footer instead
Test: manual - have bubbles, expand them, note that they are positioned at
bottom of screen
Bug: 123540009
Change-Id: I938d3ab7d4ec6f6bd88f3a33f73a97d5f80a45f5
When device USB-C port is susceptible to short circuits and
overheating, pop up a warning dialog and keep showing until
user clicks OK button or see care steps.
Test: manually set the emulated temperature to trigger warning
Test: atest SystemUITests
Change-Id: I4f6080187196a9716f12a9817dc10d3265dc202b
Bug: 110134720
Bug: 116866524
Bug: 77790357
Bug: 117178820
For a landscape or close-to-square device, the button layout of
nav bar was abnormal since System UI assumes the nav bar position
would change if device rotated.
However, for default landscape device, nav bar will be always on
the buttom.
This patch resolve the assumption by using nav bar
direction (horizon/vertical) instead of rotation.
Also renaming the layout for consistency.
Test: atest SystemUITests
Test: atest NavigationBarFlaterViewTest
Test: manual - rotate the phone and comapre to my Pixel2
Test: manual - test the peproduce steps and the layout of nav bar buttons is normal
Fix: 124428114
Change-Id: I23444bcb2a44555e7116f6140a29147c5a03ed69
We will always render image wallpaper with GLEngine so the
DrawableEnigne is no longer necessary.
Remove DrawableEngine and related code including tests makes the code
more clean.
Bug: 123617158
Test: Manually set wallpaper by Photos and rotate home
Test: runtest systemui
Change-Id: I630112e755b74217e44518ec93273c99fb173f24
Trying to simplify this callback in preparation for streamlining
the inflation pipeline. This method only exists to enable some tests;
changed it to be a field and/or param in appropriate places.
Test: atest
Change-Id: I6e630fab5ba168d5accb57b403f9b5b0a224dff1
Wait for the display state ready before the testing
Bug: 123217660
Test: atest NavigationBarButtonTest#testRecentsButtonDisabledOnSecondaryDisplay
Change-Id: Iaa1808db5985d2f239932ae0fd69c4ee4dfccf4b
This makes it so that bubbles can be dragged out, and the rest of the stack will animate to close the gap. If the bubble is dismissed (either by a hard fling or by placing it in the dismiss area), it'll animate away. Otherwise, it'll animate back into the row of bubbles.
This CL also simplifies the touch handler code. Along with eliminating some redundant paths in onTouch, this also deletes the FloatingView interface. Now that the stack and individual bubbles act so differently, it makes less sense to have a single interface for moving them.
Test: atest SystemUITests
Bug: 123541855
Bug: 123022862
Bug: 124058992
Change-Id: I57e3df19a191a6da0b5ed5d40c350bebb29f74ff
Callback returns a copy of the list
Makes PrivacyItemController dumpable
Test: atest
Test: adb shell dumpsys activity service com.android.systemui/.SystemUIService Dependency
Fixes: 124234367
Change-Id: I1400ee8294f34b129723bb0f0ce7745dafaf5545
This reverts commit 708e739811.
Reason for revert: The issue motivating the revert was an earlier presubmit failure for my change.
Change-Id: Icdb7f4dddc5bbee8ce1f54bb8cee550ef0a4639e
Bug: 124252294
This is initial work that needs to come before moving bubbles to the
bottom of the screen and enabling horizontal swiping.
* Moves ActivityView out of BubbleView and into BubblExpandedView
* New 'bubble' object that wraps the notification entry and the two
bubble views (icon + expanded), this is utilized by BubbleStackView
* BubbleData is the knower of bubbles and used by BubbleController &
BubbleStackView as source of truth
Bug: 123543995
Test: atest BubbleControllerTest (existing tests all pass)
Change-Id: I710d908e78ed2aef6a0e482b70c21fa0640d250c