Commit Graph

48 Commits

Author SHA1 Message Date
Gus Prevas
59ec2ff443 Eliminates NotificationEntryManager.getNotificationLongClicker().
This method always returned NotificationGutsManager::openGuts, and only
existed so that CarSystemUI could override it to disable long presses.
In this change we accomplish this by making
NotificationStackScrollLayout injectable and providing a named flag for
whether to enable long presses or not as a dependency.  This means that
NotificationEntryManager is no longer involved in handling long presses,
and CarNotificationEntryManager no longer needs to exist.

Test: atest SystemUITests, manual
Change-Id: Iae78601fea498a37ed47ef9a114e50de1652b6a8
2019-01-04 10:57:20 -05:00
Charles Chen
10ca70b075 Move all logic of navigation bar to NavigationBarController(2/N)
Since we don't have status bar on external displays, we need to saparate
the logic to make some animations or transitions just work on external
navigation bars. When we set System UI visibility on an external display,
we could make the flag only effect navigation bar. Also, it can simplify
StatusBar code by moving navigation bar related fields into
NavigationBarController.

Test: atest SystemUITests
Bug: 117478341

Change-Id: I1cdf61f6eeb2c377e04a073401efa0cdb45b65cd
2019-01-03 22:12:03 +08:00
TreeHugger Robot
24fd0a9f80 Merge "Make DarkIconDispatcher visible to plugins" 2019-01-02 23:41:03 +00:00
Priyank Singh
449b7ea41a PTT triggering and on-screen-mic triggering should be treated differently.
Bug: 121284393
Test: Manual
Change-Id: Ie14fc87325c86df3b3b53f2a663a8643de6fa2b7
(cherry picked from commit ffd3ac604727b7753eb1a5ac6b233fbfd3c0bb76)
2019-01-02 21:24:21 +00:00
Beverly
1be62f46ab Make DarkIconDispatcher visible to plugins
Test: manual
Bug: 115322193
Change-Id: I6204d771e476c504e9070ebc88dd8fd44b268635
2019-01-02 16:13:34 -05:00
Priyank Singh
523837cba9 Fixing the flickering issue when clock is clicked in status bar to open Quick Settings.
Adding the flag "Intent.FLAG_ACTIVITY_SINGLE_TOP" which will stop the activity to relaunch if its already there.

Bug: 121345477
Test: Manual
Change-Id: I83f985c83d4954a722591b59fc7f6db24a923923
(cherry picked from commit a9971e07144bfa7fde5f4ae2cd602efb8ff02fec)
2018-12-26 23:24:45 +00:00
TreeHugger Robot
377749e2f1 Merge "Update SysUi dependency injection to allow for a null LocalBluetoothManager" 2018-12-20 23:29:21 +00:00
Brad Stenning
32cedc1907 Update SysUi dependency injection to allow for a null LocalBluetoothManager
Test: emulator with automotive target
Change-Id: I487b473fe8cca28ad05ed97e1d5bb7c4b29464f2
2018-12-20 11:25:06 -08:00
Gus Prevas
ec9e1f09c7 Extracts heads-up/pulsing logic from NotificationEntryManager.
This change introduces the NotificationInterruptionStateProvider
component, which contains all the logic around whether a notification
should heads-up or pulse previously contained in
NotificationEntryManager.

We also introduce the NotificationFilter component which extracts logic
about when to filter notifications from NotificationData, in order to
break a circular dependency that would otherwise be introduced.  As part
of this, some additional fields from the notification ranking map are
denormalized on to the NotificationData.Entry object.

Test: atest SystemUITests, manually
Change-Id: Ic61edca966a3c3e0b01f1a6a9e7ce79c8701da4e
2018-12-20 13:17:17 -05:00
TreeHugger Robot
76feb78e3f Merge "Update HVAC views to support Fahrenheit" 2018-12-20 05:06:19 +00:00
Brad Stenning
1cd1125de4 Update HVAC views to support Fahrenheit
Bug:117164871
Test: Manual

Change-Id: Ia42142b2c5f16eccfddcc09b6727fa0ec727c7a0
(cherry picked from commit ad93b6df24236e48f113aa584fa43ede0a21780d)
2018-12-19 15:07:22 -08:00
TreeHugger Robot
d692ddf66d Merge "Move car keyguard values to CarSystemUI" 2018-12-19 19:44:00 +00:00
Jason Monk
27d01a624d Start using some dagger 2
Early days as we start migration, so lots of duplication between
Dependency and dagger2, but can be removed when migration is done.

Test: existing tests.
Change-Id: I00c3da6ebbd46a26e512d8a7aa1e2b828e08f33f
2018-12-19 09:47:37 -05:00
Brad Stenning
92e2835099 Move car keyguard values to CarSystemUI
Bug:117882433

Test: Manual
Change-Id: I4457848115c75eaa34d32d1585043722c4cc4a7a
(cherry picked from commit ad3589325735d7b7e624e99cd1266959aab949c7)
2018-12-18 12:34:59 -08:00
TreeHugger Robot
463c0ad48c Merge "Remove unused SystemUi service" 2018-12-18 07:27:50 +00:00
Brad Stenning
4a0ca0bc13 Remove unused SystemUi service
Bug:120864177

Test: emulator
Change-Id: I7fbd818b1210f2de3d89f3c2e35fd5dcad39d657
2018-12-17 21:10:14 -08:00
TreeHugger Robot
6f784e35d6 Merge "Check that mDrivingStateManager is not null." 2018-12-18 04:30:34 +00:00
Brad Stenning
fbc8a0f2d3 Clean up some CarSystemUI theme elements
Also fixed the left and right nav notifications id in case someone one demos them later

Test: Manual
Bug: 119311195
Change-Id: I9a6c31d25a8eb6f6e895180c4946c14629bd668e
(cherry picked from commit 5a4a0f4bfa2ae6aabf9c86da1d59c4d72b2baecd)
2018-12-17 18:37:08 +00:00
Nicholas Sauer
ef8f3945a3 Check that mDrivingStateManager is not null.
bug: 117220307
Test: m and install
Change-Id: I1bcfbe5075dee4ab2fb77c22e98992ce548ed970
(cherry picked from commit 015dd425c2dc626d8806be2bac6e7d927648c126)
2018-12-17 18:34:18 +00:00
TreeHugger Robot
78c2a0de57 Merge "create factory to generated an onClickListener for notifications such that CarSysUI can close the notification window when a notifcation launches an app" 2018-12-15 06:34:23 +00:00
TreeHugger Robot
cfa9474d94 Merge "Fixing the volume dialog to show only the volume control stream every time." 2018-12-15 01:16:20 +00:00
Brad Stenning
2b4843718f create factory to generated an onClickListener for notifications such that
CarSysUI can close the notification window when a notifcation launches an app

Bug: 116595026
Test: Manual
Change-Id: Ia3d59ca6b361eb5a5364dcad2e999a0fe820929e
(cherry picked from commit c3e86efd3b9dc0544c7c4a404380bb9ab57fc113)
2018-12-14 14:29:43 -08:00
Priaynk Singh
e87b137416 Fixing the volume dialog to show only the volume control stream every time.
Test: Manual
Bug: 112006006
Change-Id: I99b4240f704d3dd6649f5c1eb4d97685b46a6803
2018-12-14 11:47:36 -08:00
Brad Stenning
19f236a214 Add NotificationsUI SystemUI service that can display the notification
implementation for cars

Bug: 116595026
Test: manual
Change-Id: I8631e70241698aa51f94a5fdfacaea17db18841d
(cherry picked from commit 2a9907c4737b46ca0c3230a4d7f7844e4f849ce2)
2018-12-13 08:59:21 -08:00
Hongwei Wang
efc90dbda6 Use new CarAudioManager.registerCarVolumeCallback API
Per API review, we deprecated the following APIs
- registerVolumeCallback(IBinder)
- unregisterVolumeCallback(IBinder)

Bug: 120629164
Test: Volume bar shows when changing volume on emulator
Change-Id: I119ac96033cdf8dc1b0cf66ef2440b4e9572157f
2018-12-07 11:33:32 -08:00
Hongwei Wang
796f6b1c77 Corresponding to new AAE multi-zone audio support
Bug: 110756167
Test: Press volume keys on OWL and volume does change with UI
Change-Id: Ied6126a751dd1ff4b0b9868eb9b9408d6a9693db
2018-12-05 14:39:35 -08:00
Brad Stenning
8d1a51c4da Move car related code from SystemUI to CarSystemUI
Test: Emulator phone and Car
Change-Id: Ia64a23c1d3643899118e578b82c665c034af1c8e
2018-12-04 09:19:36 -08:00
Priaynk Singh
82b49040e5 Give navigation audio group priority over voice audio group.
As of now the voice audio group had more priority than the navigation group. Because of which navigation audio group was not shown in the Volume Dialog. This change bumps up the nav priority so it shows in the UI.

Test: Manual
Bug: 113338258

Change-Id: I98f99560867ac7e6c3ca64a07ee0608ba6f438f6
(cherry picked from commit 3d4df8345a0e3f7cd22bd7245af5686bcf9cc48c)
2018-12-03 23:12:55 +00:00
TreeHugger Robot
0ba5e3d6cb Merge "Making on-screen mic to use VoiceInteraction" 2018-11-30 08:52:27 +00:00
Priyank Singh
599f76b43d Making on-screen mic to use VoiceInteraction
Test: Manual
Bug: 114705441
Change-Id: Ib2f77e1df166aa2073c5cbf11d2465d861f2136c
(cherry picked from commit 92e98e3d7aa32ae40fcc09efbb525bce5972a8a0)
2018-11-27 08:37:56 -08:00
Priyank
e757aa9c40 Moving over volume dialog parts to the DeviceDefault Theme.
Test: Manual
Bug: 119275316
Change-Id: I197d814a86af425caeb913d393c738eb8f16fcd8
2018-11-15 15:30:23 -08:00
Ying Zheng
149f93841b Clean up car user lib in system UI.
Bug: 118821773
Test: build
Change-Id: Ib8d723ad8bff7ec57c8909b82dc16323e714a377
2018-11-05 13:33:37 -08:00
Ying Zheng
fa104e69f6 Add a static link for android.car.user.
This is a cherry pick from commit
I570ec1ed7e73520468ce4205bf06fc0ba0054792.

Test: build
Bug: 116455690
Change-Id: I4fb9ae669d2d10642ec3dbc657dbac85ca65112f
2018-09-24 16:11:08 -07:00
Brad Stenning
8b06183f0b OnPreDrawListener that returns false stops the rending pipeline
This is what was stopping the status bar from being drawn

Bug: 112265524
Bug: 114213516

Test: start the emulator with -wipe-data that created a high repo of the problem
Change-Id: I5b0807e94f9d84325b2a517348fa19956f51715b
(cherry picked from commit 94c0d8a8a3596bd54102198b18de0b9399e7ed0d)
2018-09-13 03:21:32 +00:00
Ying Zheng
4fd6b783e3 Migrate sysUI and carSysUI to the separated car user lib.
Bug: 113868873
Test: build
Change-Id: I48fb69aab7092d256c6839377c905340f9059165
2018-09-11 13:51:49 -07:00
Brad Stenning
5583295c2b Mark CarSystemUI as a override to SystemUI
Missed during a refactor of mk to bp file

Bug:113153393
Test: launch in gcar emulator

Change-Id: I62abd9a25391e9ef4b65e39450b9d88db5f25c1d
2018-08-27 08:40:23 -07:00
Jason Monk
a2f2d82f26 Convert sysui to bp
Test: tests gonna test, builds gonna build
Change-Id: I7f1ef2e82ce2c74253c57de8d73079dcfe2d2264
2018-08-16 19:40:39 -04:00
Anthony Chen
6f3a79c142 Merge "Update to new text styles from car support lib." 2018-08-11 16:41:37 +00:00
Brad Stenning
f084d88992 Update Hvac to remove the self register or ui components with their controller
They were being removed from the status bar when the device was un-provisioned
due to a false state change. There was also an issue where the background
tried to animate before it was on screen causing an exception

Bug:110105682
Test: run on bench or test hardware of the outside kind
Change-Id: I1a3815bf7f08b321f92919a2fb6e20c7d859f95e
2018-08-09 16:37:24 +00:00
Anthony Chen
bafb2f0248 Update to new text styles from car support lib.
Bug: 112278117
Test: build and deploy SysUI
Change-Id: I5c938bb82fd1b6a00cd69fa8f5e62e15be2ba52b
2018-08-07 02:18:55 +00:00
Brad Stenning
f01a71c9df Merge "Update area IDs for temperature views in status bar." 2018-08-03 21:15:46 +00:00
Lin Guo
4ee01f49ce Add colorControlActivated color to the seekbar theme
This ensures that the color of the seekbar progress is what we want.

BUG: 111568599
Test: manual

Change-Id: Iad24a49aaeb6a4d6aa9c0deaea0976fbfbd3bd76
(cherry picked from commit 2f91948d0f2250b8efb6e6c82e94ad621424b48e)
2018-07-24 23:55:21 +00:00
Rohan Shah
ad723390a1 Merge "Organize notification classes in row/stack" 2018-07-18 20:45:29 +00:00
Rohan Shah
20790b89c7 Organize notification classes in row/stack
No functional changes. Reorganized logic under either row, stack,
logging, or row/wrapper. Haven't moved all classes over since there's
some classes that create conflicts due to weird use of
package-private/protected (primarily waiting for HUN and shelf classes).

Test: built, ran, used notifications
Bug: 110802404
Change-Id: Ia2152603bdbeb12c522360193511946c843b9266
2018-07-18 11:20:32 -07:00
davidln
b453cded68 Update area IDs for temperature views in status bar.
Left should include left rows 1, 2, and row 2 center, and right should include rows 1, 2.

Bug: 111067116
Bug: 111353443

Test: verified crash in logs. Build, deploy, verify temperature shows / no exception in logs.
Change-Id: I5dfc79643c6e5ea12ec65905f5401a07bfe6ab9e
2018-07-16 20:06:27 +00:00
Brad Stenning
452dfb7260 Add an assist mic to the navigation bar
I also updated the notification hook to use the new NotifcationCenter

Bug:110275838
Test: on dev device and in car
Change-Id: I28d42f6d37226028602fea4ac4d8901ba587a1ce
(cherry picked from commit 4691a983e2c4aaea68c4b642cca788c0933a5e12)
2018-07-13 14:45:52 +00:00
Brad Stenning
754f8c9405 Move values out of car_product to the new CarSystemUI
Bug: 110275838

Change-Id: Ica7a3bd2e1661954398010e5eff150dea20a3bd5
Test: on 2 emulators and 2 hardware versions
(cherry picked from commit d879e7e0f5c13409f13c58ec88376ec807a691cc)
2018-07-12 22:26:47 +00:00
Brad Stenning
034a04937e Initial include of the CarSystemUI package
This package extends the core SystemUI and adds widgets and windowing
structure useful for the Automotive case.

Bug:110275838
Test: Update a target to include this project, build and deploy
Change-Id: Id70ebe4ed652d6a09ab50b0555fb4471bf3e1d7c
2018-07-10 14:13:59 -07:00