History log of /packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4d257023389c23b8836f10cda1bfa1ea136f56c9 27-Apr-2018 Steve Paik <spaik@google.com> Create CarPropertyService and CarPropertyManager

CarPropertyService replaces Cabin, Hvac, Info, Sensor,
and VendorExtension services.

Bug: 78782959
Bug: 36649684
Bug: 68056035
Test: runtest -x packages/services/Car/tests/android_car_api_test
runtest -x packages/services/Car/tests/carservice_unit_test
Change-Id: I69756654473fe66ef95e9e2cd4f3c1045e3ac938
Merged-In: Ic0a94805f83cc0222fb2bcf9674b6031bc050986

(cherry picked from commit fc0257133967edcb217e07e9ab942690eeaae3de)
(cherry picked from commit 0265d8348716b2971f76e697f410f4cf7128371c)
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
20526258de542b521b630079513059d08c08efdb 30-Mar-2018 Steve Paik <spaik@google.com> Cleanup after updating VHAL

This CL cleans up the mess created after we revised VHAL's type.hal.
I also removed CarRadio* since that is deprecated.

Bug: 77301298
Test: It compiles
Change-Id: Iad881373ab555da7e282349f5519f0882c5cd0cd
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
5cd00cb14ad8c8e6a05eb494831d028886d385a1 12-Feb-2018 Ram Periathiruvadi <ramperry@google.com> Dumpsys command to inject a float VHAL event.

Also, refactor the code to reduce code duplication. Rearranged the
inject event commands so we have
1. adb shell dumpsys activity service com.android.car
inject-vhal-event property [zone] value

Bug: 73239742
Test: adb shell dumpsys activity service com.android.car
inject-vhal-event 0x11600207 30.0 - injects 30mph speed event.

Change-Id: Idbc75b17532b95608a0540735ae3dcf632de1cb2
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
382ceee63f079dab526fcd213dfe352124002a65 23-Jan-2018 Steve Paik <spaik@google.com> Refactor VHAL

Part of VHAL refactor:

- Remove VehicleZoneUtil class + test
- Rename COMPLEX type to MIXED
- Remove zone/areaId from subscribe()
- Remove supportedAreas from VehiclePropertyConfig class
- Add status and timestamp fields to VehiclePropValue
- Update tests

Bug: 72348165
Test: Compiles
Change-Id: I379ab658c235f1ab1fb979cc27e21cad17261751
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
804673d9c52d43ee38bdf1c86987bb43e370ed18 10-Oct-2017 Asaf Rosenfeld <asafro@google.com> Enable GetVmsHal in VehicleHal.

Test: all tests pass
Change-Id: Ia99b35bf6ffb3aac8cc9b3db300b6cc0b4c8f81c
(cherry picked from commit f69012651011023d02c09f9c5dbca15b60e969c3)
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
30557233bd224b3416dda11b57288d3ea0ee55e4 02-Jan-2018 Hongwei Wang <hwwang@google.com> Cleanup audio hal layer

- Deprecated CarVolumeController
- Deprecated CarVolumeService
- Deprecated VolumeUtils
- Deprecated AudioHalService

TODO next

- CarAudioService should maintain the min/max/current volumes
- CarAudioService should be in charge of setting gain on device ports

Bug: 65751827
Test: lunch bat_land-userdebug && m -j // vorbis codec is broken on
master, can not really test the actual audio output

Change-Id: If3bf229976839f00b8d6dfa152bfff52d5b91405
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
ed3d59bbe179399a8520ea137cda14f018c9068d 10-Nov-2017 Brad Stenning <stenning@google.com> Wrap dump calls in a try catch so that if one fails it does not take down
the rest.

Test: run adb shell dumpsys activity service com.android.car/.CarService
Change-Id: Id9cebfb7a2a31d8d634913379494d5964f43ed66
(cherry picked from commit 46e54ff20c3253e3ff1788f25241fb0048c0d969)
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
8edd2555182213bc576d0493fffe0973368e22c2 18-Sep-2017 Pavel Maltsev <pavelm@google.com> Move car service test cases to original package

Sharing package name between test and its target will require only
package-private API exposure instead of public.

Bug: 36189057

Test: runtest -x packages/services/Car/tests/carservice_test/

Change-Id: I3b0677c22d929f50b39d95dc0dc7b26d374236f1
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
39e4f034a93dc2abbbf28ac8a5c09f6612fdaba3 16-Sep-2017 Asaf Rosenfeld <asafro@google.com> Making VMS a @SystemAPI

This CL should go in the Pi/Master and O.Car.MR1 branches.
Test: I built an image w/o @FutureFeature enabled and verified all the tests pass. Also fixed a test flakiness.

Change-Id: I50495d6264c7932b670a4fae456d7f89ab5c1e55
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
41c5ac61eaf4ad26c7fe16ee3fe961b843e5f1e1 12-Jul-2017 Enrico Granata <egranata@google.com> Remove a few left-over @FutureFeature markers from diagnostics API

Test: build & sync
Change-Id: I37fcfda1e4db38929ddce08e7ed1f4a5781a292d
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
baa6c77721885baeb49699ec3f91109c4244300b 25-Apr-2017 Pavel Maltsev <pavelm@google.com> Merge "Adding more benchmark tests for Vehicle stack" into oc-dev am: 4055b6a843
am: 416ef55a64

Change-Id: Ide09a1b48de65cbef48bb5ca32323915350800a7
45e59a01ae0d00694743b49b6e3135ad97557e6f 20-Apr-2017 Pavel Maltsev <pavelm@google.com> Adding more benchmark tests for Vehicle stack

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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
d9550e7682ad102d87c53bce8e1feb5e01aa5bf2 17-Apr-2017 Pavel Maltsev <pavelm@google.com> Merge "Initial e2e Vehicle s/w stack infrastructure" into oc-dev am: 54558e083d
am: 800fd6bd08

Change-Id: Ic0c3bb1944b0c84882d8846bfa31bc9e9978a0b2
54558e083dcbb0a7a37604793ffe057fb8de13eb 17-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Initial e2e Vehicle s/w stack infrastructure" into oc-dev
82c20cdd99601923df556b99114ad5d186821977 11-Apr-2017 Pavel Maltsev <pavelm@google.com> Initial e2e Vehicle s/w stack infrastructure

Also, fixed some sensor mapping between CarSensorManager and VHAL

Bug: b/36510399

Test: runtest -x packages/services/Car/tests/vehiclehal_test/
Change-Id: I556e03402c16a3b2c8cb25d7a048f8c9a072e23b
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
de714b773b65912577ead6b2b55011d3007b07ce 24-Mar-2017 Pavel Maltsev <pavelm@google.com> Implement support of AUDIO_STREAM_STATE property

Fixing Audio tests

Fix: b/33235166
Fix: b/36524594
Fix: b/36790725

Test: runtest -x packages/services/Car/tests/carservice_test
Change-Id: I7d9dade59ce81342d859239f2e3e9a360008e7d3
(cherry picked from commit 79d5e12ad8708c1f7f7f1a60aaeb349ac7ed0f7b)
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
6e3d656d5d0b082fe119c506a7e3dfdc5cc19ec9 30-Mar-2017 Antonio Cortes Perez <antoniocortes@google.com> Merge "Removing obsolete TODOs"
80b3222be22d93a5525ae562a0b64145eb85941d 29-Mar-2017 Antonio Cortes <antoniocortes@google.com> Removing obsolete TODOs

So far there has been no use case for a vms test hal.

Test: build
Bug: 36724405
Change-Id: Ia3f6497dc85c7c2b583eeabda910d0f875948bd8
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
49d5a5a4b57b38abbfb6e83fcbaf066cba595c07 18-Feb-2017 Ram Periathiruvadi <ramperry@google.com> Adding IGN State START as a BT AutoConnect trigger

Bug: b/34723490
Test: Tested by adding a inject fake Ignition State Change event
adb shell dumpsys activity service com.android.car inject-event
global-integer 0x11400409 5

Change-Id: I26eff96da5b0987d2e261848c015af62ce238e0a
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
bf81d446ca5938598c17707edf50ec2a4faf8bcf 15-Feb-2017 Ram Periathiruvadi <ramperry@google.com> Merge "Fixing Bluetooth Car policy bugs for auto-connect."
ee28c00d9a031c7316e47027482d8d6178574f35 08-Feb-2017 Ram Periathiruvadi <ramperry@google.com> Fixing Bluetooth Car policy bugs for auto-connect.

- Write device list to file on state changes - b/34723579
- Verify device after successful connection - b/34723492
- Only add device to device list for profiles that it connected on -
b/34723683
- Add MAP client to list of to-be-connected porfiles - b/34723437
- Fix NPE in Emulator builds that don't have Bluetooth Adapter -
b/34887372

Bug: b/34723579
Bug: b/34723492
Bug: b/34723683
Bug: b/34723437
Bug: b/34887372
Test: Manual testing of auto-connect by injecting fake Cabin events via
adb shell dumpsys activity service com.android.car inject-event
0x16200b02 1 false

Change-Id: I2bff6730ebfac2dd4ebbdcb57a130c23235c3b61
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
5c56d2a3a5bc4ef5b46a58fa56b7f4a657b0827e 08-Feb-2017 Enrico Granata <egranata@google.com> Post-O. Sketch out CarDiagnosticManager API surface

Provide an implementation of all layers required to plumb CarDiagnosticManager through:
* CarDiagnosticEvent
* DiagnosticHalService
* CarDiagnosticService
* CarDiagnosticManager

If FutureFeatures are enabled, this is integrated end-to-end enough to run trivial tests of the API

Test: build with TARGET_USES_CAR_FUTURE_FEATURES=true then at a shell runtest -x packages/services/Car/tests/android_car_api_test/ -c android.car.apitest.CarDiagnosticManagerTest
Change-Id: I0f2aafd039d26fec15182dd7029cf8c7995ce85b
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
a6845c3f0a6c0ea90aebc20e8cb89baa204ba76d 06-Feb-2017 Antonio Cortes <antoniocortes@google.com> Protecting VmsHalService with the future annotation and future flag.

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: Ia547ebf9332c3ba2a6aecc337d2b4c7318a761ca
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
734010a5a3ef5d38f3b178358c9069ccd9001b4a 20-Jan-2017 Antonio Cortes <antoniocortes@google.com> VMS skeleton code - Part 1

Create all the classes/interfaces to publish/subscribe to a
test VMS protobuf. This change will be split in 3 parts:

- VmsHalService.
- VmsService.
- VmsManager + Unit tests.

This change implemets the first part.

Bug: 34465511
Test: Flashed a Mojave board and verified there was no Car service
crashes.
Change-Id: Idac35240163fc14e4a65260bce3757f716bbcf3b
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
aef08383ef08533a411e328507b376f097143fd0 03-Jan-2017 Steven Moreland <smoreland@google.com> Catch RemoteExceptions in HalClient.

Bug: 33673120
Test: wip
Change-Id: I0b4427c3c6a1518809b9d358e3ce1897960590e8
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
1a0d6548b68137b29a4e1c5aa958de263015695d 14-Oct-2016 Keun-young Park <keunyoung@google.com> fix wrong area type mapping in hvac

- wrong id was used to get zone type
- also added more info to dump and test log to make debugging easier.

bug: 32171021
Change-Id: I9562edae7638e2acc6bf8f342e51c07c3b9e9cd0
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
f9215209e0f425d2fc570bef37dad959c82d2e9e 10-Oct-2016 Keun-young Park <keunyoung@google.com> update TODOs

- assign bugs for future items
- remove it if not necessary any more
- also remove unused CarServiceApplication

bug: 31970410

Change-Id: I3f5ecb8a80fd450afdb58007e07e88527132edb9
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
fb43d3da2415ad63ae9bdb170210ec02888beedc 30-Sep-2016 Vitalii Tomkiv <vitalit@google.com> Merge "Change logging for car packages." into nyc-car-dev
1b1247b5648975dd41ee73c25425825abb256234 30-Sep-2016 Vitalii Tomkiv <vitalit@google.com> Change logging for car packages.

Removed PII information.
Disable all debug logging by default.
bug: 31811554
Test: manual build.

Change-Id: If95a27a1bb514f79f2acd65c21f5e7b29345a361
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
b0324b44ecec50074733ac3e0aad6a80a324e4c0 28-Sep-2016 Pavel Maltsev <pavelm@google.com> Add on-property-set listener to VNS

Change-Id: Id0b0fb15f42e1af0ca4899ea625bcc77f1320db7
Fix: b/31656523
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
437ab41da9003adc6ebe0ea639d42f32b0d0904c 16-Aug-2016 Pavel Maltsev <pavelm@google.com> Use blobs for strings and byte array properties

Use readBlob/writeBlob methods for property values of type string and byte[]
to avoid TransactionTooLargeException
Misc: added additional dump info to VehicleHal service

Change-Id: Ica7553e7d1b2ae6d43f57e02e490fa6e5fa01b18
Fix: b/30634124
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
c3bdeae67c2d586bb06da8b75af11825d6c44d70 26-Jul-2016 Pavel Maltsev <pavelm@google.com> Merge "Fixed byte array and string support" into nyc-car-dev
1bfbaefca024bef21ba88f4c3c9620e1fe74fd35 25-Jul-2016 Pavel Maltsev <pavelm@google.com> Fixed byte array and string support

Added more tests for CarVendorExtensionManager

Change-Id: I49e9f13c176d18a2cff10e04b33b0589b08217bf
Fix: b/30285222
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
4d6088c24c242a70a03238db1f1241c882e8e868 21-Jul-2016 Steve Paik <spaik@google.com> Check access mode in Vehicle HAL before subscribe / unsubscribe

Some properties are write-only and may not be subscribed. This rule is
enforced in the Vehicle HAL.

Also update auto-generated files.

Change-Id: I4e9ab15a44d98cf5ed2cbd311509c1986b28946b
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
634e1ff49c62c32c8227ec5092743de3caca790c 15-Jul-2016 Pavel Maltsev <pavelm@google.com> Implemented CarVendorExtensionManager

Also, some refactoring like omitting excessive
synchronization and reworked takeSupportedProperties from
being exception driven in PropertyHalServiceBase.
Change switch/case statement to SparseIntArray, it has
some maintanance and performance benefits.

Change-Id: Ie9e9239718d6fb50801a616b823a20567237ac95
Fix: b/28244032
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
43c04a7c87404d078db60e09d2da0061d72357c2 09-Jul-2016 Steve Paik <spaik@google.com> Add CarCabinManager

BUG: 27225448
Change-Id: I652f8e27c3921e23e0860df6d79623ac0057e377
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
97e46ebe8ff48994e4cb3952af272fb1ef137fb0 10-Apr-2016 Keun-young Park <keunyoung@google.com> dump event delivery

- for tracking vehicle network issues

bug: 28099353
Change-Id: I03db4accb33170ea78217a7cd75598d6c723aecb
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
a28d7b201584823286f26e21a9f30d07c416eb3e 01-Mar-2016 Keun-young Park <keunyoung@google.com> add input service

- CarInputService monitors input event through vehicle hal
and handle it by itself (for now, VOICE_ASSITANT only),
deliver it to other relevant component,
or inject as android key event into kernel input device.
- renamed jni to jni_car_service
- added kitchensink input test.
- From kitchensink test, single touch of volume key does not work
as touch event in other window mess things up. But long press should
work. It will work in real physical keys.
- TODO: android key to linux key mapping should be expanded
for all possible keys.

bug: 27461452

Change-Id: I51e4b64bcd3c745f27ebb089fafce536be91f04d
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
450fabaf451f8474bf9ee536427f9dd473e52e8b 11-Feb-2016 Keun-young Park <keunyoung@google.com> fix min/max swap in hvac with more debugging features

- fix min/max swap in CarHvacProperty constructor
- dump all properties in VNS and car service
- expand min/max value in config to vector types

bug: 27136576

Change-Id: I383b0580137eda38d8a721ff903b031954500c0d
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
fd3fbf7875685aa59330fac32d45e3fff414f6d0 23-Jan-2016 Keun-young Park <keunyoung@google.com> implement earlier completion of garage mode

- also improves synchronization
- fix possible race when power state change happens often
- fix no onPowerOn call for initial power on
- add unit testing for CarPowerManagementService

bug: 26718816
Change-Id: I0c7085caa595675c70c1bd99c3db5b7f89d1edbf
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
28dd47033198a502b18b0363b98ad030ea1789cc 20-Nov-2015 Keun-young Park <keunyoung@google.com> add error and hal restart monitoring with other cleanup

- add separate thread dispatch in native VehicleNetwork api.
- fix deadlock in binderDied: do not access HAL with lock held.
- fix missing sp in HandlerThread usage.
- add error listening and hal restart monitoring to binder callback.
- clarified mocking behavior:
clients listening for global error or HAL restart is not cleared by
mocking but client subscribing properties are all cleared and should
subscribe again.
- added native tests and Java tests to test mocking

bug: 24095928
(cherry picked from commit a116a2009ac8966b16cba1ab98d37ad8c537ab02)

Change-Id: I247c64dcb8722a678ed1c2e950a215a193a5e991
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
6648198ce8f3129886038d9c80b63b96b8a0ee3e 27-Oct-2015 Steve Paik <spaik@google.com> Add HVAC manager

BUG: 25261661
(cherry picked from commit a2b4b01f64d174a23ea77d990d90a96ef13b5acc)

Change-Id: I36b9d76c851e953cf3ee1149c1d87f728f1db634
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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)
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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)
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.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)
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
1ab8e18e01d8063821bee0bf641a365224c7e1ee 24-Sep-2015 keunyoung <keunyoung@google.com> Add vehicle HAL mocking with carsystem and carsystemtest API

- System API and system test API for testing only added. Client
should link only one of them.
- vehicle HAL mocking allows mocking vehicle HAL completely.
- Once mocking is started, for now, all previous states are forgotton,
so stopping mocking does not return to original state. It is
better to simply restart framework after test.
- Added skeleton code for audio focus handling. Detailed implementaiton
will be added later.

bug: 24874617

Change-Id: I6e60daab3dc96769a94acc09a695f8f49dbb8536
(cherry picked from commit a32e24f50d5895a94d3a13d6ec2233af6e43dac5)
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
d32f4e69d861d0adc2ae8f18345143f253d6fcec 21-Sep-2015 keunyoung <keunyoung@google.com> add VEC2/3/4 for int32/float and add audio handling

- internal property is propagated internally, not to HAL.
- added skeleton code for audio focus handling.
actual implementation will be added later.

bug: 23785833

Change-Id: Icb6ad32307e2a4036dbf235538ed0c4e5b06f68d
(cherry picked from commit 92362d576b4057b989b96e980c542cc38c3a33e8)
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
fe30ba00aec2fd5936b17439f392a053ec54ec9a 18-Sep-2015 keunyoung <keunyoung@google.com> migrate car service to use vehicle network service

- all jni stuffs gone as HAL is no longer loaded by car service
- disabled dispatch limiting in CarSensorService as vehicle
network service is already doing it.
- needs product config change to start VNS for CarService to work.

bug: 24095928

Change-Id: I5d7b2ae7efb24daf23f304db4def0c4f9a519b25
(cherry picked from commit 3f3190ce58955eda2730331c825ebd6433dab42d)
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
a3b28d81e0c8df531ac704f9e649e38ea90483d2 25-Aug-2015 keunyoung <keunyoung@google.com> add CarInfoManager

- CarInfoManager replaces ICar.getCarInfo() and ICar.getCarUiInfo()
- also remove CarInfo and CarUiInfo. All these information should come
from CarInfoManager.
- Key declaration uses annotation to declare which data type is expected
for the given key.

bug: 22701368

Change-Id: Ifc9ab27d146b439a89fd4249fe3317abec6fd21f
(cherry picked from commit b8f5acabb4b049021d2be2215cd64ca907522f29)
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java
cc449f7941456a0133ff8a4b2e49737f0936c1d0 12-Aug-2015 keunyoung <keunyoung@google.com> More details in Hal with sensor pipeline improvements for batching

- updated CarSensorEvent to use int array instead of byte as most
use cases involve int value manipulations.
- removed unused sensor types in CarSensorManager. They can brought back
later as necessary.
- CarSensorManager subscription works for several sensors.

bug: 22701368

Change-Id: I2fb8901fe5266693aeae5f1b3f2b3adb75056a93
(cherry picked from commit d68bc574a27aee0fb6750ed301d247645d7bbb1e)
/packages/services/Car/service/src/com/android/car/hal/VehicleHal.java