Commit Graph

187 Commits

Author SHA1 Message Date
Automerger Merge Worker
fdce8b68a2 Move SystemUI to /system_ext am: e4ac0ac9ad
Change-Id: I0839da0fa9cd5882f226439c9b620b8fb996a550
2020-01-17 20:13:45 +00:00
Jeongik Cha
e4ac0ac9ad Move SystemUI to /system_ext
we plan to forbid hidden API in product partition.
So this app should be moved to /system_ext because it uses hidden API.
It is not permanent, so they can be moved back to /product due to
needs if there isn't hidden usage anymore.

Bug: 137908189
Test: m
Test: check whether device boots successfully
Test: atest SystemUITests
Exempt-From-Owner-Approval: cherry-pick from internal
Change-Id: I54f86496d4a0045af3576091cce00e5cd285b4f8
Merged-In: I54f86496d4a0045af3576091cce00e5cd285b4f8
2020-01-16 06:50:41 +00:00
Heemin Seog
096c7b8ad3 DO NOT MERGE Only refresh car notif on language change
Refreshing all of status bar causes issues with some listeners being
triggered before it is ready to be called.

Bug: 145946470
Bug: 146163621
Bug: 146521766
Test: manual (flash + change language + watch logcat for sysui crash)
Change-Id: If9b2d0fd81698aba21ed3d5708ac68d09bdba0a7
2019-12-19 15:17:58 -08:00
Eric Berglund
c8a530ea65 DO NOT MERGE Fixing build, missing parameter.
Bug: 145946470, 146228232
Test: Builds locally
Change-Id: I7f3632c90ca424d70b1cc6e20f88e741ff25efaa
2019-12-13 22:27:36 +00:00
Eric Berglund
721ba25c03 Merge "DO NOT MERGE Triggering status bar refresh on locale change so that the notifications panel updates to the new language." into qt-qpr1-dev 2019-12-13 20:01:18 +00:00
Heemin Seog
480ea64acb Merge "DO NOT MERGE Make fixes to make sysui more customizable" into qt-qpr1-dev 2019-12-13 18:47:31 +00:00
Heemin Seog
731dafbd43 DO NOT MERGE Make fixes to make sysui more customizable
Bug: 144567659
Bug: 145547127
Test: manual
Change-Id: I66a0a7794ecfcdddd47d28ee681c904f799c5928
2019-12-13 16:41:45 +00:00
Abhijoy Saha
d185a842c1 DO NOT MERGE Set CarSysUI unprovisioned state depending on SUW progress.
Use a controller to monitor KEY_SETUP_WIZARD_IN_PROGRESS and USER_SETUP_COMPLETE
flags to know when to set CarSysUI bars in an unprovisioned state and prevent
interactions with notification shade.

Bug: 145616123
Test: Manual
Change-Id: Ie035f049e3e9e7cb411fc9553a20e4c09078c121
2019-12-12 14:46:57 -08:00
Youngjun Kwak
98e8a9e301 Merge "DO NOT MERGE Defer Hvac initialization until after BOOT_COMPLETED event." into qt-qpr1-dev 2019-12-12 22:25:14 +00:00
Eric Berglund
62a0d5ea25 DO NOT MERGE Triggering status bar refresh on locale change so that the notifications panel updates to the new language.
Bug: 145946470
Test: Manual
Change-Id: I85dddcf4596a74e3031618f24246b6af2fb158b4
2019-12-12 22:25:05 +00:00
TreeHugger Robot
4a03ca6ad1 Merge "Check screenlock for unlock dialog" into qt-qpr1-dev 2019-12-12 22:23:16 +00:00
Erin Yan
65664b2909 Check screenlock for unlock dialog
Only show unlock dialog when the foreground user has screenlock and trusted device.

Bug:144590810
Test: Manually on IHU
Change-Id: I2585ec33391aec9f3cd71f03507e863cbd5d4e76
Merged-in: I08c7aa677150ca950785428580eee6a39ffadd37
2019-12-11 16:04:36 -08:00
kwaky
c3a8cf4671 DO NOT MERGE Defer Hvac initialization until after BOOT_COMPLETED event.
Test: Manual
Bug: 144185429
Change-Id: Ide705146544b5b8904da54d6a5db42242752494c
2019-12-11 10:15:15 -08:00
Heemin Seog
7598ae8f6f Merge "DO NOT MERGE Make nav bar button click listeners overrideable" into qt-qpr1-dev 2019-12-10 20:45:40 +00:00
Heemin Seog
9203e45a01 DO NOT MERGE Make nav bar button click listeners overrideable
Bug: 145547127
Test: build, manual
Change-Id: Ib7a96012f663ff740054588b135a2eec6d5164d0
2019-12-09 16:51:36 +00:00
Kamaljeet Maini
f40ed95801 Merge "Allow customization of timeout value for expanded volume dialog" into qt-qpr1-dev 2019-12-04 14:03:03 +00:00
Abhijoy Saha
9886a12e2f DO NOT MERGE Selectively show volume UI on first volume change event.
Only show volume dialog on first volume change event if the flags
related to the event are set to show UI.

For example, this allows us to not show the volume dialog if the volume
is changed from sound settings as the first volume change event.

Bug: 145134692
Bug: 145094923
Test: Manual
Change-Id: I9bf7eeb009a792e7205265add2cc6b1b0d542168
2019-11-25 16:04:12 -08:00
Jian-Yang Liu
348a0fe87a Merge "Revert "DO NOT MERGE Initialized ConfigurationController in CarStatusBar so that child views"" into qt-qpr1-dev 2019-11-22 23:04:01 +00:00
Jian-Yang Liu
5c2a6ca45a Revert "DO NOT MERGE Initialized ConfigurationController in CarStatusBar so that child views"
This reverts commit 13e6642243.

Reason for revert: Broke the build.

Change-Id: I0f95cf407bfc47d116ee9c70415e3eed174eb20f
2019-11-22 22:14:22 +00:00
Jian-Yang Liu
4ef328aee2 Merge "DO NOT MERGE Initialized ConfigurationController in CarStatusBar so that child views are recreated when the device changes density." into qt-qpr1-dev 2019-11-22 18:07:40 +00:00
Jovana Knezevic
d7353d5c33 Merge "Keyguard should be dismissed if there is no trusted device." into qt-qpr1-dev 2019-11-22 16:50:18 +00:00
TreeHugger Robot
8d11d8ca51 Merge "DO NOT MERGE Initialize VolumeUI when volume change event is received." into qt-qpr1-dev 2019-11-22 00:35:04 +00:00
JianYang Liu
13e6642243 DO NOT MERGE Initialized ConfigurationController in CarStatusBar so that child views
are recreated when the device changes density.

Also resolves issue where on restart, user cannot pull down
notification shade.

Bug: 144940266
Test: Manual
Change-Id: I29a9b9c3d6ee13cd9e1c415ebd6c0177d4c2cf26
2019-11-21 23:19:19 +00:00
jovanak
4824c7c35e Keyguard should be dismissed if there is no trusted device.
The only times the keyguard is shown are:
1. To display unlock dialog when the initial user has a trusted device.
2. To display user switcher if the user clicks "Cancel" on the bouncer and
wants to switch to a different user.

Fixes: 140766764
Test: manual
Change-Id: I9e3c1138813ba40f0c6b2e8cba057b99ff6fb040
Merged-in: I9e3c1138813ba40f0c6b2e8cba057b99ff6fb040
2019-11-21 21:36:43 +00:00
Abhijoy Saha
5d45afee03 DO NOT MERGE Initialize VolumeUI when volume change event is received.
We can reduce boot time, by having CarStatusBar listen for Volume change events and have it initialize VolumeUI when the first of such an event is received.

Bug: 143107490
Test: Manual
Change-Id: Iee8a68197bbb40b8d93d2cf4cfd3e8a1f41d2212
(cherry picked from commit 4d45b5557929b1390d75c9b1c3ee8622b18023a7)
2019-11-21 10:55:56 -08: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
Heemin Seog
19f5398e51 DO NOT MERGE Rearrange listener logic so it can be overriden
Bug: 144567659
Test: build, manual
Change-Id: I81a5e0c169b0d916a3f86bfc4d63fffd3eb225af
2019-11-20 17:29:33 +00:00
Jian-Yang Liu
17eb45ab54 Merge "Changed NotificationViewController to be enabled when car service is ready." into qt-qpr1-dev 2019-11-18 20:26:32 +00:00
JianYang Liu
f7f1f79728 Changed NotificationViewController to be enabled when car service is
ready.

Also moved the listener to be added at the end of connectNotificationsUI
when all other variables have been initialized.

Bug: 144583077
Test: Manual
Change-Id: I281fbdd833c23d8dc9d2430d8a6eaad7e4577c53
Merged-In: I281fbdd833c23d8dc9d2430d8a6eaad7e4577c53
2019-11-16 00:17:46 +00:00
kwaky
ca1c886c5f DO NOT MERGE Refactor StatusBar and CarStatusBar to optimize automotive boot time.
Test: Robolectric -- Robolectric results are identical before and after this change.

Test: Manual -- Hawk is booting successfully and interacting with different
 parts of CarStatusBar is not failing.

Test: Manual -- Pixel 2 is booting successfully and interacting with different
 parts of StatusBar is not failing.

Bug: 142342652
Bug: 140999054
Change-Id: Idf5e152aa661f06b7a041d39d759595636807dce
2019-11-13 14:00:15 -08:00
Heemin Seog
e0e71bcabb DO NOT MERGE Create a single provider of car service
This should be shared across all things requiring it in system UI.

Test: manual
Bug: 142808072
Change-Id: I334d74c3bbe8270822feae268513bf93a4160a5b
2019-11-08 14:10:00 -08:00
Eric Berglund
d2b869256a DO NOT MERGE Revert "Adding scrim bubble to car's super_status_bar.xml"
This reverts commit a090fe062a.

Bug: 141383888
Test: Manual, m -j RunCarSettingsRoboTests
Change-Id: I4339d59b77ddad57fed77934cfc1b2d63de59d39
2019-11-06 10:33:57 -08: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
Abhijoy Saha
734511281d Switch CarVolumeItems when group volume changes.
If volume dialog is not expanded, then we just replace the old default
CarVolumeItem with the new group.

Bug: 141752233
Fixes: 141752233
Test: Manual
Change-Id: Idfa6ad3a1129e069a297f1c1cfd47b40a61773cc
2019-10-30 16:58:34 -07:00
Keun-young Park
eeb9a61f63 Merge "Migrate car sysui to use new createCar call and prevent crash" into qt-qpr1-dev 2019-10-30 16:37:28 +00: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
Keun young Park
9e395bb0e6 Migrate car sysui to use new createCar call and prevent crash
- createCar(context) will lead into crash when car service is crashed.
- Migrate all createCar to new style which can handle car service crash
  while removing unnecessary delay for connect.

Bug: 142543455
Test: kill car service and check if systemui survives

Change-Id: I69298f763a2a2e63c0cf8deae13f747ea19bbf9d
Merged-In: I69298f763a2a2e63c0cf8deae13f747ea19bbf9d
(cherry picked from commit c83d7b93ae0620bac34af2a937d5855b05058213)
2019-10-28 19:01:25 -07:00
JianYang Liu
ffe020a093 Do not cancel car volume dialog dismiss anim
A burst of ACTION_OUTSIDE events would cause the dialog
dismiss animation to repeatedly cancel and restart before
it could finish.

Add a flag to keep track of the dismissing state, and let
the animation finish once it has started.

Change made based on proposal from partner.

Bug: 142877093
Test: manual
Change-Id: I16a76bd7a65313027751f8f0e223d0346626c37b
(cherry picked from commit c8d3ef17af781731b558302efada5c1e7bebd096)
2019-10-17 17:38:39 +00:00
Jian-Yang Liu
e6e2319970 Merge "Changed car status bar to show or hide by setting layout height instead of removing/adding the view." into qt-qpr1-dev 2019-10-15 23:20:59 +00:00
JianYang Liu
2c00fcfb16 Changed car status bar to show or hide by setting layout height instead
of removing/adding the view.

Adding/removing the car status bar via window manager causes issues if
trying to do too quickly since the calls are asynchronous. So if the
status bar is under the process of being removed when we want to show
the status bar, it will throw a BadTokenException because not all of the
references have been cleaned up.

Bug: 142272085
Test: manual
Change-Id: Ia0f46ba4f7582aaadd24dd885788609f027fa156
2019-10-15 00:54:14 +00:00
Heemin Seog
1a13af51ba DO NOT MERGE 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 19:27:51 +00:00
Lucas Dupin
6edeb18701 Keep interrupts on when in battery saver mode
Battery saver was completely aborting the doze service, disabling
all interrupts. This is not ideal since it impacts the user journey,
especially when using face auth.

From now on the screen will still be off, but DozeService will be
retained, in order to receive sensor events.

Test: w/ battery saver: lift, tap, and observe aod being off
Test: w/ battery saver: receive notification, no HUN.
Test: w/o battery saver: lift, tap, and observe aod being on
Test: w/o battery saver: receive notification, HUN is received.
Fixes: 134157254
Change-Id: I9b713c78857c4e4c22d8d9bfff165b1b51dfd804
Merged-In: I9b713c78857c4e4c22d8d9bfff165b1b51dfd804
2019-09-27 16:12:21 -07:00
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 481a104025)
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 4c4971d04a)
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