Commit Graph

484 Commits

Author SHA1 Message Date
Jian-Yang Liu
b033fe5b68 Merge "Added boolean flag to allow showing notification on the bottom of the screen rather than on the top." into rvc-dev am: 962b460f1c am: bd82606364 am: 35fd938912 am: b44c32ed41
Change-Id: Ib1b8ce28030d1c65927b7168167fe53b99a41746
2020-03-18 18:26:11 +00:00
Jian-Yang Liu
538f64c531 Merge "Updated CarSysUI proguard flags to include the HeadsUpNotificationAnimationHelper since those are used via reflection." into rvc-dev am: 96d70f138e am: f7a4a3e606 am: a5134162dd am: 835d1ad6a4
Change-Id: I34b14796af7efc29f2b27312935df95d70f7a6ab
2020-03-18 18:25:47 +00:00
Jian-Yang Liu
962b460f1c Merge "Added boolean flag to allow showing notification on the bottom of the screen rather than on the top." into rvc-dev 2020-03-18 17:07:41 +00:00
Jian-Yang Liu
96d70f138e Merge "Updated CarSysUI proguard flags to include the HeadsUpNotificationAnimationHelper since those are used via reflection." into rvc-dev 2020-03-18 17:07:30 +00: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
John Li
4e3dddce35 Provide QSFactory
Bug: 145892579
Test: atest SystemUITests:CustomTileTest SystemUITests:QSTileHostTest
Change-Id: I3b676e6fc2ec3f3b779c13b7dc8214569cc427e5
Merged-In: I3b676e6fc2ec3f3b779c13b7dc8214569cc427e5
(cherry picked from commit 6fa10209d7)
2020-03-17 08:12:51 +00:00
John Li
ef66c5fa1f Merge "Provide QSFactory" 2020-03-17 08:10:17 +00:00
Automerger Merge Worker
8219a13f6c Merge "Fixed navigation bar to show itself after creating a new user through keyguard ui." into rvc-dev am: 628f2eeafe am: 313e484fe0 am: 7e7e434ef3 am: 5ad032a597
Change-Id: I006bb6a495aa953b184f0b5d63bcdad0ac116c7a
2020-03-16 23:26:34 +00:00
JianYang Liu
d797b2a1fc Updated CarSysUI proguard flags to include the
HeadsUpNotificationAnimationHelper since those are used via reflection.

Bug: 146901563
Test: Manual
Change-Id: Icdbf9cc2da2be1ae9188a2c398fbb823c08c53e0
2020-03-16 14:38:19 -07:00
JianYang Liu
4fbd981ab0 Fixed navigation bar to show itself after creating a new user through
keyguard ui.

When going through keyguard ui, the provisioned navigation bar is
hidden. When we then create a new user, we switch to using the
unprovisioned navigation bar, so we don't reset the state for the
provisioned navigation bar.

Bug: 150318502
Test: Manual
Change-Id: Ie7cbdba2449f44714f1970b309363e8ea6e4771c
2020-03-16 10:54:55 -07:00
John Li
6fa10209d7 Provide QSFactory
Bug: 145892579
Test: atest SystemUITests:CustomTileTest SystemUITests:QSTileHostTest
Change-Id: I3b676e6fc2ec3f3b779c13b7dc8214569cc427e5
2020-03-16 17:27:59 +08:00
Automerger Merge Worker
15bce3788f Merge "Create interface for NotifInterruptStateProvider" into rvc-dev-plus-aosp am: 483fc6ad7a am: 1081351942 am: 79c9e6bf6f
Change-Id: Ie3a2cb73417de3d38a95b02d0212c2a8df6e1128
2020-03-12 23:55:25 +00:00
Beverly Tai
aea2128f04 Create interface for NotifInterruptStateProvider
This CL was removed by automerger, so readding contents now.

Test: atest SystemUITests
Bug: 151320608
Bug: 151334714
Change-Id: Icbdca66f8d6408f3370348d9e4b55555e56076de
2020-03-12 19:17:36 +00:00
TreeHugger Robot
3604fffbff Merge "Create interface for NotifInterruptStateProvider" into rvc-dev 2020-03-11 23:08:53 +00:00
Beverly Tai
d1e175c407 Create interface for NotifInterruptStateProvider
Take #2
Original CL disabled HUNs because NotificationAlertingManager was
removed from the StatusBar constructor (but never injected elsewhere;
therefore it was never instantiated).

bcb499478a

Test: atest SystemUITests
Bug: 151050224
Bug: 150797570
Change-Id: I601d58bfff4422bd0c52e56ebdb4192ce9a8f880
2020-03-11 21:11:18 +00:00
Sumanth Kumar Mara
17b34712f6 Merge "add postsubmit tests using test mapping" 2020-03-11 00:54:19 +00:00
Lucas Dupin
538209843b Merge "Add interfaces for reverse to BatteryController" into rvc-dev 2020-03-10 17:13:33 +00:00
Automerger Merge Worker
454c2da650 Merge "Revert "Create interface for NotifInterruptStateProvider"" into rvc-dev am: ab3f32b346 am: 0a796340e4 am: 1762c19fbb am: 50eef6a4ca am: 3ea8d1231f
Change-Id: I74f63ae2261ad631d5411ef3c17a0e1c79f5fdc0
2020-03-09 22:25:51 +00:00
TreeHugger Robot
ab3f32b346 Merge "Revert "Create interface for NotifInterruptStateProvider"" into rvc-dev 2020-03-09 20:25:28 +00:00
Eric Berglund
6d60e86be5 Merge "Move Heads Up Notifications to their own window" 2020-03-09 17:02:20 +00:00
Beverly Tai
bcb499478a Revert "Create interface for NotifInterruptStateProvider"
Revert "Move HUNs and pulsing to interrupt package"

Revert submission 10548462-hun_interrupt_package
Fixes: b/151050224

Reason for revert: broke HUNs
Reverted Changes:
I5ad5546d6:Move HUNs and pulsing to interrupt package
I13be75809:Create interface for NotifInterruptStateProvider

Change-Id: I421a7906a87236fb18fc3d434d654fb18c35e6a2
2020-03-09 16:17:53 +00:00
John Li
8360e4e380 Add interfaces for reverse to BatteryController
Bug: 146984142
Test: manual
Change-Id: Ie8f6c0aedb89069a9b33719834e767df179acdef
Merged-In: Ie8f6c0aedb89069a9b33719834e767df179acdef
(cherry picked from commit 733162cc16)
2020-03-09 07:57:29 +00:00
Automerger Merge Worker
eece8507d5 Merge "Fix instances of ContentObserver#onChange in SystemUI" into rvc-dev am: bea69abe17 am: 9e4f2bfde8 am: ab5e2d6fa8 am: 2e9ed7ff6c
Change-Id: I24561cb1d7a9778c342eb060e6b07a64ed63fc48
2020-03-07 23:26:20 +00:00
Automerger Merge Worker
d7240f4b59 Merge "Updated Fullscreen user switcher to not use fitsSystemWindows." into rvc-dev am: 9283fb54a7 am: ad910b3129 am: 15e60cd05c am: 151db9ff22
Change-Id: Icc1658c40f2ae6a10573b5ef03f208228f98461f
2020-03-07 23:24:44 +00:00
Automerger Merge Worker
33e2b9f163 Merge "Create interface for NotifInterruptStateProvider" into rvc-dev am: 91d9afcb98 am: b7af21a389 am: 6a1f427e52 am: eb14873153
Change-Id: I945d0a06423d05362001b1fe6e65a01fa57092e9
2020-03-07 23:07:24 +00:00
TreeHugger Robot
bea69abe17 Merge "Fix instances of ContentObserver#onChange in SystemUI" into rvc-dev 2020-03-07 01:04:08 +00:00
Eric Berglund
8fac25ae73 Move Heads Up Notifications to their own window
Bug: 146901166
Test: manual, unit test
Change-Id: I064cdf9cf2a8dd6844ec0daccdac909a85f6f73e
2020-03-06 16:32:00 -08:00
TreeHugger Robot
9283fb54a7 Merge "Updated Fullscreen user switcher to not use fitsSystemWindows." into rvc-dev 2020-03-07 00:14:04 +00:00
TreeHugger Robot
07c394926f Merge "DO NOT MERGE Move Heads Up Notifications to their own window" into rvc-dev 2020-03-06 23:48:19 +00:00
Fabian Kozynski
caf76d25e3 Fix instances of ContentObserver#onChange in SystemUI
Fix instances due to change in signature.

Test: atest SystemUITests
Test: atest TileServiceTest BooleanTileServiceTest
Bug: 150939131
Change-Id: Ie5903231eb7dd22553803c6a65994ef3dc957708
2020-03-06 18:10:03 -05: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
TreeHugger Robot
91d9afcb98 Merge "Create interface for NotifInterruptStateProvider" into rvc-dev 2020-03-06 21:45:54 +00: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
Youngjun Kwak
91b4f26c5b Merge "DO NOT MERGE Create KeyguardViewController that extracts view-related logic in KeyguardViewMediator and re-wire Dagger accordingly." into rvc-dev 2020-03-06 20:55:29 +00:00
Beverly
e73aea2e48 Create interface for NotifInterruptStateProvider
- Remove calls to Dependency.get(NotificationInterruptStateProvider)
- Fix style errors in touched kt files
- Remove some unused injects
- Adjust Car components to match new interface

Bug: 150797570
Test: atest SystemUITests
Change-Id: I13be75809831656bf7eaf136f18aaa8b9b6225d2
2020-03-06 13:49:18 -05:00
kwaky
ce0531cf43 Create KeyguardViewController that extracts view-related logic.
Prior to this change, KeyguardViewMediator used
StatusBarKeyguardViewManager for making view-related changes.
This meant that KeyguardViewMediator could only be used with
a specific Keyguard view that is mounted to the StatusBar.
This change makes KeyguardViewMediator compatible with any
Keyguard view no matter where it is mounted, as long as it
implements the methods defined in the KeyguardViewController interface.

For AAOS, This refactorization allows us to implements
our own Keyguard View and its Manager as the next step.

Bug: 150467593
Test: Build and Manual Test -- Android builds successfully on Hawk and Pixel 2 and
interacting with Keyguard functionalities works.

Change-Id: Idda93514eac030f1d92523aebc9444a4d55b21d2
2020-03-06 08:59:13 -08:00
kwaky
198b5dc318 DO NOT MERGE Create KeyguardViewController that extracts view-related logic in KeyguardViewMediator and re-wire Dagger accordingly.
Prior to this change, KeyguardViewMediator used StatusBarKeyguardViewManager for making view-related changes.
This meant that KeyguardViewMediator could only be used with a specific Keyguard view that is mounted to the StatusBar.
This change makes KeyguardViewMediator compatible with any Keyguard view no matter where it is mounted, as long as it implements
the methods defined in the KeyguardViewController interface.

For AAOS, This refactorization allows us to implements our own Keyguard View and its Manager as the next step.

Bug: 150467593
Test: Build and Manual Test -- Android builds successfully on Hawk and Pixel 2 and interacting with Keyguard functionalities works.

Change-Id: Idda93514eac030f1d92523aebc9444a4d55b21d2
2020-03-05 16:03:51 -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
Automerger Merge Worker
3d228850bc Merge "Apply the selection state that reflects the current task stack upon restarting the Navigation Bar." into rvc-dev am: 97f4e229e7 am: 95302fd96a am: 521f6461b9 am: 2632da8099
Change-Id: Ie586718deb92a55c314ca262426861be8336cf03
2020-03-05 04:24:22 +00:00
Abhijoy Saha
9a3ef68a51 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
2020-03-04 15:51:25 -08:00
kwaky
371e62126a Apply the selection state that reflects the current task stack upon restarting the Navigation Bar.
Previously, while restarting the Navigation Bar, we omitted the step where we
apply the selection state that reflects the current task stack.

This omission caused CarFacetButtons to lose their selection state on
certain events.

Bug: 148211695
Test: Unit Test
Change-Id: Icfa845b87ca7456d3765602b3daacd589a94f309
2020-03-04 15:18:41 -08:00
Automerger Merge Worker
7428bc05ec Merge changes from topic "b150393918-lock-icon-controller" into rvc-dev am: a40c4b47ef am: ab1cb86280 am: 45168584a8 am: 89c70a4730 am: ae2e282fb7
Change-Id: I147bff24b8cd6bddd4e82a96ef43d1aa1d8dcee5
2020-03-04 16:55:59 +00:00
Dave Mankoff
a40c4b47ef Merge changes from topic "b150393918-lock-icon-controller" into rvc-dev
* changes:
  Move SB.StateListener from LockIcon to Controller.
  Remove the OnUserInfoChangedListener implementation from LockIcon.
  Pass LockscreenIconController around instead of LockIcon.
2020-03-04 15:54:37 +00:00
Dave Mankoff
c0d9a7d889 Pass LockscreenIconController around instead of LockIcon.
This also makes KeyguardIndicationController properly injectable, and
moves some of the LockIcon touch-handling that was happening inside
of it into the LockscreenIconController.

To make KeyguardIndicationController injectable, a new
WakeLock.Builder was added that can be injected and used to create
new WakeLocks as needed.

Bug: 150393918
Test: atest SystemUITests && manual
Change-Id: I3ad871164a822c0c63c0e32da777beb287144a35
2020-03-03 20:52:06 -05:00
Automerger Merge Worker
0d70125c0c Merge "Add toast message when bluetooth connects to voice recognition." into rvc-dev am: 4a36106756 am: ee99da2aee am: f6f90740a0 am: ec58bddeff
Change-Id: I733e0d5448c46f79826633e5e6a5347b1891a1c9
2020-03-03 23:52:39 +00: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
574bb77823 Merge "Adding system usages to car volume settings" into rvc-dev 2020-03-02 18:09:34 +00: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
Hayden Gomes
ee5e225853 Merge "Adding system usages to car volume settings" 2020-02-28 19:24:24 +00:00
Automerger Merge Worker
c5c3a4dc87 Merge "Generalize AutoHideController to be shared" into rvc-dev am: dfb1fe98af am: ddf2e56a2f am: f9071c7b60 am: 28e5708a97
Change-Id: Ib27bf96527a79ac6698ce329b673f1ff61930b3a
2020-02-28 17:44:45 +00:00