Commit Graph

124 Commits

Author SHA1 Message Date
davidln
a06b4b2fa5 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
Merged-In: Idabad8379cded664bcf302d5c6fb69564d158eb7
2019-06-27 18:54:00 +00: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 5bd5767768.

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
Priyank Singh
bae09ae805 Single tap on the glass pane in notification shade should close the shade.
Bug: 130168660
Test: Manual
Change-Id: I7724ba08557db0f19dcbd0056bf248acab80368b
(cherry picked from commit 9dd6c788b02bf3f9dd79682aad6d783af1c2b298)
2019-04-27 00:22:10 +00:00
TreeHugger Robot
def2bc1aef Merge "Change CarSystemUI notification button from launching Car Notification Center to opening the panel instead." into qt-dev 2019-04-24 20:15:26 +00:00
Brad Stenning
44d3907b37 Change CarSystemUI notification button from launching Car Notification Center to opening the panel instead.
Bug: 130664005
Test: Manual
Change-Id: Ia32142c588d9afd42964182d2488f9b1133a5eb9
(cherry picked from commit 5b3dbcef9480ee6bedb554b48f433b18b63d6493)
2019-04-24 04:57:52 +00:00
Brad Stenning
d3ede640dc Fix NPE of UXR as a result of incorrect initialization.
Bug: 129851258
Test: manual
Change-Id: I3e814f682ad1a89ea9afec2cc318c1ed21f9b658
(cherry picked from commit 79223b93a7ff2dab5ea158fcbac370b00dd8ac56)
2019-04-23 21:50:29 -07:00
Brad Stenning
2ccc2a4415 Move HUN car notifications into SystemUI
Bug:130664005
Test: Manual via KitchenSink

Change-Id: I4da0ce924962f82c8f4ba1168ba956833c07056a
(cherry picked from commit 93d098db9a57c47b41088f75f0eef46348f0d928)
2019-04-23 17:15:56 -07:00
Priyank Singh
f391286456 Handle NPE when the notification shade is opened via click on button.
At this time the onScroll events will not be triggered initially and hence the clip bounds are null.

Bug: 130168660
Test: Manual
Change-Id: If9fef608c65589440183565f4828065a15b19fdc
2019-04-22 11:43:11 -07:00
Priyank Singh
245bd12b2c Notification shade glass pane should fade in as its being opened.
Bug: 130168660
Test: Manual
Change-Id: I12d09d5fd1a9d23f5219bbb217deccaabd39fdfc
2019-04-21 22:15:13 -07:00
Priyank Singh
b0241580f9 Adding the touch gestures for the pull down notification shade.
Bug: 130168660
Test: Manual

Change-Id: Ida234a0bff0485ff1277594f9bff9c15a252d0de
2019-04-20 15:53:07 -07:00
Matthew Ng
94380655df Reapply nav hints when systemui crashes or killed
When nav bar is killed or crashes and ime shows, systemui gets restarted
and will not receive any navigation bar hints. Use a callback to wait
for navigation bar to be created and then send the hints to it.

Bug: 112934365
Test: manual
Change-Id: Iee0d76da89bacd99a473ec2e7dec52539e3333ec
2019-04-11 17:53:05 +00:00
Brad Stenning
4534f441f9 Register the status bar CarFacetButtons with their controller when the system bars are reset
This also adds multi-display support for the "selected facet" functionality

Bug:120955348
Test: Manual
Change-Id: Ide123746a5f10731174ba1ac8e71b88e173298fc
(cherry picked from commit de167bd48b52d2cb138b6f0b0168dcb749a58068)
2019-04-10 02:49:00 +00:00
Priyank Singh
f8a87fedba Volume dialog should show the volume for the group id that is being changed.
Bug: 117938620
Test: Manual
Change-Id: Ib32c1ac996c2f444d815390fc928381c8f781c2b
2019-04-05 15:37:05 +00:00
Brad Stenning
3b0d7645c1 Moving Notifications into the status bar panel such that the Z layering works as expected
Bug: 129408503
Test: manual

Change-Id: I321bfe7a56cb027079a7098c99c77aa0649fd9cc
2019-03-28 21:39:34 -07:00
Priyank Singh
63e68601fd Disable pull down Notification UI if the device is not provisioned
Bug: 126738112
Test: Manual
Change-Id: I37664a9d52c554d9049dd9051f5cb3b04460ad52
(cherry picked from commit b690790f039bbfbaf40edd94d11bc25f5aa297f5)
2019-03-22 21:12:51 +00:00
Arnaud Berry
bf9965f22f Merge "Remove androidx.car_car resources from SysUI" 2019-03-21 18:50:11 +00:00
Arnaud Berry
8630e5ff0d Merge "Theme fixit for Car Sys UI" 2019-03-21 18:50:11 +00:00
Heemin Seog
50b43b7b72 Remove androidx.car_car resources from SysUI
Test: Manual
Change-Id: I7632bad7563d6639a3da9cf2a4e3456244b2d5e4
2019-03-19 12:00:17 -07:00
TreeHugger Robot
efd7f18d2b Merge "Use SystemUi's privapp for CarSystemUi." 2019-03-19 09:35:35 +00:00
Heemin Seog
0d5e018ab5 Theme fixit for Car Sys UI
Notifications to use recyclerview in CarSysUI
SysUI UserSwitcher changes for PLV -> RecyclerView
Car SysUI Volume PLV -> RecyclerView

Bug: 128545260
Test: manual
Change-Id: Ic618b85d6836cfc9e4bb9b40c9ba3c0e0a96af76
2019-03-18 11:44:15 -07:00
TreeHugger Robot
2241a4b673 Merge "Restore the correct state of the statusbar, navbar, and keygaurd after an density change" 2019-03-13 16:43:36 +00:00
Brad Stenning
7522164991 Restore the correct state of the statusbar, navbar, and keygaurd after an density change
Bug:117223261

Test: manual
Change-Id: Ie3b1a6471c640b20cdb73012d91b6113b66cd87b
(cherry picked from commit f3976bae672f587943c657c79c1d54aa0e89c450)
2019-03-13 07:33:24 -07:00
Adora Zhang
0237b9cc37 Disable any fullScreenIntent launches in SystemUI.
We are not using SystemUI's notifications, therefore it doesn't make sense to still let SystemUI do work in the background.
This also fixes b/126789972, because NotificationEntryManager is launching the full screen intent upon adding the notification (because none of our apps is immersive). In car, we'd never want notifications to trigger context switches.

Change-Id: Ic907605f015a3e1dc56bfbcbfea2268360322a44
Fix: 126789972
Test: Use the "CALL" button in Kitchensink's notification; the pending intent that jumps back to kitchen sink should not be launched.
2019-03-11 14:44:52 -07:00