summaryrefslogtreecommitdiff
path: root/packages/CarSystemUI/src
AgeCommit message (Collapse)Author
2020-12-04DO NOT MERGE Use round highlight for navigation buttons am: 9242e6ee6aDanny Epstein
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13158881 Change-Id: I7ce18b3de04b37e796c0790a9b9a3594bbdcf05b
2020-12-03DO NOT MERGE Use round highlight for navigation buttonsDanny Epstein
Make the focus highlight and touch ripple for buttons in the navigation bar be round rather than square. Also fix a bug in the dimming logic. The alpha was applied to the icon initially, but when the state changed, the alpha was applied to the entire button. Launcher in master is quite different so it this change is limited to rvc-qpr-dev for now. Test: manual Bug: 174614908 Bug: 168317872 Change-Id: I9b80946887ad85a73ddd281f7afcc9fcc8280a64
2020-10-12Merge "Fix guest icon is not clickable after adding user" am: a35917822d am: ↵Treehugger Robot
f9fb9f6983 am: db5bc807a0 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1452495 Change-Id: Ib96d7493bdbcd35c9c30ac8df8c7df7cd2ff7ff0
2020-10-12Merge "Fix guest icon is not clickable after adding user" am: a35917822d am: ↵Treehugger Robot
f9fb9f6983 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1452495 Change-Id: I0b9f0c874b4a58723bc455755b866e3ce8af6e5b
2020-10-09Fix guest icon is not clickable after adding userArtem Radchenko
When addUser icon is clicked, it becomes disabled to prevent double clicking. And this icon is newer enabled again in case of successfull user creation. When user is added, icon for New user is added to recycler view before guest icon. So, when user selection is opened again guest icon is not clickable, because it is disabled. Enabling addUser button after successfull user creation fixes this issue. Test: - Set pin: adb shell locksettings set-pin 0000 - Lock board: adb shell input keyevent KEYCODE_POWER - Wake up: adb shell input keyevent KEYCODE_POWER - Click cancel button - Click "Add User" -> Click Ok - Set pin - Lock board - Wake up - Click cancel button - Click guest button Bug: 170382676 Signed-off-by: Artem Radchenko <artem.radchenko@globallogic.com> Change-Id: Ie9f3e9b765123207d1217ae2434608c3316923f4
2020-09-24DO NOT MERGE Update current user for passwordEntry and restart input on user ↵kwaky
switch. This prevents IME not working due to the passwordEntry input field drawn for a wrong user or due to having an invalid token. Test: Manual Bug: 168825956 Change-Id: I28e38a523e67011df680c9dfb21907047c0e3278
2020-09-24Merge "Map bar type to new ITYPE_{SIDE}_MANDATORY_GESTURES_INSETs" into ↵Youngjun Kwak
rvc-qpr-dev
2020-09-23Ensure the notif panel is inflatedHeemin Seog
Bug: 168823233 Test: manual Change-Id: I1ed35a0c240acb2fa06241f34aa9c7a549dc360b
2020-09-22Map bar type to new ITYPE_{SIDE}_MANDATORY_GESTURES_INSETskwaky
Bug: 167565741 Bug: 167288724 Test: atest WindowInsetsPolicy and atest SystemBarConfigs all passing Change-Id: I767a423bc2437021af02c01a84fa3e1834413c1e
2020-09-18Ensure notif panel behavior in immersive modeHeemin Seog
Bug: 168823233 Test: manual, atest :carsysui-presubmit Change-Id: I38241142a05c25cef5a5f3955ca7de49feb5c393
2020-09-16Merge "DO NOT MERGE Enable hiding system bars by side when IME appears." ↵Youngjun Kwak
into rvc-qpr-dev
2020-09-15DO NOT MERGE Fix subclass/superclass check for NotificationPanelViewMediator.kwaky
Bug: 165806308 Test: Manual + Unit Tests Passing Change-Id: I8f443762f1b487ab9d3fe4f6f84b0aa86e3d0c8a
2020-09-15DO NOT MERGE Enable hiding system bars by side when IME appears.kwaky
Bug: 167593045 Test: Manual + Unit Tests Change-Id: Ib0c2c70e2df361f5cce156315c7fd4ae489ae279
2020-09-08DO NOT MERGE Adjust window focusable by view controllerHeemin Seog
Some adjustments to note: 1. remove previous focusability changes per view controller 2. disallow calling insetsController.show/hide without window focus 3. update tests to depend on window focus 4. update DisplaySystemBarsController to refer to parent class for ime insets Bug: 163135884 Test: manual, atest :carsysui-presubmit Change-Id: If5adf599bc2c676ad296f89566534c1fdc9f2492
2020-09-01Merge "Make SystemUI crash with warning if SystemBarConfigs is incompatible ↵Youngjun Kwak
with NotificationPanelViewMediator." into rvc-qpr-dev
2020-08-31Make SystemUI crash with warning if SystemBarConfigs is incompatible with ↵kwaky
NotificationPanelViewMediator. Bug: 162599873 Bug: 165806308 Test: Manual Change-Id: I855c03d11e31cf722609f2bb0b0cb6c01624b0c0 Merged-In: I855c03d11e31cf722609f2bb0b0cb6c01624b0c0
2020-08-28Merge "Fix NotificationPanel animation jank." into rvc-qpr-devYoungjun Kwak
2020-08-27Merge "Fix some notifications animation issues" into rvc-qpr-devHeemin Seog
2020-08-26Fix some notifications animation issuesHeemin Seog
Fix notif animation to not repeat when the panel is fully open Fix notif animation when swiping the panel to close and it gets stuck Bug: 158306816 Test: manual Change-Id: Ia5ed0d9dca4e8366bd3f1526a3295464e3d06be4
2020-08-26Fix NotificationPanel animation jank.kwaky
Bug: 162599873 Bug: 161172460 Test: Manual -- To repro the bug, swipe on the Notification cards in the closing direction. This should not in fact close the Notification Panel since the user's intent is to scroll the Notification cards, not to close the Notification panel. This also results in the animation jank. This behavior is no longer observed after this fix. Change-Id: I6144c064faf151a091ec66df4616036bf765e9fb
2020-08-24DO NOT MERGE Add unused StatusBar to prevent crashesHeemin Seog
Bug: 165390412 Test: manual (ensure UnusedStatusBar is used instead of StatusBar) Change-Id: I3c9f48f86a599f950fb4e1268dd4a15468aa5839
2020-07-31Fix UserSwitchTransitionViewMediatorTestkwaky
First, it has to extend SystemUiTestCase to pass AAAPlusPlusVerify Test. Second, CarDeviceProvisionedController is injected into the Mediator and mocked in its test to correctly test case where the user life cycle event is being applied to the current user and a case when it is not. Bug: 161892451 Test: Unit Test (the corresponding tests passing now.) Change-Id: I8be7dacaa1bf0abb87dcb357c37e58ce511132d2
2020-07-29Allow SystemBar configuration via XML.kwaky
Bug: 160028073 Bug: 161825538 Test: Unit Tests + Manual -- CarNavigationBar reads configs from SystemBarConfigs and applies them as intended. It throws an error when the config validation fails. Change-Id: If1575bdc2549058600fb80fa0d6c340fd3e1dbc5
2020-07-23Improve SystemUIOverlayWindow controlAbhijoy Saha
1. Make sysui overlay window views more stable 2. hide/show system bars using insets in SystemUIOverlayWindow Bug: 161926721 Bug: 151617493 Test: Manual & Unit Tests Change-Id: I78fd2b5e8488d2f5006edd9773308e2bb9856d2b
2020-07-22Merge "Delete dead code related to CarStatusBar" into rvc-qpr-devTreeHugger Robot
2020-07-22Delete dead code related to CarStatusBarHeemin Seog
Bug: 159486071 Test: manual (boot and interact with elements of the sysui) Change-Id: I80aec68312d28683f2ec63ac9354b3282ead1d7e
2020-07-21Use CarUserManager and fix broken "add user" buttonHeemin Seog
Bug: 161476819 Bug: 161546644 Test: manual 1. switch to existing user 2. switch to guest 3. create new user Change-Id: Ib31dc227b36f554f2c415e9d48df9e25fc9d7e0e
2020-07-17Merge changes from topic "flexible_bars" into rvc-qpr-devTreeHugger Robot
* changes: Reintroduce flexible inset mapping Keep alternate reference to mStatusBar and mNavigationBar for flexible insets
2020-07-17Reintroduce flexible inset mappingHeemin Seog
This was cut from R due to timing. Reintroducing for R QPR1. Allows for the usage of flexible inset mapping Bug: 156304383 Test: atest WindowInsetsControllerTest Change-Id: I51992277409da40f28bdf36b62203d4a07af933b
2020-07-16Merge "Address lifecycle crash in car sysui" into rvc-dev am: c42d4b65c8 am: ↵Heemin Seog
9b9a8e1b55 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12163205 Change-Id: I33d90a4b85ca32642998d415feab90cdda0e403d
2020-07-16Merge "Address lifecycle crash in car sysui" into rvc-dev am: c42d4b65c8Heemin Seog
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12163205 Change-Id: Ia6935abc5817d024d1bf7877f514b5188ef01e47
2020-07-15Address lifecycle crash in car sysuiHeemin Seog
We address this by removing the phone specific lifecycle view from car sysui. Bug: 161366224 Test: See bug for manual testing steps Change-Id: I1309aa938f1bcc5c634a531a2eca3a45f1eb2946
2020-07-14DO NOT MERGE Annotate CarSystemUiTests to be run for AAOS pre-submit.kwaky
Bug: 144452110 Test: atest :carsysui-presubmit under packages/CarSystemUI directory. Change-Id: Icec563e6dc2ee4ad27a8a961caa1ffd97ce68d54
2020-07-09Merge "Added systemui controller to control system bars." into rvc-qpr-devJian-Yang Liu
2020-07-08Added systemui controller to control system bars.JianYang Liu
When config_remoteInsetsControllerControlsSystemBars is true, DisplaySystemBarsController provides its own policy of how system bars are displayed for specific packages. Currently limited to only auto versions of Android. Bug: 149585273 Test: Manual, atest BarControlPolicyTest, atest InsetsPolicyTest, atest DisplaySystemBarsControllerTest Change-Id: Ie6b1cc3e2760cbc9e48d62dfbd8bc3e23ffca20c Merged-In: Ie6b1cc3e2760cbc9e48d62dfbd8bc3e23ffca20c
2020-07-07Merge "Fix boot timeout and reduce boot time" into rvc-dev am: 2d695313c9 ↵Riddle Hsu
am: 7cab6acae9 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12085171 Change-Id: Ie114f9cd427d781ed5cfe31f5cbe907075204ac1
2020-07-07Merge "Fix boot timeout and reduce boot time" into rvc-dev am: 2d695313c9Riddle Hsu
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12085171 Change-Id: If8bc707a1a70dbbea14b36d25f0dc781f3b26a3f
2020-07-06Clean up FocusParkingViewsDanny Epstein
Put FocusParkingView first rather than last and update comment to indicate that the FocusParkingView must be first. Use start rather than left to position FocusParkingView first. Bug: 131421840 Bug: 154540419 Test: manual Change-Id: I89b9977e1be4722c1e922e360332aa9d631b9540
2020-07-06Fix boot timeout and reduce boot timeRiddle Hsu
Since the notification shade has been separated from status bar to another window where the keyguard resides. It won't be visible until KeyguardViewMediator receives system ready. By making the visibility of notification shade consistent with the initial state of keyguard when attaching the window, window manager won't miss to wait for it. That avoids dismissing boot animation too early. The windows of notification shade and wallpaper can also be drawn earlier, that reduces the total waiting time of drawn windows by about 50~100ms on a mid-end device. The logic of wait-for-visible-not-drawn-window is restored to be the same as Q. The isVisible considers the independent visibility of wallpaper and visibility of the insets client. The isDrawnLw accepts READY_TO_SHOW so even keyguard decides not to use wallpaper, the procedure won't wait until timeout. Bug: 160271169 Bug: 158144185 Bug: 157746100 Bug: 157281833 Test: atest DisplayContentTests# \ testShouldWaitForSystemDecorWindowsOnBoot_OnDefaultDisplay NotificationShadeWindowControllerTest#attach_visibleWithWallpaper Test: Boot with enable/disable keyguard/wallpaper, there is no timeout and black screen or flickering. Change-Id: I2f979055e89ae5e40af05e469741bb89e2e24ce6 Merged-In: I2f979055e89ae5e40af05e469741bb89e2e24ce6
2020-06-19Merge "Updated NotificationPanelViewController to listen to ↵TreeHugger Robot
animateExpandNotificationsPanel and animateCollapsePanels." into rvc-dev am: 489dd7154c Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11921452 Change-Id: I566bb0ca427d78aed9bc0f6b1783fe3f2d420fb7
2020-06-19Merge "Updated NotificationPanelViewController to listen to ↵TreeHugger Robot
animateExpandNotificationsPanel and animateCollapsePanels." into rvc-dev
2020-06-19Updated NotificationPanelViewController to listen toJianYang Liu
animateExpandNotificationsPanel and animateCollapsePanels. Callbacks necessary for legacy notification system. Also added notification visibility reporter. Bug: 152056864 Test: atest NotificationAssistantServiceTest Change-Id: I8fa114824a54c06babd8bda2b789a6a16cd52357
2020-06-15Merge "Don't use flexible inset mapping yet" into rvc-dev am: c8f49d1a42Heemin Seog
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11871738 Change-Id: Ie02982162b56185b4069e109313d903726fa7fb7
2020-06-15Don't use flexible inset mapping yetHeemin Seog
Bug: 155126599 Test: atest DialogFrameTests, atest WindowInsetsControllerTests Change-Id: I6f5332dc605f9f73e41c41c21a11c1e09e978a14
2020-06-12Merge "Hide UserSwitchTransitionView if it is not hidden within timeout." ↵Youngjun Kwak
into rvc-dev am: d42606d7c4 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11838963 Change-Id: Ib59325e4d9641e1e59ef23733a10336c1b4cb7fe
2020-06-12Hide UserSwitchTransitionView if it is not hidden within timeout.kwaky
This prevents being stuck in the Loading screen even if the proper User Lifecycle event was not broadcast. Test: Unit Tests + Manual -- Verify that the UserSwitchTransitionView is hidden after the timeout threshold when the UserLifecycleEvent listener is not registered. Bug: 158705895 Change-Id: I895f04bda395bac271b01fbb414a8bf484348324
2020-06-12Merge "Notify window manager service that we are switching users" into ↵TreeHugger Robot
rvc-dev am: 12b5186f28 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11821052 Change-Id: Ibc8f185b563c3f800bfbcba5882859946c85dc88
2020-06-12Merge "Notify window manager service that we are switching users" into rvc-devTreeHugger Robot
2020-06-11Merge "Dismiss panel when requested to close system dialogs" into rvc-dev ↵Heemin Seog
am: 8808b5a3d3 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11827743 Change-Id: Icf83ebdc3a5551503a97b9bb1198ede5df3127d9
2020-06-11Merge "Dismiss panel when requested to close system dialogs" into rvc-devHeemin Seog