Commit Graph

781408 Commits

Author SHA1 Message Date
TreeHugger Robot
9369c99f7e Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-06 03:44:10 +00:00
TreeHugger Robot
2c6945bfd3 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-06 03:44:10 +00:00
TreeHugger Robot
85db8adf81 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-06 03:44:10 +00:00
Tracy Zhou
977d57cd5b Merge "Implement Split to fullscreen with META+CTRL+DPAD_UP" into tm-qpr-dev 2022-12-06 03:06:03 +00:00
TreeHugger Robot
306175e9dc Merge "Check if ParsedMainComponent is null before dereferencing" into tm-qpr-dev 2022-12-06 01:38:48 +00:00
Michael Mikhail
06e7f9fe5a Keep metadata and buttons in the same position
it sets the seekbar visibility to invisible when it should be disabled.
So it keeps the space for the seekbar available which keeps the
positions of other UI components in the same original position.

Bug: 249989837
Test: atest MediaControlPanelTest
Test: Checked the new changes applied on UMO UI.
Change-Id: I77131a60bc6bce87e326828fe5d799538b19f16c
2022-12-06 01:29:27 +00:00
Ming-Shin Lu
e18d71c698 [Shell-trantition] Fix keyguard exit animation may no-op at first boot
When NotificationPanelView starts fade-out by swiping up, will notify
KeyguardUnlockAnimationController to call
onKeyguardExitRemoteAnimationFinished for starting keyguard going away
remote animation.

Unlike legacy animation that will call KeyguardViewMediater#handleHide
-> set KeyguardViewMediater#mHiding -> handleStartKeyguardExitAnimation,

with shell-transition, SystemUI will call through
KeyguardService#mExitAnimationRunner#onAnimationStart ->
KeyguardviewMediater#startKeyguardExitAnimation without setting mHiding
as true, that will unexpectedly cancel the animation sometimes.

Fix this unexpected keyguard hiding state handling and also add a unit
test for verifying this behavior.

Fix: 260100540
Test: manual as steps with enabling shell-transition
    1) Turn on device with power key to boot the device.
    2) After booted, swiping the lockscreen to home
    3) Verify if home surface was visible to user after unlocked
Test: atest KeyguardViewMediatorTest#\
       testStartKeyguardExitAnimation_expectSurfaceBehindRemoteAnimation
Change-Id: Ib927daea954bf1e9e6f6202a2b778c743e8bcd59
2022-12-06 00:54:15 +00:00
Winson Chung
a40e02d531 Merge "Log recents listener when dumping" into tm-qpr-dev 2022-12-06 00:54:03 +00:00
Will Leshner
8c423bc307 Add DOCK_SETUP_PROMPTED enum value to Settings.
A new dock setup state to indicate that dock setup has been prompted but
not yet started.

Bug: 259586571
Test: manually
Change-Id: I38a17f5e4b03693c7b45e7ed8987af1f37192b16
2022-12-05 16:12:02 -08:00
Seigo Nonaka
11e64ca5c8 Update fontchain_linter for non-compat font
Bug: 255901351
Test: m fontchain_lint
Change-Id: If60de61504188a7222e2efa67705b8bf4400dbda
Merged-In: If60de61504188a7222e2efa67705b8bf4400dbda
2022-12-05 23:45:57 +00:00
Aaron Liu
28bd55410a Merge "[Bouncer] hide/show keyboard when focus is..." into tm-qpr-dev 2022-12-05 23:41:17 +00:00
Ats Jenk
bedb8136d3 Only create DesktopModeController when flag is on
Ensure that DesktopModeController and DesktopModeTaskRepository are only
created when they are needed, when the desktop mode flag is on.
With the previous dagger configuration WMShellBaseModule relied on
submodules to provide an implementation if one exists.
If the submodule does have the implementation defined, it is always created and
supplied to WMShellBaseModule provider method.
Provider method in WMShellBaseModule then decides, based on flags,
whether to return that implementation or not. But the instance is always
created, regardless of that flag check.

This change ensures that DesktopModeController and
DesktopModeTaskRepository are only instantiated if WMShellBaseModule
provider methods will provide a corresponding instance. This is achieved
by relying on lazy instance creation by dagger.
If the instances won't be provided due to flags being off, the instances won't be
created.

Bug: 260908558
Test: build and run sysui with desktop mode flag off, observe
DesktopModeController object is not instatiated

Change-Id: Ia155b8e079072e543c98463a58ab1907729db7b0
2022-12-05 23:41:13 +00:00
TreeHugger Robot
4d01e66b93 Merge "Do not request WAKE transition when device wake up." into tm-qpr-dev 2022-12-05 23:25:46 +00:00
Evan Rosky
4935914936 Set early-wake during transition animation
Parity with legacy. This tells surfaceflinger to allow more
time to composite frames during animations -- reduces likelihood
of missing frames.

Also, pause task-persisting during this period to avoid lock
contention (also parity w/ legacy).

Bug: 258881120
Test: run graphics/coldlaunch/open-youtube microbench and observe
      aggregate for SFSTATS_GLOBAL_MISSEDFRAMES-mean
Change-Id: I29afc5dca935e7b5db338b9f85c405cccafe09cc
2022-12-05 23:20:59 +00:00
TreeHugger Robot
dae823a3b6 Merge "Making sure QS are visible when expanding shade with heads-up notification" into tm-qpr-dev 2022-12-05 23:20:27 +00:00
Michael Mikhail
88aec368d4 Merge "[Media TTT] Handle invalid chip transitions" into tm-qpr-dev 2022-12-05 22:52:51 +00:00
Massimo Carli
0a3a1aad5a Update a size-compat restart icon
Fixes: 260220096
Test: Manual.

Change-Id: Iaa95839b26af6dc536788a3aeb43dbc2fb579985
2022-12-05 22:46:43 +00:00
Jorge Gil
456e2fe90b Merge changes Ib2cc8d90,I6f2751b3 into tm-qpr-dev
* changes:
  Only bring desktop app to front when necessary
  Sort tasks by Z-order instead of lastActiveTime
2022-12-05 22:44:42 +00:00
Ying Xu
b250c79ea6 Merge "Remove the activity info from InternetTile" into tm-qpr-dev 2022-12-05 22:43:36 +00:00
Massimo Carli
4556613637 Merge "Log letterbox persistent positioning" into tm-qpr-dev 2022-12-05 22:34:24 +00:00
Tracy Zhou
d9afab9aa7 Log stage split exit from split to fullscreen keyboard shortcut
Test: N/A
Fixes: 261461056
Change-Id: Ibd8f668026f8bc191975ad0351727204b4bad2c2
2022-12-05 22:01:29 +00:00
John Wu
f7e8fc97f9 Check if ParsedMainComponent is null before dereferencing
Bug: 240151494
Test: m
Change-Id: I2d225efa747df06cb7513d7ace84a06de67ee895
2022-12-05 21:59:12 +00:00
John Wu
1cc6b20282 Merge "Disable intent filter enforcement in startActivityFromRecents" into tm-qpr-dev 2022-12-05 21:58:12 +00:00
Caitlin Shkuratov
f243434929 [Media TTT] Add a command line option to hide the undo button.
Mostly, this re-factors the Media TTT CLI to be more flexible in
handling any optional arguments.

Bug: 260127537
Test: `adb shell cmd statusbar media-ttt-chip-sender MyTablet
TRANSFER_TO_THIS_DEVICE_SUCCEEDED showUndo=false` -> shows chipbar but
without undo button
Test: Other adb commands with other params (`useAppIcon=false`,
`id=someId`) still work correctly

Change-Id: Iabc5029f6c66d8b348e5b7a224b221f240ec6ce5
2022-12-05 21:56:36 +00:00
Alison Cichowlas
890741f133 Register VolumeDialogImpl dumpable.
Bug: 232606092
Test: adb shell dumpsys activity service SystemUI | grep VolumeDialogImpl: (including final colon) has results
Change-Id: If15e3c5947b8595d824a21dc9088e3fc9e8636ac
2022-12-05 16:42:44 -05:00
Nicolo' Mazzucato
a29cd25a67 Remove top and bottom parent constraint from album_art as it has a fixed height
As the height is fixed, the bottom constraint is not needed. With the new ConstraintLayout version they were causing a conflict that ended up making the media player with a smaller height.

Bug: 261475673
Test: QSMediaPlayerContent
Change-Id: Ia5373a624e1c597af8d4899f9743672df23c9c88
2022-12-05 21:41:45 +00:00
David Saff
0ff970a960 Merge "Create MemoryTrackingTestCase for convenient heap dumping" into tm-qpr-dev 2022-12-05 21:17:24 +00:00
David Saff
6ae141f73c Create MemoryTrackingTestCase for convenient heap dumping
Test: manual checking with BubblesTest
Change-Id: I74a641e2d4fccff8f9184a05d0c4ce052f5241fa
Bug: 261482343
2022-12-05 21:15:34 +00:00
Caitlin Shkuratov
1c79c55c4e Merge "[Tests] Ignore flaky/failing ConfigurationControllerImpl test." into tm-qpr-dev 2022-12-05 20:46:31 +00:00
Aaron Liu
9271f66c37 [Bouncer] Remove margin top for bouncer view.
The bouncer view has a slight scroll feedback with touch and clips the children when scrolled up too far.
This is because of a parent container that has another child and has a margin top. I have moved the bouncer view
to the root view. This is fine because the sibling keyguard message area
is now only used when bouncer is not showing. Additionally I took the
sum of those margins and set it as the padding top in the view binder.

Fixes: 260477609
Test: Open bouncer.
Change-Id: Icdf5a314115693d9f7188971adba1396dac105e6
2022-12-05 12:33:34 -08:00
Gareth Vaughan
4cfed2aea9 Fixing test that is breaking in some environments. am: 735a3d612d am: 2b54e1af5b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20618518

Change-Id: Ibef15a4882f3696417fb1c95d3bdd3bc6fff4860
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 19:57:49 +00:00
Kenneth Ford
e742c1defa Continue searching for device state after exception
Instead of returning if a sensor value hasn't returned
we continue to look for a state that satisfy's
the current device configuration.

This fixes scenarios where some sensors return values
much faster than others on startup, and certain
states may have their conditions met.

Bug: 257292818
Test: Manual
Change-Id: I1796a682f0fa82ab9cba39e496369f59fd9c5721
2022-12-05 19:50:06 +00:00
Lucas Silva
9a202be8e4 Move condition logic to shared lib so it can be reused in DockSetup apk
This will help make the conditional code in DockSetup more scalable

Bug: 259724339
Test: mp droid
Change-Id: I3822ebbe3fcf6a3f0db65465b83932cd48dd9732
2022-12-05 14:44:11 -05:00
Michal Brzezinski
c4c5987b65 Making sure QS are visible when expanding shade with heads-up notification
QS was not visible because we were not updating QS expansion when heads up notification motion was in progress. Now we will do it when swiping down, so after going below starting movement position.

Fixes: 259447896
Test: show heads up notification -> swipe down on it -> QS should be visible throughout the whole down motion
Change-Id: Id54d7ac289fdd5bb527d9aa985e2bff90c4a4307
2022-12-05 19:41:35 +00:00
Gareth Vaughan
2b54e1af5b Fixing test that is breaking in some environments. am: 735a3d612d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20618518

Change-Id: Icc219ece6264da7faed31e598fa09d1c73700608
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 19:28:25 +00:00
Ying Xu
9ed1c59414 Remove the activity info from InternetTile
Activity info is not used by the InternetTile, so we can remove them to
avoid unnecessary tile updates.

Bug: 260714553
Test: Unit tests
Change-Id: I24575d87909db3d1824a37503458f1b7bdbced2e
2022-12-05 19:15:06 +00:00
Edward Savage-Jones
f16c38760b Add settings default handling for STATUS_BAR_SHOW_VIBRATE_ICON
Make the Secure.STATUS_BAR_SHOW_VIBRATE_ICON default configurable

Bug: 253992986
Test: manual - see issue
Change-Id: Ibada490c823a47ef145d9b50cadd4838c687711e
Merged-In: Ibada490c823a47ef145d9b50cadd4838c687711e
2022-12-05 19:12:31 +00:00
Bill Yi
d3b50de430 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2f8a4161f9e241e7124db11a8318c05cc94f761b
2022-12-05 19:00:35 +00:00
Tracy Zhou
0fce291799 Implement Split to fullscreen with META+CTRL+DPAD_UP
Bug: 246661489
Test: https://recall.googleplex.com/projects/f4cc906f-d337-414e-aea8-d5434a0c6e88/sessions/77b9b268-4abb-4703-af72-fc0412f7312e
Change-Id: Ie68e2c8a83879d3a9e91baea0be68e14d5dd9604
2022-12-05 18:56:40 +00:00
Florence Yang
c023c97f69 Merge "Color Change Animation for AnimatableClockView" into tm-qpr-dev 2022-12-05 18:33:05 +00:00
Pinyao Ting
fa4b2dc6d8 Implement a global maximum on number of shortcuts an app can publish
Currently there is a limit on the number of shortcuts an app can publish
in respect to each launcher activity. This CL further implements a
global maximum of total number of shortcuts an app can publish to
mitigate from any potential system health issue.

Bug: 250576066
Test: manual
Change-Id: I94b4e39475c7585ec67f15df1256fdf0b65f3bec
2022-12-05 18:24:23 +00:00
Aaron Liu
9ce60a5ab8 [Bouncer] hide/show keyboard when focus is...
regained. For the bonuncer, often times the UDFPS overlay, or AOD can
take the window focus. This will prevent the window of the bouncer from
sending signals to the input manager to hide/show the keyboard. Add an
override method for the password view to show or hide the keyboard
contingent upon the visibility of the view. Also refocus edit text when
changing orientation of device.

Fixes: 259552291
Test: Open scrimmed bouncer from AOD.
Test: Open bouncer and hide bouncer a bunch.
Test: Open bouncer from udfps overlay.
Test: Unit test.
Test: change view mode from landscape to portrait when on bouncer on tablet.

Change-Id: Ic30099408086f6dcc63506cac6ca2fb015504d17
2022-12-05 10:22:18 -08:00
Miranda Kephart
84dec979e1 Hide remote copy button when originating from remote copy
Test: manual, using ClipboardSpammer app
Bug: 261452765
Fix: 261452765
Change-Id: Ic04b1821186028084ff874f9ea1d5e16f3cbb18b
2022-12-05 18:09:14 +00:00
Anton Potapov
5e1ff36d33 Add force updating ManagedProfileController state on user change
Fixes: 254024780
Test: Manual + autotests
Change-Id: Ic276f886a4862ef20e773f1775d1f80c7f00b1cb
2022-12-05 18:04:29 +00:00
Nicolò Mazzucato
e291396eca Merge "fix QS header for new ConstraintLayout version" into tm-qpr-dev 2022-12-05 17:58:44 +00:00
Anton Potapov
e64a163f72 Merge "Move NetworkControllerImpl to @LongRunning thread to prevent @Background from being stuck" into tm-qpr-dev 2022-12-05 17:55:20 +00:00
Anton Potapov
4db94a0a62 Move NetworkControllerImpl to @LongRunning thread to prevent @Background from being stuck
Fixes: 246456655
Test: Manual
  1. Reboot the device
  2. Open the QS panel right after boot
Change-Id: I21dab08e46f1bbe3089d47bb7ea497c98cea24ff
2022-12-05 17:43:05 +00:00
Chet Haase
020d3fa7b2 Merge "Fix activity leak bug" into tm-qpr-dev 2022-12-05 17:42:40 +00:00
Gareth Vaughan
735a3d612d Fixing test that is breaking in some environments.
Test: atest com.android.server.pm.CrossProfileAppsServiceImplTest#startActivityAsUser_sameTask_fromProfile_success
Bug: 252837119

Cherry picked from: Ie0ca41247b80f927ef1377866d1a2d2d2deb5333

Change-Id: Ibd312b482ffe2df04eb1e33303800e2377fe203f
2022-12-05 16:38:54 +00:00
Matt Sziklay
53827bfa31 Merge "Fix for ANRs due to InputMonitor" into tm-qpr-dev 2022-12-05 16:35:11 +00:00