145 Commits

Author SHA1 Message Date
jovanak
a090fe062a Adding scrim bubble to car's super_status_bar.xml
Bug: 140308332
Test: sys ui boots on hawk
Change-Id: I111a5eef67ebe599d65b96687643cf1949d6bfbe
(cherry picked from commit 481a1040258f13ffc99b92ecfca146240a680382)
2019-09-17 18:31:37 +00:00
Mady Mellor
fd48588768 Merge "qt-r1-bubbles-dev @ build 5835883" into qt-qpr1-dev 2019-09-16 21:55:51 +00:00
Brad Stenning
c2327e547b Merge "Fix build file such that CarSystemUi can be easily extended" into qt-qpr1-dev 2019-09-12 18:24:40 +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
Mady Mellor
a5813e0e3d qt-r1-bubbles-dev @ build 5835883
Test: presubmit setup on source branch

Bug: 126945401
Bug: 128932906
Bug: 129158983
Bug: 130237686
Bug: 130250809
Bug: 130442248
Bug: 131267438
Bug: 131609280
Bug: 131692350
Bug: 131849856
Bug: 133444037
Bug: 134064116
Bug: 134064858
Bug: 134070807
Bug: 134077101
Bug: 134090085
Bug: 134155107
Bug: 134423445
Bug: 134512898
Bug: 134514210
Bug: 134514227
Bug: 134734945
Bug: 134960381
Bug: 134989736
Bug: 135214687
Bug: 135280077
Bug: 135472021
Bug: 135475155
Bug: 135487618
Bug: 135488406
Bug: 135518045
Bug: 135633218
Bug: 136034310
Bug: 136150954
Bug: 136199542
Bug: 136538998
Bug: 137201711
Bug: 137213469
Bug: 137214359
Bug: 137214536
Bug: 137233453
Bug: 137876221
Bug: 138301618
Bug: 138445026
Bug: 138659213
Bug: 138749133
Bug: 138799651
Bug: 138801505
Bug: 138941969
Bug: 139002444
Bug: 139025304
Bug: 139816141
Change-Id: Ia7364529ea58070c8d45ecd726ab6ac7d34f2abe
Merged-In: Ic271a6a0f0803941dd5a84124dabf4d8c5fcc755
Merged-In: Ic3a4ba793db7f1361678ef51c411d9eab85d9b85
2019-09-11 22:42:54 +00:00
Brad Stenning
b896c588af Fix build file such that CarSystemUi can be easily extended
This is done buy building all of CarSystemUI as a library and then including that
library as a static lib for an android_app target. Thus anyone that wants to
build a derivative to CarSystemUI can include that library and start extending.
It is the same mechanism that allows CarSystemUI to extend the phone SystemUI

Bug:140875212

Test: Build and Deploy
Change-Id: I4c83b0147c5ce8a8b4321ba0866721e4922df431
2019-09-11 21:12:10 +00:00
jovanak
504e75313d Initialize mScreenLifecycle before user switcher gets created.
Fixes:139682542
Test: turn screen on and off, set lockscreen, switch users
Change-Id: Id10b2e62230b5ee4e5a5ef7419a1500112673049
(cherry picked from commit 4c4971d04ae12c5c19c20aeb296592e9a9f99c0e)
2019-09-10 23:33:02 +00:00
TreeHugger Robot
fa68d79bfe Merge "DO NOT MERGE Call mutate on notification shade drawable before editing." into qt-qpr1-dev 2019-09-09 19:08:45 +00:00
Erin Yan
bc4b741979 Reduce the delay of showing unlock dialog to 0
Bug: 136049501
Test: Manually on IHU
Change-Id: I0016290a5181b9acba73503f938772b90f583f66
Merged-in: I0016290a5181b9acba73503f938772b90f583f66
(cherry picked from commit 13ae817be29db22e31dcc3e3b7a1536ecf16fac8)
2019-09-06 18:12:57 +00:00
Erin Yan
5eb60a2c0d Make unlock dialog exit if the person taps outside of the dialog
Bug: 136049501
Test: Manually on IHU
Change-Id: Iabbca72bf65b5e93aafd53296d77a88ccaaf5dfd
Merged-in: Iabbca72bf65b5e93aafd53296d77a88ccaaf5dfd
(cherry picked from commit fe3efb667fd3ceafda97a28d6f4673960114c369)
2019-09-06 01:52:12 +00:00
Erin Yan
b1af47bec8 Remove PASSWORD_QUALITY_MANAGED from CarTrustAgentUnlockDialogHelper
Bug: 140231719
Test: Manually on IHU
Change-Id: I5e848ca3183f624158dc192159f57aaa9d27a89c
Merged-in: I5e848ca3183f624158dc192159f57aaa9d27a89c
(cherry picked from commit 7bed781be5651bb33b79de801c72ec3340b4d070)
2019-09-06 00:13:12 +00:00
TreeHugger Robot
cf885ef399 Merge "Create dialog to show detecting Batmobile device & unlocking" into qt-qpr1-dev 2019-09-06 00:07:30 +00:00
Erin Yan
8182bfd415 Create dialog to show detecting Batmobile device & unlocking
Bug: 136049501
Test: Manually on IHU
Change-Id: I47b55e3032c814623aa5bf5c5c3ec1899c03e98e
Merged-in: I47b55e3032c814623aa5bf5c5c3ec1899c03e98e
(cherry picked from commit 16258e3e98e0e648840171727f321fd9436a548d)
2019-09-05 23:24:53 +00:00
Heemin Seog
28097c4723 Listen for changes to IME and show/hide nav bar
This feature is configurable and set to false as the default value. It
is overlayed as true for Automotive.

Bug: 138242566
Test: manual
Change-Id: I5dde8adc9d4ce749d895287ccf63017b284caec8
Merged-In: I5dde8adc9d4ce749d895287ccf63017b284caec8
2019-09-05 05:32:06 +00:00
Brad Stenning
8650f41163 DO NOT MERGE Call mutate on notification shade drawable before editing.
All drawables, by default, are shared in memory thus this would affect other
unintended elements to also have their alpha set.

Bug: 134407440
Test: Manual
Change-Id: Ieb26146b67c0cb7d2bfd3213993238be2da68c23
(cherry picked from commit 0b7e45ebc5f1030fe77f3cfe2a542095d9fa6f80)
2019-08-26 17:22:19 +00:00
Govinda Wasserman
8d49d0d63f [DO NOT MERGE]Daggerize Android Auto
Test: tested locally
BUG:139865326
Change-Id: I38c6f3bf8a8c43997251b1f13b3f2fb4533d15f2
Merged-In: I38c6f3bf8a8c43997251b1f13b3f2fb4533d15f2
2019-08-23 14:14:25 +00:00
Dave Mankoff
781ef7ee1e Pass FalsingManager down through more classes.
The CP's http://ag/c/8269205, with some minor modifications.

This removes FalsingManagerFactory, replacing it with
calls to Depedency.get() and pushes those calls further
up the stack in hopes that the FalsingManager can be directly
injected where it's needed in the future.

Contains a few random lint cleanups.

Bug: 136279712
Test: atest SystemUITests
Change-Id: Idd66e40d3bb9ebe9ca583166d5e961cc70ea51b8
Merged-In: Ie24acd33b0d81ae2112aead0c0d5a8658e04994e
2019-08-14 14:55:10 -04:00
Dave Mankoff
1a0e382745 Allow Services to be created through Dagger.
This is a significant change that allows Services to have their
constructed injected into.

The DozeService is now labeled as injectable (thought it takes no arguments).
At least one Service has to be marked as injectable for Dagger to be happy
compiling this code.

Bug: 138787339
Test: atest SystemUITests
Change-Id: I0ec92e01dd236bcee3083c8f8744c53b7ccc92d3
Merged-In: Ib58f8763c996fbc2aea07ead56493d2d9e936f5b
2019-08-14 14:52:41 -04:00
davidln
eaeae1876e resolve merge conflicts of d2310e6ce337acd5f31a9342151458422826a5d8 to qt-r1-bubbles-dev
Bug: 128932906

Test: build
Change-Id: Idabad8379cded664bcf302d5c6fb69564d158eb7
2019-06-26 18:23:20 -07:00
davidln
1ceedb55d0 Notify on task display change.
This is a targeted fix for not receiving a task stack change callback
when a task with a resumed Activity is reparented to another display.

Bug: 128932906

Test: manual - launch activity from virtual display onto default display
  in a new task, verify callback notified. atest WmTests
Change-Id: Idabad8379cded664bcf302d5c6fb69564d158eb7
2019-06-25 21:05:31 -07:00
Selim Cinek
2cfa02421b Merge changes I5694a38e,I488f90aa,Ie9644dc8,I8d5b5b53,Ib8a0fa19 into qt-r1-dev
* changes:
  Continued the bypass experience
  Changing the lockscreen layout for the bypass
  Enabling auth to succeed whenever the bouncer is showing
  Enabled dragging down from the lock screen when bypassing
  Made sure huns can show on the lock screen even when awake
2019-06-20 02:04:12 +00:00
Selim Cinek
b0fada6ca0 Changing the lockscreen layout for the bypass
The notifications are now on the top and the user
can drag down to the full shade from there directly.
The quick settings header also comes down while
expanding from the pulse.

Bug: 130327302
Change-Id: I488f90aacd5912eda6f9423dc76862f06230d793
2019-06-19 16:13:53 -07:00
TreeHugger Robot
a6d0f1f7fa Merge "When the notification shade is shown the functionality to show/hide HUN should be controlled via a config flag." into qt-dev 2019-06-18 18:58:43 +00:00
jovanak
622def2335 Preventing keyguard dismissal when screen is off.
For automotive, we dismiss keyguard to go straight to the home screen
or the bouncer. However, when the screen is off, we want keyguard to remain
to properly stop the applications.

We dismiss keyguard when the screen comes back on.

Fixes: 133324766
Bug: 133271311
Test: manual, turning screen on and off repeatedly, switching users while
screen is off or on, reboots

Change-Id: Iced146ad8753794bb766eb528dd198f886ccf3d7
2019-06-11 20:31:58 +00:00
Priyank Singh
8bd920f834 When the notification shade is shown the functionality to show/hide HUN should be controlled via a config flag.
Bug:134767666
Test: Manual
Change-Id: Id8097a99e0a2424e66f171e7ed47fe3befae7f8a
2019-06-08 00:34:10 +00:00
Heemin Seog
0247f19816 Merge "Small fixes to CarSysUI Volume Dialog" into qt-dev 2019-06-03 21:17:01 +00:00
Priyank Singh
7e9344f83c HUN should not show up when the Notification shade is open
Bug: 132131722
Test: Manual
Change-Id: Id759421fd402e917ca4722df6fb597b5991ed31d
(cherry picked from commit ff78b8ec8c31e3eac40db5d321dd6926ef0903a1)
2019-05-31 22:49:07 +00:00
Heemin Seog
261b453a51 Merge "Make Car Navigation Bar fully transparent" into qt-dev 2019-05-31 22:19:20 +00:00
Heemin Seog
ea8b7fef7f Small fixes to CarSysUI Volume Dialog
Make background transparent and makes the volume items black background.
This is to deal with some UI jank where the background appears before
the item appears.

Separated the left and right padding so that they can be overlayed
separately.

Bug: 129402464
Test: manual
Change-Id: Icff89e0858e9b6b73696082ac2fe37fd5cbcaf1c
2019-05-31 10:45:18 -07:00
Heemin Seog
1154d38d5c Make Car Navigation Bar fully transparent
The color behind the navigation bar should be handled by other
components (sys ui flags, decorView, etc).

Bug: 133753486
Test: atest CtsWindowManagerDeviceTestCases:EnsureBarContrastTest
Change-Id: Ibc2a0f3a6e361d14f7ba48e475d6d995c1efccf3
2019-05-30 13:20:57 -07:00
TreeHugger Robot
5a0b7e59c4 Merge "DO NOT MERGE Revert "Adding the privacy chip to the CarStatusBar"" into qt-dev 2019-05-30 19:20:20 +00:00
Priyank Singh
a6c1e6ab65 DO NOT MERGE Revert "Adding the privacy chip to the CarStatusBar"
This reverts commit 5bd5767768a9dc0a0d2972239fbfd2f68258cfd9.

Reason for revert: We want to delete all the code related to privacy chip/indicator from Q as of now. b/132292477

Bug: 133898491
Change-Id: Ieddae7509d918ab63a5b3111e0efc623fae644b3
2019-05-30 19:19:34 +00:00
Priyank Singh
a47b6f7c4d Make the Handle bar grabbable.
Bug: 133514822
Test: Manual
Change-Id: I4bd9ab183ac5953d1e581031832512e7a9cc17aa
2019-05-29 18:57:13 -07:00
Jonathan Koo
307bda9cfc Visual update for the unseen notification indicator.
bug: 131262206
Test: Manual Test.

Change-Id: I686598206c29670f8b31280349f1d5adbfb73dba
(cherry picked from commit 50cfe28e03a6221d047adc7ea5e983c0fa2f3c3e)
2019-05-28 08:26:08 -07:00
kwaky
35c0523cd0 Update bottom navigation bar icons in Car System UI
Test: Manual
Bug: 131860318
Change-Id: I6e56d399e34d0de146ea7403022da49bdb715388
2019-05-24 16:07:19 -07:00
TreeHugger Robot
09c5edd7a0 Merge "Adding the privacy chip to the CarStatusBar" into qt-dev 2019-05-21 23:00:41 +00:00
TreeHugger Robot
325c12bec0 Merge "Fling should only be allowed when touched the view from bottom of the list" into qt-dev 2019-05-20 23:24:45 +00:00
Priyank Singh
647f9e61ee Changes to notification shade.
1. Clip the shade with the glass pane
2. Add handle bar to bottom
3. Change the background color to #DD0000

Bug: 132908271
Test: Manual
Change-Id: I577ec7132d9ad37e951e07c6f1ce3c5a2a814d90
2019-05-20 13:05:02 -07:00
Priyank Singh
a01f243c2a Fling should only be allowed when touched the view from bottom of the list
Bug:133168136
Test: Manual
Change-Id: I5ccb58b1c8f9b04bb9bead25b12373ce33b6ffdc
(cherry picked from commit 61bf685b7a1fa41944cd92e68a4b03af79ad86a8)
2019-05-20 20:02:42 +00:00
John Choi
d41d7735c3 Making wifi icon point to the new status_bar_system_icon_size
This matches what core SystemUI does.

Bug: 132354163
Test: manual
Change-Id: I39b1d80077581472d884b1a159b775522516226f
2019-05-17 12:52:59 -07:00
Priyank Singh
5bd5767768 Adding the privacy chip to the CarStatusBar
All the files are copied from P.car. It cannot be cherrypicked as P.car contains more code in th ecl that is not needed in Q.

Bug: 123355120
Test: Manual
Change-Id: I9529c0c9ffd5b317870ee85ff8f81ee126bb6e5c
2019-05-15 14:30:45 -07:00
Priyank Singh
d33e9b5c36 Keyguard for Auto should only show up in case of a user switcher screen. Else, its safe to dismiss it otherwise.
Bug: 131176319
Test: Manual
Change-Id: I96b9b36779f2d2cc846bbf9e309111d1836d51b1
2019-05-15 14:12:10 -07:00
Adora Zhang
daea9114e0 Reset notification list upon opening the drawer.
Bug: 123433756
Test: manual
Change-Id: I9a3bc6384854930904f13cef6962b97d9209b2c8
(cherry picked from commit 4025195c1d6e553b75bc0385d488cf8a3cf2c0be)
2019-05-13 23:01:48 +00:00
Jonathan Koo
007ff07c34 Clear all notification, message mute states, and unread states when the car
recovers from the suspension state.

bug: 130183435
Test: Manual.
Change-Id: I5ba95d5f22c1ee18c9f2c236f0f078aedd8296b8
2019-05-13 09:27:15 -07:00
Yuncheol Heo
d9f8b1745b Workaround to make CarSystemUi work on the multiple displays.
Bug: 132204986
Change-Id: I04af78bd23e1d4983845751535639587396092f5
Test: Check if the facet buttons are properly selected in the multi
displays.
2019-05-11 13:10:21 +00:00
Jonathan Koo
c9f71aa8e4 Implement pending notification indicator
Bug: 131262206
Test: Manual.

Change-Id: I25a2892b55ea9761823dee1596cbf5d189b95dd7
(cherry picked from commit 61d832588a575a108cc86709edca5a4e8a512aad)
2019-05-11 04:50:34 +00:00
Priyank Singh
b9ab052e08 Animate notification shade on click on notification button
Bug: 131845242
Test: Manual
Change-Id: I11c7fdd3ae599144748516e8845355743b54d1a0
(cherry picked from commit cbe2a75b4a75651cc9dada14057f78125fde565d)
2019-05-06 01:36:25 +00:00
Dave Mankoff
dde5ee6953 Change FalsingManager to an interface for easier swapping.
This is a refactor. It touches a lot of files, but zero functionality.
The primary change is changing FalsingManager.getInstance() into
FalsingManagerFactory.getInstance(); chaning FalsingManager into an
interface, and then turning the existing FalsingManager into
FalsingManagerImpl, an implementation of that interface. Other changes
are merely references to those classes.

Bug: 130256776
Test: atest SystemUITests
Change-Id: I5d64a7673e4efc554105dd841b27807361ed3828
2019-05-03 10:13:39 -04:00
Priyank Singh
ea4af13136 Height should be maxed to the height of the notification shade.
Bug: 131781091
Test: Manual
Change-Id: If17ba87424734fb3561ba2a710377019d55f17f0
(cherry picked from commit 941513159bafb268ca83d6146ad68facdc93da3b)
2019-05-02 18:10:12 +00:00
Priyank Singh
5ca4f42f2e Update the CarVolumeItem state when the progress is changed.
Bug: 131210648
Test: Manual
Change-Id: I417541fb79c82151e9a09480a7ef443a82c7ef24
2019-04-29 17:26:11 +00:00