Commit Graph

655443 Commits

Author SHA1 Message Date
Chris Li
7cf13cf4d8 Merge "Cleanup animation layer" into sc-v2-dev 2021-10-08 11:56:57 +00:00
Michał Brzeziński
1574259ef2 Merge "Disable opening expanded QS from the lockscreen on large screen devices" into sc-v2-dev 2021-10-08 10:38:26 +00:00
Nick Chameyev
0cc4156bbc Merge "Add split screen unfold animation" into sc-v2-dev 2021-10-08 10:09:57 +00:00
TreeHugger Robot
39615056a3 Merge "New user switcher dialog" into sc-v2-dev 2021-10-08 10:05:37 +00:00
Nataniel Borges
2461e951b9 Merge changes from topic "sync-flicker-sc-v2-dev" into sc-v2-dev
* changes:
  [DO NOT MERGE] Dump windowing mode in Winscope traces
  [DO NOT MERGE] Dump SurfaceControl's layerId to proto
  [DO NOT MERGE] Dump WindowContainer SurfaceControls to proto
  [DO NOT MERGE] Expose SurfaceControl's native mLayerId property to Java
  [DO NOT MERGE] Sync flicker from master to sc-v2
2021-10-08 08:51:10 +00:00
Louis Chang
0234494d32 Merge "Continue the pausing process after automatically entering pip" into sc-v2-dev 2021-10-08 07:12:22 +00:00
Mady Mellor
f1e8bc69c0 Merge "Fix an issue that caused an NPE" into sc-v2-dev 2021-10-08 06:15:17 +00:00
TreeHugger Robot
71f8cf24e2 Merge changes from topic "multiDisplayPowerProfile" into sc-v2-dev
* changes:
  Update PowerProfile to support multidisplay devices
  Collect data from multiple DISPLAY EnergyConsumers
2021-10-08 02:28:51 +00:00
TreeHugger Robot
93e22893e8 Merge "Fix layout been truncated after activated split screen" into sc-v2-dev 2021-10-08 01:58:27 +00:00
Mady Mellor
5981b9fa27 Fix an issue that caused an NPE
If the overflow is empty when the last bubble
is dismissed we collapse the stack. If it's not empty
we show the overflow contents.

We were overflowing bubbles AFTER making the choice
to select the overflow or collapse the stack which
causes problems.

Test: atest BubbleDataTest
Test: manual - have 1 bubble and an empty overflow
             - navigate to the overflow, dismiss the bubble
             => no crash
Bug: 202320538
Change-Id: Ic838c5c61bcd714d8de94672d3c4ed753d4f6fa6
2021-10-07 18:19:28 -07:00
TreeHugger Robot
78359a1dc7 Merge "Prevent multiple outstanding permission queries per client" into sc-qpr1-dev am: 373ed0127e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15993917

Change-Id: Ia9f06fd0025044cc1136f00d76891b7fa81272a6
2021-10-07 23:54:32 +00:00
TreeHugger Robot
373ed0127e Merge "Prevent multiple outstanding permission queries per client" into sc-qpr1-dev 2021-10-07 23:39:29 +00:00
Emilian Peev
01d8df412d Merge "Camera: Keep sensor orientation consistent with device fold state" into sc-v2-dev 2021-10-07 22:53:24 +00:00
Jorge Gil
ecdb3cdbd2 Merge "Add null check on ActivityOptions before using it" into sc-v2-dev 2021-10-07 21:16:40 +00:00
Anthony Stange
a44514e961 Prevent multiple outstanding permission queries per client
Under stress tests, it's possible for several messages to be sent before
CHRE has time to respond to the permission query which can cause several
permission queries to be sent and CHRE to be overwhelmed.

Fixes: 202201157
Test: Flash device and run stress test
Change-Id: I16871a116216cd288f0eba0e6c5572f5afa6b959
2021-10-07 19:24:05 +00:00
Yuncheol Heo
8cda531599 Merge "RESTRICT AUTOMERGE: Give the priv permission CONTROL_CAR_APP_LAUNCH to KitchenSync and CarLauncher." into sc-v2-dev 2021-10-07 19:05:58 +00:00
Emilian Peev
2bf82bbfef Camera: Keep sensor orientation consistent with device fold state
Allow foldable devices to advertise the mapping between device fold
state and sensor orientation.
Additionally return the current  sensor orientation
based on the specific device fold state.

Bug: 201005727
Test: Manual using AOSP Camera2 application,
Camera CTS

Change-Id: Idc76903da22567d29cc55d991b41df7e19490aa3
2021-10-07 11:29:21 -07:00
Kevin Chyn
80b2606f14 Merge "Update BiometricPrompt UI for large displays" into sc-v2-dev 2021-10-07 17:58:42 +00:00
Andy Hung
f79e42539f Merge "AudioTrack: Fix track creation of 9.1.4 and 9.1.6 streams" into sc-v2-dev 2021-10-07 17:55:49 +00:00
TreeHugger Robot
356b103c6f Merge "Do not set profile owner on guest users on headless system user." into sc-v2-dev 2021-10-07 17:15:23 +00:00
Evan Rosky
7a23b1517d Merge "Unrotate going-away apps during a launch-into-orientation transition" into sc-v2-dev 2021-10-07 17:08:20 +00:00
Fiona Campbell
7ecf186f6e Merge "Stop RBC affecting brightness so drastically" into sc-qpr1-dev am: 6be9887cb9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15905907

Change-Id: Iccf79eb575812caae855581e2ee4918137e8e8b5
2021-10-07 16:46:22 +00:00
Fiona Campbell
6be9887cb9 Merge "Stop RBC affecting brightness so drastically" into sc-qpr1-dev 2021-10-07 16:28:57 +00:00
Fabian Kozynski
266e5aa175 New user switcher dialog
This dialog will eventually replace the UserDetailView. Right now, it
uses the same adapter to display the content (which is not necessarily
bad).

Missing:
  * Red lines (including landscape size).
  * Bring user circles up to spec (once it's finalized).
  * Launch animations (to and from dialog).

Test: manual
Test: atest SystemUITests
Bug: 185360864
Bug: 198796184

Change-Id: I903d111822d1958fb53c43932b2df1393c841c71
Merged-In: I903d111822d1958fb53c43932b2df1393c841c71
Merged-In: I624169c76e4c9efa30d922235616190666ae949e
Merged-In: I2b4082dd65f06d2d08706ac3db017ac1495aefed
2021-10-07 11:13:57 -04:00
TreeHugger Robot
c0dd1d6d01 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: a3f88f630d -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ie29d72dd37afa48d9e199defd667fbcecc2e1122
2021-10-07 14:44:37 +00:00
TreeHugger Robot
af41f0dccc Merge "Start keyguard docs" into sc-v2-dev 2021-10-07 14:35:05 +00:00
Lucas Silva
aeb53657df Merge "Add internal WM API for registering activity interceptors." into sc-v2-dev 2021-10-07 14:31:48 +00:00
TreeHugger Robot
a3f88f630d Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-10-07 14:28:20 +00:00
Louis Chang
e84bd0d141 Continue the pausing process after automatically entering pip
Or the activity remained in PAUSING state and prevents the
activity to stop after screen off until stop timeout.

Bug: 202345179
Test: atest PinnedStackTests
Change-Id: Ibb8b3c48d483dcb96207ec2395a87b31d8eb107e
2021-10-07 22:05:11 +08:00
Matt Pietal
74b7f3c123 Start keyguard docs
1. Move responsibility for the bouncer container to the
NotificationShadeWindowViewController
2. Start very basic keyguard documentation (much more to come)

Bug: 195430376
Test: atest KeyguardBouncerTest StatusBarTest StatusBarKeyguardViewManagerTest
      NotificationPanelViewControllerTest
Change-Id: Iba45a9252fd37c00b2023407eb44bd91c44a87ad
2021-10-07 13:53:23 +00:00
Rodrigo Lagos
5250bc61b0 Merge "Add pre-grant bluetooth permissions for AUTOMOTIVE SetupWizard" into sc-qpr1-dev am: 773a974b8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15983244

Change-Id: Ifdcf74d748e319ad09e1460ff74a341d7095e08d
2021-10-07 13:37:33 +00:00
Rodrigo Lagos
773a974b8a Merge "Add pre-grant bluetooth permissions for AUTOMOTIVE SetupWizard" into sc-qpr1-dev 2021-10-07 13:25:42 +00:00
Nick Chameyev
f96ed6b6a1 Add split screen unfold animation
Creates controllers in the Shell that manipulate
SurfaceControl leashes of the current active
split screen surfaces based on the current
unfold transition progress.

Bug: 193795566
Test: manual
Change-Id: Ib80807c632444b2939e9b075fb24fd40cc14648a
2021-10-07 14:25:25 +01:00
Michal Brzezinski
877a73e4cd Disable opening expanded QS from the lockscreen on large screen devices
This change disables special pull-down gesture from the top left corner that would normally open expanded quick settings.
That gesture is not as relevant for large screen devices as collapsed QS is more functional already.
Also disabling it means that pull down would always trigger usual lockscreen to shade animation which works nicely already and doesn't require any special work.

Fixes: 190504112
Test: NotificationPanelViewControllerTest
Change-Id: I303c59b06ec28df1251baa0045612cc67a8b8454
2021-10-07 14:18:15 +01:00
Jerry Chang
bb7abee972 Fix layout been truncated after activated split screen
Stop cropping root surfaces when dismissing split screen, so the next
time entering split screen won't apply remaining crop setup
unexpectedly.

Fix: 202368189
Fix: 202358094
Test: atest WMShellUnitTests
Change-Id: Idf079b6cb04f1ced1d7cdf166fe54309dd64f163
2021-10-07 19:48:21 +08:00
TreeHugger Robot
49327062c2 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-10-07 08:40:58 +00:00
Fiona Campbell
67927b8af5 Stop RBC affecting brightness so drastically
This change resets the brightness short term model when RBC is turned
off or the strength is changed. We add a singular interaction when RBC is turned on, and add
interactions in RBC as normal.

Since users turning RBC in a bright environment could want any
brightness between the given one and MAX, but turning RBC off will often result in
a MAX interaction being logged, if the slider is already at MAX (given
RBC) which is not necessarily what we want.

In order to prevent unwanted changes to the brightness curve, we ignore
interactions that turn RBC off. Turning RBC on seems like a valid
indicator that the user wants the brightness darker, and at a specific
brightness, however turning RBC off is less of an indicator. Changing
the strength of RBC is also a good time to reset the short term model,
however after resetting, we still add an interaction after this.

Bug: 199187829
Test: manual
Change-Id: I6512d9642f2da634aa60af6b5573c792c0a116d5
2021-10-07 08:36:31 +00:00
Yuncheol Heo
e5581e9925 RESTRICT AUTOMERGE: Give the priv permission CONTROL_CAR_APP_LAUNCH to KitchenSync and CarLauncher.
- The permission is need to assign an Activity to TDA in CarLauncher.
- The permission is used in CarActivityManagerTest.

Bug: 200044674
Test: atest CarActivityManagerTest.
Change-Id: I1d5d520ec44f86c1220e89a0a756757d96676da6
2021-10-06 21:15:45 -07:00
Evan Severson
9f660a9636 Merge "Fix setting camera op restriction on reboot" into sc-qpr1-dev am: 395f43dd6f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15983492

Change-Id: Id37dddc45836bb75f911f93da71f11f49a843e83
2021-10-07 03:09:31 +00:00
Evan Severson
395f43dd6f Merge "Fix setting camera op restriction on reboot" into sc-qpr1-dev 2021-10-07 02:57:27 +00:00
Bill Yi
2d498947f9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia500ca7f590fc609a4b970cea849e124601ab577
2021-10-07 01:50:29 +00:00
Bill Yi
f100f56cf0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I153a51ca14636fc51e98234fd7c5a7b465336ced
2021-10-07 01:47:03 +00:00
Lucas Silva
5c97104248 Add internal WM API for registering activity interceptors.
Each callback will map to a unique id. The id is stored in an enum, and we use the ordering of the enum to determine the order the callbacks should run in.

Test: locally on device
Test: atest WmTests:ActivityStartInterceptorTest
Test: atest WmTests:ActivityTaskManagerServiceTests
Bug: 191994709
Bug: 191996331
Bug: 200324021
Change-Id: I34a1e88852b51444fff751b25e138a44f45e1773
2021-10-07 01:22:13 +00:00
Andy Hung
a9f98ae11a AudioTrack: Fix track creation of 9.1.4 and 9.1.6 streams
Required support if the platform supports 14 or 16
channels internally, otherwise CTS test fails.

Test: atest AudioTrackTest#testImmersiveAudio
Bug: 202162797
Change-Id: I052f2e38a27a63e5304b7fb6bffaaabe37efa8eb
2021-10-06 17:40:13 -07:00
TreeHugger Robot
8b4e23ecf5 Merge "Ensure pkg uid matches provided uid for device phone number check" into sc-qpr1-dev am: e2ba264dd0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15926751

Change-Id: Iede9a11f1e2333eac3c9630e6682d8cbef26c4c0
2021-10-07 00:10:19 +00:00
TreeHugger Robot
e2ba264dd0 Merge "Ensure pkg uid matches provided uid for device phone number check" into sc-qpr1-dev 2021-10-06 23:57:16 +00:00
Felipe Leme
ec902a9694 Do not set profile owner on guest users on headless system user.
The guest user cannot have extra apps, hence the DPC app is not
installed. We could try to bypass that restriction, but it could
cause other issues down the road; besides, on phones the guest
user is not managed neither and DPM doesn't provide an API to
created managed guests.

Test: manual verification using TestDpc
Fixes: 202327386

Change-Id: I02f963bc84325dd73a18abb7103fc34d4960005d
2021-10-06 16:47:24 -07:00
Beth Thibodeau
bb9ecdd2af Merge "Fix sorting issues with remote and resume controls" into sc-v2-dev 2021-10-06 23:25:37 +00:00
TreeHugger Robot
d29e0cdfd0 Merge "Fix bug checking incorrect AppOp" into sc-qpr1-dev am: 886d034fb2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15994552

Change-Id: I3d4b63f97b300a55f1e0055bafa908ea76a17d74
2021-10-06 22:59:16 +00:00
TreeHugger Robot
886d034fb2 Merge "Fix bug checking incorrect AppOp" into sc-qpr1-dev 2021-10-06 22:45:53 +00:00