Commit Graph

62 Commits

Author SHA1 Message Date
TreeHugger Robot
affa55b49b Merge "Update navigation bar upon change of display density" 2019-02-04 18:52:57 +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
Priyank Singh
2dce35bea4 Clean up some CarSystemUI color elements so they are derived from device default.
Test: Manual
Bug: 119311195
Change-Id: I8f09f15e958e79ae491d5d0a1edffdbea83c4363
2019-01-31 20:07:21 -08:00
jovanak
18fe7f31b6 Disable automatic switching to guest.
Disabling by default until outstanding issues are resolved.

Bug: 117601534
Bug: 118756966
Bug: 117489199
Test: previously tested that using negative values in configuration disables switching to guest
Change-Id: I2e3552d4cdde0afb554dca0d6caf14de5e3efe3c
2019-01-30 11:28:53 -08:00
TreeHugger Robot
ae2c49680f Merge "Add all the needed touch listeners and gesture detectors to allow for car" 2019-01-29 22:04:43 +00: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
Amin Shaikh
d20df8ea81 Remove unused systemui resources.
Bug: 122263617
Test: mp sysuig
Change-Id: If4681826ebe87ab193f96d90720b174a32efadca
2019-01-29 09:32:10 -05: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
TreeHugger Robot
9580229981 Merge "Add the APP_MUSIC category to the media center facet button" 2019-01-24 17:58:11 +00:00
TreeHugger Robot
188e247da7 Merge "Use an implicit intent to launch the Media Center" 2019-01-24 17:57:34 +00:00
Colin Cross
a3b22bfd14 Replace annotation_processors with plugins
The annotation_processors property is deprecated, replace it with
plugins, and use java_plugin for modules that provide annotation
processors.

Bug: 77284273
Test: m checkbuild
Change-Id: I467b899e0c8f2c8fa74a9bfbe6e952ad0f7aa009
2019-01-23 15:54:30 -08:00
Arnaud Berry
10e7cec1e2 Add the APP_MUSIC category to the media center facet button
So that the button highlights when the radio app is active.

Test: manual
Change-Id: Ia89b8b291bda9b902cb5bb74ed214edc894763c1
(cherry picked from commit 881cf7d9e40b473ae5b381661f1f739ea7b12322)
2019-01-23 22:53:10 +00:00
Arnaud Berry
488762974f Use an implicit intent to launch the Media Center
Benefit: the launched activity isn't hard coded to MediaActivity.

Test: manual
Change-Id: I6a6a641fdb4c27a6818929cfc4138b71749999fc
(cherry picked from commit d30efbc1dbb121b8c3862e5e125cf9c5eb2a31fd)
2019-01-23 22:52: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
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