aboutsummaryrefslogtreecommitdiff
path: root/car-lib/src/android
AgeCommit message (Collapse)Author
2017-06-09Merge "Adding fusion bit to VmsLayer to enable clients to publish and ↵Asaf Rosenfeld
subscribe to fused layers explicitly, Will add more tests that cover fused vs. non fused offering and availability as part of HAL (property) integration."
2017-06-09Adding fusion bit to VmsLayer to enable clients to publish and subscribe to ↵Asaf Rosenfeld
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
2017-06-05Merge "add skeleton for CarServiceHelperService support"TreeHugger Robot
2017-06-05add skeleton for CarServiceHelperService supportKeun-young Park
- CarServiceHelperService is system server side companion for car service and it launches car service and provides ICarServiceHelper interface. - Remove BootReceiver as CarServiceHelper is launching car service bug: 62342376 Test: confirm boot-up Change-Id: Ieae18dffe054eceb0e7840aba4e09769dae40687
2017-06-02Fix Bluetooth failing to connect after pairingRam Periathiruvadi
After successful pairing, supported profiles between 2 devices was not connecting automatically, if the device was previously paired and unpaired. This is because, unpairing sets the priority of the profile for that device to UNDEFINED. Hence, subsequent pairing attempts fails to connect, since the Bluetooth profiles ignore connection requests when the priority is not set to ON or AUTO_CONNECT. So, its upto the Device's Bluetooth policy to set the priority of supported bluetooth profiles per remote device to ON, everytime it pairs to a remote device. For Carkit, we do this in its BluetoothDeviceConnectionPolicy. For phones, it is done in PhonePolicy. Bug: b/38500587 Test: Tested by pairing and seeing the supported Car Bluetooth profiles connect automatically. Also, checked the saved priority for the profile per device in Settingsglobal content provider by querying adb shell content query --uri content://settings/global Change-Id: Ie102a0923022d844106bdb864cbd57c4ab5aa19c
2017-05-25Adding Publisher ID support to non-hal clients.Asaf Rosenfeld
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
2017-05-10Merge "Add APIs to CarDiagnosticManager to check whether specific features ↵TreeHugger Robot
are enabled"
2017-05-10Add APIs to CarDiagnosticManager to check whether specific features are enabledEnrico Granata
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
2017-05-06Enable Vehicle HAL 2.1 and Diagnostics by default in master.Enrico Granata
Bug: 37246134 Test: verified VHAL 2.1 running via lshal and logcat; verifed diagnostic_injector.py can inject diagnostic data Change-Id: I49d20de2a440cf45d2a0928fe43197e491a0ba66
2017-05-01s/FRAME_TYPE_FLAG/FRAME_TYPE/Enrico Granata
FLAG is misleading because these are not bitwise masks, but just identifiers of frame types. Test: manual in KitchenSink Change-Id: Ieed237ad6cb36bcec36c77d9a4ec5bc89edeaaba
2017-04-28Merge "Fix an issue with removal of diagnostic listeners registered for both ↵Enrico Granata
frame types"
2017-04-28Fix an issue with removal of diagnostic listeners registered for both frame ↵Enrico Granata
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
2017-04-27Merge "Bluetooth Auto-connect per user, fix multidevice connections"TreeHugger Robot
2017-04-27Fix a few typos in the diagnostics codeEnrico Granata
Test: build Change-Id: I10788e565a39c3be6462b13f454fbea41ca6b7e8
2017-04-26Bluetooth Auto-connect per user, fix multidevice connectionsRam Periathiruvadi
When auto connecting to devices on bluetooth, store and try devices per user. Added a CarUserService that is created for the current user on UserSwitch. The CarUserService deals with scenarios where the CarService, running as a System User, doesn't get to listen to events from processes running as the current user. Fix the issue where when 2 phones were connected on HFP, auto-connect only connects to one. Other cleanup and slight code re-org Bug: b/35324581 Bug: b/37305537 Test: Manually tested by switching between different users and connecting to multiple phones. Change-Id: I53583bee9ed1ff1a6bfd20363d4544efd2cc152f
2017-04-24Merge "Adding more benchmark tests for Vehicle stack" into oc-dev am: 4055b6a843Pavel Maltsev
am: 416ef55a64 Change-Id: Ide09a1b48de65cbef48bb5ca32323915350800a7
2017-04-24Merge "Adding more benchmark tests for Vehicle stack" into oc-devTreeHugger Robot
2017-04-21O API: hide VMS related stringsDemyn Plantenberg
Removed the @SystemApi annotation from VMS strings. Test: find packages/services/Car/tests/ -name 'Vms*Test.java' -exec development/testrunner/runtest.py -x '{}' \; Fixes: 37510921 Change-Id: Ib71cd8d1fe0e537553fccb38b23d487ae812ebe5
2017-04-20Adding more benchmark tests for Vehicle stackPavel Maltsev
Also, change mapping of predefined frequence, if client specify SENSOR_RATE_FASTEST us maximum available rate from vehicle property configuration. Allow users to use all predefined SENSOR_RATE_* Test: runtest -x packages/services/Car/test/vehiclehal_test Bug: b/36510399 Change-Id: Ica466c0ff35161cd1e580ad3da2c87d8b844795e Fix: b/37538698
2017-04-20Add equals() and hashCode() to CarDiagnosticEvent.Enrico Granata
Change-Id: I0549e0d7bd2504644f8b989580b3c0ac77d4d8df Fixes: 37541578 Test: runtest -x packages/services/Car/tests/carservice_test/src/com/android/car/test/CarDiagnosticManagerTest.java
2017-04-20Merge "Remove @SystemApi marker from diagnostics API fields. The diagnostics ↵Enrico Granata
API is not meant for O." into oc-dev am: 4ad2be2e62 am: 81703c5fe7 Change-Id: I6529d40ac2970fec0fc81f6a4b325beac4411cf2
2017-04-20Merge "update Car.VERSION and add old API snapshot" into oc-dev am: df97b6c44bKeun-young Park
am: 5351af5fa2 Change-Id: I0b86d131c157e9d1a39b811c720ce63cf05b7295
2017-04-20Merge "Remove @SystemApi marker from diagnostics API fields. The diagnostics ↵TreeHugger Robot
API is not meant for O." into oc-dev
2017-04-19Remove @SystemApi marker from diagnostics API fields.Enrico Granata
The diagnostics API is not meant for O. Bug: b/37509437 Test: build Change-Id: I70f30caa8cd0b234b9199c917a160fb9fe0cb856
2017-04-19update Car.VERSION and add old API snapshotKeun-young Park
bug: 36789624 Test: build Change-Id: I6de31f31392578e8bde58cddd88d4f5103473de2
2017-04-17Merge "Fixing sync in Car(Sensor|Diagnostic)Manager" into oc-dev am: ad042e580fPavel Maltsev
am: dfb123f051 Change-Id: I596c0fc2c9a6ded065a4f6cfd4f23739e11fe210
2017-04-17Fixing sync in Car(Sensor|Diagnostic)ManagerPavel Maltsev
Bug: b/37254546 Test: verified e2e tests no longer crashing with ConcurrentModificationException Change-Id: I2e295bfec36f6e0b4a6c4187ad8d8c7eaf9250c7
2017-04-06Add code to convert a CarDiagnosticEvent into Diagnostic JsonEnrico Granata
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
2017-04-06Merge "Adding availability HAL support"Asaf Rosenfeld
2017-04-05Adding availability HAL supportAsaf Rosenfeld
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
2017-04-04Remove deprecated CarCamera interfaceScott Randolph
CarCamera is being replaced by the EVS HAL and manager. See hardware/interfaces/automotive/evs and packages/services/Car/evs Test: build full tree Bug: 36900851 Change-Id: I691c4dc07491d51158f109c79c93f0748186bfc6 (cherry picked from commit 251fb78dc11923820402156e251b6029175eaa73)
2017-03-31Updating unsubscribeAll to follow the same pattern of unsubscribeAntonio Cortes
Ignore RemoteException and CarNotConnected exception in unsubscribeAll. Test: build Bug: 36724405 Change-Id: I35b37d43f70a2f55a401781dcb8ac6017c7a9dad
2017-03-30Improvements to VmsSubscriberManagerAntonio Cortes
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
2017-03-28Remove deprecated CarCamera interfaceScott Randolph
CarCamera is being replaced by the EVS HAL and manager. See hardware/interfaces/automotive/evs and packages/services/Car/evs Test: build full tree Change-Id: I691c4dc07491d51158f109c79c93f0748186bfc6
2017-03-27Merge "Add a class to calculate the available layers out of the publishers ↵Asaf Rosenfeld
offerings"
2017-03-27Add a class to calculate the available layers out of the publishers offeringsAsaf Rosenfeld
Change-Id: I053a1d45e197f78891168269f2d4fbff258e2e29 Test: created a new test and all VMS 4 tests are passing.
2017-03-24Guarantee an increasing sequence in the onVmsSubscriptionChange messageAntonio Cortes
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
2017-03-23Updating VMS interfaces to use VmsLayer.Antonio Cortes
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
2017-03-21Merge "Adding availability support to VMS subscribers"Asaf Rosenfeld
2017-03-21Adding availability support to VMS subscribersAsaf Rosenfeld
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
2017-03-17Clean and fixes for availability interfaceAsaf Rosenfeld
Change-Id: I5bdcd2dad2d87865fd2d2c60295da32bbfde99cf Test: all VMS tests pass
2017-03-17Merge "Adding a class to describe a single VMS dependency. Adding a class to ↵Asaf Rosenfeld
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"
2017-03-16Adding a class to describe a single VMS dependency.Asaf Rosenfeld
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
2017-03-16Automatically generate the Java list of OBD2 sensor indices from the HIDL ↵Enrico Granata
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
2017-03-14Return all the layers when reporting subscription dataAntonio Cortes
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
2017-03-13Making VmsLayer parcelable.Antonio Cortes
It is going to be used in the aidl interfaces. 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: Ib03b2e2412028f08d8dae6e5d98eceeee9c48f22
2017-03-10Code cleanup: removing unused code and updating obsolete comment.Antonio Cortes
Test: Build Bug: 36119432 Change-Id: I246ecc000d70634ee0cb1e977f15420a96d369c6
2017-03-04Merge "Integrate routing manager: * subscriptions request from the HAL and ↵Asaf Rosenfeld
Subscribers Manager reach publishers. * data from Publishers Manager and HAL reach subscribers."
2017-03-03Integrate routing manager:asafro
* 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
2017-03-02Add a test case for CarDiagnosticManager API entrypointsEnrico Granata
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