Commit Graph

781408 Commits

Author SHA1 Message Date
Nick Chameyev
37b5e8b974 Merge "[Unfold transition] Add haptics effect" into tm-qpr-dev 2022-12-12 10:17:18 +00:00
Nick Chameyev
61e549a232 [Unfold transition] Add haptics effect
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
2022-12-12 10:16:36 +00:00
shaoweishen
0160b80640 [Output Switcher] [Group by Type] Add MediaItem to store data
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
2022-12-12 09:52:13 +00:00
Anton Potapov
047f064575 Revert "Move NetworkControllerImpl to @LongRunning thread to prevent @Background from being stuck"
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
2022-12-12 09:23:33 +00:00
Jerry Chang
21db01d2d3 Update to check package name for multi-instnaces split
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
2022-12-12 06:16:59 +00:00
Jeff Chang
2016b1dcd1 Merge "Check lock-task mode if task_on_home is applied" into tm-qpr-dev 2022-12-12 06:00:52 +00:00
TYM Tsai
2513aaba02 Reset Autofill dialog if the content is changed
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)
2022-12-12 04:12:38 +00:00
Florence Yang
e87c348fcd Merge "Enable Region Sampling Flag for Teamfood" into tm-qpr-dev 2022-12-12 02:58:43 +00:00
Chris Li
369bce07d6 Merge "Fix missing legacy change transition on display info changed" into tm-qpr-dev 2022-12-12 02:55:48 +00:00
Louis Chang
c554885157 Merge "Prevent IndexOutOfBoundsException while removing activities" into tm-qpr-dev 2022-12-12 00:36:01 +00:00
Vania Januar
9e7dc1926a Merge "Listen to charging state metadata in StylusManager" into tm-qpr-dev 2022-12-11 12:33:06 +00:00
Vania Januar
83af9f927e Merge "Feature flag for stylus battery notifications." into tm-qpr-dev 2022-12-11 12:33:06 +00:00
Alex Buynytskyy
a78a75684c Fix for: NPE when intent.component set to ResolverActivity.
Bug: 244294361
Fixes: 244294361
Fixes: 260291956
Test: atest PackageManagerTest
Change-Id: I14fa8d8a9bb5020ebdf1f4b761b15e1d2f938920
2022-12-11 02:38:46 +00:00
William Leshner
0a33f42345 Merge "Don't allow dreaming for users that can't dream." into tm-qpr-dev 2022-12-10 23:55:45 +00:00
TreeHugger Robot
0143f62f7a Merge "Fix Dialog default callback registering at the wrong priority." into tm-qpr-dev 2022-12-10 18:02:13 +00:00
TreeHugger Robot
961eece32b Merge "Initialize navigation mode for TaskbarDelegate" into tm-qpr-dev 2022-12-10 08:14:19 +00:00
Vania Januar
b66446f141 Merge "StylusManager for managing local stylus listeners and state." into tm-qpr-dev 2022-12-10 08:01:59 +00:00
Lyn Han
d081c219c3 Merge "Add FSI debug class" into tm-qpr-dev 2022-12-10 07:42:49 +00:00
Yining Liu
fcb74a62f2 Remove obsolete shadow logic from StackScrollAlgorithm updateChildZValue
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
2022-12-10 04:27:13 +00:00
William Leshner
37929e00a5 Merge "Lock device on short power button press." into tm-qpr-dev 2022-12-10 03:03:16 +00:00
TreeHugger Robot
ff5346cd1a Merge "Maintain the users current value for STATUS_BAR_SHOW_VIBRATE_ICON" into tm-qpr-dev 2022-12-10 02:11:33 +00:00
Bryce Lee
225ce63f0b Do not allow complications when dream overlay is not enabled.
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
2022-12-09 16:32:43 -08:00
TreeHugger Robot
56b489b539 Merge "Exempt ongoing and media notifications from unseen filter" into tm-qpr-dev 2022-12-10 00:27:59 +00:00
Shan Huang
be0808498c Fix Dialog default callback registering at the wrong priority.
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
2022-12-10 00:12:28 +00:00
TreeHugger Robot
416f9b7d9b Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-09 23:20:31 +00:00
TreeHugger Robot
fc0a2125cf Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-09 23:20:31 +00:00
TreeHugger Robot
07fd6b7dc2 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-09 23:20:31 +00:00
TreeHugger Robot
a8396c5112 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-09 23:20:31 +00:00
TreeHugger Robot
51287928b9 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-09 23:17:53 +00:00
TreeHugger Robot
debfa878ec Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-09 23:17:53 +00:00
TreeHugger Robot
2fa7da65d8 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-09 23:17:53 +00:00
Miranda Kephart
2e5bc09147 Merge "Remove old quickshare chip when adding a new one" into tm-qpr-dev 2022-12-09 21:32:29 +00:00
Hawkwood Glazier
aa031de794 Merge "Disable NotificationPanelViewControllerTest.*_returnSpaceAvailable" into tm-qpr-dev 2022-12-09 20:51:50 +00:00
Michal Brzezinski
7e2733e270 Making sure shade doesn't open after unfolding when no security is set
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
2022-12-09 20:10:13 +00:00
Kenneth Ford
25f934011d Merge "Adds content descriptions for rear display animation" into tm-qpr-dev 2022-12-09 19:53:01 +00:00
Steve Elliott
7969117011 Exempt ongoing and media notifications from unseen filter
Test: atest KeygaurdCoordinatorTet
Bug: 240472040
Fixes: 260563613
Change-Id: Iec08a548fd789161effbb1ac89a096f3ae008299
2022-12-09 14:42:01 -05:00
TreeHugger Robot
a90ccc4457 Merge "Move all the ImageWallpaper logic outside the main thread" into tm-qpr-dev 2022-12-09 18:58:50 +00:00
Varun Shah
b5e796bb74 Update logic for adjusting standby buckets for restored apps.
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)
2022-12-09 18:45:50 +00:00
Aaron Liu
61cfd7466d [Bouncer] Add bouncer log buffer.
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
2022-12-09 10:34:01 -08:00
Michal Brzezinski
14d8f3d9d9 Adding extra logging for tiles distribution across pages
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
2022-12-09 18:12:40 +00:00
Fabian Kozynski
76b7967725 Allow any app to show panel, based on flag
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
2022-12-09 12:56:53 -05:00
Mady Mellor
37e943894d Merge "Fix drawing the ring around adaptive app icons" into tm-qpr-dev 2022-12-09 17:48:57 +00:00
Vania Januar
b5e7f591e1 Listen to charging state metadata in StylusManager
StylusManager now allows listening to charging state changes by
registering a battery callback (StylusBatteryCallback).

Test: StylusManagerTest
Change-Id: I40dadeb331ff87ac9f5af1ada588b228f7d8d3b2
2022-12-09 17:33:27 +00:00
Vania Januar
a2b566109f StylusManager for managing local stylus listeners and state.
The StylusManager is a SysUISingleton that can notify apps when
styluses are added, removed, or changed.

Bug: 250908244
Test: StylusManagerTest
Change-Id: I98e0aeee6824f6be6b66f85ec5bdf0c21f219b7b
2022-12-09 17:33:26 +00:00
Edward Savage-Jones
a19956d62f Maintain the users current value for STATUS_BAR_SHOW_VIBRATE_ICON
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
2022-12-09 12:31:48 -05:00
Evan Rosky
5aad6ff53d Merge "Replace direct AR.mVisibleRequested access with getter/setter" into tm-qpr-dev 2022-12-09 17:25:40 +00:00
Fabian Kozynski
ec093cc3d1 Add flag to allow panels for all apps
Test: build
Fixes: 261990919
Change-Id: I94afebe846d114d06b9d7e5ceba668eea680947e
2022-12-09 12:08:19 -05:00
Massimo Carli
bdaa6f70aa Merge "Refine the naming about compatible scale" into tm-qpr-dev 2022-12-09 17:05:58 +00:00
Will Leshner
c5f6dc0604 Lock device on short power button press.
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
2022-12-09 08:45:07 -08:00
Will Leshner
a6000e21cb Don't allow dreaming for users that can't dream.
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
2022-12-09 08:43:22 -08:00