Commit Graph

31 Commits

Author SHA1 Message Date
TreeHugger Robot
95885d602f Merge "Remove unused destroy methods" 2019-02-13 01:03:09 +00:00
yoshiki iguchi
b4d9ded470 Remove unused destroy methods
These destroy methods are never called so this CL removes them.

Test: build passes
Change-Id: I70d381be3ada96a4d2e52f1330d26eff8620437e
2019-02-07 13:42:34 +09:00
Priyank Singh
d3d76379f4 Using the correct colors for tint from the theme. The color here comes from car_product overlay for night values.
Also, when the volume dialog is expanded or collapsed the default list item is never reset where as all other list items are removed and then added using addSeekbarListItem which sets the progressbar and the tint color for icon if changed for example, due to config change. Because of this default volume item never gets the updated value after config change.

Bug: 123541179
Test: Manual
Change-Id: I44e1db691a985410f5c5ae358ab67d1a95e45ce4
(cherry picked from commit 35306bfec84b72aad3a221852b5eb0eb1b183a43)
2019-02-06 22:42:51 +00:00
Guobin Zhang
eef0e0c326 Update navigation bar upon change of display density
Restart the navigation bar upon change of density or font scale, then
the facet buttons of navigation bar will be scaled properly.

Test: Settings->Display->Advanced->Display size->Largest

bug: 122563094

Change-Id: I6d2d7ac4a801fac6f30bb78acee4c00ec2c4e507
Signed-off-by: Lei,RayX <rayx.lei@intel.com>
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
2019-02-01 15:01:08 -08:00
Brad Stenning
c622f1d6b1 Add all the needed touch listeners and gesture detectors to allow for car
Test: on car product build

Change-Id: Icc44cae87033383535d6a0ab13203afb14cf83e0
(cherry picked from commit 3f55c3502e120bacea38162ccbff94e462b009ed)
2019-01-29 11:31:56 -08:00
Brad Stenning
a2d87d81c6 Moving the device provisioned callback to the correct thread.
Test: manual

Bug: 116479940
Change-Id: I4cfdfac7d949ac177b7bc9da066e7497506c971c
(cherry picked from commit 2f6f9984aba0516f3a665d8ad98c79168e05a1b6)
2019-01-24 23:29:02 +00:00
Ned Burns
f81c4c405f Extract NotificationData.Entry to top-level
NotificationData.Entry -> NotificationEntry

Both NotificationData and NotificationEntry moved
`notification.collection` package.

Test: atest
Change-Id: Ia7158eb732711ddb324e514edb9884d518edab87
2019-01-07 16:31:21 -05:00
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
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
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
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
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
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
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
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
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