Commit Graph

88 Commits

Author SHA1 Message Date
kwaky
12930e8ddc Hide UserSwitchTransitionView if it is not hidden within timeout.
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-12 14:01:24 -07:00
Yabin Huang
a0d6c87323 Update the style of navigation button
Make navigation button use ?android:attr/selectableItemBackground as
background, and remove unused style CarNavigationBarButtonTheme.

Bug: 155681517
Test: manual
Change-Id: I637e7a49bb68145c5c36cf1b0363113437b88212
2020-06-10 13:37:22 -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
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
Heemin Seog
8277c314ca Make SystemUI config extendable
Bug: 155085702
Test: manual
Change-Id: I22e9ecb01993f0dd7be47c10071223bc5348f014
2020-04-27 10:53:16 -07:00
Jian-Yang Liu
c65d2c3e06 Merge "Updated OverlayPanelViewController to allow for showing overlay panel from the bottom navigation bar." into rvc-dev 2020-04-25 21:14:55 +00:00
JianYang Liu
2d922fb64b Updated OverlayPanelViewController to allow for showing overlay panel
from the bottom navigation bar.

Added Top and Bottom NotificationPanelViewMediators that can be used to
change the direction that the notification panel should go in.

Bug: 145827692
Test: Manual
Change-Id: I813415711f826a70cdbf4bd16e9b4f425e81e0de
2020-04-24 23:12:51 +00:00
Babak
16648affdd Add side loaded listener and controller
- Add SideLoadedAppController as a SysUI class to kick off the
sideloaded app tracking.
- Add SideLoadedAppStateController to manage the state of sideloaded
apps. This class is just a wireframe and will be filled in the following
cls.
- Add SideLoadedAppListener to listen for stack changes and notify the
state controller when the sideloaded apps state changes.
- Add unit test for SideLoadedAppListener

Bug: 154263570
Test: atest (All tests in CarSystemUITests)

Change-Id: I8d2b9b3d224017d9a51e2590a1aae0a9a265f7c3
2020-04-23 14:00:43 -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
11e0af370e Lazy load VolumeDialogComponent
Bug: 147455109
Test: manual (compare boot time of car.volume.VolumeUI vs
volume.VolumeUI)

Change-Id: I1ebb67d06fe5c7f1253ae970223128d3b53a3df5
2020-04-21 16:26:52 -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
24f3fd4b95 Remove unnecessary dependencies
This wasn't previously possible due to ties to StatusBar.java - however
since we've restructured it in a different way, we can pull out these
dependencies

Bug: 147455109
Test: manual
Change-Id: Ica8f288cd9b54742383a1c4e02b53f08f0da3e1b
2020-04-21 08:59:40 -07:00
Heemin Seog
e8db3025f8 Move _car.xml resources into regulard .xml files
Resolve some duplicates and make user switcher background black.
Also clean up a few more QS resources

Bug: 154357193
Test: manual
Change-Id: Ibb8c7f54b59dd564a47955d3ff0c1e7e00ba697c
2020-04-18 13:29:55 -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
TreeHugger Robot
daf2d9b2b5 Merge "Add Sideloaded detector" into rvc-dev 2020-04-18 00:15:37 +00:00
TreeHugger Robot
d5e54a7c73 Merge "Remove trust agent related resources" into rvc-dev 2020-04-17 23:51:00 +00:00
Babak
151a5643bd Add Sideloaded detector
A helper class to detect if any package is unsafe or sideloaded.
A package is considered unsafe if not a system app and not installed
through trusted sources.
The usage will be added in the following cls.

Bug: 154263570
Test: Added UnitTest
Change-Id: Ifffbe64ae95029427aeca4a997bc440dbdc2d3d6
2020-04-17 14:52:06 -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
Heemin Seog
29ecf61c46 Move status bar to CarNavigationBar
This also allows us to remove CarStatusBar.java (note that
CarStatusBar.java may still be instantiated via injection into other
Phone SysUI dependencies).

Bug: 147455109
Test: manual, atest CarNavigationBarTest CarNavigationBarControllerTest
Change-Id: Ic9f40c0662ae4ab3195f71ecebe91ba5cf2a7b22
2020-04-16 17:18:57 -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
cbb774dc6e Allow nav bar to consume touch events based on configuration
This is particularly useful for OEMs that want to ensure that OEMs can
override the touch behavior of the system bars without impacting the
notification panel touch behavior.

Bug: 150613278
Test: manual, atest CarNavigationBarViewTest
Change-Id: Icb5ae3388f4004b4f465e9a9e85e8d175bbe7d78
2020-04-03 16:38:24 -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
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
Babak Bostan
a860012413 Add toast message when bluetooth connects to voice recognition.
Bug: 143531081
Test: Manual
Change-Id: I342a1e5eefc59d25a8bea1c0fe72b8669bfdbe84
(cherry picked from commit d0555bba57)
2020-03-03 12:14:28 -08:00
Hayden Gomes
e1000392e7 Adding system usages to car volume settings
(Cherry-picked from 353ef62780)

Bug: 144872669
Test: Build, manually play around with volume settings
Change-Id: Ia5589689e5c37be3898ac1edb2df00b84280cb7d
Merged-In: Ia5589689e5c37be3898ac1edb2df00b84280cb7d
2020-02-28 12:37:33 -08:00
Ned Burns
46597ba6c0 Remove subclasses of NotificationEntryManager
First, moves most of the notification initialization logic out of
StatusBar and into NotificationController.

There is only one subclass of NotificationEntryManager in this project:

- CarNotificationEntryManager: stub implementation that disables most
functionality.

Removes CarNotificationEntryManager. Adds a config boolean to disable
notification rendering instead. Skips most notif initialization logic if
this flag is false.

Change-Id: I23ed86efa209f43314c162dcf32fe97112de7bc7
Test: atest, manual
2020-02-03 01:06:55 -05:00
Bernardo Rufino
ab338ac42c Move text toast creation to system UI
In order to do that, NotificationManager now calls
StatusBar.showToast(), which is in SystemUI. StatusBar then calls a new
component, ToastUI, which is responsible for rendering the toast. The
code for rendering the toast was extracted from the Toast class, so it
should behave identically.

Also refactored the code a bit on NotificationManagerService, creating
two children of ToastRecord (one for custom, other for text toasts).

The change is gated in Toast class in this CL, but it's also gated on
the system server, so apps can't circumvent the background block.

Bug: 128611929
Bug: 144754526
Test: atest android.widget.cts.ToastTest
Merged-In: Id0021cdc6f72f41b55ff1c5a4f09ae7687586460
Change-Id: Id0021cdc6f72f41b55ff1c5a4f09ae7687586460
2020-01-27 11:13:27 +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
kwaky
54bef9dd11 Move attrs_car from SysUI to attrs in CarSystemUI
Bug: 146513202
Test: Build, Manual, and Unit Tests still passing
Change-Id: Idd6e58e27e6de909ba20481513112b9abd689571
2019-12-23 17:00:29 -08:00
Fabian Kozynski
fc94a3523c Merge "Remove all Privacy chip classes." 2019-12-04 16:34:58 +00:00
Automerger Merge Worker
3f92a5bea6 Merge "Allow customization of timeout value for expanded volume dialog" into qt-qpr1-dev am: f40ed95801 am: 08e23d3c31
Change-Id: Id1f7f972d3dd27cd2ed2373689d944419dbcda10
2019-12-04 14:30:19 +00:00
Fabian Kozynski
228e310d19 Remove all Privacy chip classes.
Test: atest SystemUITests
Test: atest HistoricalAppopsTest
Test: adb shell device_config privacy permissions_hub_enabled true
Fixes: 144801684
Change-Id: I9c79ac6ac75b0197af0bfb6595b99a458916b761
2019-11-25 15:38:38 -05:00
Kamaljeet Maini
fca39a9cbe Allow customization of timeout value for expanded volume dialog
Bug: b/141850913
Test: Local build
Change-Id: Ifd25bbe7b542169b36a80cc953cf028e89826d66
2019-11-20 11:22:31 -08:00
Anthony Hugh
a2186c9f79 Merge "Delete SwitchToGuestTimer" 2019-11-18 21:17:54 +00: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
Anthony Hugh
39f0e4cd88 Delete SwitchToGuestTimer
Feature was never used in production and we felt the experience was not
the right one.  So remove support for it to reduce maintenance burden
and potential for buggy code.

Fixes: 144382004
Test: Boot and see no crashes
Test: Add lock to user and show UserPicker.  Run adb command to put car
into drive, wait 30 seconds and see no changes.
adb shell dumpsys activity service com.android.car inject-vhal-event 0x11400400 8
adb shell dumpsys activity service com.android.car inject-vhal-event 0x11600207 30

Change-Id: I257df02a8f669899c7a49df12815b302ec5965bb
2019-11-14 13:40:32 -08:00
Dave Mankoff
bcaca8a6cd Remove all calls to getComponent(CommandQueue.class).
Makes AuthController, GlobalActionsComponent, InstantAppNotifier,
SizeCompatModeActivityController, and TvStatusBar all injectable.

Prior to this CL, CommandQueue contained within it a SystemUI object
that it used to start itself up and add itself to components. With
this change, the SystemUI object is no longer necessary, as Dagger
will ensure that a CommandQueue is available to those who need it.

Bug: 143702229
Test: atest SystemUITests

Change-Id: I2763a6d918b41fe27a2370fdd820da476654e14f
2019-11-01 14:59:11 -04:00
Kamaljeet Maini
d72d706dd8 Allow customization of display timeout value for volume dialog am: 4a1a68d36d
am: 13c3dc5be5

Change-Id: I4738da120ca7866f8362349d36338149c314e11a
2019-10-31 17:15:42 -07:00
Kamaljeet Maini
4a1a68d36d Allow customization of display timeout value for volume dialog
Bug: b/141850913
Test: Local build
Change-Id: I571df53bc458ecbe6c7d70759aa6129501bc03f2
2019-10-31 12:35:42 -07:00
JianYang Liu
b923d1e1f0 Changed Notification shade's background alpha initial and final values
to be configurable.

Bug: 143372960
Test: manual - took before and after videos
Merged-In: Ia0b6a56859889d538e21f807a88bc5217d89e64a
Change-Id: Ia0b6a56859889d538e21f807a88bc5217d89e64a
2019-10-29 20:06:41 +00:00
JianYang Liu
cf7b336020 Changed Notification shade's background alpha initial and final values
to be configurable.

Bug: 143310145
Test: manual - took before and after videos
Change-Id: Ia0b6a56859889d538e21f807a88bc5217d89e64a
2019-10-28 20:27:44 +00: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
kwaky
3604b52222 Move dimens from overlay to framework
Test: Manual -- Emulator now builds and launches successfully.
Bug: 142267286
Change-Id: If54e1e345214b25697874c4fe5ba2dc9c32fa584
2019-10-14 17:38:31 -07:00
TreeHugger Robot
54ea3cc589 Merge "Status bar background color should not be transparent." 2019-09-12 02:15:19 +00:00
Priyank Singh
3228b57d8e Status bar background color should not be transparent.
Bug: 130431689
Test: Manual
Change-Id: Ida8788f2d758eedaf5db0139f81a65402ba0b88b
2019-09-11 23:46:26 +00:00
Priyank Singh
bb1dafb062 Status bar background color should not be transparent.
Bug: 130431689
Test: Manual
Change-Id: Ida8788f2d758eedaf5db0139f81a65402ba0b88b
2019-09-11 16:21:34 -07:00