Commit Graph

576 Commits

Author SHA1 Message Date
TreeHugger Robot
cf3274b3ba Merge "Keep system bar layout stable for rtl languages" into rvc-dev 2020-06-03 15:02:48 +00:00
TreeHugger Robot
8920f765c9 Merge "Add occlusion logic to OverlayViewGlobalStateController and CarKeyguardViewController" into rvc-dev 2020-06-03 04:12:06 +00:00
kwaky
5dc67de144 Add occlusion logic to OverlayViewGlobalStateController and CarKeyguardViewController
Activity has a public API setShowWhenLocked, which, if set to true,
allows it to be shown when the device is locked, thereby "occluding"
the Keyguard.

In the Phone OS implementation, when an occluding Activity is showing,
Keyguard is temporarily dismissed and StatusBar expands.

In the AAOS implementation where SystemUI components are mounted to
the SystemUIOverlayWindow, OverlayViewGlobalStateController hides all
views mounted to it unless they are configured to be shown even during
occlusion.

Test: Unit Tests + atest CtsWindowManagerDeviceTestCases:ActivityLifecycleTopResumedStateTests#testTopPositionLaunchedOnTopOfLockScreen
Bug: 156781505
Change-Id: I8320e97a575a990ba4301729c6b0e6c86d6ef7c5
2020-06-02 19:47:13 -07:00
Heemin Seog
a0a4e6bca1 Keep system bar layout stable for rtl languages
Bug: 158026089
Test: manual
Change-Id: I604a06b496b1a0e9225a6140abef5a121ace0f49
2020-06-02 14:52:17 -07:00
Danny Epstein
5a3e17d153 Add rotary support to the nav bar and HUN.
Add a FocusParkingView to the navigation bar and the heads-up
notification window. Add a dependency on the Chassis UI library.
Make the nav buttons have a blue background, or whatever color
the OEM specifies for the focus highlight.

Test: atest com.android.systemui.car.navigationbar.CarNavigationButtonTest
Bug: 155681517
Change-Id: Ia33c7692554c15427e429ecdba3bc978224ff129
2020-06-02 12:10:52 -07:00
Robert Snoeberger
6d437dcb2b Revert "Pass main executor to ActivityLaunchAnimator"
Revert "Pass main executor to ActivityLaunchAnimator"

Revert submission 11213348-launch-animation-leak

Reason for revert: Regression b/156840927
Reverted Changes:
Id43847e3d:Break strong ref to ExpandableNotificationRow
I57ffe83b7:Pass main executor to ActivityLaunchAnimator
I5bddc38ac:Pass main executor to ActivityLaunchAnimator
Fixes: b/156840927

Change-Id: I6c6bc9c9497cb2517eb1900c55d2b6e409d3e7eb
2020-05-27 21:02:17 +00:00
TreeHugger Robot
0b1e87f869 Merge "Make assistant button display the icon of the role holder application" into rvc-dev 2020-05-26 17:38:55 +00:00
Bill Yi
32ca0d62a0 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I9dd8e8cdd54401c03db9ba0e2ed56ed29c7f6637
2020-05-23 13:58:11 +00:00
Roberto Perez
555acefb22 Make assistant button display the icon of the role holder application
Bug: 152335571
Test: Manual on emulator
Change-Id: Ife996a5f3fa4e7dcc403c2ec52758d56ea67a786
2020-05-20 17:18:04 -07:00
Bill Yi
e4e6afea98 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Iaa6a069b0dbfeb4001a01ae5094f0f298b161e23
2020-05-20 21:54:31 +00:00
Heemin Seog
eab08c2c0f Merge "Modify aspects of the phone sysui which is not relevant to car sysui" into rvc-dev 2020-05-15 23:48:57 +00:00
Jian-Yang Liu
f720550d1c Merge "Set status bar to provide top gesture insets and navigation bar to provide bottom gesture insets." into rvc-dev 2020-05-15 23:18:22 +00:00
Youngjun Kwak
7c02fa2358 Merge "Post KeyguardGone request to main Handler so multidisplay keyguards are dismissed properly." into rvc-dev 2020-05-15 22:39:57 +00:00
Youngjun Kwak
81eefd515f Merge "Implement UserSwitchingDialog in SystemUI mounted to OverlayWindow." into rvc-dev 2020-05-15 22:38:13 +00:00
kwaky
3911339b66 Implement UserSwitchingDialog in SystemUI mounted to OverlayWindow.
Bug: 145132885
Test: Manual + Unit Tests
Change-Id: I9eab89ddd54f9484e9bd79fc867c09ef4a17fe46
2020-05-15 13:45:37 -07:00
JianYang Liu
b99019ed5b Set status bar to provide top gesture insets and navigation bar to
provide bottom gesture insets.

Bug: 155688058
Test: atest WindowInsetsPolicyTest
Change-Id: If4d700ac1fda38da04c6ec7287aa5131cdeaebcc
2020-05-15 20:00:59 +00:00
Heemin Seog
5750c685d7 On reset, show keyguard if not already shown
This is to address an inconsistent state when the keyguard service
thinks the keyguard should be visible but the keyguard view does not.

Bug: 155706342
Bug: 156440963
Test: manual, atest ActivityLifecycleKeyguardTests
Change-Id: I566802e5d71a4ce387c9f31951ffa33be664c7b2
2020-05-15 11:28:27 -07:00
Heemin Seog
4764fba146 Modify aspects of the phone sysui which is not relevant to car sysui
Don't use phone DozeServiceHost (which refers to phone sysui views). And
don't call notifyBiometricAuthModeChanged

Bug: 156400243
Test: atest android.server.wm.lifecycle.ActivityLifecycleTopResumedStateTests
Change-Id: I37e849141cc1ffe2e9bd8b0841ac33901ff845e9
Merged-In: I37e849141cc1ffe2e9bd8b0841ac33901ff845e9
2020-05-14 15:31:54 +00:00
kwaky
ce4b7e3d43 Post KeyguardGone request to main Handler so multidisplay keyguards are
dismissed properly.

While keyguard is dismissed, onDisplayChanged is called, which calls
hiding and showing presentations. Dismissing keyguard on these
displays should be done when onDisplayChanged is done processing.

Test: Manual
Bug: 156117648
Change-Id: Ib6d2ce407aef2fee22cfec227d243650b5643c25
2020-05-13 11:49:31 -07:00
Agatha Man
b1b07971f1 Merge "Initialize mVolumeDialogComponent onMasterMuteChanged in VolumeUI" into rvc-dev 2020-05-13 18:48:36 +00:00
TreeHugger Robot
b4f62e7fd8 Merge "Updated CarNavigationBar to update status bar icon appearance on start." into rvc-dev 2020-05-13 03:03:50 +00:00
TreeHugger Robot
1223fab4b7 Merge "Fixed AAAPlusPlusVerifySysuiRequiredTestPropertiesTest broken by missing annotation in CarKeyguardViewControllerTest." into rvc-dev 2020-05-13 01:46:23 +00:00
Agatha Man
eb971133ac Initialize mVolumeDialogComponent onMasterMuteChanged in VolumeUI
Bug: 156273758
Test: make CarSystemUI
Change-Id: I71952aca1f8290978086aba7e8f23b1abc396765
2020-05-12 23:52:09 +00:00
JianYang Liu
55eb9c0c8e Fixed AAAPlusPlusVerifySysuiRequiredTestPropertiesTest broken by missing
annotation in CarKeyguardViewControllerTest.

Bug: 156115497
Test: atest AAAPlusPlusVerifySysuiRequiredTestPropertiesTest
Change-Id: I750ced1c04d6fb3f09f1580c7f7dc0b332626b8f
2020-05-08 13:52:08 -07:00
Alex Stetson
abaab46da7 Merge "Update top bar with new settings intent" into rvc-dev 2020-05-08 17:31:14 +00:00
JianYang Liu
0e3c478fab Updated CarNavigationBar to update status bar icon appearance on start.
Bug: 155664476
Test: Manual, atest CarNavigationBarTest
Change-Id: I83dac7499c8bdcb5570df6c33f483f4928fe6549
2020-05-08 10:18:44 -07:00
John Li
67fde31e1b Provide BatteryControllerImpl
- move the initialization methods out of the constructor and into an init method
- @Provides that ensures the init method gets called

Bug: 155685169
Test: atest SystemUITests:BatteryControllerTest
Merged-In: I064442fcf56397ba6394ee98ccf9cc82e589a0e3
Change-Id: Ifd7a3e41714b488ed7144f2344f7488184d48951
2020-05-08 20:54:23 +08:00
Youngjun Kwak
a5894a7958 Merge "Make Keyguard window focusable so that adb shell input command registers" into rvc-dev 2020-05-08 05:18:55 +00:00
Yuncheol Heo
2a3c62046c Merge "Partial revert of keyguard checks" into rvc-dev 2020-05-08 01:21:15 +00:00
Heemin Seog
7c165162b8 Partial revert of keyguard checks
startPreHideAnimation could be called even when the keyguard isn't
showing. This leads to some inconsistent state if we don't call
mBouncer.startPreHideAnimation.

Bug: 155706342
Test: manual (log startPreHideAnimation calls)
Change-Id: I039548a0e9a623a5e478e94490d3b695ae11d15c
2020-05-07 00:31:33 -07:00
Abhijoy Saha
4785a0669a Merge "Allow HUNs to be shown over Overlay Window." into rvc-dev 2020-05-07 00:27:01 +00:00
Jian-Yang Liu
a26138bc34 Merge "Add notification panel mediator that does not have any drag open behavior." into rvc-dev 2020-05-06 22:14:08 +00:00
Abhijoy Saha
3645184a97 Allow HUNs to be shown over Overlay Window.
Bug: 151832454
Test: Manual, Unit Tests
Change-Id: I7d8102eba5fecc060f9570e5da4223dfe8c68802
2020-05-06 14:07:53 -07:00
JianYang Liu
12e016a5f8 Add notification panel mediator that does not have any drag open
behavior.

Bug: 151691433
Test: Manual
Change-Id: I157cb8dc404418a73ab924af702bd6857d9c7a75
2020-05-06 18:03:11 +00:00
Alex Stetson
2dd82d5306 Update top bar with new settings intent
Updating quicksettings intent from top navigation bar to reflect new
activity name.

Bug: 153914349
Test: manual
Change-Id: I287676f4b0f97717c3ea47433d119352f657b776
2020-05-05 14:46:31 -07:00
Heemin Seog
0a64cfbb3c Merge "Use UiBgExecutor instead of background handler" into rvc-dev 2020-05-05 18:22:35 +00:00
Heemin Seog
4860f80743 Use UiBgExecutor instead of background handler
Also add a few logging statements to help track down the issue.

Bug: 155334879
Test: manual, atest CarNavigationBarTest
Change-Id: I80c264e7ec0042257bfba3feb6cce6eadced5098
2020-05-05 00:24:33 -07:00
Heemin Seog
16d740a990 Create a dummy notification shade window controller
Bug: 154763636
Test: manual (make sure DummyNotificationShadeWindowController is used.
This should avoid certain method calls in BiometricUnlockController
which reference phone sysui views)

Change-Id: Ib13e20a4d4cc136904f54ffc3fc16aea050552da
2020-05-04 23:43:27 -07:00
kwaky
08c9276639 Make Keyguard window focusable so that adb shell input command registers
This change allows existing CTS tests to work properly by entering
test passwords programmatically. This is also a requirement for support-
ing back button pressed event handling.

Bug: 154829257
Test: Manual & CTS tests (atest CtsWindowManagerDeviceTestCases:KeyguardLockedTests)
Change-Id: I13db0153b792f4ef6941067dc1aa06793f033116
2020-05-04 17:41:24 -07:00
Joshua Tsuji
d9923e5aac Move Bubbles into a hw-accelerated TYPE_APPLICATION_OVERLAY WindowManager layer.
This addresses several issues caused by Bubbles living in the status bar window and makes it easier to address several more open bugs.

Test: atest SystemUITests
Test: manually, a lot
Fixes: 130579263
Fixes: 142075351
Fixes: 151086286
Fixes: 149473357
Bug: 150906076
Change-Id: I61594931cce55cba78e6cb1fcec440e4fec32bb0
2020-04-30 14:10:00 -04:00
TreeHugger Robot
e038a59d27 Merge "Increase translation limit" into rvc-dev 2020-04-29 20:08:22 +00:00
Heemin Seog
38ca6d45d7 Increase translation limit
Bug: 154511630
Bug: 154643949
Bug: 154898789
Test: none - only changes to comments
Change-Id: I68ebb3e765ca39cff5a643226337fccb5e355f67
2020-04-29 11:33:57 -07:00
TreeHugger Robot
66bf0f533c Merge "Add mBouncer null checks for view-related requests." into rvc-dev 2020-04-29 18:05:18 +00:00
kwaky
16e0cbc048 Add mBouncer null checks for view-related requests.
CarKeytuardView is inflated when CarKeyguardView is first started, and
mBouncer is assigned a value onFinishInflated.

Since some of the view-related requests that reference mBouncer could be
called before that event, we need to add null checks for them.

Such a check is redundant for methods that check for mShowing, since if
mShowing is true, it is guaranteed that mBouncer is assigned a value.

Bug: 154928953
Test: Manual and Existing Unit Tests
Change-Id: I796e8bc73459df3b2a0374818556262ebc2ea237
2020-04-28 22:53:15 -07:00
Heemin Seog
a3d358f277 Lazy load status icon related components
PhoneStatusBarPolicy is a complex object with many underlying
dependencies. Lazy load until there is a better story around it.

Bug: 147455109
Test: manual (systrace)
Change-Id: I726a797f37c0816ab189a4c5f4fd5eecb0692e53
2020-04-28 22:41:54 -07:00
TreeHugger Robot
261f1cafc6 Merge "Lazy load BiometricUnlockController" into rvc-dev 2020-04-28 18:20:16 +00:00
Heemin Seog
09970f4101 Lazy load BiometricUnlockController
This one also includes other big dependencies like StatusBar,
NotificationShadeWindowController, ShadeController, and more.

Bug: 147455109
Test: manual (with timing from SystemUIOverlayWindowManager)
Change-Id: I7d8f1a92e66860ea278c062af873665b1b8e47b0
2020-04-28 09:24:58 -07:00
Heemin Seog
d5b5453d18 Merge "Make SystemUI config extendable" into rvc-dev 2020-04-28 16:12:00 +00:00
Heemin Seog
beb2f1f9ad Merge "Prepare for flexible system bars" into rvc-dev 2020-04-27 20:23:20 +00:00
Heemin Seog
7fc97ad189 Merge "Connect to hvac in background thread, post status icons init" into rvc-dev 2020-04-27 20:13:29 +00:00