Commit Graph

781019 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Lyn Han
548d669ce1 Merge "Make Flags.FSI_CHROME accessible from kotlin" into tm-qpr-dev 2022-12-08 19:33:37 +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
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
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
Jordan Demeulenaere
8c222cabb6 Define the SystemUI typography
This CL defines the material typography that is going to be used by
Compose code in SystemUI. Most of the code from this CL was forked from
the Google Material implementation in google3 [1, 2, 3, 4], so that our
typography is consistent from 1P apps (and with the Google Material
spec). For this reason, I changed only what I had to + reformatted the
files using ktfmt. The direct references to "google-sans" will be
removed in http://ag/19500381 to keep this CL as close as possible from
the google3 classes.

Note that this new typography might not be 100% consistent with the
current text styles used in SystemUI, given that they are not consistent
with the new M3 spec. Those kind of inconsistencies will be fixed later,
as we figure out how SystemUI is going to be aligned with M3 in general
(and not w.r.t. Compose in particular).

[1] http://google3/java/com/google/android/libraries/material/compose/Typography.kt
[2] http://google3/java/com/google/android/libraries/material/compose/tools/tokens/library/md/first_party/TypographyTokens.kt
[3] http://google3/java/com/google/android/libraries/material/compose/tools/tokens/library/md/first_party/TypeScaleTokens.kt
[4] http://google3/java/com/google/android/libraries/material/compose/tools/tokens/library/md/first_party/asynctype/TypefaceTokens.kt

Bug: 230605885
Test: Manual
Change-Id: I116ef944c79e09fb0d4b0914c3da71a946fc169a
2022-12-08 16:08:35 +01:00
Fabian Kozynski
0bfdbbf4c2 Merge "Fix crash when trying to dismiss dialog" into tm-qpr-dev 2022-12-08 14:58:42 +00:00
Bill Yi
89433700b6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I202d9ba75a6c1fa91b42650a7444b849d91c520d
2022-12-08 06:19:44 -08:00
TreeHugger Robot
3c86fce3a9 Merge "Remove old footer actions implementation" into tm-qpr-dev 2022-12-08 14:12:11 +00:00
TreeHugger Robot
acc8dd3223 Merge "Logging fold update name instead of just integer for easier bug report reading" into tm-qpr-dev 2022-12-08 13:52:07 +00:00
Bill Yi
0c6b5143bf Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I517889f6f9ec5c1b95a3ded9af761b3099f5c5a6
2022-12-08 05:48:59 -08:00
Chris Poultney
56a0d71936 Merge "Add home/lock screen argument to remaining methods that require one" into tm-qpr-dev 2022-12-08 13:43:03 +00:00
Jernej Virag
cfe20e8b38 Add flag to gate Notification memory logging via statsd
This flag will enable/disable automated statsd snapshotting of
notification memory consumption.

Bug: 235451049
Test: n/a
Change-Id: I4db4e5828bed85ba1bb85b22f680f10975b5e9c2
2022-12-08 14:02:06 +01:00
Bill Yi
0b8226917e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9e24ae9fec4fa28bcd068bc23de7dffe966b35b1
2022-12-08 04:52:51 -08:00
Bill Yi
518fbad053 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7535b2a7a98c2abbb7467f99ecf10d10c52d03e0
2022-12-08 04:49:43 -08:00
Bill Yi
2b0c9c1b91 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1ac29a74f1146433fe60851d0fa17f846df27ff5
2022-12-08 04:07:53 -08:00
Bill Yi
9f11d242da Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I623f095004f5e6a96e4a91a3a5823788609ea613
2022-12-08 00:56:08 -08:00
TreeHugger Robot
b9e3f7135a Merge "Increase power-press timeout" into tm-qpr-dev 2022-12-08 08:56:02 +00:00
Chris Li
d7994f8a97 Merge "Request change transition for layout direction change for legacy" into tm-qpr-dev 2022-12-08 07:36:55 +00:00
Louis Chang
2f821c9001 Prevent IndexOutOfBoundsException while removing activities
IndexOutOfBoundsException was thrown when traversing the Task
from bottom to top because the activity could be removed from
the Task and the activities are less than its original size.

Bug: 249658397
Bug: 260643770
Test: 1) Start multiple activities in a Task
      2) Swipe up to home
      3) Kill the app process from shell
      4) Remove the task from Recents
Change-Id: I64955415c04da30d7dc8a4681474ceb06db1e88b
Merged-In: I64955415c04da30d7dc8a4681474ceb06db1e88b
2022-12-08 07:08:02 +00:00
Shaowei Shen
31b52d1bad Merge "[Output Switcher] Update device selection layout" into tm-qpr-dev 2022-12-08 06:22:40 +00:00
Chris Li
1d90ad8bab Merge "Fix ActivityEmbedding animation with new split in different layout" into tm-qpr-dev 2022-12-08 05:35:40 +00:00
Chris Li
53c5aa6792 Merge "Fix customized activity open/close animation backdrop color" into tm-qpr-dev 2022-12-08 05:34:00 +00:00
Jing Ji
72e5627c7a [automerger skipped] Merge "DO NOT MERGE: Context#startInstrumentation could be started from SHELL only now." into rvc-qpr-dev am: 95907cfca2 -s ours am: d577c51c3d -s ours am: f684abcd18 -s ours am: 64da92499e -s ours am: e166e03ed3 -s ours am: d094458104 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20322505

Change-Id: Ic989e2775c0515ffc1c663b1bd54b8abe7333042
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-08 05:31:25 +00:00
Jing Ji
df2277b423 [automerger skipped] DO NOT MERGE: Context#startInstrumentation could be started from SHELL only now. am: 0b75cda3c2 -s ours am: 7fe7416e79 -s ours am: a41bf91d53 -s ours am: c22b698208 -s ours am: 1e076760e6 -s ours am: 27e23a3d50 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20322505

Change-Id: I9c8332a9b5b4b2c6457c8922182916504193eba9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-08 05:31:11 +00:00
Pinyao Ting
c6ec6164dc [conflict] Merge "Implement a global maximum on number of shortcuts an app can publish" into rvc-dev am: 584d18790a am: f9a6a136a0 am: bb4ff2e484 am: eee3312ac2 am: 4611aa5717 am: 69042ba58f am: 891d482fb6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20671668

Change-Id: I148aa61a3b91bdb12bc14413ee05e744a37ac921
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-08 05:30:39 +00:00
Jing Ji
d094458104 [automerger skipped] Merge "DO NOT MERGE: Context#startInstrumentation could be started from SHELL only now." into rvc-qpr-dev am: 95907cfca2 -s ours am: d577c51c3d -s ours am: f684abcd18 -s ours am: 64da92499e -s ours am: e166e03ed3 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20322505

Change-Id: I6a52a39f4df7bfca6494bdcc23af2f2ca91cec15
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-08 05:08:16 +00:00