Commit Graph

781408 Commits

Author SHA1 Message Date
Massimo Carli
78dbccadd3 Log letterbox persistent positioning
Adds additional information to the dump for Letterboxing

Fixes: 261224023
Test: Run `adb shell wm get-letterbox-style` and check the
current letterbox positioning

Change-Id: Id215b4819533a7e5adbe16696fe0cddfcb1b02f9
2022-12-05 16:18:47 +00:00
Caitlin Shkuratov
81202a8e98 [Tests] Ignore flaky/failing ConfigurationControllerImpl test.
Bug: 261408895
Test: atest ConfigurationControllerImplTest
Change-Id: I0a524a0d08d6ecab6b1754f8afff5c52d232e429
2022-12-05 16:09:50 +00:00
Caitlin Shkuratov
98fca32ddc [Dock Defend] Update flag to be resource-backed so we can enable it on
certain devices only.

Fixes: 261156040
Bug: 255625888
Test: `adb shell am broadcast -a com.android.systemui.demo
    -e command battery -e overheated true` -> shield displays on titan
    but doesn't display on other devices
Change-Id: I40c0d841ba0c8e1c41bbdb13abbaf0c0ef5125af
2022-12-05 16:03:17 +00:00
Hawkwood Glazier
5db8d1ea4d Merge "Initialize Clock Size from NotificationPanelViewController" into tm-qpr-dev 2022-12-05 15:47:29 +00:00
TreeHugger Robot
ce370c628d Merge "Show side fingerprint sensor on bouncer also for small screens" into tm-qpr-dev 2022-12-05 15:41:17 +00:00
Jordan Demeulenaere
05bfd05130 Fix parental control dialog
This CL fixes a bug introduced by ag/19712818: when inflating the
parental control dialog, we should use the Quick Settings context (which
is always using dark mode) and not the application context. Otherwise,
if we are in light mode, then the color of the text is the same as the
background and it looks like there is not content in the dialog. In dark
mode, everything was looking fine because the text color from the
application context would be light.

Bug: 260108168
Test: Manual
Change-Id: Ibc9d5374d44955493a41b477482d5585546c7eb1
2022-12-05 16:27:12 +01:00
Jordan Demeulenaere
8b0efe7d89 Fix NPE in QSSecurityFooterUtils
Bug: 261424600
Test: Manual
Change-Id: I28a14ab9798d66c43d6d9d08259f6a6e80ea5c5d
2022-12-05 16:26:55 +01:00
Aaron Liu
74eae242c0 Merge "[Bouncer] Fix some responsiveness issues." into tm-qpr-dev 2022-12-05 15:24:41 +00:00
TreeHugger Robot
2964094574 Merge "Remove framework faceDetect requirement" into tm-qpr-dev 2022-12-05 14:54:07 +00:00
TreeHugger Robot
60ccbef8b5 Merge "On strongAuthChanges, update fp & face states" into tm-qpr-dev 2022-12-05 14:54:07 +00:00
Riddle Hsu
80737bf660 Defer creation of input sink surface until sync completes
Currently with shell transition, isVisible() is true once visible
is requested for launching activity. Then the input sink surface
will be created when previous activity completes pause. But because
the launching activity is in transition and the transaction is sync
transaction, its surface operation is also deferred until the
remote applies the sync transaction. In other words, the creation
is too early and leads to lock contention such as blocking preparing
starting window.

With the sync state check, the timing of creating input sink surface
will be similar as legacy transition, which is after the transition
is ready, i.e. sync finished. That timing is usually less sensitive
(contention) to transition latency.

Bug: 260059642
Test: atest ActivityRecordInputSinkTests
Test: Transition latency of OpenAppMicrobenchmark

Change-Id: Id9719510c74296392e988abf8d48fe3af78026d3
2022-12-05 22:39:48 +08:00
Issei Suzuki
cd8958e685 Fix WM shell crash when targets belong to a different display.
When showWhenLocked activity is launched on a second display, it's
possible that a window container for a wallpaper on the default display
and the showWhenLocked activity on the second display are both collected
for app transition.

This is a workaround to prevent NPE for such cases.

Bug: 260997053
Test: atest MultiDisplayLockedKeyguardTests
Change-Id: I9dbd0928aa785a6d547b8e19841748280ba982c9
2022-12-05 14:32:18 +00:00
Marcello Galhardo
eab8879293 Add Note Task shortcut
Include a Note Task shortcut to the Widget Picker with utilities to enable (show) or disable (hide). The Note Task shortcut opens in a Floating Window.

Test: atest SystemUITests:NoteTaskInitializerTest
Test: atest SystemUITests:NoteTaskControllerTest

Fixes: b/251207256

Change-Id: Ic434b2cd912c3568284c3daec6c338e45870c11f
2022-12-05 14:23:18 +00:00
Ioana Alexandru
bffb18e837 Trim strings added to persistent snoozed notification storage.
Fix: 258422365
Test: atest NotificationManagerServiceTest SnoozeHelperTest; Also tested the reproduction steps in b/258422365#comment6 manually to check that the issue doesn't happen anymore.
Change-Id: I5a2823f10053ea8c83c612a567d6d4f1b6af23e7
2022-12-05 13:44:13 +00:00
Santos Cordon
2b46e4671b Merge "Do not send updates for disabled displays." into tm-qpr-dev 2022-12-05 13:31:40 +00:00
Nicolò Mazzucato
d1783ae8f9 Merge "Add dark scrim from a background thread during unfold" into tm-qpr-dev 2022-12-05 12:54:12 +00:00
omarmt
5022740b37 Define clear ownership for roundness SourceType
Test: atest RoundableTest
Test: manual test
Bug: 257000427
Change-Id: Ib9f2f35cc67f93da818830b807573bc54b075b8f
2022-12-05 11:55:25 +00:00
Nicolo' Mazzucato
7700e677f4 Add dark scrim from a background thread during unfold
This attaches the black scrim in the background. All changes to that view have to go though the background handler.

Bug: 254924424
Test: current unfold tests should work unchanged && manually verified things are as expected with a perfetto trace
Change-Id: I224d9084b6f20230810faa6cc6d6b8bd6b46f518
2022-12-05 11:32:57 +00:00
Nicolo' Mazzucato
124b2a3b56 fix QS header for new ConstraintLayout version
With new ConstraintLayout versions layout_constrainedWidth was causing the view to assume match_parent width.

As MotionScene supports importing external layouts, we're not loading them at runtime anymore.

Also, the transition for large_screen_header_constraint is not used anymore, as initial and final constraint were the same.

Bug: 259933125
Test: CombinedShadeHeaderConstraintsTest and manual
Change-Id: I3961d9f4311c96b5d0663e1700fca78be5e6544b
2022-12-05 10:36:37 +00:00
Betty Chang
e094dfde3a Merge "[LE Audio] Add BT LE headset check for voice call to update the icon" into tm-qpr-dev 2022-12-05 09:48:51 +00:00
Massimo Carli
6db1ce2740 Merge "Apply rounded corners to startWindow" into tm-qpr-dev 2022-12-05 09:17:16 +00:00
Tony Huang
104a5f5ce4 Implement split resize shell transition
For reduce jank or flicker when resize ActivityEmbedding in split
case, we should apply shell transition to resize case too.

Fix: 247678744
Test: manual
Test: pass existing tests
Change-Id: I8a1aa500d5928284ca7955042dffb617be15635a
2022-12-05 16:23:49 +08:00
Chris Li
f2296dcb79 Fix ActivityEmbedding animation with new split in different layout
When launching an activity into a new TaskFragment with a different
split layout from the existing split, there can be many situations, such
as different split ratio or layout direction.

Use a jump cut for now since it is not a common use case, and it is hard
to cover all situations.

Bug: 241043533
Fix: 258126611
Test: verify with opening new activity to new split layout.
Change-Id: I6c96518b282567339fb890e7f4af7d9d82c98418
2022-12-05 16:12:42 +08:00
Lyn Han
f00bc19184 Make Flags.FSI_CHROME accessible from kotlin
Bug: 243421660
Test: flag is accessible from kotlin
Change-Id: I753928a6d4e85959e0af7ab77386c52b92ad71c7
2022-12-04 22:08:52 -08:00
Winson Chung
b12c9da65e Log recents listener when dumping
Bug: 242377577
Test: dumpsys activity service SystemUIService WMShell
Change-Id: I4fcb7e42cf128558c0a4340291dcc21d7a4c4bb3
2022-12-05 05:23:06 +00:00
Jerry Chang
b60de628ba Merge "Consolidate entering split screen behavior" into tm-qpr-dev 2022-12-05 03:30:34 +00:00
wilsonshih
d5c42788cd Do not request WAKE transition when device wake up.
The wake up transition should be used to waiting for ShowWhenLocked
transition, but we cannot know whether there have an activity which
requested device wake up, it can be also be a normal screen on.
For those keyguard-related transition, they can be request in
KeyguardController while updateVisibility, and collect participated
activity at the same time, so the transition won't happen too early.

The empty wake transition can affect tests which use injectInputEvent
while waiting for animation (WMS#waitForAnimationsToComplete), which
lost those input event.

Bug: 259231431
Test: run atest KeyguardTests KeyguardLockedTests KeyguardInputTests
w/o AOD enabled.
Test: atest LockscreenWithInvalidPassword

Change-Id: Ib2db22bb5fe92f79dbd14948dae8d8a2b538f605
2022-12-05 03:04:25 +00:00
Shawn Lee
be69929b02 Merge "Moved PhoneStatusBarView touchHandler out of NPVC" into tm-qpr-dev 2022-12-04 23:08:07 +00:00
Bill Yi
d088d68983 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 411521b6a1 -s ours am: d09c03c433 -s ours am: 0b49fc62a3 -s ours am: 4bd09ef803 -s ours am: ed8cd54d93 -s ours am: db6f44c11e -s ours
am skip reason: subject contains skip directive

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

Change-Id: I1cd58feb48a2de86ab7a2c3b864394dd4422f1f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 21:42:19 +00:00
Bill Yi
db6f44c11e [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 411521b6a1 -s ours am: d09c03c433 -s ours am: 0b49fc62a3 -s ours am: 4bd09ef803 -s ours am: ed8cd54d93 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I0c9d121365bf09058eb095df3782835bdb3f46f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 21:14:13 +00:00
Bill Yi
ed8cd54d93 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 411521b6a1 -s ours am: d09c03c433 -s ours am: 0b49fc62a3 -s ours am: 4bd09ef803 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I0e291cc2ad26ef0b4cb4d8cd69166ebac1651bef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 20:28:18 +00:00
Bill Yi
4bd09ef803 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 411521b6a1 -s ours am: d09c03c433 -s ours am: 0b49fc62a3 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I1affd77b6e393a827f1a67de3eb7d84338147fe8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 19:56:29 +00:00
Shawn Lee
a842c69812 Moved PhoneStatusBarView touchHandler out of NPVC
Moved PSBV.touchHandler out of NPVC and
into PhoneStatusBarViewController.

Bug: 249275160
Test: existing tests
Change-Id: Id71bb9fab1d889cd1c193595b233cccd9c3f37ef
2022-12-04 11:46:54 -08:00
Bill Yi
0b49fc62a3 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 411521b6a1 -s ours am: d09c03c433 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I4ed7e0a9e605ed81bb22f59e9f4999fef90bbcdf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 19:20:51 +00:00
Bill Yi
d09c03c433 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 411521b6a1 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I7628b7a4ccb957d5f72c83ea568c03ef5fa41020
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 18:43:06 +00:00
Bill Yi
e874bde751 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7a56118254c70cae20f8349a450e4d0c9c50f2c8
2022-12-04 00:19:18 -08:00
Bill Yi
d1f5c57b32 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8eca1c574048b6425dd9c1ed095ea157354ce832
2022-12-03 19:19:36 -08:00
Bill Yi
f34821609e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ied9ac950f48848374464430cf4b76c0cd8d1e866
2022-12-03 17:59:49 -08:00
Bill Yi
8f29a24a83 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifc75ca9ad4b83b02ccdff63a259d6784dea1ba3b
2022-12-03 17:27:01 -08:00
Bill Yi
681ae2a1c1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I24cda2b3f39f3e4abdd405e52499e639e787b382
2022-12-03 17:20:51 -08:00
Bill Yi
411521b6a1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I363f6e45c4c0e8e78e55e0ae114be4250a7625db
2022-12-03 16:15:12 -08:00
Massimo Carli
f4976b84a3 Apply rounded corners to startWindow
This removes the corner animation flickering happening when
starting a letterboxed app after a configuration change
(eg. Dark/Light mode)

Test: Manual
Fixes: 234107097

Change-Id: Iad9f4aaeb8edeeb56b0c88d7d0239843cd66a8f9
2022-12-03 13:25:16 +00:00
Matt Pietal
2a314ee828 Transitions - Add dozing information
Dozing is separate state, apart from AOD, where low power sensors are
enabled but the screen is not active. Begin accounting for this state
during transitions.

Also, use the class name for logging.

Also, recover dreaming state after a crash.

Test: atest KeyguardRepositoryImplTest
KeyguardTransitionRepositoryTest
Bug: 195430376
Fixes: 259782960

Change-Id: Id887c886c4a1df4d4c466b5ea9f4c4507bfcd50e
2022-12-03 13:04:30 +00:00
Matt Pietal
73c694161c Merge "Fix errant bouncer/keyboard display over keyguard" into tm-qpr-dev 2022-12-03 12:55:47 +00:00
Chris Li
bac0f96f1e Merge "Fix activity relaunch issue with ActivityEmbedding" into tm-qpr-dev 2022-12-03 10:45:00 +00:00
TreeHugger Robot
816123320d Merge "Add logic to show apps running certain jobs in Task Manager." into tm-qpr-dev 2022-12-03 06:20:53 +00:00
TreeHugger Robot
c1108902cd Merge "Allow starting activity for result on another TaskFragment" into tm-qpr-dev 2022-12-03 03:55:03 +00:00
Chris Li
8f22204338 Fix activity relaunch issue with ActivityEmbedding
When Activity relaunched, the SplitController will receive
onActivityDestroyed and onActivityCreated.

Before, we always remove all the reference onActivityDestroyed, which
can accidentally remove split pair finish relationship. Now we only
do that when the activity is actually finishing.

Also do the following to make sure there is no other regression:
1. Replace the stored activity reference with activity token, so it
   won't be changed when activity relaunched.
2. Update #getContainerWithActivity to first check pending appeared
   activity to make sure it returns the correct container before the
   server update.

Bug: 260301635
Test: atest WMJetpackUnitTests:SplitControllerTest
Test: atest WMJetpackUnitTests:TaskFragmentContainerTest
Change-Id: Ife6de66d22e336bb872a9fccbdf03562fe6e089d
2022-12-03 02:39:56 +00:00
Chris Li
1bf14bee43 Merge "Provide startBounds for closing container with legacy transition" into tm-qpr-dev 2022-12-03 02:26:52 +00:00
Hawkwood Glazier
bd8b091df2 Initialize Clock Size from NotificationPanelViewController
In change I0885d19e297ff5f881271ed0347e9699b3494928 I defaulted
the small clock to invisible, which likely introduced this bug.
From logs, it looks like an edge where neither clock is never
selected. We correct this by always calling `switchToClock` with
the correct size argument as soon as `KeyguardStatusViewController`
is acquired by `NotificationPanelViewController`

Fixes: 256809954
Test: Manully tested on a couple devices
Change-Id: I9143d6162411065ed2ed80cfa84d73e222c1f231
2022-12-03 02:00:35 +00:00