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
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
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
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
If the content of activity is changed, may fill dialog be requested
to show up again. Tracks all fillable views to know the content is
changed, and then reset all flags for the fill dialog.
Bug: 236237955
Test: atest CtsAutoFillServiceTestCases
Merged-in: I58503dd4021021d4bdc8d5114ff7255178fe5408
Change-Id: I58503dd4021021d4bdc8d5114ff7255178fe5408
(cherry picked from commit 2db6d6767c)
Removed childrenOnTop. When you send a bunch of delayed HUNs, the newest HUN pushes the previously pinned HUN downwards, so there's always a max of one pinned HUN. Thus childrenOnTop is no longer needed.
Bug: 259278944
Test: StackScrollAlgorithmTest
Change-Id: I47446170c3199769e78521f80ed3982e2e8554a4
Complications are currently only hosted by the dream overlay. Dependent
logic that listens on the DreamOverlayStateController for changes around
complications should not be triggered when the dream overlay is not
enabled. This changelist addresses this by preventing the
DreamOverlayStateController from accepting complications when the
overlay is not enabled (component wise).
This change also null checks a complication view retrieved from the
view holder before adding it to the layout.
Test: atest DreamOverlayStateControllerTest
Test: atest ComplicationHostViewControllerTest
Fixes: 259859096
Change-Id: Ifa1b4a9da0070a949e422003d3fd4e9ca484a16e
Bug:259602785
Test: In a standalone app, register a callback in Dialog#onCreate() with default priority. Make sure the dialog callback can be invoked.
Test: BackNavigationTests#registerCallback_dialog (run on master)
Change-Id: I9cfd596611fb341389cda44e3605c1e99ddc3791
Shade was opening because `mKeyguardStateController.isShowing()` is false when screen is off but no security set. I changed the logic of isShadeOpen to actually say if shade is open instead of being always true on keyguard and made small fixes to the logic in CentralSurfaces. We want to keep shade open only when we're in unlocked (SHADE) state.
Added isShadeOpen method to NPVC - it should be helpful for other use cases and might be less confusing to use than isFullyExpanded.
Fixes: 259012717
Test: manual -> set security to none -> turn screen off in folded mode -> unfold -> see launcher instead of shade
Test: NotificationPanelViewControllerTest
Change-Id: I5c1ce04fac5e549a49a53bd409c6e198483b4647
Instead of skipping over not yet installed apps, add them to a list and
update the PackageReceiver to handle freshly installed apps separately.
When an app is installed within the first 8 hours after a device is
restored, if the app is on the list, adjust its standby bucket to rare.
Bug: 214580000
Test: atest UsageStatsDatabaseTest
Test: manually verify buckets are restored
Change-Id: I79a0bb08fd383420aa72266e1d80c89e666bb981
(cherry picked from commit 4225f1ebf7)
Adds a table log buffer that listens to state changes for the state flows.
Fixes: 256170596
Test: Added a unit test.
Test: Interact with the bouncer. use `adb bugreport` and upload it to
ABT. Look at Custom View > BouncerLog to view the table.
Change-Id: I8bf042e49c8368a1eb0dbebdd27a68e936a4723e
There are a few things:
- adding generic methods in QSLogger to be able to log simple messages without adding extra methods to it
- moving all logging in PagedTileLayout to using QSLogger
- for every case when we force tiles redistribution, we log reason why it is happening
- adding temp logs for when tiles are not redistributed but maybe they should be
- logging when split shade state has changed in QSPanelControllerBase
Bug: 255208946
Test: just adding logging
Change-Id: Ie0b165edbf1f79dfff78c55646e513d37cea67a3
Eventually, we'll add a flow for the user to opt in to these extra apps.
For now, just allow all of them.
These flag should not be released without the flow in place.
Test: atest ControlsListingControllerImplTest
Bug: 261990872
Change-Id: I6b52305106d5b0f6a56ac72827a93e7fcde5a7fb
StylusManager now allows listening to charging state changes by
registering a battery callback (StylusBatteryCallback).
Test: StylusManagerTest
Change-Id: I40dadeb331ff87ac9f5af1ada588b228f7d8d3b2
The StylusManager is a SysUISingleton that can notify apps when
styluses are added, removed, or changed.
Bug: 250908244
Test: StylusManagerTest
Change-Id: I98e0aeee6824f6be6b66f85ec5bdf0c21f219b7b
Make sure not to overwrite any current user selection for
Secure.STATUS_BAR_SHOW_VIBRATE_ICON that the user may have
made.
Issue: 253992986
Test: Manual - see issue
Change-Id: I33155a27707e6d30ff56fb090c71b9670a98fc31
If a device is configured to dream on short power press, also make sure
it locks as well.
Also fixes an issue where the screen does not turn off when another
user (not user zero) presses the power button.
Bug: 260135090
Test: manually by configuring device to dream on short power press and
then making sure it is also locked after press.
Change-Id: I16ca4eab7a0e8a3f2ef42c090147bd7e62445c69
DreamManagerService#canStartDreaming should not return true if the
current user is not allowed to dream.
Bug: 261907079
Test: manually by switching to a user that can't dream and making
sure that the screen turns off on power press while docked.
Change-Id: Ia4a46dff5360d3565762b82fb4353e66f0b8f661