Commit Graph

781408 Commits

Author SHA1 Message Date
Fabian Kozynski
95df978891 Fix affordance in lockscreen and dream
If there is at least one panel (resolved), we should show the
affordance, even when we have no favorites.

Also, fix a bug in ControlsUiController.resolveActivity: anyPanels
should use `List.any`.

Test: atest DreamHomeControlsComplicationTest
Test: atest HomeControlsKeyguardQuickAffordanceConfigParameterizedTest
Test: atest ControlsUiControllerImplTest
Test: manual on lockscreen and dream
Test: launch device controls from tile for first time
Fixes: 261751925

Change-Id: I832473d243746015a1f20a7fa9b6d0e05d6c668c
2022-12-09 11:31:29 -05:00
Hawkwood Glazier
32c64cbd9c Disable NotificationPanelViewControllerTest.*_returnSpaceAvailable
These tests appear inconsistent now. It's not flaky, but it does
appear to change depending on the test environment.

Bug: 261472011
Test: atest NotificationPanelViewControllerTest
Change-Id: I6fc772d1ee85971072147e073b15f1feb8137107
2022-12-09 15:42:35 +00:00
Nicolo' Mazzucato
f1be8693bf Fix large screen QS header
The problem happened when going form the expanded clock layout (when QS are fully expanded), to the large screen transition layout.

This fix sets the header transition to start when on large screens.

Without doing this, the transition was staying at the latest progress in the previous constraintSet.

Bug: 261791489
Test: presubmits + tested locally
Change-Id: Ice698e169b1328c3a83189c268dbac820b564cf7
2022-12-09 15:23:56 +00:00
Miranda Kephart
f42e03e9e4 Fix bug where screenshot preview margins were too large
Also fixes clipboard overlay (which uses substantially the same layout)

Bug: 261557707
Fix: 261557707
Test: manual (visual change only)
Change-Id: Ic5f3d6b096378e61a8c5808326e1d8b5406a1e9d
2022-12-09 15:10:13 +00:00
Govinda Wasserman
bf5bccf46d Creates flag for controling which Quick Tap framework is used
Test: None
BUG: 254030474
Change-Id: Id95221e1466d8cbd59d7a2dae7d5d905217c350f
2022-12-09 09:58:39 -05:00
Jamie Garside
1f9eb48888 Merge "Enable stepped clock flag in Teamfood." into tm-qpr-dev 2022-12-09 14:57:35 +00:00
Riddle Hsu
6ecaf45857 Merge "Keep rotation transform for exiting PiP with fixed rotation" into tm-qpr-dev 2022-12-09 14:45:11 +00:00
Riddle Hsu
0e8f4211ee Merge "Only apply crop to task and task fragment in end transition" into tm-qpr-dev 2022-12-09 14:40:44 +00:00
Tiger
d95134d7c2 Refine the naming about compatible scale
There can be 2 reasons that we need to apply compatible scale to a
window:

1. The app doesn't support large screen. We would layout the window as
   if it is on a small display. And then we need to scale its window up
   to match the display.

2. We put a running app into a container that the size doesn't fit. We
   need to down-scale the app so that it can fit the container.

The scaling of case 2 is also known as size-compat-scale which is fully
controlled at the server side. The client shouldn't know about it. And
this CL refines the naming.

Fix: 258393096
Bug: 254187021
Test: presubmit
Change-Id: Ifbd2ca725bed231d9e6dd8190df3dc773d4402b7
(cherry picked from commit bcbd60c45c)
Merged-In: Ifbd2ca725bed231d9e6dd8190df3dc773d4402b7
2022-12-09 14:08:57 +00:00
Jeff Chang
9eef8ebc44 Check lock-task mode if task_on_home is applied
d41841f469, always checks whether the home task is violated
with lock-task mode while moving the task to the front. That result in
the pinned toast was shown even applications don’t not request to have
task_on_home behavior.

This CL checks the home task violation with lock-task mode after the
task-on-home flag is applyed.

Bug: 261383209
Test: atest TaskTests#testReturnsToHomeRootTask
      atest ActivityVisibilityTests#testLaunchTaskOnHome
Change-Id: Iccc7e595b043a712c5959d28ba14f54825bcadd6
2022-12-09 18:57:03 +08:00
Vania Januar
b05028a9a0 Feature flag for stylus battery notifications.
Bug: 250908244
Test: is just a flag
Change-Id: I66d35bbeca73690d27ca3da619b7b88b5447d806
2022-12-09 10:15:42 +00:00
Chris Li
7a67089554 Fix missing legacy change transition on display info changed
Before, we remove the changing window from transition onDisplayChanged
even if it is a display info change on the same display. Now, we only do
that when the window is moved from the old display.

Fix: 251001013
Test: atest WmTests:WindowContainerTests
Change-Id: Id3ab6db47dad8e2541a14b5529694c290e4d2b66
2022-12-09 08:52:17 +00:00
Chris Li
95cfcf7bbe Downgrade reported WM Extensions version in T_QPR2
Some features relying on API version 2 are not fully ready yet.

Bug: 261780650
Test: N/A
Merged-In: I0a4f2bfcddd7f20f53e702f2bc2144d2fd939a21
Change-Id: I0a4f2bfcddd7f20f53e702f2bc2144d2fd939a21
2022-12-09 08:15:24 +00:00
Arc Wang
b9feeee55b Merge changes from topic "revert-20517233-Cloned User Storage Issue-tm-qpr-dev-XJICGTXJHD" into tm-qpr-dev
* changes:
  Revert "Fixing Storage Volume listing for Cloned User."
  Revert "Fixing Storage Volume(s) Retrieval."
2022-12-09 08:03:22 +00:00
Bill Yi
2e95535cfb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaf9e4d2e757166ae320b42ef9aac1001aa8ddc76
2022-12-09 05:07:49 +00:00
Louis Chang
1823479a4d Do not append NEW_TASK flag when caller activity is finishing
The caller activity and its task should be able to reuse. There's
no need to migrate the launching activity to another Task.

Bug: 233591548
Bug: 260978212
Test: wm presubmit
Change-Id: I2bd5f01ef9196010f1af1aa7cb9e6a45984e960d
(cherry picked from commit a7269cd7e1)
2022-12-09 03:25:29 +00:00
William Xiao
b6b5286f39 Add configuration for default timeout to dock user
See other changes in the topic for context

Bug: 260123067
Test: verified on local device that timeout is 60s by default
Change-Id: I72b5fb35aef14e90f98fa9b281134a5af0f16813
2022-12-08 18:49:38 -08:00
Ming-Shin Lu
99a763bf13 Merge "[Shell-trantition] Fix keyguard exit animation may no-op at first boot" into tm-qpr-dev 2022-12-09 02:28:58 +00:00
Arc Wang
4736afef80 Revert "Fixing Storage Volume listing for Cloned User."
Revert submission 20517233-Cloned User Storage Issue-tm-qpr-dev

Reason for revert: “DroidMonitor: Potential culprit for Bug 261921307 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.”
Reverted Changes:
I6835cc4d2:Fixing Storage Volume(s) Retrieval.
I617bae9b2:Fixing Storage Volume listing for Cloned User.

Change-Id: I08722e8467fafa53ab914ec5de0380d2df62b55d
2022-12-09 02:12:08 +00:00
Arc Wang
2616b20e7a Revert "Fixing Storage Volume(s) Retrieval."
Revert submission 20517233-Cloned User Storage Issue-tm-qpr-dev

Reason for revert: “DroidMonitor: Potential culprit for Bug 261921307 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.”
Reverted Changes:
I6835cc4d2:Fixing Storage Volume(s) Retrieval.
I617bae9b2:Fixing Storage Volume listing for Cloned User.

Change-Id: Ia8b8b4f35bf9bdfe7eefa36372ae3525dc405e53
2022-12-09 02:12:08 +00:00
Ats Jenk
e29f11f831 Implement move to desktop and fullscreen
Add methods to move a task to fullscreen of freeform in proto2
controller.
Use these methods in window captions to move a task to desktop and back
to fullscreen.

Bug: 261234251
Test: atest DesktopTasksControllerTest
Change-Id: I9907038ad3882240b1f70b6f0c29c677cb4f4a51
2022-12-08 17:44:17 -08:00
Ats Jenk
99156bd05d Implement showDesktopApps
Copy logic over from proto1 to bring desktop apps to front.
There is one key difference from proto1 logic. In proto2, before desktop
tasks are shown, we ensure that the home task is brought to front. And then
place desktop tasks on top. This is due to proto2 having fullscreen and
freeform tasks running at the same time.

Bug: 260645044
Test: atest DesktopTasksControllerTest
Change-Id: Ic5de4d431b96893ef5d685a4dce28e08f17f6f97
2022-12-08 17:44:17 -08:00
Ats Jenk
e57c264131 Create controller for desktop prototype 2
Create the controller class, set up dagger.
Ensure controller is not initialized when flag is off.

Bug: 260645044
Test: atest DesktopTasksControllerTest
Change-Id: I0435e07a22e379f403ae5d1b23f39a67a12e8a6d
2022-12-08 17:43:17 -08:00
TreeHugger Robot
5e43214256 Merge "Cleanup removal of taskbarSize from calculation" into tm-qpr-dev 2022-12-09 00:53:10 +00:00
Ats Jenk
4613b0f07d Merge "Enable common logic for proto 1 and proto 2" into tm-qpr-dev 2022-12-09 00:43:04 +00:00
Chris Li
4706a5c650 Merge "Fix ActivityEmbedding placeholder launching above fullscreen activity" into tm-qpr-dev 2022-12-09 00:11:50 +00:00
Austin Borger
0e7cbb04a2 Merge "DO NOT MERGE CameraManager: Provide flag for overriding camera output to portrait." into tm-qpr-dev 2022-12-09 00:04:20 +00:00
Yein Jo
68ebf467e0 Fix RippleFinished being called on first draw.
Bug: 261492904
Test: MultiRippleControllerTest
Change-Id: I6d56a901f898485578ae5acf6d8cae24a269652d
2022-12-08 22:08:28 +00:00
TreeHugger Robot
80d7be59bc Merge "Ignore AlternateTouchProvider for UDFPS_NEW_TOUCH_DETECTION" into tm-qpr-dev 2022-12-08 22:03:32 +00:00
Aurélien Pomini
b49b0aec0b Move all the ImageWallpaper logic outside the main thread
In order to avoid any thread contention, all the ImageWallpaper logic should be moved out of the main thread. This CL moves the last things that were done on the main thread:
   - Call surface.lockCanvas and canvas.drawBitmap
   - Call reportEngineShown

Bug: 242969351
Test: atest ImageWallpaperTest
Test: treehugger
Change-Id: I2a4400c8eaf0d9b8a182e618655855188a15892b
2022-12-08 21:03:10 +00:00
Fabian Kozynski
7dc6120c1a Merge "Move trigger for dialog to change controls settings" into tm-qpr-dev 2022-12-08 20:59:52 +00:00
Himanshu Gupta
7527f61d86 Merge "Fixing Storage Volume(s) Retrieval." into tm-qpr-dev 2022-12-08 20:58:18 +00:00
Himanshu Gupta
4a5b6525cd Merge "Fixing Storage Volume listing for Cloned User." into tm-qpr-dev 2022-12-08 20:58:18 +00:00
Hongwei Wang
cabd5d5592 Ensure SysUI gets VIS callback when session's over
There are chances that SysUI does not get the
onVoiceSessionWindowVisibilityChanged(false) callback if the
voice interaction window was visible then the connection is closed.

This could cause issue for TaskBar since TaskBar relies on the callback
to clear its intermediate state.

Video: http://recall/-/b1EZhgUkQcpML5OwZekLBN/giEfwSaYA9saSOfGQwCAus
Bug: 254070601
Test: follow the reproduce steps in bug, see also video
Change-Id: I0222eea38179620c36253f47f332536ffb9e434c
2022-12-08 12:26:39 -08:00
Florence Yang
529fba976e Enable Region Sampling Flag for Teamfood
Enable teamfood for region sampling text protection feature that's
hidden behind a flag. This is in hopes of having more people test the feature to catch bugs and get more feedback.

Bug: 202758428
Test: manual
Change-Id: If29b183114c06ab90edaf78765a4c8eb2d8c6bb6
2022-12-08 20:06:48 +00:00
Shawn Lee
ee49e0270a Added logging for setting mMotionAborted in NPVC
Added logs for when we flag motion events as aborted and
filled in gaps for when we throw away touches in NPVC

Bug: 258708442
Test: n/a
Change-Id: Ie696834fac32a02ac509b94d75d9feea5785946a
2022-12-08 11:48:32 -08:00
Lyn Han
548d669ce1 Merge "Make Flags.FSI_CHROME accessible from kotlin" into tm-qpr-dev 2022-12-08 19:33:37 +00:00
Hawkwood Glazier
f400d32813 Fix Positioning of large custom clocks within frame
This reverts Iaeddce2d99a2b8db5afb6ac8ca508eeab3ae223e without
reintroducing b/259758161. It does this by compensating for the
change in margin in KeyguardClockSwitchController.getClockBottom().
This maintains existing functionality for the aod behaviour in
KeyguardClockPositionAlgorithm. As part of validation I confirmed
that the arguments to KeyguardClockPositionAlgorithm.setup did not
change with this patch.

Bug: 259758161
Fixes: 261754025
Test: Manually checked KeyguardClockPositionAlgorithm
Change-Id: I119abb49a018f6fb505100ea985d3b4121ac59f7
2022-12-08 19:10:34 +00:00
Julia Tuttle
cbb3c5d960 Merge "Promote no_hun_for_old_when to teamfood" into tm-qpr-dev 2022-12-08 17:42:54 +00:00
Aaron Liu
d77c16f960 Merge "[Bouncer] refine entry for bouncer user switcher." into tm-qpr-dev 2022-12-08 17:30:04 +00:00
Aaron Liu
383be0ac55 Merge "[Bouncer] Remove margin top for bouncer view." into tm-qpr-dev 2022-12-08 17:29:40 +00:00
Yuri Lin
df3fe37fd3 Add UiEvents for cancellation reasons previously not covered
Bug: 260852245
Test: statsd_testdrive
Change-Id: Ie976d9f826e7d53089fe65ba0735b40a79587f6f
Merged-In: Ie976d9f826e7d53089fe65ba0735b40a79587f6f
2022-12-08 17:21:36 +00:00
Fabian Kozynski
4454139264 Polish background for controls panel.
Now the background is a #1f1f1f 1dp border around the panel.

Fixes: 261201851
Test: manual
Change-Id: Ica0c410602860c69583d50c670883919e2f4292d
2022-12-08 11:17:05 -05:00
Beverly Tai
fb952d5f3c Merge "Allow pickupGestureEnabled default configurable" into tm-qpr-dev 2022-12-08 16:16:55 +00:00
Jernej Virag
b37bd87a54 Merge "Add flag to gate Notification memory logging via statsd" into tm-qpr-dev 2022-12-08 16:12:03 +00:00
Yuri Lin
7c1e219d6d Add an enum for decisions about whether to launch FSI.
This change splits shouldLaunchFullScreenIntentWhenAdded into two parts: one that returns the specific decision for whether to launch a full screen intent for an entry, and one that logs that decision.

It also adds a sub-category of "suppressed by DND" called "suppressed only by DND", where DND is the only thing stopping an FSI from launching but all other cases would allow it.

Bug: 248325248
Test: NotificationInterruptStateProviderImplTest

Change-Id: Idd1299312edb58d005e089d89db7921c15c6e2bc
2022-12-08 11:09:33 -05:00
Fabian Kozynski
7136a959a8 Move trigger for dialog to change controls settings
Refactor the dialogs that were in ControlsActionCoordinatorImpl so they
can be called from multiple places. Preserve the behavior if
`FLAGS_USE_APP_PANELS` is false.

If the flag is true, they are called when `ControlsActivity` is
started on a locked device, requiring unlock
to actually change the settings. Regardless of the response, the
controls space is shown (it will only be triggered to change the
ALLOW_TRIVIAL_CONTROLS setting).

Test: atest com.android.systemui.controls
Fixes: 260731518
Change-Id: I1fd972d64a6f90179d4a9b282bb8fe4ac38048e6
2022-12-08 10:53:46 -05:00
Riddle Hsu
e3a8bcca10 Use seamless for collecting transition with fixed rotation
When swiping up to enter PiP (auto-pip), the transition type will
PiP. If it affects display orientation at the same time, the
next activity will have fixed rotation transform. Then the display
should also use seamless rotation to avoid taking screenshot
and flickering of overlay windows (e.g. round corner) because the
draw transaction is not synced.

Also correct task transform for a corner case: expanding PiP to
different orientation, but display orientation is changed to
previous orientation during the animation. Then there is no next
transition to reset rotation transform of task. So manual reset
it when receiving a cancel event of the change.

Bug: 260925940
Test: Enable shell transition.
      Use Chrome to play a Youtube video in fullscreen landscape.
      Enter PiP mode by swiping to home.
      The round corner and cutout should not be flickering.
Change-Id: Ibebf033233e43e778b94b7947ab935ca5bc76388
2022-12-08 23:50:26 +08:00
Lucas Silva
3a1994eac8 Merge "Move condition logic to shared lib so it can be reused in DockSetup apk" into tm-qpr-dev 2022-12-08 15:49:11 +00:00
Jordan Demeulenaere
df264869d3 Remove references to "google-sans" in SystemUITypography
Test: Manual
Bug: 230605885
Change-Id: Ib5602aea3803086cadaf1eb700e7916cd3325732
2022-12-08 16:08:36 +01:00