• Home
  • History
  • Annotate
  • only in /packages/services/Car/tests/carservice_test/src/com/android/
History log of /packages/services/Car/tests/carservice_test/src/com/android/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7ab072eebe413488e46fb4ec0ca441893a3bd532 17-Oct-2017 Asaf Rosenfeld <asafro@google.com> Removing VMS from O.MR1

This CL removes the VMS code from O.MR1.

Test: All the VMS tests were removed.
Bug: 67997810
Change-Id: I0e10d41e47103aa5bbd04f3ee576c7b482b25f92
ar/test/SimpleVmsPublisherClientService.java
ar/test/VmsHalServiceSubscriptionEventTest.java
ar/test/VmsOperationRecorderTest.java
ar/test/VmsPublisherClientMockService.java
ar/test/VmsPublisherClientServiceTest.java
ar/test/VmsPublisherPermissionsTest.java
ar/test/VmsPublisherSubscriberTest.java
ar/test/VmsSubscriberManagerTest.java
ar/test/VmsTestUtils.java
3cf436b313d39240f80f39944df6e5ef634cdc5c 04-Oct-2017 Asaf Rosenfeld <asafro@google.com> Fix breaking VMS tests in O.MR1.

Make one test not try to run, and another fix flakiness.

Test: all tests pass.
Bug:66690076
Bug:65682115
Bug:64892875

Change-Id: Iad9400d467007bbdaaa4cf3620f87547aead1279
ar/test/VmsOperationRecorderTest.java
ar/test/VmsSubscriberManagerTest.java
da2acb9ee8cd7cf4082f3b159f7a302d84e953d0 04-Aug-2017 Scott Randolph <randolphs@google.com> Minor cleanup to go along with matching vhal update

Standardize a few constant names, and a few miscellanious clean ups (but
not net functionality change).

Test: runtest -x
packages/services/Car/tests/carservice_test/src/com/android/car/test/CarAudioFocusTest.java
(plus 3 others) on Mojave

Change-Id: I70c73f511a63aa714414acaca5bdc4e929946959
Bug: 65384336
ar/test/CarVolumeServiceTest.java
cf5bb2ef670d818bcc2c2126e87aab973baae221 05-Sep-2017 Hongwei Wang <hwwang@google.com> Merge "Cherry-pick and manually resolved the conflicts." into oc-mr1-dev
7910dc9a4a5bd3520fa3854fc538a15a39b9218e 05-Sep-2017 Scott Randolph <randolphs@google.com> Merge "Add RINGTONE" into oc-mr1-dev
962ba77e2b928466dd7a4652bc468127adb871a0 04-Aug-2017 Scott Randolph <randolphs@google.com> Add RINGTONE

Test: wip
Change-Id: Ifa560fdd2b4a4e3c17deadcd9cc0dd4769c90274
Bug: 64729839
ar/test/AudioRoutingPolicyTest.java
2e45d81aaa79fbca2620b20d04bfea3f2537e3e2 01-Sep-2017 Asaf Rosenfeld <asafro@google.com> Fix VMS public API based on API review (ag/2593725).

Test: All tests were adjusted and pass.
Bug: 65115457
Change-Id: Id271170d2d67706d243817c556e294faad672631
ar/test/VmsHalServiceSubscriptionEventTest.java
ar/test/VmsOperationRecorderTest.java
ar/test/VmsPublisherClientMockService.java
ar/test/VmsPublisherClientServiceTest.java
ar/test/VmsPublisherSubscriberTest.java
ar/test/VmsSubscriberManagerTest.java
9fbc3e79b151cd1e3283eefbe5a345ceedf2b729 17-Aug-2017 Yao Chen <yaochen@google.com> Cherry-pick and manually resolved the conflicts.

Note that this is a cherry-pick of ag/2745105 and there is no intent to
modify the original CL except for conflicts resolving.

Map the VehicleAudioContextFlag.UNKNOWN_FLAG to current context.

+ When vehicle hal is reporting volume change on unknown context, we
will map it to the current context. This makes partner's
implementation easier and our volume handling more robust.

+ Added test.

Bug: 62064580
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarVolumeServiceTest.java

Change-Id: I488967e48e96f15f0094337282ef0b6f25465754
ar/test/CarVolumeServiceTest.java
a0b665f7d31f54898bcd9169779081d0420ce447 25-Aug-2017 Asaf Rosenfeld <asafro@google.com> Fix subscribers notifications and listener to callback

This CL fixes the VMS subscriber manager so that clients with no active subscriptions
will get notifications. Also this CL changes the name listener to callback per the API review.

Test: tests were adjusted to verify that notifications are received also when not subscribed.
Change-Id: I734879533c09c41e517f9bfb8df0f6f80aec7fda
Bug: 64700153
Bug: 65115457
ar/test/VmsPublisherClientMockService.java
ar/test/VmsPublisherSubscriberTest.java
ar/test/VmsSubscriberManagerTest.java
99e1a7555a9521c33203b68c5ab5bd1c039ee712 25-Aug-2017 Pavel Maltsev <pavelm@google.com> Merge Vehicle HAL 2.1 iface to 2.0

Vehicle HAL is property based and all properties are considered
optional. It is quite a bit of pain to create new versions of VHAL only
to extend properties.

Bug: 64303350

Test: verified system works stable

Change-Id: I4c5c891236912651ca1341f7fd515e533a6b4506
ar/test/CarDiagnosticConstantsTest.java
ar/test/CarDiagnosticManagerTest.java
ar/test/VmsHalServiceSubscriptionEventTest.java
ar/test/VmsPublisherClientServiceTest.java
ar/test/VmsPublisherPermissionsTest.java
ar/test/VmsPublisherSubscriberTest.java
ar/test/VmsSubscriberManagerTest.java
1a56ab9a3b322faebc9467690469689efb54ba7d 24-Jul-2017 Asaf Rosenfeld <asafro@google.com> Create Subscribe to layer from publisher surfaces

Allows APKs and HAL clients to subscribe and unsubscribe to a layer
from a specific publisher ID.

Test: All tests pass and added new test for added functionality
Bug: 62764401, 62764401
Change-Id: I39370be6fbb632b65c7ae880a4dd88ee5012738d
ar/test/VmsOperationRecorderTest.java
ar/test/VmsSubscriberManagerTest.java
abb4478352c6b666998f85181972e6f4a5aeea4b 05-Aug-2017 Enrico Granata <egranata@google.com> Fix CarDiagnosticConstantsTest to workaround an issue in generated HAL code am: 64fb54b08e
am: 5a90e25454

Change-Id: Id578d978712f275317c10e2a143979632b0197d5
64fb54b08e2172a89ca025e94de37b3f9e08359c 04-Aug-2017 Enrico Granata <egranata@google.com> Fix CarDiagnosticConstantsTest to workaround an issue in generated HAL code

Bug: 64391591
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticConstantsTest.java
Change-Id: Ia31d03c90cd24638ee437e8631748e0fb87da384
ar/test/CarDiagnosticConstantsTest.java
6857e0689678b35ce2d2060f4cdac20c66a289a6 04-Aug-2017 Enrico Granata <egranata@google.com> Merge "Add a test case to validate that manually generated diagnostic constants have the same value between CarService and Vehicle HAL" into oc-mr1-dev am: 2fb7f90b37
am: 1f4466dd4d

Change-Id: I3e1d13bc0ee30b75043caa19b7935b8e587cca41
7b13666563e9c8603afe917043b35ec2b29c8ee4 02-Aug-2017 Enrico Granata <egranata@google.com> Add a test case to validate that manually generated diagnostic constants have the same value between CarService and Vehicle HAL

Bug: 64024685
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticConstantsTest.java
Change-Id: I934324dbe82ba94efed9e773202e1aca3d512bbc
ar/test/CarDiagnosticConstantsTest.java
937f6c704c082db2a0f667992af3458f5f0040e2 03-Aug-2017 Enrico Granata <egranata@google.com> Move the Diagnostics API classes to android.car.diagnostic am: 25e8946811
am: 46eac02b0b

Change-Id: Ieb7aa8cb894aaf04a78d574641fa451aef885a22
25e89468119cd0b109f62c751446dfdd8e903143 02-Aug-2017 Enrico Granata <egranata@google.com> Move the Diagnostics API classes to android.car.diagnostic

Bug: 64024685
Test: build, flash + runtest CarDiagnosticManagerTest
Change-Id: I73e079be8910e550ae52f78162680d585949d022
ar/test/CarDiagnosticManagerTest.java
01b8568b4d48ef23f94d1de786180815bcaa8754 01-Aug-2017 Enrico Granata <egranata@google.com> Remove the CarDiagnosticSensorIndices class as it merely acted as a hollow namespace am: 3b0f5b72ff
am: 2dc7251c24

Change-Id: I56371dd5427d145a10655ed7133e94e4b8bb8bae
3b0f5b72ff36848e4db949d113b3e6230a1db4f2 31-Jul-2017 Enrico Granata <egranata@google.com> Remove the CarDiagnosticSensorIndices class as it merely acted as a hollow namespace

Bug: 64024685
Test: build
Change-Id: Idde0e66904d4d5fd620e38815961af0eda5c1ec3
ar/test/CarDiagnosticManagerTest.java
2e0182830ede59232d09264669518fd40a1ff1c2 01-Aug-2017 Asaf Rosenfeld <asafro@google.com> Merge "Fixing CarService and tests to use post VMS API review" into oc-mr1-dev am: 494f32a89c
am: 1081cdfd04

Change-Id: I16579d5afdd5747d43e96ce335591235634082a6
9f671618d88f92315b1604f2bf0ba74384c70690 01-Aug-2017 Enrico Granata <egranata@google.com> Merge "Remove CarDiagnosticEvent.IgnitionMonitors" into oc-mr1-dev am: 99f17fd4aa
am: ed2e7bdb1f

Change-Id: Icde9fff27014ba2fd9acf09eed007e98d82df2d1
494f32a89ccbadc1178cff761eed93bab4cf1c2f 01-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixing CarService and tests to use post VMS API review" into oc-mr1-dev
f8747715a8a5492be0d070c0ac68f2d16ef84a0f 29-Jul-2017 Enrico Granata <egranata@google.com> Remove CarDiagnosticEvent.IgnitionMonitors

The class was being used as a namespace but had no useful content of its own

Bug: 64024685
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticManagerTest.java
Change-Id: I9d00f525716fd0ea8f0bd202281683eb53602d60
ar/test/CarDiagnosticManagerTest.java
701193e2fc8532c802cb4aabf2afb372f8decab2 28-Jul-2017 Enrico Granata <egranata@google.com> Merge "CarService changes necessary to support the diagnostic enums rename on the Vehicle HAL side" into oc-mr1-dev am: 6af10a482b
am: fcc4964959

Change-Id: Ibf0f979f026cd261e8c5b54719ac9e615238b59f
6af10a482b37a809733fd800625a14c697558a1a 28-Jul-2017 Enrico Granata <egranata@google.com> Merge "CarService changes necessary to support the diagnostic enums rename on the Vehicle HAL side" into oc-mr1-dev
58e180bfa781f541dabf77efe4c8f78e38b85ad2 28-Jul-2017 Asaf Rosenfeld <asafro@google.com> Fixing CarService and tests to use post VMS API review

Test: All the tests were adjusted and pass
Bug: 64093467
Change-Id: Ieda7304e5ec6c1f0fedd670c50130eea69b76255
ar/test/VmsHalServiceSubscriptionEventTest.java
ar/test/VmsPublisherClientServiceTest.java
ar/test/VmsPublisherPermissionsTest.java
ar/test/VmsSubscriberManagerTest.java
158b7fef404345acd9876677c4bdb8f4cbcde2e1 28-Jul-2017 Enrico Granata <egranata@google.com> Merge "Rename the is*Supported() methods in CarDiagnosticManager per API Review" into oc-mr1-dev am: e180542b82
am: caffecb925

Change-Id: Ia85cbc1236876ed81b4d917d4ff53b89983cc109
e180542b8200b31a1c6f4232e52c6fe8994ca091 28-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Rename the is*Supported() methods in CarDiagnosticManager per API Review" into oc-mr1-dev
976cee4a3583c66599e364badf9024df5022ee7a 26-Jul-2017 Enrico Granata <egranata@google.com> CarService changes necessary to support the diagnostic enums rename on the Vehicle HAL side

Test: clean build and flash, then
runtest -x packages/services/Car/tests/android_car_api_test/src/android/car/apitest/CarDiagnosticManagerTest.java
runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticManagerTest.java
runtest -x packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/Obd2FreezeFrameTest.java
runtest -x packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/Obd2LiveFrameTest.java

Bug: 64024685
Change-Id: Ie6615dc84fcddbb108ad1c58b7a569b8e6ce37d6
ar/test/CarDiagnosticManagerTest.java
2e3b49a9f99a0886d8e10832801022c223b3984d 27-Jul-2017 Enrico Granata <egranata@google.com> Rename the is*Supported() methods in CarDiagnosticManager per API Review

Test: build
Bug: 64024685
Change-Id: I7dbd1f910e511a47dbf107ddfadfa36c14f32973
ar/test/CarDiagnosticManagerTest.java
02efe5db834a078fe994004fbc9f31bf4c03472b 27-Jul-2017 Enrico Granata <egranata@google.com> Fix testLargeByteArrayProperty to prevent OOM errors - remove an unnecessary copy for logging purposes; - optimize the other copy so it doesn't try to overallocate; - reduce the size of the array am: ca4665cca2
am: e45d48f960

Change-Id: I62b9023ce073d2e2370809a09f4f52ba5f96da5b
ca4665cca2f93dc65de17ecaa77dcad5b1c1ad94 26-Jul-2017 Enrico Granata <egranata@google.com> Fix testLargeByteArrayProperty to prevent OOM errors
- remove an unnecessary copy for logging purposes;
- optimize the other copy so it doesn't try to overallocate;
- reduce the size of the array

Change-Id: Iab30bde4e9d94db2491048e9ad05858de2584717
Fixes: 63995673
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarVendorExtensionManagerTest.java
ar/test/CarVendorExtensionManagerTest.java
3ae759551710424c01c2e985bfc13e7e3d4ee1cb 25-Jul-2017 Pavel Maltsev <pavelm@google.com> Fix activity monitoring test

Test: runtest -x
packages/services/Car/tests/carservice_test/src/com/android/car/test/SystemActivityMonitoringServiceTest.java

Change-Id: Id6ca97f14f9b46186b4d1f2d3e34849207615d05
Fix: b/62224020
ar/test/SystemActivityMonitoringServiceTest.java
800cb0790d57b6cb3c7d6893ec687a21b614545e 18-Jul-2017 Asaf Rosenfeld <asafro@google.com> Routing logic to use publisher ID

When publisher P is sending message for layer L, the routing
logic will send the message to all listeners that subscribed to either
layer L or Layer L + publisher P.

Test: all tests pass + added tests for new use cases
Bug: 63933446
Change-Id: I2f674149e7982ffede1f6426737ac1aef033b2c6
ar/test/SimpleVmsPublisherClientService.java
ar/test/VmsPublisherClientMockService.java
ar/test/VmsPublisherClientServiceTest.java
ar/test/VmsPublisherSubscriberTest.java
ar/test/VmsSubscriberManagerTest.java
9f6f2546729b204c69195e0908a8ea750e7ce9dd 12-Jul-2017 smaraaosp <smara@google.com> Added annotation to test.

Test: Tested running it locally.
Change-Id: I45c142d0c3fe4b5984d3d79bc75542ef406f2805
ar/test/CarInfoManagerTest.java
ar/test/CarVendorExtensionManagerTest.java
ar/test/CarVolumeServiceTest.java
ar/test/SystemActivityMonitoringServiceTest.java
ar/test/VmsOperationRecorderTest.java
ar/test/VmsPublisherPermissionsTest.java
ar/test/VmsPublisherSubscriberTest.java
f9be20bbf15014d1d6ad58a21304fb8fdaa06b6d 01-Jul-2017 Asaf Rosenfeld <asafro@google.com> Updating Routing and subscription state to support subscription to layer from specific publisher

Test: Added tests and all tests pass
Change-Id: Ic914f67f2281eb2a1d90512c5c80d5a63a159446
ar/test/VmsPublisherClientMockService.java
3ca12894f8e70fce1e0e18f44165cc941f6cb499 21-Jun-2017 Demyn Plantenberg <demyn@google.com> VMS: adding VmsOperationRecorder.

The VmsOperationRecorder writes VMS operations (formatted as JSON text)
to the Android Log. Applications can then parse logcat output to combine
the core VMS operations with other system activity.

Test: Ran all VMS unit tests.

Change-Id: I70ec53a56e5aeb0bda8b38cd1204c3316fca4fa7
ar/test/VmsOperationRecorderTest.java
4a24e39cfb9de024767cee53641ef934e96b0b1d 28-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Typo: (un)regsiterProjectionListener() and variants."
beab135ad81125590461d657baeb5af9a0c15d1a 23-Jun-2017 Gene Karshenboym <genek@google.com> Typo: (un)regsiterProjectionListener() and variants.

Fixed typo in method unregsiterProjectionListener() and related strings.
Added wrapper calls to allow APKs built with previous SDK versions to
call the newly named functions.

bug: 62916428
Test: Local build and flashed to HU.
Change-Id: I53cb4cafb015c789d3c930110a3b04d68de6f0b8
ar/test/CarProjectionManagerTest.java
43900533237db90138dcfa55c65ae2a542cd72a0 16-Jun-2017 Asaf Rosenfeld <asafro@google.com> Adding Publisher ID to offering, Availability to HAL

Test: adjusted tests to cover multiple publishers offering reflected in availability
Bug: 38185470, 37627772, 37627272
Change-Id: I3734e4127b08d9c1f9a26ecb844c8cbfb5a7d8b6
ar/test/VmsHalServiceSubscriptionEventTest.java
ar/test/VmsPublisherClientMockService.java
ar/test/VmsPublisherSubscriberTest.java
ar/test/VmsSubscriberManagerTest.java
d813471b0f09acfd4794e5b60ac829366ce29259 10-Jun-2017 Asaf Rosenfeld <asafro@google.com> Merge "Adding fusion bit to VmsLayer to enable clients to publish and subscribe to fused layers explicitly, Will add more tests that cover fused vs. non fused offering and availability as part of HAL (property) integration."
bcf7df104dab66060e88fc4c27901ffecbdc33c8 03-Jun-2017 Asaf Rosenfeld <asafro@google.com> Adding fusion bit to VmsLayer to enable clients to publish and subscribe to fused layers explicitly,
Will add more tests that cover fused vs. non fused offering and availability as part of HAL (property) integration.

Test: All VMS tests pass.
Bug: b/37627272
Change-Id: I597d2c5ed78141d8c52048a83cf23354c6350c4e
ar/test/VmsHalServiceSubscriptionEventTest.java
ar/test/VmsPublisherClientServiceTest.java
ar/test/VmsPublisherPermissionsTest.java
ar/test/VmsPublisherSubscriberTest.java
ar/test/VmsSubscriberManagerTest.java
fec3a3d1fdbcfe53dd774041c41114f01fa124cb 03-Jun-2017 Enrico Granata <egranata@google.com> Add AudioTestUtils.doRequestFocus() with the ability to accept delayed focus

Bug: 33352354
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test
Change-Id: I7bd9039b3df6b2c509d835c60acfdfff4d234380
ar/test/AudioTestUtils.java
0bb47d392757b67a7b2ddf334d34b60ae3662b2f 02-Jun-2017 Enrico Granata <egranata@google.com> Move audio focus tests to the new AudioFocusRequest API

Using an AudioFocusRequest is the supported path forward, and enables the
framework to return a DELAYED focus response to the requestor.

Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/
Bug: 33352354
Change-Id: I67f49e1b9c0c2c71b348b625b5f3298728c14fe9
ar/test/AudioTestUtils.java
ar/test/CarAudioExtFocusTest.java
ar/test/CarAudioFocusSystemSoundTest.java
ar/test/CarAudioFocusTest.java
ar/test/CarVolumeServiceTest.java
b4ee6ad1e8bd3654b67e14f0cbbe2eb6ac800c17 25-May-2017 Asaf Rosenfeld <asafro@google.com> Merge "Adding Publisher ID support to non-hal clients. Publishers send a serialized proto message with their description and get ID integer. Everytime the same serialized message is sent they will get the same ID so it is persistent within client crashes. Other clients can ask for a map all the IDs with their serialized descriptions."
602848940066abb3f0c36148cbe09c3d1855dffc 19-May-2017 Asaf Rosenfeld <asafro@google.com> Adding Publisher ID support to non-hal clients.
Publishers send a serialized proto message with their description and get ID integer.
Everytime the same serialized message is sent they will get the same ID so it is
persistent within client crashes.
Other clients can ask for a map all the IDs with their serialized descriptions.

Test: All of VMS tests pass + added unit tests and integration tests.
Change-Id: I025dd9943427ee8631a6a00adb0f9a17334a821e
Bugs: 38185290, 38185731, 38185927
ar/test/VmsPublisherClientMockService.java
ar/test/VmsPublisherSubscriberTest.java
e50b340f0974eb294351cb55c7e2b9d6fcf9c363 22-May-2017 Demyn Plantenberg <demyn@google.com> Fix failure when ENABLE_VEHICLE_MAP_SERVICE=false

VmsHalServiceSubscriptionEventTest.java was using assumeTrue to disable
a test when ENABLE_VEHICLE_MAP_SERVICE=false. This doesn't work with
our default test runner.

Test: VmsHalServiceSubscriptionEventTest with and without TARGET_USES_CAR_FUTURE_FEATURES.
Bug: 38344571
Fixes: 38344571

Change-Id: Id7c41211a015ed4054fb153e85e01033a9d150c8
ar/test/VmsHalServiceSubscriptionEventTest.java
bb73c4c251a29e7b361ec60c91aab8532551fb83 16-May-2017 Antonio Cortes <antoniocortes@google.com> Giving permissions to VMS publishers.

Test: VmsPublisherPermissionsTest.java
Bug: 37792580
Change-Id: I1a65c9ffb4d726f890db5f17abee4c11936e974b
Fixes: 37792580
ar/test/VmsPublisherPermissionsTest.java
1c94fa08318c8b8a75d9f299a60abe2f867da4fc 10-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add APIs to CarDiagnosticManager to check whether specific features are enabled"
c2393683cf3c144461fe2ba28f4fa8cd817d8cb1 09-May-2017 Enrico Granata <egranata@google.com> Add APIs to CarDiagnosticManager to check whether specific features are enabled

DiagnosticHalService has a DiagnosticCapabilities object that keeps track of whether
any/all the diagnostic HAL properties are supported by the underlying implementation.

This change exposes the same information up to CarDiagnosticManager for applications
to use, in order to quickly check whether or not they can expect support from a car.

Change-Id: I0fd05b1e24346483ea94432e428d0b0e56b7d7e4
Fixes: 38138457
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticManagerTest.java -c com.android.car.test.CarDiagnosticManagerTest -m testIsSupportedApiCalls
ar/test/CarDiagnosticManagerTest.java
b3634e209ebcfe2cb987f70cea264bf8b07c3e15 06-May-2017 Enrico Granata <egranata@google.com> Enable Vehicle HAL 2.1 and Diagnostics by default in master.

Bug: 37246134
Test: verified VHAL 2.1 running via lshal and logcat;
verifed diagnostic_injector.py can inject diagnostic data

Change-Id: I49d20de2a440cf45d2a0928fe43197e491a0ba66
ar/test/CarDiagnosticManagerTest.java
5e075dac94101efe1bdcde105b8c4194eb9e70d0 29-Apr-2017 Enrico Granata <egranata@google.com> s/FRAME_TYPE_FLAG/FRAME_TYPE/

FLAG is misleading because these are not bitwise masks, but
just identifiers of frame types.

Test: manual in KitchenSink
Change-Id: Ieed237ad6cb36bcec36c77d9a4ec5bc89edeaaba
ar/test/CarDiagnosticManagerTest.java
1cfb2ffc30fab8467c35ca0bb885fb16b8086966 29-Apr-2017 Demyn Plantenberg <demyn@google.com> Merge "VMS: fix flakey com.android.car.test.VmsPublisherSubscriberTest"
d5d01006420539d473cffe8e7e2087542374f3ae 28-Apr-2017 Enrico Granata <egranata@google.com> Fix an issue with removal of diagnostic listeners registered for both frame types

If a diagnostic listener was registered for both live and freeze frames,
and it was the only such listener registered, an unregister() call would
only remove one of the two registrations, but leave the other in place
such that the listener would still receive events.

Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticManagerTest.java
Fixes: 37756894

Change-Id: I5a71a630645e3b95b2ebea9adc02a886986f1e5c
ar/test/CarDiagnosticManagerTest.java
d6bef38e394b0096023ab5d0fb1353366c03d924 25-Apr-2017 Demyn Plantenberg <demyn@google.com> VMS: fix flakey com.android.car.test.VmsPublisherSubscriberTest

Test: ran all Vms*Test twice.
Change-Id: I2ab087207aedc8304dac141790026a28af24b8c2
ar/test/VmsPublisherClientMockService.java
101675784689f94cfc2a7c238e38fb84debcc527 20-Apr-2017 Enrico Granata <egranata@google.com> Add equals() and hashCode() to CarDiagnosticEvent.

Change-Id: I0549e0d7bd2504644f8b989580b3c0ac77d4d8df
Fixes: 37541578
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticManagerTest.java
ar/test/CarDiagnosticManagerTest.java
a5f9e6c6bbf1ba4b9cf3bdf5b8f1f35e43c8ce1d 11-Apr-2017 Antonio Cortes Perez <antoniocortes@google.com> Merge "Adding subscription HAL support."
e0824d706605935d7ee30ebd60bc1de1810feb5b 06-Apr-2017 Antonio Cortes <antoniocortes@google.com> Adding subscription HAL support.

Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsHalServiceSubscriptionEventTest.java
Bug: 36137379
Change-Id: Ia8ffd4bed8b01c5a2ea1f0a6f6b252d57934ec4d
ar/test/VmsHalServiceSubscriptionEventTest.java
ce7ee20db58fd3816dcdd19dc1e2f6c8f26b0d5a 05-Apr-2017 Enrico Granata <egranata@google.com> Add code to convert a CarDiagnosticEvent into Diagnostic Json

Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticManagerTest.java
runtest -x packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/Obd2LiveFrameGeneratorTest.java
Change-Id: I3e20ed08566161763933aa6c35b1f7aa7c2feca2
ar/test/CarDiagnosticManagerTest.java
eb541d4fae5171ca480069ff821581226df3ddb0 31-Mar-2017 Asaf Rosenfeld <asafro@google.com> Adding availability HAL support

Test: Added tests that inject offering and check change in availability. Also verified the following pass:
runtest -x ../tests/carservice_test/src/com/android/car/test/VmsSubscriberManagerTest.java
runtest -x ../tests/carservice_test/src/com/android/car/test/VmsPublisherClientServiceTest.java
runtest -x ../tests/carservice_test/src/com/android/car/test/VmsPublisherSubscriberTest.java
runtest -x ../tests/carservice_unit_test/src/com/android/car/VmsRoutingTest.java
runtest -x ../tests/carservice_unit_test/src/com/android/car/VmsLayersAvailabilityTest.java

Change-Id: Ia641499a60e79a2c8665257d94e1050a070da18d
ar/test/VmsPublisherClientMockService.java
ar/test/VmsPublisherClientServiceTest.java
ar/test/VmsPublisherSubscriberTest.java
ar/test/VmsSubscriberManagerTest.java
1ee77ce4698b350ed93346d90971cb47736e81e6 30-Mar-2017 Antonio Cortes Perez <antoniocortes@google.com> Merge "Disable VMS tests when ENABLE_VEHICLE_MAP_SERVICE=false"
09bfb00ab89d79f9a3e68d7b5fad3d128fcb88ef 30-Mar-2017 Antonio Cortes <antoniocortes@google.com> Disable VMS tests when ENABLE_VEHICLE_MAP_SERVICE=false

See reference cl: http://ag/2014384.

This change modifies integration tests. Unit test are not affected by
this flag because they do not use Car services.

Test: the tests below where execute with and without TARGET_USES_CAR_FUTURE_FEATURES.
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsPublisherClientServiceTest.java
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsPublisherSubscriberTest.java
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsSubscriberManagerTest.java
Bug: 36724405
Change-Id: I868b57bfa886d37585f078971b250864f686b09a
ar/test/VmsPublisherClientServiceTest.java
ar/test/VmsPublisherSubscriberTest.java
ar/test/VmsSubscriberManagerTest.java
ar/test/VmsTestUtils.java
2ec3e35196423f5a6ffd5ced85007331e3909cb7 30-Mar-2017 Antonio Cortes <antoniocortes@google.com> Improvements to VmsSubscriberManager

1) Removing unused function.
So far, there is no use case for clearing mListener (communication from
manager to final user). In fact, its mirror variable mIListener
(communication from service to manager) is final. Implying that
mListener is also expected to be final. In practice, it is expected that
user of VmsSubcriberManager invokes setListener only once in its
lifetime.

2) Notifying client of onCarDisconnected event.

3) Adding missing unsubscribeAll.

Test: build
Bug: 36724405
Change-Id: I8da38898aa52ba3bbccff95669b7f5be12a328fe
ar/test/VmsPublisherSubscriberTest.java
ar/test/VmsSubscriberManagerTest.java
543ef8915362454aa2ea13b61ebe9f6d21a8070c 28-Mar-2017 Yao Chen <yaochen@google.com> Fix CarVolumeServiceTest failure.

1. VolumeLimit test failure
- The min config value is always 0 in the new vhal. So the test for min
volume is removed.

2. testSuppressVolumeUI failure
- The reason is the car service code runs in the same process with the
test. When the test waits for a callback, it blocked the main thread
on which the Handler is running
- Moved the Handler in the car volume controller to a handler thread.

Test: runtest -x packages/services/Car/tests/carservice_test/ \
-c com.android.car.test.CarVolumeServiceTest

Change-Id: I1a11edfc6c330d7cbda0e6eb5afb94ac1c5eb4c6
ar/test/CarVolumeServiceTest.java
99130ac3ab147c375603dce18a37c133e6d5f12a 28-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Implement support of AUDIO_STREAM_STATE property"
79d5e12ad8708c1f7f7f1a60aaeb349ac7ed0f7b 24-Mar-2017 Pavel Maltsev <pavelm@google.com> Implement support of AUDIO_STREAM_STATE property

Fixing Audio tests

Fix: b/33235166
Fix: b/36524594

Test: runtest -x packages/services/Car/tests/carservice_test
Change-Id: I7d9dade59ce81342d859239f2e3e9a360008e7d3
ar/test/CarAudioFocusSystemSoundTest.java
ar/test/CarVolumeServiceTest.java
2febe9f77440c3e0b631acb6fcaee13e91ca41f7 24-Mar-2017 Antonio Cortes <antoniocortes@google.com> Guarantee an increasing sequence in the onVmsSubscriptionChange message

First, instead of passing a sequence number and a list of layers, wrap
them in a parcelable object.

Then, generate the sequence number when updating the set of
subscriptions. In this way, we guarantee that different snapshots of
the subscription data have different sequence numbers.

Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsPublisherClientServiceTest.java
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsPublisherSubscriberTest.java
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsSubscriberManagerTest.java
Test: runtest -x packages/services/Car/tests/carservice_unit_test/src/com/android/car/VmsRoutingTest.java
Bug: 36585514
Change-Id: I65cfd2aa1b0c1085bac13a3b77d472ff479da357
ar/test/SimpleVmsPublisherClientService.java
ar/test/VmsPublisherClientMockService.java
5780c0cc276693707bd170e95a26c7cea0573993 23-Mar-2017 Antonio Cortes Perez <antoniocortes@google.com> Merge "Updating VMS interfaces to use VmsLayer."
01a60395cdba8df0e306d1f692d4677799485b6f 22-Mar-2017 Antonio Cortes <antoniocortes@google.com> Updating VMS interfaces to use VmsLayer.

Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsPublisherClientServiceTest.java
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsPublisherSubscriberTest.java
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsSubscriberManagerTest.java
Test: runtest -x packages/services/Car/tests/carservice_unit_test/src/com/android/car/VmsRoutingTest.java
Bug: 36214569
Change-Id: Iee5a0595ba5bb175d9b1b6189d15902fd222a967
ar/test/SimpleVmsPublisherClientService.java
ar/test/VmsPublisherClientMockService.java
ar/test/VmsPublisherClientServiceTest.java
ar/test/VmsPublisherSubscriberTest.java
ar/test/VmsSubscriberManagerTest.java
4514e96614b219235037cb724787ed74d6f7e080 22-Mar-2017 Enrico Granata <egranata@google.com> Do not run the diagnostics API test if FeatureConfiguration.ENABLE_DIAGNOSTIC is false

Bug: 36490927
Test: runtest -v -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticManagerTest.java
TARGET_USES_CAR_FUTURE_FEATURES=true runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticManagerTest.java

Change-Id: If8b65bf7dc4d6b7961c3c8d07d210b5e3e62d338
ar/test/CarDiagnosticManagerTest.java
87c0545b6f0814657df555902300d7b3dfe6b96f 22-Mar-2017 Enrico Granata <egranata@google.com> Add logic to obd2_lib to generate a live OBD2 frame from a connection.

This commit adds a few main moving parts:
- logic to intersect the sensor types supported by obd2_lib with those supported by a vehicle;
- logic to collect all such supported sensors in one operation, and store the result in a JSON object;
- logic to create a VehiclePropValue from JSON data.

Test: runtest -x packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/Obd2LiveFrameGeneratorTest.java
Change-Id: Ic89cd8b615b11a1ba136df1ac6f336e7882ef1c6
ar/test/CarDiagnosticManagerTest.java
ar/test/DiagnosticEventBuilder.java
2ca6f8cd2347a6649308a566bbba4f4deb37f2ff 20-Mar-2017 Asaf Rosenfeld <asafro@google.com> Adding availability support to VMS subscribers

Test: runtest -v -x carservice_unit_test/src/com/android/car/VmsRoutingTest.java
runtest -v -x carservice_test/src/com/android/car/test/VmsSubscriberManagerTest.java
runtest -v -x carservice_test/src/com/android/car/test/VmsPublisherSubscriberTest.java
runtest -v -x carservice_test/src/com/android/car/test/VmsPublisherClientServiceTest.java

Change-Id: I3570dc902a020463f1041f04fa31267fbdab39c0
ar/test/VmsPublisherSubscriberTest.java
ar/test/VmsSubscriberManagerTest.java
883252c75a00af217bd1714648493c93aeb7918b 17-Mar-2017 Asaf Rosenfeld <asafro@google.com> Merge "Adding a class to describe a single VMS dependency. Adding a class to describe a publisher layers offering. Adding a way to publishers to declare their offering. Adding a token to publishers so that the service can track offering and potentially have more access control on publishing"
7bd684ec25febcbd65e32ff59e64f8b1d411aced 14-Mar-2017 Asaf Rosenfeld <asafro@google.com> Adding a class to describe a single VMS dependency.
Adding a class to describe a publisher layers offering.
Adding a way to publishers to declare their offering.
Adding a token to publishers so that the service can track offering and
potentially have more access control on publishing

Test: Verified tests run
Bug: TBD
Change-Id: Ibad7309608e983169deecf371360d3594a4e2dba
ar/test/VmsPublisherClientMockService.java
4c43add01ddcbbc1aefd78249bbe1cf981381f8e 16-Mar-2017 Enrico Granata <egranata@google.com> Automatically generate the Java list of OBD2 sensor indices from the HIDL definition.

This commit introduces the hidl_parser library, which is capable of generating a parse tree from a set of HIDL enum definitions.
It then uses the output of hidl_parser to generate CarDiagnosticSensorIndices.java.

Test: update-obd2-sensors.py + rebuild
Change-Id: Ie368b616468b0a2b46da5aa92deb4617c78302e1
ar/test/CarDiagnosticManagerTest.java
ar/test/DiagnosticEventBuilder.java
9db963a2178a46510c479500c46d00104996369d 11-Mar-2017 Antonio Cortes <antoniocortes@google.com> Return all the layers when reporting subscription data

This helps publishers to make better decisions about what publish.

Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsPublisherClientServiceTest.java
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsPublisherSubscriberTest.java
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsSubscriberManagerTest.java
Test: runtest -x packages/services/Car/tests/carservice_unit_test/src/com/android/car/VmsRoutingTest.java
Bug: 36137379
Change-Id: I8e94414ad74550b4029f06638c09d4ef5be3ed32
ar/test/SimpleVmsPublisherClientService.java
ar/test/VmsPublisherClientMockService.java
7e9141053627f8140c9356e3c8b397ba1cffacf0 10-Mar-2017 Antonio Cortes <antoniocortes@google.com> Propagate onVmsSubscriptionChange event to publishers.

Test: VmsPublisherSubscriberTest
Bug: 36055908
Change-Id: If7a80050cdfc2aa9bd57d07b96f102d22f57f300
ar/test/VmsPublisherClientMockService.java
ar/test/VmsPublisherSubscriberTest.java
8b1d4ed9d5c8b835ca46622fcd9be17549abfd14 04-Mar-2017 Asaf Rosenfeld <asafro@google.com> Merge "Integrate routing manager: * subscriptions request from the HAL and Subscribers Manager reach publishers. * data from Publishers Manager and HAL reach subscribers."
25a8740a92afac3ef63ce118c5d4ccf9202e6e24 01-Mar-2017 asafro <asafro@google.com> Integrate routing manager:
* subscriptions request from the HAL and Subscribers Manager reach publishers.
* data from Publishers Manager and HAL reach subscribers.

Test: Fixed all the current test to subscribe on target layers
Bug: 34977500

Change-Id: If4345ed6c9890d703bd635fed35ef120ffd25ab5
ar/test/VmsPublisherClientServiceTest.java
ar/test/VmsSubscriberManagerTest.java
3fe769d2af33284986385e5314d6e23a2ee254f4 03-Mar-2017 Antonio Cortes Perez <antoniocortes@google.com> Merge "Post-O. Move VMS property to hal 2.1."
093e2bcf82752dab9c0e6e4bb6f6cf31497f74a6 28-Feb-2017 Enrico Granata <egranata@google.com> Add a test case for CarDiagnosticManager API entrypoints

Test: TARGET_USES_CAR_FUTURE_FEATURES=true runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticManagerTest.java
Bug: 34279245
For O-MR1

Change-Id: I71e213e1d3ad15d4184e4145b59540021777c9f1
ar/test/CarDiagnosticManagerTest.java
ar/test/DiagnosticEventBuilder.java
747364a165763ce506517a19f3bdc3b7cd3e44d0 28-Feb-2017 Antonio Cortes <antoniocortes@google.com> Post-O. Move VMS property to hal 2.1.

Test: build and flash Mojave board with TARGET_USES_CAR_FUTURE_FEATURES=true.
Test: check that the property is displayed in the logs during startup.
Bug: 35628104
Change-Id: I3ab9df77db7e3637f5c1f5f705ce9d2fecf44fd2
ar/test/VmsPublisherClientServiceTest.java
ar/test/VmsSubscriberManagerTest.java
9a1eb11b6f1c772b6266c0f3f0a1031f3025dbf1 17-Feb-2017 Antonio Cortes <antoniocortes@google.com> Fix VMS test cases

Due to other blocking bugs, these test were not executed in the past
couple of changes. Now the tests are passing again.

Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsPublisherClientServiceTest.java
Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/VmsSubscriberManagerTest.java
Bug: 34976096
Change-Id: I7d1a80ec7e256b21577616506001907564948edd
ar/test/SimpleVmsPublisherClientService.java
ar/test/VmsPublisherClientServiceTest.java
ar/test/VmsSubscriberManagerTest.java
9db04df1241b4b2ee3c6096eabca876e6a49708b 07-Feb-2017 Antonio Cortes <antoniocortes@google.com> VMS skeleton code: VmsPublisherClientService.

VmsPublisherClientService is the main interface for clients to use
publisher services. The test verifies that a fake client publishes a
message.

This is a post-O feature.

Bug: b/34976096
Test: VmsPublisherClientServiceTest
Change-Id: Ice021409e5ca753d10a1a7a03768da483e626449
ar/test/MockedCarTestBase.java
ar/test/SimpleVmsPublisherClientService.java
ar/test/VmsPublisherClientServiceTest.java
99e4f084c8df54e2a6b6e9d9ad123d985057ce32 09-Feb-2017 asafro <asafro@google.com> VmsHalService to use the new fields in the VMS property.

Will changes indexes enum in a different CL.

Test: Fixed tests to parse fields from VMS messages.
Bug: 35313272
Change-Id: Id718e2d1ed904daca0e13b93da20257c959ef23a
ar/test/VmsSubscriberManagerTest.java
c52d5f9f6190cf9a44dd6dfd3bc92386fbf023b3 06-Feb-2017 Antonio Cortes <antoniocortes@google.com> Protecting VmsSubscriberManager with the future annotation and future flag.

Needed to move the FeatureConfiguration.java from service to car-lib
because it is used in Car.java

This is a post-O feature.

Bug: b/34976096
Test: Build with TARGET_USES_CAR_FUTURE_FEATURES set to true and to false.

Change-Id: I25848a0bfe6a6d59181dde48399fd2e1e8f10e4c
ar/test/VmsSubscriberManagerTest.java
a7d8ed1681d297bdda8345c1598c7b9a388599be 02-Feb-2017 Antonio Cortes <antoniocortes@google.com> VMS skeleton code: VmsSubscriberManager

Create class that will be used by clients to interact with VMS
subcription services.

Bug: b/34976096
Test: VmsSubscriberManagerTest
Test: Flashed a Mojave board and verified there was no Car service
crashes.

Change-Id: Ic11806275465f185fb7670729b64542526cd9a7f
ar/test/VmsSubscriberManagerTest.java
cfe93105f637c2822da113308f113ed418d0b319 02-Feb-2017 Pavel Maltsev <pavelm@google.com> Move Vehicle HAL under automotive package

Test: all existing tests passing

Bug: b/33200203
Change-Id: Id1ff815ae2af9c48ce8612b4cfb5327de13a5a1f
ar/test/AudioRoutingPolicyTest.java
ar/test/CarAudioExtFocusTest.java
ar/test/CarAudioFocusSystemSoundTest.java
ar/test/CarAudioFocusTest.java
ar/test/CarAudioManagerTest.java
ar/test/CarCabinManagerTest.java
ar/test/CarHvacManagerTest.java
ar/test/CarInfoManagerTest.java
ar/test/CarPowerManagementTest.java
ar/test/CarProjectionManagerTest.java
ar/test/CarRadioManagerTest.java
ar/test/CarSensorManagerTest.java
ar/test/CarVendorExtensionManagerTest.java
ar/test/CarVolumeServiceTest.java
ar/test/MockedCarTestBase.java
ar/test/SystemActivityMonitoringServiceTest.java
727c382d8d1c8d894009858cef2fdc0152ce3cc4 27-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Handle losing conneciton with VHAL in Car Service"
ec83b63c47f65c5978eec3ee24952969a17b1ee7 06-Jan-2017 Pavel Maltsev <pavelm@google.com> Handle losing conneciton with VHAL in Car Service

Test: TODO

Change-Id: Ib465b146db119bc4dbf6019f76619935891fd45d
Fix: b/34083734
ar/test/MockedCarTestBase.java
fe1a8f14e1ac56f095d29336e0986950d8adfc0c 18-Jan-2017 Keun-young Park <keunyoung@google.com> add audio parameter API

- allow setting / getting audio parameters with subscription
for change.
- available parameters are checked for both get / set calls.
apps should only pass supported parameters.
- needs AUDIO_SETTINGS permission to use them.

bug: 32371653
Test: added CarAudioManagerTest

Change-Id: I6b40080f200c50d4f9fc57bca8651797f2744dc3
ar/test/CarAudioManagerTest.java
cffbabbc10785b19d261203d6574a45a338796bd 22-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add support of ignition state to Car API"
1e5a88bcaea73af4a140616b4e9ed5fcfa60d990 16-Dec-2016 Pavel Maltsev <pavelm@google.com> Add support of ignition state to Car API

Bug: b/32312972, b/32761576

Test: tests provided
Change-Id: I8b9939ada7153d270cbdca14e054059dae5ce687
ar/test/CarSensorManagerTest.java
17470d61d554eda65eac04bdf9635bdc95d29e5e 21-Dec-2016 Pavel Maltsev <pavelm@google.com> Remove VehiclePermissionModel from Car Service

It's not used

Bug: b/33670724

Test: removing unused feature
Change-Id: Ie7fa97f0c699bf80bdf1d505e0cd8988cdb2a4cc
ar/test/AudioRoutingPolicyTest.java
2a8c56d61fda68c06513ed0cdcbb64fff7e02304 14-Dec-2016 Pavel Maltsev <pavelm@google.com> Propagate VHAL errors to managers that support it

Fix: b/32068464

Test: functional tests provided
Change-Id: I7199ce61815a94671c1b155711cebca0897d2608
ar/test/CarCabinManagerTest.java
ar/test/CarHvacManagerTest.java
96def40502ff34f01d11eeae49e63582ec560dda 23-Nov-2016 Jean-Michel Trivi <jmtrivi@google.com> Update VolumeController implementation

Implement interface method for a11y mode, noop.

Test: checkbuild
Bug 30448020

Change-Id: I3b04ddf095f11dc9b6b7ebef32bd1322f8bab7ce
ar/test/CarVolumeServiceTest.java
0d07c76bbc788fba8c77d8e932330ab22ec6ba27 04-Nov-2016 Pavel Maltsev <pavelm@google.com> Migrating Car service to new Vehicle HAL

- make car service work directly with Vehicle HAL
- getting rid of protobufs and dependencies on VNS
- get rid of CarTestManager / CarTestService and refactor
tests accordingly
- reworked ICarImpl to pass dependencies rather than
using singletons for better testing experience

Test: existing test should work, although some of the tests
(esp. audio) are broken and we will fix them in follow up CLs

Bug: b/31971746
Change-Id: I229969af332304ba3b1718f130cdf22038e86fad
Tests: tests adjusted to new data structures
ar/test/AppFocusTest.java
ar/test/AudioRoutingPolicyTest.java
ar/test/CarAudioExtFocusTest.java
ar/test/CarAudioFocusSystemSoundTest.java
ar/test/CarAudioFocusTest.java
ar/test/CarCabinManagerTest.java
ar/test/CarHvacManagerTest.java
ar/test/CarInfoManagerTest.java
ar/test/CarPackageManagerTest.java
ar/test/CarPowerManagementTest.java
ar/test/CarProjectionManagerTest.java
ar/test/CarRadioManagerTest.java
ar/test/CarSensorManagerTest.java
ar/test/CarVendorExtensionManagerTest.java
ar/test/CarVolumeServiceTest.java
ar/test/MockedCarTestBase.java
ar/test/SystemActivityMonitoringServiceTest.java
e44e0fb7baee22d677b6a78b815832bbfc353122 04-Nov-2016 Vitalii Tomkiv <vitalit@google.com> CarSensorManager: removing listener should reset update rate

bug: 32060307
Test: local test
Change-Id: Ic2b6567a3e71263d75390a4b737cd897190e4c91
ar/test/CarSensorManagerTest.java
a88b3e7249d13e7d3dc04289d2e129694cfab8c4 12-Oct-2016 Scott Randolph <randolphs@google.com> Merge "Increase coverage for CarSensorManagerTest" into nyc-car-dev
80ebb3f9f9c380b120e3e239bca25af505ec4556 10-Oct-2016 Scott Randolph <randolphs@google.com> Increase coverage for CarSensorManagerTest

Add mocked tests for CarSensorManager entry points. Verifies sensor
availability and ansynchronous event notification.

bug: 31911546
test: run locally
Change-Id: I33dcc04639195be9417c95b3c329acbde986d676
ar/test/CarSensorManagerTest.java
afdc9ae840d5c47aae2954a4f5800f43ed106036 10-Oct-2016 Yao Chen <yaochen@google.com> Add test for SystemActivityMonitoringService

Bug: 30034622

Change-Id: I320a0ed63495630df1fc81252bad1f92b7825e84
ar/test/SystemActivityMonitoringServiceTest.java
af2cc99a2e8eea38a75b20b952ea5c0e7ebb4b1b 07-Oct-2016 Keun-young Park <keunyoung@google.com> more api clean-up

- more @IntDef
- *Listener to *Callback when multiple methods are there.
- replace HvacPropertyId into CarHvacManager.ID_*
- replace CabinPropertyId into CarCabinManager.ID_*
- hide ValueTypeDef
- also fix failing CarNavigationStatusManagerTest

bug: 31930987
Change-Id: If8e8304a62f4f5d7d6f2d5d811bd65691370216e
ar/test/CarCabinManagerTest.java
ar/test/CarHvacManagerTest.java
07ddbbd70e518e271f941f92df1b0e5501af0ad1 06-Oct-2016 Keun-young Park <keunyoung@google.com> add specific access methods to CarInfoManager

- support-lib no longer needs key
- for car-lib, Bundle is used to pass basic data
and keys are still there for Bundle but hidden.

bug: 31930987
Change-Id: I5f0bddebe2b4061f906fc8cc2875b81de4709ece
ar/test/CarInfoManagerTest.java
20dd8939c81a381f2226da295a897c11a92f1779 05-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Change CarAppFocusManager to be asynchronous" into nyc-car-dev
d15d88777f07265b258f637e4967942d98bd6333 04-Oct-2016 Vitalii Tomkiv <vitalit@google.com> Change CarAppFocusManager to be asynchronous

bug: 31867090
Test: run tests
Change-Id: I5ea7719460ee29934efde8aa77c7a367bc86eb12
ar/test/AppFocusTest.java
6745635909d050c57f5a08bfc28580feb0f2cfe0 03-Oct-2016 Keun-young Park <keunyoung@google.com> CarInfoManager, put basic info into one Bundle

- Put all basic info into a Bundle.
- Basic info will be expalnded into adding more info.
- Anything too big should not be added there.
- additional method for acceesing more sensitive info
can be added later.

bug: 31867092
Change-Id: I84768863e495d33acfd003ecfe1c9b65ee2fed0e
ar/test/CarInfoManagerTest.java
d72b53500006e84b0c69e650878267c693c164a3 23-Sep-2016 Jason Tholstrup <jthol@google.com> Many API council fixes.

bug: 31913591
Change-Id: I3a0f9a57ecdccdae6c0b3b98b5bbf9b31733933b
ar/test/AppFocusTest.java
5d873a0ab1f5d97a13709d0e663540425a25befb 27-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "use only android.Car in car service test" into nyc-car-dev
9cea114837dd6a72d3a4f7f2618fec880fe1aca8 27-Sep-2016 Keun-young Park <keunyoung@google.com> use only android.Car in car service test

- change all tests not to use support.Car

bug: 31488458
Change-Id: I85d617763108665105159d3f9d5a012022d49aa6
ar/test/AppFocusTest.java
ar/test/CarInfoManagerTest.java
ar/test/CarPackageManagerTest.java
ar/test/CarSensorManagerTest.java
ar/test/MockedCarTestBase.java
upport/car/test/AppFocusTest.java
upport/car/test/CarInfoManagerTest.java
upport/car/test/CarPackageManagerTest.java
upport/car/test/CarSensorManagerTest.java
8d90e50fedc5c0c6f254e049b4283e9dab054ea7 26-Sep-2016 Vitalii Tomkiv <vitalit@google.com> Add tests for CarProjectionManager.

bug: 31486426
Test: manual run
Change-Id: I405b6542cc669f8c3e56c2aabe5d7db01918759d
ar/test/CarProjectionManagerTest.java
52d7da59a5445b9e139527a75b795625c174a948 21-Sep-2016 Pavel Maltsev <pavelm@google.com> Move CarVendorExtensionManagerTest to carservice

Change-Id: If292161e3fb6ec9264a42831c569ede4b04dfc1c
Fix: b/31631435
ar/test/CarVendorExtensionManagerTest.java
1ac59caa6b1bc760aef0adb3c675b49bfa53af9f 31-Aug-2016 Jason Tholstrup <jthol@google.com> Final round of API doc cleanups. Some vestigial methods were removed.

Change-Id: Ia537b4075af5846436a0754481c8622cc7b1dca7
ar/test/MockedCarTestBase.java
3ee334d8c220f631d2ea7fa225af148f41b43354 26-Aug-2016 Jason Tholstrup <jthol@google.com> api lint refactorings and renaming of listener add/remove methods.

Change-Id: Id8eceac2322564da8a5fd3f882574041a0b97704
ar/test/CarRadioManagerTest.java
57de61296cc8f29d8740fc7e6983af9553e7a410 19-Aug-2016 Jason Tholstrup <jthol@google.com> @hiding stuff and misc api lint fixes

Change-Id: I88aadf3d80e1da06b976d752912a4cf1682bb257
ar/test/MockedCarTestBase.java
upport/car/test/AppFocusTest.java
9aaf8b91bdef693f555632c9ca491423e457efa1 04-Aug-2016 Jason Tholstrup <jthol@google.com> bringing in code from g3 and updating some name spaces to match

Change-Id: I0baf0d77ba2ec076e2e16849b11944907416066b
ar/test/MockedCarTestBase.java
upport/car/test/CarSensorManagerTest.java
4df5a286dff8b597cefaf012bde5be02000c00f3 24-Aug-2016 Yao Chen <yaochen@google.com> Hide volume UI after we set volume due to context change.

Change-Id: I56d66b6cdabe13b5502a382ba38e70cbbca7480e
ar/test/CarVolumeServiceTest.java
32bced7094bdaaefbce204679f26e632a36205d1 04-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "support system sound with no focus request" into nyc-car-dev
32b6382264510577126f9723337a7f48332b2ae3 02-Aug-2016 Keun-young Park <keunyoung@google.com> support system sound with no focus request

- When system sound is played without focus, send
NO_DUCK focus request.
- system sound will be also added if non-system sound
is already having focus
- Sound from non-system sound physical stream will be
ignored when focus is not requested.
- also fix routing policy test by adding fixed policy for test

bug: 25984205

Change-Id: If3981ff45fbf13fff67892bf78562ed071336b40
ar/test/AudioRoutingPolicyTest.java
ar/test/CarAudioExtFocusTest.java
ar/test/CarAudioFocusSystemSoundTest.java
ar/test/CarAudioFocusTest.java
94d4766e55c34790e9a0be3009f05205cd730776 28-Jul-2016 Yao Chen <yaochen@google.com> Add GarageMode settings.

+ Add CarSettings to store keys related to Car platform.
+ Add a settings Activity for CarSettings, currently can be launched in
KitchenSink app. Later we can move it to the new Settings app.
+ Add relevant garage mode settings.

Change-Id: Iba3b5215a69004c6d7e38ad8a2a22ebd1acc7e1d
ar/test/GarageModeTest.java
caccf8fc83e93eb1c499267bdadbd955474d893d 22-Jul-2016 Steve Paik <spaik@google.com> Add tests for CarCabinManager

BUG: 27225448
Change-Id: I5812d9069c77740824173ff96dd2742978bc28d0
ar/test/CarCabinManagerTest.java
4c6834a27ccbcf42cbeef43059751752baf80ac3 28-Jun-2016 Keun-young Park <keunyoung@google.com> add external audio routing support

- external audio routing is done via audio focus request
- add hidden CarAudioManager API for apps to request audio focus
for external audio source: will be left hidden until it is good
to go as public or system api
- add test to confirm external routing

bug: 29601910
Change-Id: I33600a6f53b0854cd3b55663a8be6987ac20413a
ar/test/CarAudioExtFocusTest.java
ar/test/CarAudioFocusTest.java
ar/test/MockedCarTestBase.java
46371473c416415fb6bcb8db85686669c3d65af6 24-May-2016 Vitalii Tomkiv <vitalit@google.com> Car api review: CarAppContextManager renaming to CarAppFocusManager.

Changes include:
- rename to CarAppFocusManager
- allow multiple client listener for listening and setting.
- change name for set / reset to requestAppFocus, abandonAppFocus
- rename all APIs to use focus instead of context

Bug: 28886557
Change-Id: I5e5285c104435dbd2eea43c4b0e43ae5ead81218
upport/car/test/AppContextTest.java
upport/car/test/AppFocusTest.java
7877faa874e502ef9a20bc9299222c718873ec91 12-May-2016 Yao Chen <yaochen@google.com> Add CarVolumeServiceTest

Change-Id: I6326088b889aadc28f9f5ca2ed3f742ee5fae387
ar/test/CarAudioFocusTest.java
ar/test/CarVolumeServiceTest.java
3cb891017933140b613cfaf5b8422c112c0f32dc 05-May-2016 Keun-young Park <keunyoung@google.com> add CarAudioManager.mute

- radio can be also muted by this.
- muting will also make new focus request, so client
requesting mute can also lose focus (LOSS_TRANSIENT) if it is
holding focus.
- For muting, muting request will be sen to vehicle hal.

- also fixed some bugs:
- handle IllegalArgumentException for focus request as this can happen
when mocked test ends
- fixed wrong addition of second context when focus loss is from car

bug: 28615094
Change-Id: I80b1c07305cad857763011711b7954ac5625fb64
ar/test/CarAudioFocusTest.java
021310d76665163d6a7907d056b3ef43e6e910e4 26-Apr-2016 Keun-young Park <keunyoung@google.com> fix failing carservice tests

- revamp hal release init order during mocking:
release hal after service release and init hal before service init
- fix wrong order of mocking state setting. This led into
bringing audio muting while in mocking.
- remove some default properties from CarEmulator
as default dummy value does not work.
- add synchronization for mCarVolumeController
- handle ServiceSpecificException for get call
- reduce init time for non-functioning vhal by caching
volule get calls in init
- update CarAudioFocusTest
- remove CarConnectionListenerInMockingTest as connection state
is no longer notified when mocking starts

bug: 28387670

Change-Id: Idf975a3b0ed86b111618487eedbc380c5662a487
ar/test/CarAudioFocusTest.java
upport/car/test/CarConnectionListenerInMockingTest.java
dfccc5a6bd49b34b22968261f464442d7dc9920b 12-Apr-2016 Pavel Maltsev <pavelm@google.com> Publish current prop state in VNS when subscribed

Change-Id: I6962d913ac9d910e4bea7e7e117252ff23f0228a
Fix: 27976343
ar/test/CarHvacManagerTest.java
ar/test/CarRadioManagerTest.java
fb5f6232486612413b129a2100bac720589dee0d 28-Mar-2016 Steve Paik <spaik@google.com> Implement changes from car api review of CarHvacManager

- Add @IntDef for all enums
- Split CarHvacProperty into corresponding Config and Value classes;
- Use java types to represent vehicle value type in API;
- Use generics for different property types;
- Add documentation to clarify behavior
- Allow multiple listeners to register for callbacks
- Remove @SystemApi tag from CarHvacEvent class
- fixed CarHvacManagerTest and vehicle hal mocking
- Added unit tests for CarPropertyConfig and CarPropertyValue

BUG: 27814691, 27900797, 27142682
Change-Id: Ic860b4ef4ff87db1babde21226ec35ac81f77cea
ar/test/CarHvacManagerTest.java
3057ebd67bdbeaee67f132c6f0004d04d8943dfd 29-Mar-2016 Keun-young Park <keunyoung@google.com> cleanup audio config

- add "radio" to audio routing and remove
all specialization for radio.
- make focus wait timeout overridable.
- fix wrong handling of VR context: CAR_AUDIO_USAGE should
be used instead of CAR_AUDIO_TYPE to check internal usages
- send radio context to vehicle hal for radio: Do not
delete radio context anymore. Also cleaned up some radio
handling

bug: 27886033

Change-Id: Iae5148291a5d63c79bf49d3bbc5ee73055a20411
ar/test/AudioRoutingPolicyTest.java
ar/test/CarAudioFocusTest.java
d4f4d754a116ef0d88f5aba5558429d9264c0fc8 24-Mar-2016 Vitalii Tomkiv <vitalit@google.com> API review: CarAppContextManager.
- Separate context change listener from ownership listener. Some apps
may just want to monitor the state.

Bug: 27598924
Change-Id: I496596b04273e943489e424760fff6764009f959
upport/car/test/AppContextTest.java
2906c4461afa9ac0c5865768a3238281e5ecf26d 24-Mar-2016 Pavel Maltsev <pavelm@google.com> Add test size annotation to car tests

Bug:26873938
Change-Id: Ie0d0cb1ea41d77756ac6f88d27d2487245c7957d
ar/test/AudioRoutingPolicyTest.java
ar/test/CarAudioFocusTest.java
ar/test/CarHvacManagerTest.java
ar/test/CarPowerManagementTest.java
ar/test/CarRadioManagerTest.java
ar/test/GarageModeTest.java
upport/car/test/AppContextTest.java
upport/car/test/CarConnectionListenerInMockingTest.java
upport/car/test/CarPackageManagerTest.java
fd5982c5700334ce24803632936f9c89a61e2da5 16-Mar-2016 Jason Tholstrup <jthol@google.com> Merge "Car support lib changes for shared support lib" into nyc-dev
e4c731ea3ed22615783efb02818b0b3d184bba33 15-Mar-2016 Jason Tholstrup <jthol@google.com> Car support lib changes for shared support lib

- remove IBinder from onServiceConnected
- Add CarNotConnected exceptions to android.car.support methods
- various type cleanup

bug: 27679766

Change-Id: I58335da8296ec83ad2d6ffe76ba18d54ea8563a0
ar/test/MockedCarTestBase.java
upport/car/test/AppContextTest.java
upport/car/test/CarConnectionListenerInMockingTest.java
71b2f5cd736f3a9aac8a9356b049d20ea76edb88 11-Mar-2016 Keun-young Park <keunyoung@google.com> vehicle hal refactoring from hal review

- call release_memory_from_get for freeing memory allocated
from get call
- add retry for NOT_READY error which can happen at initial
stage
- simplify zoned properties with missing multiple mins/maxs for
zoned properties
- update HVAC API to return min/max values per each zone
- change HVACV API to return all zones available
(renamed to getZones())
- fix missing write permision to property 0 which
is used to gatekeep hal mocking

bug: 27597338, 27596281

Change-Id: I353acc0398f62c4933491e43592ea598d17d2422
ar/test/CarHvacManagerTest.java
d8c22f21348822a0022ec99444ecb062ebfa00db 04-Mar-2016 Keun-young Park <keunyoung@google.com> fix nav focus handling while radio is active

- stream to play nav was cleared when radio is active.
fix it to stop radio when primary stream is conflicting
with radio.
- extend kitchensink audio test to have more focus test
- extend bottom buttons to handle app context and radio
- add radio start / stop which only controls focus
- change nav play to use GAIN_TR_MAY_DOCK

bug: 27475946

Change-Id: I82d63306fb15c84c7e9b0eef51cc25eb18f42660
ar/test/AudioRoutingPolicyTest.java
1488ef2171bbc3bf25fc00c424a9979843f5ec6e 25-Feb-2016 Keun-young Park <keunyoung@google.com> support audio context properly

- audio context is now part of AUDIO_FOCUS
- For now, resolve up to two contexts for a focus
request
- audio context is cleared after audio focus is requested

bug: 27110889

Change-Id: Iaf63ef4a96d17c6585ff3558ce40b4775140c21c
ar/test/AudioRoutingPolicyTest.java
ar/test/CarAudioFocusTest.java
ar/test/CarHvacManagerTest.java
ar/test/CarPowerManagementTest.java
ar/test/CarRadioManagerTest.java
ar/test/GarageModeTest.java
ar/test/MockedCarTestBase.java
upport/car/test/AppContextTest.java
upport/car/test/CarAudioFocusTest.java
upport/car/test/CarConnectionListenerInMockingTest.java
upport/car/test/CarHvacManagerTest.java
upport/car/test/CarInfoManagerTest.java
upport/car/test/CarPackageManagerTest.java
upport/car/test/CarPowerManagementTest.java
upport/car/test/GarageModeTest.java
upport/car/test/MockedCarTestBase.java
e54ac276796c6535558f8444d882adecd19ce2bd 17-Feb-2016 Keun-young Park <keunyoung@google.com> add android.car

- instead of using binder as compatibility layer, add android.car
- apps using android.car should add it to LOCAL_JAVA_LIBRARIES
unless doing include
packages/services/Car/car-support-lib/car-support.mk

- support lib renamed to android.support.car
- UI stuffs only exist in android.support.car
UI has dependency on androud support library and not added to
android.car

- permission only uses android.car namespace even for support.car

- car-systemtest remains as static library. To use CarTestManager,
test app should get CarTestManagerBinderWrapper then create
CarTestManager.

bug: 27199752
Change-Id: I3522e11e958dade404443fbe2d45f576c827fa7a
ar/test/AudioRoutingPolicyTest.java
ar/test/CarRadioManagerTest.java
ar/test/TestAppBlockingPolicyService.java
upport/car/test/AppContextTest.java
upport/car/test/AudioRoutingPolicyTest.java
upport/car/test/CarAudioFocusTest.java
upport/car/test/CarHvacManagerTest.java
upport/car/test/CarInfoManagerTest.java
upport/car/test/CarPackageManagerTest.java
upport/car/test/CarPowerManagementTest.java
upport/car/test/CarRadioManagerTest.java
upport/car/test/MockedCarTestBase.java
upport/car/test/TestAppBlockingPolicyService.java
1f4d6a7b960e66116de0c1ccb90f900275cff207 11-Feb-2016 Keun-young Park <keunyoung@google.com> fix wrong sleep entry for display state change

- a missing break in switch - case brought the issue.
- remove rearview camera case from PowerManagement :
android display will be kept on, so there is no need to
handle rear view camera case specially.
- fix possible bug of checking display on. Only handle
DISPLAY_ON to on.

bug: 27142874, 26718816

Change-Id: Ie5a804be434a466cc67d81725ee2e9c56e693d5f
upport/car/test/CarPowerManagementTest.java
5672e85bdf82f6a2350afb942dfe17b7c699af87 10-Feb-2016 Keun-young Park <keunyoung@google.com> support more audio type using custom Bundle in AudioAttributes

- define car specific stream using Bundle in AudioAttributes
- revamp related code to use CAR_AUDIO_USAGE

bug: 27111558
Change-Id: Ib50ae374e3947d94ad59752389b4248d07b7426b
upport/car/test/AudioRoutingPolicyTest.java
upport/car/test/CarAudioFocusTest.java
dacd724892d2d502127248685e15254905cbf0f6 26-Jan-2016 Yao Chen <yaochen@google.com> Add GarageMode unit tests.

+ Added a build rule to create car-service-lib-for-test, to make mocking
easier.

+ Added unit tests for GarageModeService

+ Fixed a bug in GarageModeService.

Bug: 25447226

Change-Id: I77f7c7c2679e6607ebc75b7b9a893c4c367cbd4e
upport/car/test/GarageModeTest.java
75623ce0736848d0b27f08c65d843a031b325027 21-Jan-2016 Pavel Maltsev <pavelm@google.com> Rename car system api package

We should use android.support.car for car system Api.

Bug: 26091392
Change-Id: I15fb50614c3d08e90854cf835f4fcf5dbc73b650
upport/car/test/AppContextTest.java
upport/car/test/AudioRoutingPolicyTest.java
upport/car/test/CarAudioFocusTest.java
upport/car/test/CarHvacManagerTest.java
upport/car/test/CarInfoManagerTest.java
upport/car/test/CarPackageManagerTest.java
upport/car/test/CarPowerManagementTest.java
upport/car/test/CarRadioManagerTest.java
upport/car/test/MockedCarTestBase.java
e4b186ee15e9e60c702418405468d7e502942d66 14-Jan-2016 Keun-young Park <keunyoung@google.com> add minimum support of zoned int32 / float array

- TODO: add tests for zoned array, add more api in Java level

bug: 26473518

Change-Id: I114838e3214457474830b4b10228348f083a7ca7
upport/car/test/CarHvacManagerTest.java
8de993354f1a8c30880b535cf8b80fee10c4e882 13-Jan-2016 Pavel Maltsev <pavelm@google.com> Refactor ctor of Car to factory method

Refactor ctor of Car class to use factory method to handle no car service case.

Bug: 26096313
Change-Id: Ie857d04d47f311c08e23a50b162f97f9e2f0dbd7
Topic: b26096313
upport/car/test/CarConnectionListenerInMockingTest.java
upport/car/test/MockedCarTestBase.java
0727f9536803bf13e49ff73bd1ed04489b592c56 21-Dec-2015 Keun-young Park <keunyoung@google.com> vehicle hal update: add zone to subscription and others

- add zones to subscribe and mocking
- extend config_flags to config_array

bug: 25265553

Change-Id: Icfc1911178daa4ff4b5b6f12bc8e0002af5530bb
upport/car/test/AppContextTest.java
upport/car/test/AudioRoutingPolicyTest.java
upport/car/test/CarAudioFocusTest.java
upport/car/test/CarHvacManagerTest.java
upport/car/test/CarPowerManagementTest.java
upport/car/test/CarRadioManagerTest.java
7965fa2ad142d4ce092dcdb98dffc019f59192d1 05-Jan-2016 Steve Paik <spaik@google.com> Revert "Revert "Rearrange HVAC properties""

This reverts commit daab121bb07509d551ed1199872b10cd209c83f0.
upport/car/test/CarHvacManagerTest.java
94fac063f86210c98454b921d2f4bd6d980813b9 21-Dec-2015 Keun-young Park <keunyoung@google.com> fix missing copyright

Change-Id: Icba8c7fde0de7b3b46ec178927385e5124b0f388
upport/car/test/CarPackageManagerTest.java
4aeb4bf0c56588be65264c324bbaaa545ad6714c 09-Dec-2015 Keun-young Park <keunyoung@google.com> add app blocking api

- launches CarAppBlockingPolicyService and read Policy on startup
- also provides setAppBlockingPolicy API
- not working fully due to missng framework api but only sets internal
state for now.
- also fixed some build warnings
- also renamed all permisisons to android.support.car
- remaining TODO:
monitor app install / uninstall and re-activate policy
plumb framework side policy setting

bug: 25261583

Change-Id: I6da09468c95a28f2e3d7d59e6e91279ca018239b
upport/car/test/CarPackageManagerTest.java
upport/car/test/TestAppBlockingPolicyService.java
daab121bb07509d551ed1199872b10cd209c83f0 16-Dec-2015 Steve Paik <spaik@google.com> Revert "Rearrange HVAC properties"

This reverts commit 6e104ad157362984d15a58525c8f0f1aaaad3319.

Change-Id: I7beb1142c0cc57f90a27652324689e0722252202
upport/car/test/CarHvacManagerTest.java
6e104ad157362984d15a58525c8f0f1aaaad3319 11-Dec-2015 Steve Paik <spaik@google.com> Rearrange HVAC properties

Removed separate DEFROSTER_FRONT and DEFROSTER_REAR properties
since DEFROSTER is a windowed property.

Replace HVAC_ZONE* with VehicleNetworkConsts.

Update VehicleNetworkConsts.

Change-Id: I26f8fcab3ee87540b2de8e4ad26c40a647c1f5ce
(cherry picked from commit 748e5253654a24ed9fc5a542a8908ca394c40db5)
upport/car/test/CarHvacManagerTest.java
aaeffaff85979583b1826db759b5cdb6184559d5 26-Nov-2015 Keun-young Park <keunyoung@google.com> add libvehiclenetwork-audio-helper

- with c wrapper
- update vns to pass event when internal property is set while in
mocking
- fix bug in VehiclePropValueUtil::copyVehicleProp of deleting non-
string type.

bug: 25330290

(cherry picked from commit f1b41f92b11e78373f423343b23229d19cdf0af2)

Change-Id: I54ae1faed1f67528bd2928ce23b53c16d19fcab2
upport/car/test/CarAudioFocusTest.java
6648198ce8f3129886038d9c80b63b96b8a0ee3e 27-Oct-2015 Steve Paik <spaik@google.com> Add HVAC manager

BUG: 25261661
(cherry picked from commit a2b4b01f64d174a23ea77d990d90a96ef13b5acc)

Change-Id: I36b9d76c851e953cf3ee1149c1d87f728f1db634
upport/car/test/CarHvacManagerTest.java
e4c90c4a615a4d5411a0cc49b75e002a305c858f 17-Nov-2015 keunyoung <keunyoung@google.com> add CarAppContextManager

- This replaces CarMessageManager and take care of
app state sharing like active navigation or voice
command.
- Apps can change the state and such change is
notified to other apps.
- The informaiton is sent down to vehicle HAL as well
to use that information for setting audio priority.
- added event count to VNS dump
- cleaned up unnecessary init/release in VNS's handler
- removed init from handler thread in car service vehicle hal:
this just brings race when things start queickly.

bug: 25261670

(cherry picked from commit 53729bb2d3600bc23a26553f1cc3cda7d1ea0b2c)

Change-Id: I48a0215c6c8b73b5db3a2b1890febb1320096b63
upport/car/test/AppContextTest.java
6b19769ee8cfbe0960d05ecfc01f73d08040784f 16-Nov-2015 keunyoung <keunyoung@google.com> add connection listener handling

bug: 25444839

Change-Id: I771537072bc087e6f8ec0fcff6352fe0c0e7e498
(cherry picked from commit ab1fbdcf4f22ad615bc9df8a1cf722c439aca1f2)
upport/car/test/CarConnectionListenerInMockingTest.java
4b0212c1b3576f4174c292bbcdd72815584ff075 30-Oct-2015 keunyoung <keunyoung@google.com> basic power management service

- handle boot complete and shutdown
- skeleton code for deep sleep added. Complete
implementation requires kernel interaction which is TBD.
- handle display on / off with keeping display on with wakelock
- added interface for implementing garage mode
- tested with hal mocking only

bug: 25348217

Change-Id: Iae64ee7a16c861edd5473e392589e7e7213bd52b
(cherry picked from commit 099bc004632a2d274a11a5c436d718cba362ddc6)
upport/car/test/CarPowerManagementTest.java
a74b9caa2fb6435f1c01c5e8766b89235c4e3d5a 21-Oct-2015 keunyoung <keunyoung@google.com> add basic audio focus handling

- added skeleton CarAudioManager (not plubmed yet)
- added external vs internal radio distinction
- basic external radio use case working with test
- basic focus handling verified with added test cases

bug: 25331859

Change-Id: I4a4439336673b695f38eb11e9aa0d5a6090ee1b2
(cherry picked from commit 2a5c2eed85832331f9baa74569b3dc735a7c61ff)
upport/car/test/AudioRoutingPolicyTest.java
upport/car/test/CarAudioFocusTest.java
upport/car/test/CarAudioTest.java
upport/car/test/MockedCarTestBase.java
3cf096ae0d992d22cfba1b0711af2211c511a9fe 13-Oct-2015 Sanket Agarwal <sanketa@google.com> Add CarRadioManager.

* Adds CarRadioManager for app clients.
* Adds CarRadioService which compliments CarService.

Change-Id: Id6612bb7a35edca70686134650e3a6b8bbe5a972
(cherry picked from commit 77732d0251dd0178922063bbce7982b635a9387f)
upport/car/test/CarRadioManagerTest.java
5c7cb266f8900450c2ab41802b079b02f14d707f 19-Oct-2015 keunyoung <keunyoung@google.com> add audio routing policy configuration to audio service

- audio routing policy is read from config.xml.
- There can be multiple policy and AUDIO_HW_VARIANT property
chooses which one to use.
- added mocking test to verify the policy setting.

bug: 25126797

Change-Id: Ia9d6fad90f6536dddd79a56be514f6f3afb56270
(cherry picked from commit 1e1fdf6387b0ec4333c0d06a21b8f482590db3aa)
upport/car/test/AudioRoutingPolicyTest.java
564742eab88bd68075e13b0b6505f637250f3fbc 17-Oct-2015 keunyoung <keunyoung@google.com> sensor renaming and add carservicetest
- move sensor API to android.support.car.hardware and
- move mocked test to carservice_test
- api_test will only use car API to test

bug: 23147726

Change-Id: I0f6870b6714b4042ec1213edb8500548cf789a8a
(cherry picked from commit abbd2b29e7dca10d1b9384767ab587fa314fe5b6)
upport/car/test/CarAudioTest.java
upport/car/test/CarInfoManagerTest.java
upport/car/test/CarSensorManagerTest.java
upport/car/test/MockedCarTestBase.java