Commit graph

288 commits

Author SHA1 Message Date
Kiran Rachuri
74570ecb71 Add HVAC properties
Bug: 79265187
Test: Build and flash locally. Test using GAS Vehicle APIs Test App
Change-Id: I3e127af55716c29eddc4f844e431a9efb397afa0
2018-05-05 08:08:10 -07:00
TreeHugger Robot
e6da8cb609 Merge "Update Android.bp via update-makefiles.sh" into pi-dev 2018-04-20 09:21:55 +00:00
Michael Butler
23ee97e748 Update Android.bp via update-makefiles.sh
When calling update-makefiles.sh there are
some unrelated changes that were missed in
previous commits.

Bug: 68112778
Test: mma
Change-Id: I22b76f3d5bcd084afd2f06e613d2f9f37c1a0c9c
2018-04-18 19:34:10 +00:00
Scott Randolph
7400d1c5f5 Update VHAL comments to clarify useage
Window position and motion updated.
Also added comments calling out explicit temperature units.

Test:  Build mojave
Change-Id: If283a5f0de1ff6e9b2d3c21bcd652de55e2d7046
Bug: 77983671
2018-04-18 08:59:28 -07:00
Steve Paik
28b9f8be0b Update VHAL types.hal
Revised types.hal:
  - Add documentation to everything
  - Remove radio property
  - Update Power Manager properties
  - Cleanup formatting

Bug: 77301298
Test: It compiles
Change-Id: I05a1b3269092c05e7f56c57166d2aebe420d7f6a
2018-04-02 22:45:20 -07:00
Ram Periathiruvadi
899d09c3ff Merge "Deprecate DRIVING_STATUS vehicle property." into pi-dev 2018-03-30 20:37:50 +00:00
Enrico Granata
e0bce7913b Merge "Teach VehiclePropertyStore to not propagate the status value when a set() operation comes from Android" into pi-dev 2018-03-30 18:07:22 +00:00
Ram Periathiruvadi
b4ec3dd5cf Deprecate DRIVING_STATUS vehicle property.
DRIVING_STATUS is not required from VHAL.  It will be derived from other
car sensor vehicle properties in higher layers.

Bug: 71793754
Test: compile and boot.
Change-Id: Ia9f9aeb0e7ff0f16c66422ecb4dc9ad9c152a844
2018-03-29 15:43:32 -07:00
Pavel Maltsev
f0cd5e146a Extend VHAL test property to allow inject events
This is needed for e2e testing, specifically to emulate steering-wheel
buttons from KitchenSink app

Bug: 74616964
Test: manual through kitchensink app
Change-Id: I08de2404f9e17af6b08c2cb1f0fbdc45c655a405
2018-03-29 14:12:59 -07:00
Enrico Granata
8acfc2246a Teach VehiclePropertyStore to not propagate the status value when a set() operation comes from Android
The status field of a property represents properties of the underlying implementation and it should thus
be read-only to Android. Add a way for VehiclePropertyStore to be told whether it does (or does not) need to
propagate the field to the stored property value.

Test: build
Bug: 76034442
Change-Id: I333fab7e296f425cf5c4a35ae136ccfbaa542379
2018-03-27 16:29:40 -07:00
TreeHugger Robot
3df7964f07 Merge "Fix AP_POWER_BOOTUP_REASON to be static" into pi-dev 2018-03-26 19:03:04 +00:00
Enrico Granata
ad7b927993 Make toInt() a little bit shorter by moving std::underlying_type to a template argument
No feature change.

Bug: b/75328113
Test: build
Change-Id: I262493821da7bb06618680932cf93ec25671cfe4
2018-03-23 22:41:40 +00:00
Steve Paik
25aa123f7d Fix AP_POWER_BOOTUP_REASON to be static
Bug: 69284418
Test: VTS passes
Change-Id: Ia4816b4d9329c8bd02bf325aed6cfe5bdda30c70
2018-03-23 14:26:35 -07:00
Nathan Harold
c893754c0d Update Makefiles Missed In Previous Commits
When calling update-makefiles.sh there are
some unrelated changes that were missed in
previous commits.

Bug: 8675309
Test: compilation
Change-Id: I5bf67fbcc809de36bde1869ada7b835566a5198b
2018-03-19 16:37:46 -07:00
TreeHugger Robot
7371502a1f Merge "VehicleHal::set() should not be able to tamper with a property's AVAILABLE status Properties being (UN)AVAILABLE is used as a one-way communication mechanism from the hardware to the operating system, and not viceversa." into pi-dev 2018-03-17 03:43:20 +00:00
Enrico Granata
74268e6490 VehicleHal::set() should not be able to tamper with a property's AVAILABLE status
Properties being (UN)AVAILABLE is used as a one-way communication mechanism from the hardware
to the operating system, and not viceversa.

Add safety checks in our default HAL implementation to:
  - prevent Android from marking a property as UNAVAILABLE;
  - prevent Android from writing to an UNAVAILABLE property.

The combined effect of these two check is that only AVAILABLE properties are writable,
and they can never be flipped to UNAVAILABLE outside of the HAL implementation itself.

Bug: 74805437
Test: manual
Change-Id: Ib830427d604579015fa142f0fa76f8b73a68a452
2018-03-16 18:31:27 -07:00
Enrico Granata
0dd64f7b78 When writing a VehiclePropValue to the store, update its status
Bug: 74805437
Test: manual
Change-Id: I0269ae3b2584af3959d3fd3beaf06e3c4272f793
2018-03-15 17:16:10 -07:00
Scott Randolph
5f2568b2e1 Add VTS test for automotive AudioControl HAL
Difficult to verify results, but at least exercises the APIs.

Bug: 71614544
Test: adb push ...VtsHalAudioControlV1_0TargetTest /data/actst; adb shell
/data/actst
Merged-In: Ie900a4e47483ef881e00a4753097dbd09a0730a0
Change-Id: Ie900a4e47483ef881e00a4753097dbd09a0730a0
2018-03-09 22:03:32 +00:00
Steve Paik
1b48bba00e Add power properties
Refactor handling of property specific code in emulator.  The
AP_POWER_STATE property is different from other properties in the system
because it has different values for get/set.  Thus, it needs to be
special cased by the default emulator.

Bug: 32061842
Test: VHAL emulator
Change-Id: Ic325ef401abbcf09a7808a9eca01cbfe8b3cc94f
2018-02-26 14:51:26 -08:00
Kamaljeet Maini
8c0b8275a3 Revert "Add power properties"
This reverts commit fe360dec66.

Bug: b/73780849
Test: Build and flash locally
Change-Id: I19370fce3508439575c1e0587bcedd5ed4528e8e
2018-02-22 16:31:37 -08:00
TreeHugger Robot
40d59838e9 Merge "Add power properties" 2018-02-21 23:45:59 +00:00
Zhuoyao Zhang
81def5dbb1 Merge "Convert evs hal test to use VtsHalHidlTargetTestEnvBase" am: 9be06304d6 am: 7e4209ee06
am: 02d339c90f

Change-Id: Iea80193bcdeb7f6b02f5e013bcd135904c14b9a7
2018-02-21 22:36:26 +00:00
Steve Paik
fe360dec66 Add power properties
Bug: 32061842
Test: VHAL emulator
Change-Id: I39e73b57b0951566a692339b30bdce8bf2a33d12
2018-02-21 13:40:44 -08:00
Zhuoyao Zhang
5114c261fd Convert evs hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalEvsV1_0Target

Change-Id: Ifc086ad119d44ecb710e709d4928cc496698fe64
2018-02-20 10:09:09 -08:00
Aditi Nagaraj
666a2a22a1 AreaId is not expected for the Vms VehicleProperty
Bug: 72972190
Test: ran manager-unit-test on mojave
Change-Id: I7d7d93aca19aaa1abf67bd69b59c27e3f9140ed1
2018-02-13 11:08:42 -08:00
Steve Paik
27bfe5ce9f Merge "Add ENGINE_OIL_LEVEL, PARKING_BRAKE_AUTO_APPLY" 2018-02-06 19:33:13 +00:00
Scott Randolph
d17343bdbd Merge "Remove IAudioControlCallback for P" 2018-02-06 09:34:40 +00:00
Scott Randolph
786879b139 Remove IAudioControlCallback for P
Scale back the AudioControl HAL to include only the minimum necessary
controls for automotive audio.  Specifically remove support for the car
to interact with the application level audio focus.

Test:  Build mojave
Change-Id: I718c9d7175a72b9b6e29ca3f0c23a152c7cf1a9a
2018-02-02 17:07:03 -08:00
TreeHugger Robot
441becc921 Merge "Modify FAN_DIRECTION to be a bit mask" 2018-02-03 00:09:15 +00:00
Steve Paik
84b5aeaaf9 Add ENGINE_OIL_LEVEL, PARKING_BRAKE_AUTO_APPLY
Bug: 62337898
Bug: 62337346
Test: Vehicle emulator test
Change-Id: If2ea2ccb0b128e7f30a747e329fd3b7bd0d0234b
2018-02-02 14:47:14 -08:00
TreeHugger Robot
bc72cdf1ea Merge "Remove unused property from Vehicle HAL" 2018-01-31 01:30:30 +00:00
Steve Paik
ded5e17510 Modify FAN_DIRECTION to be a bit mask
We are changing VehicleHvacFanDirection to be a bit mask so that any
combination of fan directions can be made.  This means that
HVAC_FAN_DIRECTION_AVAILABLE must now be a int32_vector.

Bug: 72221544
Test: Unit tests pass
Change-Id: I602871c95aa2429ea334ec85a879610c68979184
2018-01-29 16:52:52 -08:00
Pavel Maltsev
eccbbf8538 Remove unused property from Vehicle HAL
Fix: b/72159812

Test: m -j ; verified device is booting up

Change-Id: I99b59d58dd713d48c50be1a12d9ee2019861c080
2018-01-26 11:59:31 -08:00
Steve Paik
54f2ac6994 Fix missing copies of status member variable
Bug: 72348165
Test: Status appears in Embedded Kitchen Sink
Change-Id: Ia6a672fa44f0c1d5a7fe04234897d73b3f45e939
2018-01-26 11:10:45 -08:00
Hongwei Wang
d879f7a131 Merge "Runs audio control service in delicated user" 2018-01-26 03:24:45 +00:00
TreeHugger Robot
a4c3b60c2c Merge "Update emulator protobuf to include status" 2018-01-26 03:24:18 +00:00
Steve Paik
5160ba3455 Update emulator protobuf to include status
Add status
Remove supported_areas

Bug: 72348165
Test: Use python emulator to get/set values
Change-Id: Iad84305a49b260ff02b28685f581a82ca7ff8195
2018-01-25 16:26:38 -08:00
TreeHugger Robot
f30add84f8 Merge "Refactor VHAL" 2018-01-25 00:36:29 +00:00
Asaf Rosenfeld
743bc7450b Merge "Adding missing VMS PublisherId functionality to vehicle hidl. VMS latest functionality which was added as part of the API review." 2018-01-24 07:28:20 +00:00
Hongwei Wang
d9aeb75800 Runs audio control service in delicated user
Bug: 72409268
Test: adb shell lshal
Change-Id: Ida633084af443b736971d87a33db579ba084c825
2018-01-23 18:14:07 -08:00
Asaf Rosenfeld
dbb17a280d Adding missing VMS PublisherId functionality to vehicle hidl.
VMS latest functionality which was added as part of the API review.

Change-Id: I8866d659e0df750eb86f1f3916aababf37e40649
Test: pending on later ref hal impl similar to other enums.
2018-01-23 17:12:21 -08:00
Steve Paik
1ae977d6e8 Refactor VHAL
This CL contains the following modifications:
- Add INT64_VEC type
- Rename VehiclePropertyType:COMPLEX to MIXED
- Remove supportedAreas from VehiclePropConfig
- Allow an areaId to contain multiple zones/seats/windows
- Remove ROW_* zones
- Remove zone/areaId from subscribe() interface
- CLANG formatting

Bug: 72348165
Test:  Compiles
Change-Id: I274dc69b6532a06433a0409c7ca44d0a5bce65af
2018-01-23 14:52:18 -08:00
Anthony Mah
a9d8c0d0f1 interfaces: Automotive Vehicle HAL shared lib def
Revise the definitions for Vehicle HAL bp file.

Bug: b/67430788
Test: Buits and boots

Change-Id: I57ca7ed41de3fd58860b6a1f226c53dcdd6287bf
2018-01-19 13:20:09 -08:00
Hongwei Wang
8655bc3e59 Removes deprecated audio property in vehicle hal
Bug: 72054677
Test: None
Change-Id: I68a29c786dabf99afb4c44b49586f372a97abae6
2018-01-18 21:01:24 +00:00
TreeHugger Robot
43a354641e Merge "Remove AUDIO_* properties." 2018-01-13 04:17:30 +00:00
Scott Randolph
525ff2d2e7 Remove AUDIO_* properties.
See go/aae-audio for an implementation guide for automotive that does
not rely upon these car specific properties.  The very small remaining
automotive specific elements will be represented in the automotive audio
control HAL.

Change-Id: Ia2147a8e486bdb896097771970f0527fc630b9c4
Test:  not yet.  Will run vhal VTS tests.
2018-01-11 15:07:26 -08:00
Aditi Nagaraj
6327b86696 Merge "Adding VmsUtils for parsing Vms Vehicle Properties" 2018-01-11 22:49:23 +00:00
Aditi Nagaraj
8dcab8e6dd Adding VmsUtils for parsing Vms Vehicle Properties
Test: Tested unit test app on mojave.
Bug: 68704508
Change-Id: I4833e4940710752a2f7943323c5e7ff2489f1c07
2018-01-11 13:04:26 -08:00
Scott Randolph
46bc12867b Define new AudioControl HAL for automotive.
This provides a mechanism for Android to interact with a car's
audio subsystem.
It is a partial replacement for the deprecated AUDIO_* properties in VehicleHal.
It also provides control over fade/balance.

Bug: 31623564
Test: build for bat_land.  VTS tests in future CL.
Change-Id: I4344cce3a6aa9a28d1327bf4d16bd080c7fd3f50
2018-01-10 11:50:17 -08:00
Steve Paik
b7302df033 Fix window properties to be per window zone
Bug: 70931486
Test: Compiles
Change-Id: Idb6daf0444f5fe18f251d01a1581fbcdde37f83c
2017-12-22 10:59:49 -08:00