Commit Graph

76 Commits

Author SHA1 Message Date
Heemin Seog
d79966114a Address lifecycle crash in car sysui
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-15 16:09:58 -07:00
Pardis Beikzadeh
9550193b1a Add rotary support to the nofitication shade.
- Add a FocusArea
- Add a FocusParkingView

The FocusArea's main contribution in this case is to
allow OEM customizability of the focus highlight for
the rotary feature. The UI was already in a rotary
compatible state without it (i.e. I could navigate
around even before adding this change)

BUG: 157937087
Test: manual
Change-Id: If02f9e73ca3a941fc783a63924135a2f78b12723
2020-06-24 13:45:04 -07:00
TreeHugger Robot
cf3274b3ba Merge "Keep system bar layout stable for rtl languages" into rvc-dev 2020-06-03 15:02:48 +00: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
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
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
Alex Stetson
abaab46da7 Merge "Update top bar with new settings intent" into rvc-dev 2020-05-08 17:31:14 +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
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
Heemin Seog
991711a074 Prepare for flexible system bars
Bug: 140423092
Test: manual
Change-Id: I1a3da8438970304d35c4fa1364b47070952a144f
2020-04-24 17:02:40 -07:00
Heemin Seog
9b078d3548 Move navigation bar, windows, and statusbar related classes
Move to some package under com.android.systemui.car

Bug: 154357193
Test: manual
Change-Id: I6afa42750398f0f190e9e18080ff5aeb67c9e66b
2020-04-22 16:06:28 -07:00
Heemin Seog
51a863301b Move things to com.android.systemui.car
Bug: 154357193
Test: atest (all tests in CarSystemUITests)
Change-Id: I897480b79c9c6dbf5e93b9eb869fe0acec77c598
2020-04-21 14:07:22 -07:00
Heemin Seog
4bd6e6bc62 Remove all QS related code from CarSystemUI
QS is not used in Car System UI

Bug: 154357193
Test: mp carsysui (on hawk)
Change-Id: I27462acf821dca61a007a4e1506beb06b4ddc7e5
2020-04-18 10:38:25 -07:00
Heemin Seog
e61fc035f2 Remove trust agent related resources
Bug: 154357193
Test: build, mp carsysui
Change-Id: Ibbb88d2ddab769d9bd8b838b93f93e4ed3d7c7f1
2020-04-17 14:41:51 -07:00
kwaky
4ed2e207c5 Implement AAOS-specific KeyguardViewController and decouple keyguard from statusbar.
Bug: 150162295
Bug: 150164054
Test: Manual. Unit Tests Pending.
Change-Id: I66586e15d114eb6da55254f778511bde4fce3154
2020-04-10 15:22:51 -07:00
Heemin Seog
df741ac850 Generalize notifications logic into a subclass of OverlayViewController
Bug: 147826363
Test: manual, atest OverlayPanelViewControllerTest
Change-Id: Ifad23f6ff639390077301eafa737fea8517a48d9
2020-04-08 17:22:00 -07:00
TreeHugger Robot
47e2a13cab Merge "Separate Notification Panel" into rvc-dev 2020-03-31 17:03:48 +00:00
Heemin Seog
b2c20a677e Separate Notification Panel
Bug: 147826363
Test: manual
Change-Id: I5f10d23c5219a5bd1e10ee794ff9942a21c1f787
2020-03-26 15:54:36 -07:00
JianYang Liu
96cf38e427 Added boolean flag to allow showing notification on the bottom of the
screen rather than on the top.

Bug: 146901563
Test: Manual
Change-Id: I493dd41190c487e00acd783fa02361afd3380188
2020-03-17 11:11:34 -07:00
TreeHugger Robot
9283fb54a7 Merge "Updated Fullscreen user switcher to not use fitsSystemWindows." into rvc-dev 2020-03-07 00:14:04 +00:00
JianYang Liu
05649fcf17 Updated Fullscreen user switcher to not use fitsSystemWindows.
fitsSystemWindows="true" has default behavior of setting padding of the
view to ensure contents don't overlay system windows. In the case of the
fullscreen user switcher, we don't need this behavior.

Bug: 150302361
Test: Manual (set lockscreen, restart, click "Cancel")
Change-Id: Ifc597c2b96862abc3283d6af1a0c2765431c71af
2020-03-06 14:04:37 -08:00
Eric Berglund
89edc87971 DO NOT MERGE Move Heads Up Notifications to their own window
Bug: 146901166
Test: manual, unit test
Change-Id: I064cdf9cf2a8dd6844ec0daccdac909a85f6f73e
2020-03-06 13:19:35 -08:00
Abhijoy Saha
84590ea25a Use abstractions to allow FullscreenUserSwitcher take advantage of SystemUIOverlayWindow.
This change includes the following:
* Rename SystemUIPrimaryWindow to SystemUIOverlayWindow
* Create Mediator and View controller abstractions that allows
developers to easily take advantage of SystemUIOverlayWindow that is
managed by a single SystemUI Object: SystemUIOverlayWindowManager.
* Convert FullscreenUserSwitcher to take advantage of the newly added
abstractions.

Bug: 147826738
Test: Manual
Change-Id: I19825da81f8d1b1259a2ba115e0238a9ffa69e37
Merged-In: I19825da81f8d1b1259a2ba115e0238a9ffa69e37
2020-03-05 14:39:59 -08:00
JianYang Liu
a02c99ec54 Fixed CarStatusBar to use Car's implementation of navigation bar.
Resolves the issue where for Car we switched back to only showing
Phone's implementation of StatusBar rather than Car's.

Bug: 148078465
Test: Manual
Change-Id: Id1b342e3b7a0e9437422c1edd221f320d52927de
2020-01-22 21:40:44 +00:00
wilsonshih
e832194dd0 Split status bar window (1/N)
This is the first step to create another new window for status bar.

Small window => TYPE_STATUS_BAR: The bar on top of screen.
Large window => TYPE_NOTIFICATION_SHADE: Anything else.

Bug: 136993073
Test: build then flash
Test: atest WmTests SystemUITests
Test: atest RegisterStatusBarResultTest InsetsFlagsTest

Manual Test:
- Bouncer can show when leave showWhenLocked activity.
- StatusBar can show when comes HUN in fullscreen mode.
- StatusBar can play enter/leave animation in fullscreen mode.
- Able to drag notification panel when bubble/glow existing.
- Switch to market launcher, and run above tests.
- Drag notification panel from launcher several times and observe it
  works fine.

Change-Id: Id9f72cd0e21f01b50d57f02ea60f97c6460926b7
2020-01-17 15:33:56 +00:00
Heemin Seog
886d97633a Merge "User switcher in primary sysui window" 2020-01-14 18:57:02 +00:00
Heemin Seog
193c7167d5 Merge "Create a new window to host car specific sysui" 2020-01-13 17:03:06 +00:00
Heemin Seog
17134e2953 User switcher in primary sysui window
Bug: 147495368
Test: manual (add security, reboot, add new user, reboot)
Change-Id: I638f57de2e9117a1cb5aa6660d5a03b58894d31f
2020-01-10 14:47:02 -08:00
Heemin Seog
d9af298b18 Create a new window to host car specific sysui
Currently we're using STATUS_BAR_SUB_PANEL windowing layer, but we'll
need to revisit this in the future.

Also the height is calculated by appending the height of the navigation
bar. We'll also need to discuss with the windowing team on how to get
the full height of the display using MATCH_PARENT.

Bug: 147455109
Test: manual (test that the window can hold content with a test screen)
Change-Id: I3b821ec0382515804a4ee80396f15d608467efdf
2020-01-10 14:45:53 -08:00
Dave Mankoff
af8163f77d Revert "Revert "Refactor PanelView and NotificationPanelView into Controllers.""
This reverts commit da13c3fd3d.

This includes a fix for the original issue - an NPE in
NotificationPanelView.

Bug: 147295216
Change-Id: Id1a71b0e30aada460a70d738c5451e21dd412a7a
Test: atest SystemUITests
2020-01-08 14:55:19 -05:00
Zhuoyao Zhang
b2c90b1e3c Merge "Revert "Refactor PanelView and NotificationPanelView into Controllers."" 2020-01-08 18:53:06 +00:00
Zhuoyao Zhang
da13c3fd3d Revert "Refactor PanelView and NotificationPanelView into Controllers."
Revert "NoticationPanelView now has a controller."

Revert submission 9930899-b141751146-npv-controller

Reason for revert: b/147295216
Reverted Changes:
I9a92cad63: Refactor PanelView and NotificationPanelView into ...
I454bc4790: NoticationPanelView now has a controller.

Change-Id: Iae9db40e9385e1b88bd2f5f162a5f6d53d91878d
2020-01-08 18:30:30 +00:00
kwaky
34c6bdee7e Support Unseen Indicator Icon in all CarNavigationButtons
Bug: 146508662
Test: Manual + Unit Tests
Change-Id: I464f4f080f739923492daf2715753e3892ada7dd
2020-01-07 15:44:13 -08:00
TreeHugger Robot
c7ce0f2dde Merge changes from topic "aae_navbutton_refactor"
* changes:
  Move attrs_car from SysUI to attrs in CarSystemUI
  Merge CarFacetButton and CarNavigationButton into a single class and add test coverage
2020-01-07 17:54:22 +00:00
Dave Mankoff
59b9496c7b Refactor PanelView and NotificationPanelView into Controllers.
Bug: 141751146
Test: atest SystemUITests
Change-Id: I9a92cad636e30634ac5b1fa16121d320991492c2
2020-01-06 14:56:26 -05:00
kwaky
77d81dc6ac Merge CarFacetButton and CarNavigationButton into a single class and add test coverage
Test: Manual - Manually verified that navigation button functionalities are working as expected.
      Unit Tests
Bug: 145827784
Bug: 145604656

Change-Id: Ib8f837ba34afbb8d66092a8b851b93c50fa20b26
2019-12-23 16:58:17 -08:00
Priyank Singh
f80e815c1f Removing the privacy chip code completely
Bug: 135440861
Test: Manual
Change-Id: I99aaee22d313eaaeb73b5f1f88983abd761eac81
2019-11-15 22:35:17 +00:00
Heemin Seog
fcccab716c Add nav bar controller
The controller is respnsible for knowing about the configuration values
and setting the notifications related listeners as necessary.

Bug: 143143539
Test: manual
Change-Id: Iaed21006284493f4e3f8e6f4c827b0d41780f77b
2019-10-23 12:50:37 -07:00
Heemin Seog
1a39dea844 Separate navigation bar
Move the logic related to navigation bar out of CarStatusBar into
StatusBar.

Note that some navigation bar logic related to notifications and
keyguard needs to stay in StatusBar for now. Will be refactored out in
separate CLs.

Bug: 142787842
Test: manual
Change-Id: Ie6bc5bccbc30aa53ea15e3f2ce19fd793bd6b38a
2019-10-19 14:48:18 -07:00
Youngjun Kwak
a9da1921f0 Merge "Use the up-to-date version of car navigation bar being rendered by the global RRO" 2019-10-16 18:11:33 +00:00
kwaky
0c8fdd9eb8 Use the up-to-date version of car navigation bar being rendered by the global RRO
Test: Manual -- Navigation bars (bottom, left, and right) are rendering and functioning as they did before these changes.
App Grid and Notifications buttons are not working on the left and right navigation bars,
but I've verified that such was true before these changes,
and so it doesn't seem to be a regression caused by them.
Bug: 142509189
Change-Id: I84c526b16aa06f144a601856d5ad0052dd9c56d5
2019-10-14 13:04:21 -07:00
Heemin Seog
956cd51999 Add support for unprovisioned top nav bar
Also listen for changes to user setup rather than device provisioned

Bug: 140748928
Test: manual with custom SUW apk
Change-Id: Iabab489269d3dbfafd150a919020ac7921e45768
2019-10-09 12:25:06 -07:00
Heemin Seog
f6ee4c723d Fix the super_status_bar to be compatible
Phone system ui made some changes recently which require
super_status_bar to be updated.

Bug: 142274450
Test: manual (build, flash, no crashing)
Change-Id: Icf1049d0264da57d435600d607c26a612fcaeb3b
2019-10-07 16:56:49 -07:00
TreeHugger Robot
222eaf9fc1 Merge "Make unlock dialog exit if the person taps outside of the dialog" 2019-09-04 21:45:39 +00:00
Erin Yan
fe3efb667f Make unlock dialog exit if the person taps outside of the dialog
Bug: 136049501
Test: Manually on IHU
Change-Id: Iabbca72bf65b5e93aafd53296d77a88ccaaf5dfd
2019-09-04 12:07:09 -07:00
jovanak
481a104025 Adding scrim bubble to car's super_status_bar.xml
Bug: 140308332
Test: sys ui boots on hawk
Change-Id: I111a5eef67ebe599d65b96687643cf1949d6bfbe
2019-09-03 19:22:41 -07:00
Erin Yan
16258e3e98 Create dialog to show detecting Batmobile device & unlocking
Bug: 136049501
Test: Manually on IHU
Change-Id: I47b55e3032c814623aa5bf5c5c3ec1899c03e98e
2019-08-14 12:04:17 -07:00
Priyank Singh
e62554c547 Maps should be launched via Implicit Intent instead of Car Launcher.
Bug: 135129435
Test: Manual
Change-Id: I81c1b608a8a0a10353e8a706869af9c1d300d719
2019-06-21 15:04:37 -07:00
Heemin Seog
56eea42c0f Merge "Small fixes to CarSysUI Volume Dialog" into qt-dev am: 0247f19816 am: 79dd503f84
am: 462864b22d

Change-Id: I8ec4d9d51bd549232863e3969da763f1b3952eaf
2019-06-03 14:44:47 -07:00