Commit Graph

654093 Commits

Author SHA1 Message Date
Ben Murdoch
209727f64b Set navigation mode when taskbar is initialised.
Without this, EdgeBackGestureHandler doesn't know that gesture nav is
enabled until you toggle the setting explicitly.

Bug: 198639199
Test: Manual
Change-Id: Ie732469726318a335401a13f68083256f5b9a231
2021-09-17 23:23:46 +01:00
Jerry Chang
754976361b Merge "Use screen-based coordinates to calculate divier bar dragging velocity" into sc-v2-dev 2021-09-17 07:44:13 +00:00
TreeHugger Robot
c3409c0dfd Merge "Adding logging to track down alpha changes" into sc-v2-dev 2021-09-17 05:33:28 +00:00
Charles Chen
62a65fbf5c Merge "Fixes some issues for embedded Task" into sc-v2-dev 2021-09-17 02:32:30 +00:00
TreeHugger Robot
f9de2e2471 Merge "Clear caller identity in doesPackageHaveCallingUid helper method so it can work across users." into sc-v2-dev 2021-09-17 01:47:44 +00:00
TreeHugger Robot
f5f87aa36d Merge "Revealing the light reveal scrim only during keyguard exit animation" into sc-v2-dev 2021-09-16 23:45:48 +00:00
TreeHugger Robot
7783648723 Merge "Immersive audio APIs for headtracking" into sc-v2-dev 2021-09-16 23:43:50 +00:00
Kurt Dresner
c8c2c0d005 Clear caller identity in doesPackageHaveCallingUid helper method so it can work across users.
When this helper method is called on a binder thread it checks the caller's permission instead of just using the system service privileges to make the call, resulting in erroneous SecurityExceptions.

Bug: 182832208
Bug: 198860541
Test: CTS/unit tests
Change-Id: I2c71109f2556a47b8e44150565800528496173f5
2021-09-16 21:00:33 +00:00
Jean-Michel Trivi
68bfa3b30a Immersive audio APIs for headtracking
Headtracking:
- setter / getter and listener for headtracking mode
- listener for head pose
- global transform
- recentering

Bug: 191404931
Test: atest SpatializerHeadTrackingTest
Change-Id: I15cea62365584f84ae5a9149719902c671944f28
2021-09-16 13:15:05 -07:00
Winson Chung
6ae68138f8 Adding logging to track down alpha changes
Bug: 195853168
Test: Just logging
Change-Id: Ifd52101baa7af45f2253fd6c10b5d071c1a0e674
2021-09-16 13:08:33 -07:00
Joe Bolinger
6b60bde8b1 Merge "Do not show side fingerprint sensor overlay on keyguard." into sc-v2-dev 2021-09-16 19:36:42 +00:00
Lucas Dupin
e05c21bdae Merge "Add monet to AOSP" into sc-v2-dev 2021-09-16 17:32:44 +00:00
Joe Bolinger
b13dc6a105 Do not show side fingerprint sensor overlay on keyguard.
Bug: 197265282
Test: atest SidefpsControllerTest
Test: manual (lock device and verify no overlay on keyguard)
Change-Id: I7ff487e3d15d68ea1b182c6c7e7fd255801e4dea
2021-09-16 09:48:55 -07:00
TreeHugger Robot
4e1c9e6390 Merge "Controls Activity - Always close when keyguard becomes active" into sc-qpr1-dev am: 6ea42dcf9f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15839048

Change-Id: Id43674096305ee38078c35f5334d8586daa34e29
2021-09-16 16:25:06 +00:00
TreeHugger Robot
6ea42dcf9f Merge "Controls Activity - Always close when keyguard becomes active" into sc-qpr1-dev 2021-09-16 16:05:43 +00:00
TreeHugger Robot
c37aa97046 Merge "Switch to ConcurrentHashMap for CompatConfig" into sc-v2-dev 2021-09-16 15:44:31 +00:00
Miranda Kephart
082e54a5ba Merge "Fix direct share badges when sharing on work/personal profiles" into sc-qpr1-dev am: b51d58e6fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15839049

Change-Id: I1ac8b7840f29eaa7353b4c744452d428271d6e12
2021-09-16 14:03:53 +00:00
Miranda Kephart
b51d58e6fd Merge "Fix direct share badges when sharing on work/personal profiles" into sc-qpr1-dev 2021-09-16 13:51:15 +00:00
Andrei Onea
5e8d7112fe Switch to ConcurrentHashMap for CompatConfig
Use ConcurrentHashMap instead of a SparseLongArray guarded by a
reentrant readwrite lock to make CompatConfig.isChangeEnabled as fast as
possible.

Test: atest CompatConfigTest
Bug: 197712476
Bug: 191398285
Change-Id: I498c439baf3e060ec7feb68ed581ca680e2ebcad
Merged-In: 498c439baf3e060ec7feb68ed581ca680e2ebcad
(cherry picked from commit 42090b95e1)
2021-09-16 13:40:16 +00:00
Wesley Wang
2a15391ab9 Merge "Add isAllowlistedExceptIdle method to check target package is under it" into sc-v2-dev 2021-09-16 13:04:05 +00:00
Michał Brzeziński
45a1fc002e Merge "Making multiuser button work in collapsed QS in split shade" into sc-v2-dev 2021-09-16 12:44:39 +00:00
Michal Brzezinski
170542defc Making multiuser button work in collapsed QS in split shade
The issue was caused by MultiUserSwitchController always having reference and acting upon multiuser button in expanded QS - that's a different button than collapsed QS.
That reference was provided by dagger and while this issue could be fixed in dagger, that would require providing separate multiuser button and separate MultiUserSwitchController. That would require adding qualifier like @Named in multiple places (both providers and receivers) so seems like too much boilerplate (or opportunity for separate module?) and I went with adding factory for MultiUserSwitchController.

Another issue is MultiUserSwitchController opening multiuser detail always in expanded QS - collapsed QS currently doesn't support opening detail view. Looks like that requires non-trivial code changes, so for now I did it in a hacky way - forcing panel to expand and only then showing multiuser detail (as seen in QSPanelController). I think this hacky way is better than having non-functioning button.

Fixes: 196805122
Test: enable multiuser support -> expand split shade (but not expand QS)
-> click on multiuser button -> multiuser panel should open within QS

Change-Id: I76c9bb77c870b8a1a4e25221c63821786057d7f2
Merged-In: I76c9bb77c870b8a1a4e25221c63821786057d7f2
2021-09-16 11:45:25 +01:00
Tony Huang
d0c4ac7948 Fix split cannot active
It was mistake on previos change, we should exit split when both
stages are invisible.

Bug: 199369390
Test: manual
Test: pass existing tests
Change-Id: I9f237155fd75b4ee16db647f4849f929cbba1056
2021-09-16 09:26:32 +00:00
TreeHugger Robot
d2f034f1d5 Merge "Fix flicker when task move to back" into sc-v2-dev 2021-09-16 08:10:30 +00:00
Jerry Chang
a2267025b5 Use screen-based coordinates to calculate divier bar dragging velocity
Fix: 199468325
Test: atest WMShellUnitTests
Test: manual check the snapping behavior of divider bar.
Change-Id: I1256dbe8cb6fbfefdfdaa15c884c2ade4029e256
2021-09-16 14:40:03 +08:00
Wesley.CW Wang
91b7c1f262 Add isAllowlistedExceptIdle method to check target package is under it
BYPASS_INCLUSIVE_LANGUAGE_REASON=legacy naming, not edit by this code change

Bug: 199892006
Test: make SettingsLibRoboTests
Change-Id: Ie609233ab820bf9079d7e4dc37eb61a4195a4a97
2021-09-16 14:17:32 +08:00
TreeHugger Robot
bd64fd9f66 Merge "Fix divider display issue" into sc-v2-dev 2021-09-16 06:06:30 +00:00
Selim Cinek
b879b2c828 Revealing the light reveal scrim only during keyguard exit animation
When unlocking from AOD, we now wait visually before
starting the reveal animation

Test: atest SystemUITests
Bug: 197113783
Change-Id: I5180ec48e6e100832741273277ac9d2ff4c289b0
2021-09-15 21:09:11 -07:00
Beverly
ab61699aac Update dwell ripple parameters am: bc9015e209 am: 4f3715c78d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15830762

Change-Id: Ia28cecd9c32198eb5e519a37ec81941bb8897112
2021-09-16 04:02:19 +00:00
Tony Huang
3ad28efb88 Fix flicker when task move to back
When task move to back, the task visibility will be invisible
temporarily because visile app task reparent to TDA and below task
still not move to front.

Because this visibility change, we will hide divider and stage root
task then it cause flicker.

Fix this by only update divider and stage visibility when both stage
visible or invisible.

Bug: 199369390
Test: manual
Test: pass existing tests
Change-Id: Ide0b277e26e03ea3d7fb20132ff0e21807eee332
2021-09-16 11:50:35 +08:00
Beverly
4f3715c78d Update dwell ripple parameters am: bc9015e209
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15830762

Change-Id: Ic584b8a938aa1816c82cf8b615e381fe2eac7b14
2021-09-16 03:44:19 +00:00
Tony Huang
76522e9938 Fix divider display issue
onDisplayAreaInfoChanged might callback many times in one action
such like fold to unfold, it might cause some issues because we
don't use lastet config resources to set SplitLayout.

Another bug is we cannot get divider leash immediately after we
init it because leash is built after attachToParentSurface.

Fix both bug by always do whole SplitLayout setting if any cared
configs changed. And add a callback after divider leash build,
show the leash on this callback to ensure we got null leash.

Fix: 198581512
Fix: 197296095
Test: manual
Test: pass existing tests
Change-Id: I06a4093927d6469a85b2104b36c16d6e16519a51
2021-09-16 11:39:13 +08:00
Winson Chung
e0cb0b895f Merge "Account for last animated-to-sleep state when calculating nav visibility" into sc-qpr1-dev am: ac32f8b813
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15838491

Change-Id: I3c1c2e9d52dff6494be6040ff68f57d8f483d31b
2021-09-16 03:19:27 +00:00
Winson Chung
ac32f8b813 Merge "Account for last animated-to-sleep state when calculating nav visibility" into sc-qpr1-dev 2021-09-16 03:08:32 +00:00
TreeHugger Robot
6727ad6ced Merge "Force embedded activity resizable" into sc-v2-dev 2021-09-16 01:47:19 +00:00
TreeHugger Robot
83c1ab8a4b Merge "Return the correct root task when start activity from recents" into sc-v2-dev 2021-09-16 01:35:22 +00:00
Joe Bolinger
bb7bd1873c Merge changes from topic "sfps-updates" into sc-v2-dev
* changes:
  Update side fsp sensor position via overlay.
  Update side fingerprint sensor overlay assets.
2021-09-16 01:28:17 +00:00
TreeHugger Robot
d7039b4222 Merge "Fix OHM H/W key shortcut dosn't work appropriately" into sc-qpr1-dev am: 9a57cd553b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15581982

Change-Id: I5a94baf43fdeb18f90d73eba9e88762c6c86f0d3
2021-09-16 00:49:14 +00:00
TreeHugger Robot
9a57cd553b Merge "Fix OHM H/W key shortcut dosn't work appropriately" into sc-qpr1-dev 2021-09-16 00:40:58 +00:00
Jerry Chang
338f6e29db Merge "Fix task missing after dropped an app in PIP to enter stage split" into sc-v2-dev 2021-09-16 00:21:20 +00:00
Tim Joines
76da258af9 Merge "Adding native flag namespace for lmkd." into sc-qpr1-dev am: aeb139aca5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15787681

Change-Id: Ib632461ecfc34beebe8d37e7d5962e5fc52b749a
2021-09-15 23:19:17 +00:00
Tim Joines
aeb139aca5 Merge "Adding native flag namespace for lmkd." into sc-qpr1-dev 2021-09-15 23:01:57 +00:00
Joe Bolinger
bf5ad9066a Merge "Consolidate fingerprint overlay controllers." into sc-v2-dev 2021-09-15 22:10:51 +00:00
Caitlin Cassidy
e9abf65660 Merge "[Status Bar Refactor] Remove PhoneStatusBarView's references to some StatusBar methods." into sc-v2-dev 2021-09-15 21:04:52 +00:00
Pyuli Naithani
9e7a351eca Merge "Add indicator logging for privacy dialog." into sc-qpr1-dev am: 5710ed9330
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15742005

Change-Id: I2046793b89e96df9dc26050b8b1e000f3e8fc99b
2021-09-15 20:51:05 +00:00
Beverly
bc9015e209 Update dwell ripple parameters
Targeted effect:
* Immediate visual response on touch down at
  sufficiently visible radius for variable finger sizes.
* Then decelerate radius expansion to convey tension / elicit
  force and constrain at limited max radius past first stage.
* Bump values on non-AOD surface to improve visibility with
  more variable backgrounds.

Test: `adb shell cmd statusbar auth-ripple dwell` expands ripple (but
doesn't animate the retract)
Test: manual, atest SystemUITests
Bug: 198864174
Change-Id: I1fb2e456e89a824b1b749150e3d82c6bc3223f47
2021-09-15 20:39:46 +00:00
Pyuli Naithani
5710ed9330 Merge "Add indicator logging for privacy dialog." into sc-qpr1-dev 2021-09-15 20:30:04 +00:00
Lucas Dupin
6844741fb8 Add monet to AOSP
Test: manual
Test: atest ColorSchemeTest
Test: atest SystemPalette
Fixes: 199401230
Change-Id: I0695257765335f12ad47d5d8f40d0885c652bff6
2021-09-15 20:25:17 +00:00
TreeHugger Robot
e7c3d62316 Merge "Remove erroneous precondition for null surface test" into sc-v2-dev 2021-09-15 20:04:15 +00:00
András Klöczl
eb9f46f04c Merge "Add metrics for handed bouncer" into sc-v2-dev 2021-09-15 19:33:50 +00:00