Commit Graph

813479 Commits

Author SHA1 Message Date
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
mattgilbride
85930a321d Fix: update Binder#getCallingUidOrWtf to use wtfStack
Change I11ea3fdf889689d76211506e81420e694238ee68 introduced
Binder#getCallingUidOrWtf.

It should have used Log.wtfStack instead of Log.wtf.  The stack trace is
important for diagnosing the origin of a given binder call.

Bug: 252975769
Test: TH
Change-Id: I6946b1aea536f4b662ffffe8024dbc54d3dc36e0
2022-12-05 15:35:29 +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
ee4a861969 Merge "Remove framework faceDetect requirement" into tm-qpr-dev am: 2964094574
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20609726

Change-Id: I3b53003bd6726f5a12039a9bdabf885be1d8ead5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 15:14:47 +00:00
TreeHugger Robot
8a26d9e194 Merge "On strongAuthChanges, update fp & face states" into tm-qpr-dev am: 60ccbef8b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20600813

Change-Id: I3daced0d7722b01a4ec260f3a7adce84ea4e8d14
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 15:14:28 +00:00
Matt Gilbride
fca24e3971 Merge "Add hidden Binder.getCallingUidOrWtf" am: e5a82fc9a2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2324515

Change-Id: Ib8b6ae6d47aa42aecf6078a71cd6cfdd312f09dc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 15:14:20 +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
Matt Gilbride
e5a82fc9a2 Merge "Add hidden Binder.getCallingUidOrWtf" 2022-12-05 14:33:51 +00: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
Santos Cordon
da2ccad752 Merge "Do not send updates for disabled displays." into tm-qpr-dev am: 2b46e4671b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20497745

Change-Id: I315723b722064f580e47beccb2062f9bfdb60b43
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 13:59:14 +00:00
Nikita Ioffe
5593fbbca8 Allow non-updatable modules to contribute to @TestApi
java_sdk_libraries can be part of non-updatable modules. Those modules
might have a need to expose @TestApis that are only used in CTS tests.

This change adds an ability for them to do so by introducing
all-non-updatable-modules-test-stubs, and adding it to the
android_test_stubs_current.

Note that this change doesn't allow updatable modules to contribute to
test API stubs, since the list of the modules that can contribute to
test APIs stubs is hardcoded in the non_updatable_modules constant.

Bug: 261004711
Test: m
Change-Id: I9d17f49702bd64f5718b445f14b203c146bc6794
2022-12-05 13:53:30 +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
e4f61e1e54 Merge "Add dark scrim from a background thread during unfold" into tm-qpr-dev am: d1783ae8f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20437905

Change-Id: I62f7445194c5031f17c764c9d8baff3fde47865a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 13:22:46 +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
5bbb106ced Merge "[LE Audio] Add BT LE headset check for voice call to update the icon" into tm-qpr-dev am: e094dfde3a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20580288

Change-Id: Ie1a27d0d68a1d3ba778aa30ce02eed2a152e03e5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 10:23:52 +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
60c604f7de Merge "Apply rounded corners to startWindow" into tm-qpr-dev am: 6db1ce2740
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20222491

Change-Id: I3ad8e6719a64c63ac911f66debf50bdf91ae045c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 09:47:51 +00:00
Massimo Carli
6db1ce2740 Merge "Apply rounded corners to startWindow" into tm-qpr-dev 2022-12-05 09:17:16 +00:00
Thiébaud Weksteen
71d936acd7 Relocate NetworkManagementServiceTest
This test was part of packages/modules/Connectivity but tests a
platform-specific service. Move to the framework tests directory.
Use the AndroidJUnit4 runner.

Bug: 259341026
Test: atest FrameworksServicesTests
Change-Id: I70ba589ac460c769b4890b4e7a05cf02f54f80fb
2022-12-05 19:36:26 +11: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
4d9b900e56 Merge "Consolidate entering split screen behavior" into tm-qpr-dev am: b60de628ba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20575007

Change-Id: Ia5a072ddd66444cd464b1a7b3451facba9c69619
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-05 03:47:52 +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
4de42cb5ed Merge "Moved PhoneStatusBarView touchHandler out of NPVC" into tm-qpr-dev am: be69929b02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20487107

Change-Id: Iac6bf7e2d6bc4c740e5b20bcba742dd32c71caf4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 23:29:37 +00:00
Shawn Lee
be69929b02 Merge "Moved PhoneStatusBarView touchHandler out of NPVC" into tm-qpr-dev 2022-12-04 23:08:07 +00:00
Android Build Coastguard Worker
5ebd629eac Snap for 9367323 from 2a314ee828 to tm-qpr2-release
Change-Id: Ib9ad7c13a336e2f944a7b1c3251a026dd83b3fa4
2022-12-04 22:25:08 +00:00
Bill Yi
889b64a650 [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: d088d68983 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ic0903ff957bf05eae56a46d9f1b7f74a6cb15d21
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 22:19:15 +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
Treehugger Robot
0343ebcfdd [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: bfdf347dd8 -s ours am: b3a536ef56 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I7642b9ac1d446e8f673db8ed8bdc97e9396c8199
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 19:32:34 +00:00
Bill Yi
8ebdf7ee77 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: f96b064e79 -s ours am: 5a478016c3 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iba1413e212b570258257053be26221491add6cf0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 19:32:28 +00:00
Treehugger Robot
15b57dbef7 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: c7f028dcb9 -s ours am: cb06cecf48 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I3bd3a624e03dcfd6a0558457caa9306fe07475af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 19:32:22 +00:00
Bill Yi
de5cf4a4dc [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 5509dc99ee -s ours am: a0650b9e50 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I622b5416674b55a5aa40cd156d63678b7cd7898c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 19:32:15 +00:00
Treehugger Robot
736efab000 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: 1706deee81 -s ours am: 4a83447a71 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I33d85ae2147cd2ade7a9f92fbe73bc5d47ca950a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 19:32:09 +00:00
Bill Yi
acaf3c921a [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 30a15c0748 -s ours am: 4af3851645 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I568aa9756e22753030c9dc2749e9bb1f484a6418
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-04 19:32:03 +00:00