Commit Graph

197 Commits

Author SHA1 Message Date
Babak Bostan
674bf0280f Merge "DO NOT MERGE Add toast message when bluetooth connects to voice recognition." into qt-qpr1-dev 2020-03-02 18:39:07 +00:00
Babak Bostan
d0555bba57 DO NOT MERGE Add toast message when bluetooth connects to voice recognition.
Bug: 143531081
Test: Manual
Change-Id: I342a1e5eefc59d25a8bea1c0fe72b8669bfdbe84
2020-02-27 15:51:14 -08:00
Heemin Seog
2267cbc57f Merge "DO NOT MERGE Fix Autohide functionality" into qt-qpr1-dev 2020-02-27 17:29:35 +00:00
Eric Berglund
b896072638 Merge "DO NOT MERGE Hold onto NotificationListener when reconnecting notifications UI." into qt-qpr1-dev 2020-02-25 17:37:15 +00:00
Heemin Seog
ba42f4a80a DO NOT MERGE Fix Autohide functionality
Make sure that opening the notification panel doesn't result in a "blip"
in the nav bar visibility

Bug: 147427386
Bug: 149021759
Bug: 149115608
Test: on hawk
adb shell settings put global policy_control "immersive.navigation=*"
swipe up from bottom of screen - make sure it autohides
pull down notification panel - make sure the panel doesn't blip
on sdk_gphone_x86 - atest SystemUITests

Change-Id: I4b5244e5ff26fb23e687cd46bc105d4fb8251bc6
2020-02-21 17:02:47 -08:00
TreeHugger Robot
33c8124f04 Merge "DO NOT MERGE Reflect the selection state that reflects the current task stack upon restarting the Navigation Bar." into qt-qpr1-dev 2020-02-21 17:56:39 +00:00
Abhijoy Saha
25400fdcb9 DO NOT MERGE Have volume UI dismiss on home button press.
Register a receiver that listens for Intent.ACTION_CLOSE_SYSTEM_DIALOGS
and dismisses the volume UI when such an intent is received.

Bug: 149228466
Test: Manual
Change-Id: Iabb706b1d4cc54cb84f228aad95bfdb7e6f75851
2020-02-19 13:44:11 -08:00
Eric Berglund
cbfe702556 DO NOT MERGE Hold onto NotificationListener when reconnecting notifications UI.
Bug: 149342387
Test: manual
Change-Id: I1bc4046ce1e6792699eaa87b9d50cfaa231e806f
2020-02-19 10:11:02 -08:00
Lin Guo
07af69531c DO NOT MERGE Dismiss system dialog
This fixed the keypad remains ON when switch facet issue.

BUG: 130573446, 149228466
Test: Manual

Change-Id: Ia449fb41a03bc02498471ded660d573d5b1ad141
(cherry picked from commit 82298783683ebe82a5847dfd35fc8b3528709930)
(cherry picked from commit ebff32a5d6)
2020-02-18 16:03:49 -08:00
kwaky
3cc9758323 DO NOT MERGE Reflect 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, such as the day/night toggle.

Bug: 148211695
Test: Manual -- Verify that the selection state is preserved between
day/night toggle.
adb shell dumpsys activity service com.android.car/.CarService day-night-mode day
adb shell dumpsys activity service com.android.car/.CarService day-night-mode night

Change-Id: Ic07b8b66aa531436ce4f23d56bb3c11a79b7cb46
2020-02-18 14:57:00 -08:00
kwaky
6073f3c58b DO NOT MERGE Adjust NotificationView bottom margin based on whether Keyboard is shown.
If the Keyboard is shown, then margin bottom is 0.
Otherwise, the margin is the height of the NavBar.

Bug: 149022190
Test: Manual. Verify that NotificationView's margin adjusts based on
whether keyboard or IME is shown.

Change-Id: I96c50a4d773dfac9b57ab1c15cfc59d315da4605
2020-02-12 16:29:11 -08:00
Eric Berglund
71801c6ac1 DO NOT MERGE Unregister notification listener before creating a new one to avoid
duplicate Heads Up notifications.

Bug: 148530083
Test: manual
Change-Id: I3f55b60a390f847b81b2de7da06d12b5725b3b39
2020-01-31 13:12:23 -08: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