Commit Graph

781408 Commits

Author SHA1 Message Date
TreeHugger Robot
1ff659dc39 Merge "Convert argument to intent in ChooseTypeAndAccountActivity" into qt-dev am: e5ca4abcaa am: 3f5a4111e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20541824

Change-Id: Ic92f9f49a719651a5c35563e1661557c1ac52bd9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 04:26:55 +00:00
TreeHugger Robot
3f5a4111e0 Merge "Convert argument to intent in ChooseTypeAndAccountActivity" into qt-dev am: e5ca4abcaa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20541824

Change-Id: Ia51d89011f9e2d01af8120df5020f4b5e8cde877
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-30 03:52:39 +00:00
TreeHugger Robot
cfe5853cac Merge "Don't insets the divider bar with task bar when IME showing" into tm-qpr-dev 2022-11-30 03:50:29 +00:00
TreeHugger Robot
e5ca4abcaa Merge "Convert argument to intent in ChooseTypeAndAccountActivity" into qt-dev 2022-11-30 03:15:52 +00:00
Chris Li
1ab52b08b3 Merge "Request legacy app transition when moveActivityToFront" into tm-qpr-dev 2022-11-30 02:51:28 +00:00
Tony Huang
f3e2db0505 Merge "Fix gmail flicker issue in split screen" into tm-qpr-dev 2022-11-30 02:38:17 +00:00
Tony Huang
09b0485783 Merge "Fix surface offset issue when enter split from recents" into tm-qpr-dev 2022-11-30 02:37:44 +00:00
Darrell Shi
f49d45d69c Merge changes I7350981a,Ie5a12788,Icfcc3653 into tm-qpr-dev
* changes:
  Add a y translation to clock complication.
  Constraint smartspace width.
  Dream complications styling update.
2022-11-30 02:02:30 +00:00
Aaron Liu
37cd9ae849 Merge "[User Switcher] Set default value if setting null." into tm-qpr-dev 2022-11-30 01:09:14 +00:00
Shawn Lee
a4737f028e Merge "Revert "Revert "Fixed animation breakage when QS area tapped during expand/collapse""" into tm-qpr-dev 2022-11-30 00:25:54 +00:00
Yining Liu
9e67591942 Add logs to NotificationWakeUpCoordinator for bugreports
Adding logs to track the order of function callings therefore tracking the status of mDozeAmount.

Bug: 250946719
Test: NotificationWakeUpCoordinatorTest
Change-Id: Ie4fb6dc09cc523425e46b403a66726d5cfa63c35
2022-11-30 00:21:08 +00:00
Jiaming Liu
2f20d4ea71 Merge "Fix DeviceStateProviderImplTest create_invalidSensor" into tm-qpr-dev 2022-11-30 00:14:46 +00:00
Jiaming Liu
38d5e42441 Fix DeviceStateProviderImplTest create_invalidSensor
After ag/20514286, the DeviceStateProvider no longer reports state if
the sensor values do not match the declared states. For the invalid
sensor config test, the onStateChanged() will not be called because the
sensor config is invalid.

(I thought presubmit would run all the tests, so I didn't run them
locally when submitting ag/20514286.)

Fix: 260572046
Test: atest FrameworksServicesTests:com.android.server.policy.DeviceStateProviderImplTest
Change-Id: Ic7aa004747fa940aa3445ed537dd76ee00c72553
2022-11-30 00:14:20 +00:00
TreeHugger Robot
6221183a7e Merge "[SB Refactor] Add table logging for airplane mode." into tm-qpr-dev 2022-11-30 00:14:09 +00:00
TreeHugger Robot
574d0b6e16 Merge "[SB Refactor] Ensure the initial value is also logged to the table." into tm-qpr-dev 2022-11-30 00:13:10 +00:00
TreeHugger Robot
0b9039459f Merge "[SB Refactor] Update TableLogBuffer based on ABT changes." into tm-qpr-dev 2022-11-30 00:12:00 +00:00
Peter Kalauskas
7fed5fd476 Add flag for blocking binder calls in SystemUI
Test: manual
Bug: 238923086
Bug: 241131634
Change-Id: I9cdd6ee9f5c43b6f1c6eed49846d44162c932a71
2022-11-29 16:10:21 -08:00
Alex Stetson
dfe2c5cc43 Merge "Replace ACTION_USER_SWITCHED with UserTracker" into tm-qpr-dev 2022-11-30 00:08:46 +00:00
Lucas Silva
6420742c37 Merge "Update DockObserver to send dock intent after device provisioning" into tm-qpr-dev 2022-11-30 00:05:29 +00:00
Peter Kalauskas
f2b1894585 New javadoc for SysUI CoreStartables
Test: n/a
Bug: 259474752
Change-Id: Ide39a7bef9852980f5d8ad4c075edd0e4b53386b
2022-11-29 16:03:38 -08:00
Ale Nijamkin
c5e1cdf699 Merge changes from topic "clsqa-in-themepicker" into tm-qpr-dev
* changes:
  Moves client and contract into customization lib.
  Makes camera config dep. lazy.
  Backup & Restore support for quick affordances.
2022-11-30 00:00:11 +00:00
Ats Jenk
17068514ad Merge "Add a new flag for desktop mode proto 2" into tm-qpr-dev 2022-11-29 23:14:30 +00:00
Jay Aliomer
7f4958c46e Merge "Make golden path relative to $ANDROID_BUILD_TOP" into tm-qpr-dev 2022-11-29 23:04:41 +00:00
Jay Aliomer
c59839db20 Merge "setup robolectric for sysui" into tm-qpr-dev 2022-11-29 22:35:06 +00:00
Nate Myren
3d563d27aa RESTRICT AUTOMERGE Use chain start token in performOpTransaction
Bug: 258672042
Test: atest CtsPermission4TestCases
Change-Id: I1d484ed7c72d4ae73f4cbec47522a18ae9088f6e
2022-11-29 22:31:38 +00:00
TreeHugger Robot
17fc01943e Merge "Update documentation for Image to be clear on valid format enums." into tm-dev am: 82409626b9 am: f638686c4e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17006063

Change-Id: I9f72471db02d7d450e162495f7d68d83ae034af3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-29 21:57:19 +00:00
Alejandro Nijamkin
74df4ef2f0 Multi-user customizable quick affordances.
This CL adds support for multi-users to the customizable lock screen
quick affordance system.

The process that creates windows and renders System UI is always the
primary user's system UI process. The process that owns the content
provider accessed by Wallpaper Picker is bound to the currently-selected
user on the system, which may be different than the primary user.

What this means is that, when switching to a secondary user, what the
Wallpaper Picker sees is fed to it from a secondary system UI process
which is not the same system UI process that is rendering the
affordances on the lock screen. Therefore, it didn't work.

This CL adds a "remote user" selection manager which the repository can
switch to when it's running on the primary user process but needs to
query the state of the selected affordances for a secondary user.

The "remote user" selection manager queries the content provider
associated with the system UI process linked to the secondary user. This
way, we can display the correct affordances on the screen, even when
switching to a secondary user.

Fix: 260251307
Test: included new and expanded unit tests. Manually verified that the
selection of quick affordances for the primary and secondary user are
correctly reflected on the lock screen when switching users and is
retained even after switching away and back.

Change-Id: I281577ed6efb987c23b19c2078e77c91e45ce9f2
2022-11-29 13:53:07 -08:00
Dmitry Dementyev
ede0a767c2 Convert argument to intent in ChooseTypeAndAccountActivity
Bug: 244154558
Test: manual
Change-Id: I5a86639cd571e14e9a9f5d5ded631b5a7c08db7e
2022-11-29 21:51:34 +00:00
Ilya Matyukhin
8698dbdf55 Integrate new touch architecture with UdfpsController
Bug: 218388821
Bug: 218374828
Test: atest SystemUITests:com.android.systemui.biometrics
Change-Id: Ifb32d5f6a94b2b5a1daf9e972414476db4122047
2022-11-29 21:37:42 +00:00
TreeHugger Robot
f638686c4e Merge "Update documentation for Image to be clear on valid format enums." into tm-dev am: 82409626b9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17006063

Change-Id: I04ae4cece1fcbac12d7391ce5219408a090e3689
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-29 21:31:25 +00:00
Julia Tuttle
21ba4bf2dc Suppress HUNs for notifications with old whens
Right now, if a user turns their device (or work profile) on after it's
been off for a while, they can get flooded with visual interruptions
(like heads-up notifications) from 'stale' notifications -- recently
posted, but pertaining to something that happened over a day ago.

This change will, when the included feature flag is enabled, suppress
visual interruption for notifications with a 'when' field set more than
24 hours in the past.

Bug: 240552967
Bug: 253055301
Test: atest StatusBarNotificationPresenterTest
Change-Id: I6e8b29cd9865370fb5ad34d4b74e0f8a40e63229
2022-11-29 16:05:21 -05:00
Alejandro Nijamkin
e5f67447bc Moves client and contract into customization lib.
We want to share this code between System UI and ThemePicker.

Fix: 259728815
Test: System UI and WPPG both build and work end-to-end with
customizable lock screen quick affordances.

Change-Id: If2fe99c5d679da57e00c6fcece10a1d2fc9ca807
2022-11-29 13:00:24 -08:00
Alejandro Nijamkin
6d638a8956 Makes camera config dep. lazy.
This was needed because of a Dagger-related crash when querying the
content provider while a secondary user is selected. I don't understand
why it was happening, but this fixes it and is a safe fix.

Also formats the file using `ktfmt`.

Bug: 254333599
Test: when signed in with a secondary user and querying the quick
affordance content provider from the wallpaper picker experience, we no
longer see a crash.

Change-Id: Ie195b21934179576051371181560c2263284b98c
2022-11-29 13:00:23 -08:00
Alejandro Nijamkin
94f82c678b Backup & Restore support for quick affordances.
Adds support for backup & restore of the currently-selected quick
affordances on the lock screen.

Only supports user 0 for now. A future CL will add support for additional users since the feature is broken for multi-user anyway (see b/260251307).

Fix: 258278136
Test: added test case. Manually verified, using the instructions from
go/localtransport that selecting some affordances, then triggering a
backup, then changing the selections and triggering a restore properly
restores the initial set of selections.

Change-Id: I9f2a51287a7467af95e7824f2b1804baba962099
2022-11-29 13:00:22 -08:00
TreeHugger Robot
05857f6045 Merge "Workaround for doze/AOD problem with global wakefulness" into tm-qpr-dev 2022-11-29 20:53:09 +00:00
TreeHugger Robot
82409626b9 Merge "Update documentation for Image to be clear on valid format enums." into tm-dev 2022-11-29 20:50:27 +00:00
Matt Pietal
b528579107 Merge "Fix shade over occluded activity" into tm-qpr-dev 2022-11-29 20:38:51 +00:00
Beverly
ee8393ba02 For non-udfps, detectFP if primaryAuth required
If the user attempts to FP auth, we will listen for FP
detection (as opposed to authentication or not at all). If the
user places their finger on the FP sensor, without running the
FP matcher, we can show the bouncer.

Additionally, update the logic when switching users. Immediately
after a user switch, cancel the FP listening state and then
restart based on the new state (because it may change to/from
detect or authenticate).

Repro steps:
  1. Enable extra logging:
       adb shell settings put global systemui/buffer/KeyguardUpdateMonitorLog v
  2. Setup side fps
  3. Fail side fps 5 times to lock out fp
  4. See logs that SysUI is running detectFP ("startListeningForFingerprint - detect")
  5. Attempt FP => bouncer appears

Test: atest KeyguardUpdateMonitorTest
Test: atest SystemUITests
Bug: 245778799
Change-Id: Ic1d4984c7514fc96b6552267128dee814730bb30
Merged-In: Ic1d4984c7514fc96b6552267128dee814730bb30
2022-11-29 20:30:29 +00:00
Brad Hinegardner
62c898a705 Fix no guest visible while on multi user switcher
Bug: 260404638
Test: UserInteractorTest.kt test modified to ensure guest can be switched to while on secondary user
Change-Id: I26ff794b024173c9833c64668e464068555a8a84
2022-11-29 15:25:14 -05:00
Lyn Han
96f5e4321e Merge "Add dumpsys logs to debug lockscreen stack height" into tm-qpr-dev 2022-11-29 19:38:18 +00:00
Evan Rosky
2971d9f3e0 Merge "Manually manage memory of native objects" into tm-qpr-dev 2022-11-29 18:55:29 +00:00
Shawn Lee
e4cee2d426 Revert "Revert "Fixed animation breakage when QS area tapped during expand/collapse""
This reverts commit b590a6fa4e.

Reason for revert: Applying fix and relanding

Test: manual & tablet scenario tests to confirm split shade unaffected
Change-Id: If4f59e5a20e5fcdcbd81b8ecb29741741818ce8d
2022-11-29 10:41:30 -08:00
Evan Rosky
e7aef726bb Merge "Use an isolated token to represent shell transitions" into tm-qpr-dev 2022-11-29 18:12:35 +00:00
Miranda Kephart
b2a7a29b4b Turn on clipboard remote behavior by default
Has been in teamfood for a bit now.

Bug: 246808749
Test: manual, using Flipper app
Change-Id: I9c285388cc98f3e910b020f6a949fb5dc4a286ef
2022-11-29 13:02:49 -05:00
Michał Brzeziński
32e574fe5c Merge "Fixing HUN translation and clipping when swiping up in split shade" into tm-qpr-dev 2022-11-29 17:57:03 +00:00
Justin Weir
1735f5eda2 Remove more methods from CentralSurfaces
Bug: 257041702
Bug: 249277686
Test: atest and manual
Change-Id: I1e3626ad8dc827c8ceffcb9a555460e79ff422b7
2022-11-29 17:54:10 +00:00
Rahul Banerjee
ae06460d37 Merge "Migrate ScreenshotController to Predictive Back" into tm-qpr-dev 2022-11-29 17:32:33 +00:00
TreeHugger Robot
b235669663 Merge "Remove CentralSurfaces from ShadeController" into tm-qpr-dev 2022-11-29 17:24:48 +00:00
Jacob Hobbie
738f874e44 Merge "Fixing an Active Unlock security vulnerability." into tm-qpr-dev 2022-11-29 17:08:04 +00:00
Galia Peycheva
16712430df Merge "Fix pip update transaction out of order" into tm-qpr-dev 2022-11-29 17:04:55 +00:00