Commit Graph

780357 Commits

Author SHA1 Message Date
Bill Yi
02cae22700 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4313374d195b9da4215ebd5b9b243409acbd7534
2022-11-30 05:21:15 -08:00
Ilya Matyukhin
0672ae40db Merge changes from topic "new-udfps-touch" into tm-qpr-dev
* changes:
  Integrate new touch architecture with UdfpsController
  Change computed properties to regular in UdfpsOverlayParams
  Introduce testable UDFPS touch architecture
  Add rotatePointF to RotationUtils
  Add tryDismissingKeyguard() to UdfpsController
2022-11-30 06:12:34 +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
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
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
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
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
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
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
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
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
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
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
Oleg Blinnikov
3d1c9948a9 Merge "Add rounded corners to letterbox when taskbar is visible" into tm-qpr-dev 2022-11-29 15:47:35 +00:00
Mariia Sandrikova
ce6fe0e50f Merge "Shows "App isn't installed" while tapping on Home" into tm-qpr-dev 2022-11-29 15:45:41 +00:00
Chris Li
851685c401 Request legacy app transition when moveActivityToFront
Before, when there is no ActivityEmbedding, the transition is requested
later when the previous top Activity is paused to resume the Task top,
which works ok. But when there is ActivityEmbedding, the organizer may
request WCT that trigger visibility update before a transition is
requested, which cause a flicker.

When startActivity with FLAG_ACTIVITY_REORDER_TO_FRONT to bring an
existing activity to the front, we should call prepareAppTransition
early to make sure the following activity visibility change is tracked.

Fix: 255701223
Test: verify with FLAG_ACTIVITY_REORDER_TO_FRONT app
Change-Id: I65d4ffd1c17d6817c073122447e620a2fbb514a1
2022-11-29 23:43:14 +08:00
Hawkwood Glazier
a8b8ec657b Merge "Ensure final height of UMO transition is the hostView's height" into tm-qpr-dev 2022-11-29 15:34:12 +00:00
TreeHugger Robot
67f8ff06b4 Merge "AudioService: fix volume behavior for dock devices" into tm-qpr-dev 2022-11-29 15:30:27 +00:00
Darrell Shi
21cbd24566 Add a y translation to clock complication.
The clock complication comes with internal paddings that make the
spacing with the complications below too large, even without any layout
engine margin. Without a better solution, add a y translation to the
clock so reduce the spacing, and also change its text size to dp unit
so it doesn't respond to system text size change, which would mess up
the translation.

Test: https://screenshot.googleplex.com/BLfQEhA6i2t4qyu
Test: https://screenshot.googleplex.com/BbuvDvfmahtNy5U
Bug: 257553229
Change-Id: I7350981a28af590f6e70fb4fab004d5180cda502
2022-11-29 14:59:34 +00:00
Darrell Shi
e5f9a95ae2 Constraint smartspace width.
This change adds a new attribute in the complication layout params to
allow constraint on width or height, depending on its direction.

Smartspace is added a constraint width so not to overflow.

Bug: 258455314
Fix: 258455314
Test: atest ComplicationEngineTest
Test: atest ComplicationLayoutParamsTest
Test: on device create a meeting with a long title and see that
smartspace does not overflow

Change-Id: Ie5a1278810ac77a8aa3f0046970642919c46f7ed
2022-11-29 14:59:18 +00:00
Darrell Shi
e0fa9f694c Dream complications styling update.
- update complication weights so home controls, media entry chip, and
  smartspace are always shown below the clock
- instead of applying the bottom padding to home controls at the layout
  engine level in order to center align with smartspace, apply to the
  home controls chip view, which prevents the layout engine from giving
  an exception to adding padding to a root node

Bug: 259264239
Bug: 259719867
Test: https://screenshot.googleplex.com/BZNatvxHFHxqxaS
Test: https://screenshot.googleplex.com/9gxsLUZWTFy7sGX
Change-Id: Icfcc3653ad7eb52e707c8289803188388484666e
2022-11-29 14:58:54 +00:00
TreeHugger Robot
ee54e6170a Merge "Set docking ringtone to be played from builtin speaker." into tm-qpr-dev 2022-11-29 13:37:27 +00:00
Justin Weir
4c9824b2fd Remove CentralSurfaces from ShadeController
The methods ShadeController was calling in CentralSurfaces are now
in ShadeController. A small amount of interaction between the two
classes had to remain, but it's now a small interface instead of a
direct dependency on CentralSurfaces. This work is far from done,
but the dependency was removed and atest passed, so it seemed like
a good place to stop and review.

Bug: 249277686
Test: manual and atest
Change-Id: Ide5c6f1964a83073f39323c083ea1ccc281bc8fe
2022-11-29 12:40:38 +00:00
Massimo Carli
187babdf03 Shows "App isn't installed" while tapping on Home
Fixes the problem about launching a letterboxed app
from home having the "App isn't installed" message.

Fixes: 260188035
Test: Launch apps from Home and check they all start without the
"App isn't installed" message

Change-Id: I2cd2059933b33b13a0958ed410757373ca77611d
2022-11-29 10:48:14 +00:00
Sam Dubey
4f76d7728b Merge "Revert "Fixed animation breakage when QS area tapped during expand/collapse"" into tm-qpr-dev 2022-11-29 09:14:57 +00:00