Commit Graph

234 Commits

Author SHA1 Message Date
Heemin Seog
e076c2344e DO NOT MERGE Add generic rotary support for sysui overlay window
Bug: 181138897
Test: manual
Change-Id: I353d9587fce09c5dff7328b5dec7e973230f2a9c
2021-03-04 11:53:18 -08:00
Heemin Seog
a287650f94 DO NOT MERGE Intercept back button on user switcher screen
The back button on the user switcher screen should go back to the
lockscreen of the current user.

Bug: 178505273
Test: manual (press back button from user switcher screen while it has
rotary focus)

Change-Id: I30b8619a26e8b0c1ca9632b3bb656d187dad91b9
2021-02-26 17:38:37 +00:00
Heemin Seog
9d3b7aacd9 DO NOT MERGE Dont restore focus on new HUN window
When a HUN window shows for the first time, Android framework can try to
find a default focus. As such, the FPV may try to focus the topmost HUN
by default, without having nudged to the HUN window.

Bug: 175897692
Test: manual (reboot and trigger HUN via kitchen sink)
Change-Id: Id4008c587aea353dc0c441593fe32e6e9fea5463
2021-02-01 22:18:03 +00:00
Danny Epstein
ab6fd7362d DO NOT MERGE Focus clock by default
When nudging up to the status bar, focus the clock by default.

Test: Nudge up to status bar, switch from Launcher to Home
Bug: 169250454
Change-Id: Id55c236a447b86d502d46e799814b51c984916e4
2021-01-05 13:47:04 -08:00
Bill Yi
7bd07b24b3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I189241262a8cd88d60bbb9008bb1366a1aebeedd
2020-12-16 22:24:42 +00:00
Danny Epstein
9242e6ee6a DO NOT MERGE Use round highlight for navigation buttons
Make the focus highlight and touch ripple for buttons in the navigation
bar be round rather than square.

Also fix a bug in the dimming logic. The alpha was applied to the icon
initially, but when the state changed, the alpha was applied to the
entire button.

Launcher in master is quite different so it this change is limited to
rvc-qpr-dev for now.

Test: manual
Bug: 174614908
Bug: 168317872
Change-Id: I9b80946887ad85a73ddd281f7afcc9fcc8280a64
2020-12-03 16:35:13 -08:00
Bill Yi
5e75c33b11 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5d560633be89394ac8656192ae8e03367f7fdd67
2020-11-23 06:42:05 +00:00
Heemin Seog
20549dfe49 DO NOT MERGE Update bottom huns container to use HeadsUpContainerView
Necessary to nudge to the topmost notifications in rotary mode

Bug: 172267951
Test: manual
Change-Id: I3ac9a467589bfbe090e1b0c743dad6ca6332f56e
2020-11-17 20:52:58 -08:00
Heemin Seog
5079993610 Ensure notif panel behavior in immersive mode
Bug: 168823233
Test: manual, atest :carsysui-presubmit
Change-Id: I38241142a05c25cef5a5f3955ca7de49feb5c393
2020-09-18 16:35:39 -07:00
kwaky
a0e8b666e4 DO NOT MERGE Enable hiding system bars by side when IME appears.
Bug: 167593045
Test: Manual + Unit Tests
Change-Id: Ib0c2c70e2df361f5cce156315c7fd4ae489ae279
2020-09-15 15:12:13 -07:00
kwaky
4030db5f0d Allow SystemBar configuration via XML.
Bug: 160028073
Bug: 161825538
Test: Unit Tests + Manual -- CarNavigationBar reads configs from
SystemBarConfigs and applies them as intended. It throws an error when
the config validation fails.

Change-Id: If1575bdc2549058600fb80fa0d6c340fd3e1dbc5
2020-07-29 09:18:31 -07:00
TreeHugger Robot
c8e7ceeb71 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-07-25 14:42:37 +00:00
Bill Yi
aec9d3ca95 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If6752c8d5a28e1896f5a6855999b0cd43f6c2347
2020-07-24 22:25:33 -07:00
Abhijoy Saha
f0988b92e2 Improve SystemUIOverlayWindow control
1. Make sysui overlay window views more stable
2. hide/show system bars using insets in SystemUIOverlayWindow

Bug: 161926721
Bug: 151617493
Test: Manual & Unit Tests
Change-Id: I78fd2b5e8488d2f5006edd9773308e2bb9856d2b
2020-07-23 16:01:43 -07:00
Fabian Kozynski
9a85dc9c0a Merge changes from topic "permission_chip" into rvc-qpr-dev
* changes:
  Restricts notified app ops based on flags
  Add back privacy chip
2020-07-23 13:45:26 +00:00
Heemin Seog
df8d0777a3 Delete dead code related to CarStatusBar
Bug: 159486071
Test: manual (boot and interact with elements of the sysui)
Change-Id: I80aec68312d28683f2ec63ac9354b3282ead1d7e
2020-07-22 14:29:00 -07:00
Fabian Kozynski
d074a54435 Add back privacy chip
This adds back the privacy chip classes (Controller and view).

Change to using Executors and DeviceConfigProxy, also fix tests that
were flaky before.

Test: SystemUITests
Bug: 160966908
Change-Id: Id3e5981a87c33a8cabe7ce348f9512d81ad2b1d8
Merged-In: Id3e5981a87c33a8cabe7ce348f9512d81ad2b1d8
2020-07-20 14:27:28 -04:00
Heemin Seog
ce4304ef7d Merge "Address lifecycle crash in car sysui" into rvc-dev am: c42d4b65c8 am: 9b9a8e1b55
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12163205

Change-Id: I33d90a4b85ca32642998d415feab90cdda0e403d
2020-07-16 02:04:19 +00:00
Heemin Seog
9b9a8e1b55 Merge "Address lifecycle crash in car sysui" into rvc-dev am: c42d4b65c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12163205

Change-Id: Ia6935abc5817d024d1bf7877f514b5188ef01e47
2020-07-16 01:53:20 +00:00
Heemin Seog
d79966114a Address lifecycle crash in car sysui
We address this by removing the phone specific lifecycle view from car
sysui.

Bug: 161366224
Test: See bug for manual testing steps
Change-Id: I1309aa938f1bcc5c634a531a2eca3a45f1eb2946
2020-07-15 16:09:58 -07:00
Danny Epstein
3ea519db54 Clean up FocusParkingViews
Put FocusParkingView first rather than last and update comment to
indicate that the FocusParkingView must be first. Use start rather
than left to position FocusParkingView first.

Bug: 131421840
Bug: 154540419
Test: manual

Change-Id: I89b9977e1be4722c1e922e360332aa9d631b9540
2020-07-06 11:42:17 -07:00
TreeHugger Robot
6159755d7d Merge "Add rotary support to the nofitication shade." into rvc-dev am: 160c66492a am: 578c7615f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11921563

Change-Id: I4ffabfc461c75ee93599bb22a95fd2c92e415610
2020-06-25 21:47:53 +00:00
TreeHugger Robot
578c7615f4 Merge "Add rotary support to the nofitication shade." into rvc-dev am: 160c66492a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11921563

Change-Id: Ie212272356367ab3684dd202c7f5d8bacf7ee1d0
2020-06-25 21:35:36 +00:00
Pardis Beikzadeh
9550193b1a Add rotary support to the nofitication shade.
- Add a FocusArea
- Add a FocusParkingView

The FocusArea's main contribution in this case is to
allow OEM customizability of the focus highlight for
the rotary feature. The UI was already in a rotary
compatible state without it (i.e. I could navigate
around even before adding this change)

BUG: 157937087
Test: manual
Change-Id: If02f9e73ca3a941fc783a63924135a2f78b12723
2020-06-24 13:45:04 -07:00
TreeHugger Robot
9e1a19b9b8 Merge "Revert "Set overlayable for CarsystemUI NavBar"" into rvc-dev am: 7315e30e95 am: 7a17a51c47
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11886963

Change-Id: Ic6a9c1f581359eedea6222f66a5b6c6967507ef9
2020-06-18 19:30:48 +00:00
TreeHugger Robot
7a17a51c47 Merge "Revert "Set overlayable for CarsystemUI NavBar"" into rvc-dev am: 7315e30e95
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11886963

Change-Id: I91ffc36e5b2716dc82aee702e1b1cc8edf6778db
2020-06-18 19:12:15 +00:00
Calvin Huang
6d0f852c6f Revert "Set overlayable for CarsystemUI NavBar"
This reverts commit 165bf8f44a.

Reason for revert: b/159143515

Test: build sdk_gcar_x86, nav bar overlay should work as usual
Bug: 159143515
Change-Id: I34e7a0925dd2fb243a11ddd46ac75fbcf3a92f3b
2020-06-17 00:07:01 +00:00
Youngjun Kwak
3031eff247 Merge "Hide UserSwitchTransitionView if it is not hidden within timeout." into rvc-dev am: d42606d7c4 am: 1f8448a087
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11838963

Change-Id: I6d34839cae863afa4e49d22b819d94b9a3944e52
2020-06-12 23:34:02 +00:00
Youngjun Kwak
1f8448a087 Merge "Hide UserSwitchTransitionView if it is not hidden within timeout." into rvc-dev am: d42606d7c4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11838963

Change-Id: Ib59325e4d9641e1e59ef23733a10336c1b4cb7fe
2020-06-12 23:14:10 +00:00
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
576da2742c Merge "Update the style of navigation button" into rvc-dev am: b5ec9c4d67 am: 98d04627e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11818599

Change-Id: Id556b56369fa69202ac42e89df6f37d961629092
2020-06-11 19:28:55 +00:00
Yabin Huang
98d04627e4 Merge "Update the style of navigation button" into rvc-dev am: b5ec9c4d67
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11818599

Change-Id: I3cd9c3717600e106dfffbdd928093d4a3dcf41f7
2020-06-11 19:17:21 +00: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
TreeHugger Robot
1bfd20b517 Merge "Keep system bar layout stable for rtl languages" into rvc-dev am: cf3274b3ba am: a606ff29d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11708146

Change-Id: If27686fb282367697bd420502a6a39debde294ef
2020-06-03 15:34:20 +00:00
TreeHugger Robot
a606ff29d8 Merge "Keep system bar layout stable for rtl languages" into rvc-dev am: cf3274b3ba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11708146

Change-Id: I036bd5a72c14e983b6c8394f81edf5dfcfe49f9d
2020-06-03 15:22:19 +00:00
TreeHugger Robot
cf3274b3ba Merge "Keep system bar layout stable for rtl languages" into rvc-dev 2020-06-03 15:02:48 +00:00
Danny Epstein
2be47e68cb Merge "Add rotary support to the nav bar and HUN." into rvc-dev am: 16899978f4 am: 1745f17a07
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11545525

Change-Id: I6f2a923435548046c9bb209e61a968abf247e511
2020-06-03 04:05:10 +00:00
Danny Epstein
1745f17a07 Merge "Add rotary support to the nav bar and HUN." into rvc-dev am: 16899978f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11545525

Change-Id: Ibf952632c466c6e24baed184d5597b1d5194e01c
2020-06-03 03:52:51 +00:00
Heemin Seog
a0a4e6bca1 Keep system bar layout stable for rtl languages
Bug: 158026089
Test: manual
Change-Id: I604a06b496b1a0e9225a6140abef5a121ace0f49
2020-06-02 14:52:17 -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
TreeHugger Robot
49aa5a8275 Merge "Make assistant button display the icon of the role holder application" into rvc-dev am: 0b1e87f869 am: 58029373ca
Change-Id: I8de9d03d73fde897938512429a8784bb080bd926
2020-05-26 18:10:32 +00:00
TreeHugger Robot
58029373ca Merge "Make assistant button display the icon of the role holder application" into rvc-dev am: 0b1e87f869
Change-Id: I626e7a1530a91d895ba2518fc72c248320d7d5d0
2020-05-26 17:55:10 +00:00
TreeHugger Robot
0b1e87f869 Merge "Make assistant button display the icon of the role holder application" into rvc-dev 2020-05-26 17:38:55 +00:00
Bill Yi
79cb20bf61 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ifbc63b415b99f3c29505397ad49e85d0739ef7e9
2020-05-23 14:02:08 +00:00
Bill Yi
32ca0d62a0 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I9dd8e8cdd54401c03db9ba0e2ed56ed29c7f6637
2020-05-23 13:58:11 +00: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
Bill Yi
501877c781 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ie72e55af01fb15301b55f270676b9ce952256674
2020-05-20 21:59:03 +00:00
Bill Yi
e4e6afea98 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Iaa6a069b0dbfeb4001a01ae5094f0f298b161e23
2020-05-20 21:54:31 +00:00
Youngjun Kwak
cb66b1cbcb Merge "Implement UserSwitchingDialog in SystemUI mounted to OverlayWindow." into rvc-dev am: 81eefd515f am: 3883a6cb67
Change-Id: I64a0018452d1f32944209f3ee135d6d7df73ccfd
2020-05-15 23:03:42 +00:00
Youngjun Kwak
3883a6cb67 Merge "Implement UserSwitchingDialog in SystemUI mounted to OverlayWindow." into rvc-dev am: 81eefd515f
Change-Id: I2d63aed65a1c0d90fd031b8ce1e3439908fb2837
2020-05-15 22:42:54 +00:00