Commit Graph

655409 Commits

Author SHA1 Message Date
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
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
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
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
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
TreeHugger Robot
469e0a802f [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: 3376e545e0 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I9bb01f7f24e2bf7b777a4b1dba2d6a436ff75042
2021-10-06 21:19:01 +00:00
TreeHugger Robot
3376e545e0 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-10-06 21:06:39 +00:00
TreeHugger Robot
41a31994c4 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: 96ad83f9ee -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ia0bc0f93b5b974f48e185e3cc86d1afd05f7beaf
2021-10-06 19:04:54 +00:00
TreeHugger Robot
f23eb51da9 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-10-06 18:46:57 +00:00
TreeHugger Robot
d8e57e9da1 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-10-06 18:46:39 +00:00
TreeHugger Robot
d7db4bdc2d Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-10-06 18:45:48 +00:00
TreeHugger Robot
96ad83f9ee Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-10-06 18:45:33 +00:00
Beth Thibodeau
8340c2b0e0 Fix sorting issues with remote and resume controls
- Sort paused controls by last active time, regardless of whether they
are local or remote sessions
- Ensure resume controls have isPlaying=false
- Add test for ordering

Fixes: 198099352
Fixes: 192259825
Test: manual
Test: atest com.android.systemui.media
Change-Id: Ie5717cbf2dae3701e0ebff6b693a3bb5640accf5
2021-10-06 14:23:48 -04:00
Caitlin Cassidy
4617507f91 Merge changes If31a0d78,I3e327a83,I41e1854e into sc-v2-dev
* changes:
  [Status Bar Refactor] Remove some indirection about minFraction between NotificationPanelViewController and PanelBar.
  [Status Bar Refactor] Remove PanelBar#onPanelFullyOpened and instead handle that logic in the listener callback.
  [Status Bar Refactor] Add a PanelStateChangeListener interface and use it in PanelBar#go.
2021-10-06 17:51:27 +00:00
Beverly Tai
385e707260 Merge "Update dozing state on clock view attached" into sc-qpr1-dev am: f841ce4725
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15993367

Change-Id: I9cdc74eb37fc0efaa14b47d93b1293639e41ba25
2021-10-06 17:49:50 +00:00
Beverly Tai
f841ce4725 Merge "Update dozing state on clock view attached" into sc-qpr1-dev 2021-10-06 17:36:21 +00:00
Ming-Shin Lu
7993070008 Merge "Fix wrong check in DC#needsRelativeLayeringToIme" into sc-v2-dev 2021-10-06 17:14:48 +00:00
Soonil Nagarkar
5b26a98aba Fix bug checking incorrect AppOp
Bug: 199684120
Test: manual
Change-Id: I3afe345537f2fe8141e781886a4352dd1a472d1b
2021-10-06 10:09:39 -07:00
Caitlin Cassidy
b19f61c2af Merge "[Ongoing Call] Show status bar in immersive if there's an ongoing call." into sc-v2-dev 2021-10-06 16:57:31 +00:00
Beverly Tai
1d4723702d Merge "Update sensor loc before showing auth ripple" into sc-v2-dev 2021-10-06 16:24:58 +00:00
Michał Brzeziński
3b59f276f5 Merge "Fixing bottom part of QS not getting any touches in split shade" into sc-v2-dev 2021-10-06 15:57:50 +00:00
Ming-Shin Lu
a2e6a9d6d3 Fix wrong check in DC#needsRelativeLayeringToIme
Previous CL[1] uses isImeAttachedToApp to check if the IME should set
relative layer with the app window, but it's wrong because the method
also check if the IME parent has reparented to the app.
(This brakes RoleManagerTest failure as Bug 202246318, since the test
activity has created a child window but we accidentally set the wrong
relative layer of IME even the activity didn't request showing IME,
so the child window will end up not be on the top of screen)

As originally CL[1] is only need to check if the window is eligible to
attach IME then we don't need to set relative layer for IME,
use shouldImeAttachedToApp to fix the original issue and unblock
RoleManagerTest failure.

Also move allowAttachToApp related with magnicationSpec check from
computeImeParent into shouldImeAttachedToApp to make the attach logic
more consistent.

[1]: I2f466a2305e56e4fd2a0c509d7c8027104cb51b6

Fix: 202227155
Fix: 202246318
Bug: 201504527
Test: atest RoleManagerTest ZOrderingTests

Change-Id: Ib6233b8f9270829a7d7c6fbb3bd98fdefaf4c206
2021-10-06 22:30:09 +08:00
Beverly
3fac0854c2 Update dozing state on clock view attached
Else, the clock may animate in at the wrong font weight.

Test: atest AnimatableClockControllerTest
Test: manually swipe away all notifications on LS,
see the large clock animate in at full font weight
Fixes: 201615075

Change-Id: I139e5a5c88551f23f99decff3e7ffc8bdaa5bba4
2021-10-06 14:09:39 +00:00
TreeHugger Robot
a47172813a Merge "Add null check in InputManagerService#verifyInputEvent" into sc-v2-dev 2021-10-06 13:29:55 +00:00
Michal Brzezinski
626b14e467 Fixing bottom part of QS not getting any touches in split shade
The main issue was that QS and notifications container had padding of the size of taskbar. It was because taskbar is included in window insets and container doesn't check where insets come from. If insets are coming from taskbar only they should be ignored because taskbar should disappear when shade is expanded. But if they're coming from taskabar and navigation buttons are visible, they shouldn't be ignored as then taskbar always stays on the screen - that's assessed with checking if gesture navigation is available (if not, it means button navigation). Also because buttons are on the right side only and taskbar might or might not be visible, QS is just taking full height and notifications (that are on the right) have bigger spacing from the bottom.

Because this change involved using a few extra objects not available in NotificationsQuickSettingsContainer and I wanted to avoid doing everything in NotificationPanelViewController (it's big enough) and just passing results to NotificationsQuickSettingsContainer, I introduced controller for it: NotificationsQSContainerController. Now this controller has all the logic for determining bottom spacing. There can be a few more things that can be moved from NPVC to NotificationsQSContainerController but it's a start. Also now QS views and its children views instead of talking directly to container, they talk to controller via QSContainerController interface, which is a nice side-effect improvement.

Fixes: 194989891
Fixes: 200291264
Test: Home screen (so taskbar is hidden) -> go to split shade -> use anything that is close to the bottom of QS side (music widget, rearranging QS tiles, etc)
I'll add unit tests if the change overall looks good

Change-Id: I91ab8ec26dd2ef60562ffb9fdbc0e5739745ca0b
2021-10-06 14:17:36 +01:00
Caitlin Cassidy
4cbf1b636c [Status Bar Refactor] Remove some indirection about minFraction between
NotificationPanelViewController and PanelBar.

The current code flow is NPVC#setPanelScrimMinFraction =>
PanelBar#onPanelMinFractionChanged =>
NPVC#setMinFraction.

The minFraction doesn't need to flow through PanelBar if it's going to
go right back to NPVC.

Test: Test steps from ag/15759151
Bug: 200063118
Change-Id: If31a0d78cf4ac4a4d4bc6fcc7423a8006ab309fa
2021-10-06 12:59:36 +00:00
Caitlin Cassidy
23fc3d6b6e [Status Bar Refactor] Remove PanelBar#onPanelFullyOpened and instead
handle that logic in the listener callback.

Test: manual
Bug: 200063118
Change-Id: I3e327a8372d052098e732bd9d51f118028b9731a
2021-10-06 12:59:36 +00:00
Caitlin Cassidy
11e72d9f21 [Status Bar Refactor] Add a PanelStateChangeListener interface and use
it in PanelBar#go.

Bug: 200063118
Test: manual
Test: atest PhoneStatusBarViewTest
Change-Id: I41e1854ec919ba3619e3abdecd0974e1c1e0d06f
2021-10-06 12:59:36 +00:00
Caitlin Cassidy
b62c73879e [Ongoing Call] Show status bar in immersive if there's an ongoing call.
Test: atest+manual
Bug: 195839150
Change-Id: Ib065a8f4e2f03a98ae52dae386b6a8f08203dcb5
2021-10-06 12:56:42 +00:00