AudioOffloadMetadata contains the same information
as 'AUDIO_OFFLOAD_CODEC_*' framework parameters.
It is updated via a new method IStreamOut.updateOffloadMetadata
which only works for compressed offload streams.
Bug: 270731693
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I6c8a8853f216438284082f79e3f57e511a2a1f06
Merged-In: I6c8a8853f216438284082f79e3f57e511a2a1f06
AudioOffloadMetadata contains the same information
as 'AUDIO_OFFLOAD_CODEC_*' framework parameters.
It is updated via a new method IStreamOut.updateOffloadMetadata
which only works for compressed offload streams.
Bug: 270731693
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I6c8a8853f216438284082f79e3f57e511a2a1f06
Merged-In: I6c8a8853f216438284082f79e3f57e511a2a1f06
This test was flaky on cf. Increase the tolerance to make it stable.
This CL also modifies subscribe test to not rely on sleep to make
it stable.
Test: Presubmit
Bug: 268603744 270074790
Change-Id: I4a8003be152ef0a1f409f3705892fffee58170dd
- DISPLAY_BRIGHTNESS can send a brightness to be applied on one display.
- On multi-display devices, brightness of each display should be
communicated separately to VHAL.
- PASSENGER_DISPLAY_BRIGHTNESS is added to serve that purpose.
Bug: 269186221
Test: build okay
Change-Id: I749ecd451afc4f24039f6e594860f1cb0fcf3509
(cherry picked from commit b9748bad63)
Merged-In: I749ecd451afc4f24039f6e594860f1cb0fcf3509
This change for WindshieldWipersState, VehicleOilLevel, and
TrailerState aligns the documentation in the HAL with the API level.
Bug: 269329431
Test: presubmit
Change-Id: I115ac9a6f03c051b0de526e60a44dca41220533f
Added documentation for vendor code of 0 as well as changing the value
of vendor codes to be from 0x0001 to 0xffff
Bug: 268748245
Test: manual
Change-Id: I355524acc0094bbf3ecd5183df77cbeea82d55b1
To make the sensor embedded data available to EVS clients, this change
adds new fields to BufferDesc and declare necessary data types.
Bug: 191939108
Test: build
Change-Id: Iaa41554e49c7ff30c11d391b00eae12dfef9e99b
* changes:
Added CRUISE_CONTROL_COMMAND to HAL layer.
Added CRUISE_CONTROL_STATE to HAL layer.
Added CRUISE_CONTROL_TYPE to HAL layer.
Added EMERGENCY_LANE_KEEP_ASSIST_STATE to HAL layer.
Renamed ADAPTIVE_CRUISE_CONTROL_ENABLED to CRUISE_CONTROL_ENABLED in HAL
* changes:
Adding VTS tests for IAudioControl#registerModuleChangeCallback
Add default implementation for dynamic volume config feature
Adding support for dynamic audio gain config
Define in-vehicle network android device HAL.
This HAL is used for providing run-time information about other
connected Android devices in the same vehicle for multi-soc use
cases.
Test: m android.hardware.automotive.ivn-update-api
Bug: 258494092
Change-Id: I0b16e17b04e3470ad8f05d36daac3052f004a53f
- new dumpsys cmd "--audioPortChangeCallback" to trigger AudioPort
callback. For now, limited to AudioGain stage updates only.
- AudioPort callback will carry the new gain stages information to
the framework.
Bug: 261647905
Test: VTS
Change-Id: I404bde3671bf1ad39d1cb091ebf63d1049edec34
Signed-off-by: Raj Goparaju <rajgoparaju@google.com>
Automotive OEMs need a mechanism to update vehicle-based
audio port configurations during run-time. This can be
achieved mostly through core audio hal aidl interface,
namely IModule::getAudioPorts(). However it also limits the
ability of audio hal since it is expected to maintan unchanged
configuration for given audio device ports and have it
available before audio framework initializes, which is
not always the case.
The following usecases are under consideration for this
feature:
1. Audio gain stages updated at end-of-line/factories as
runtime configurations.
2. Audio gain stages are stored outside of android partition
(example - an external amplifier) and needs dynamic query
post boot up. Availability at service init is not guaranteed
since ECU lifecycles are not necessarily synchronized.
3. Audio gain stage updates based on user subscriptions
to enable advanced signal processing capabilities.
This change:
- Adds a new set-api for callback to report changes to
audio hardware module. It is expected that in future the
same interface can serve as callback to multiple categories
of configs (other than audio gain stages).
- Adds a new clear to remove callbacks.
- Adds a new callback interface for changes to audio port
configs. For the time being, car framework shall only support
changes to audio gain stages.
Bug: 261647905
Test: VTS test
Change-Id: I5891e324f2d909a9c5fe30c47ad30e23e74ec6c4
Signed-off-by: Raj Goparaju <rajgoparaju@google.com>
* changes:
Update FORWARD_COLLISION_WARNING_ENABLED documentation in HAL
Update AUTOMATIC_EMERGENCY_BRAKING_ENABLED documentation in HAL
Update LANE_DEPARTURE_WARNING_ENABLED documentation in HAL
Add HAL changes for LANE_DEPARTURE_WARNING_STATE
Add HAL changes for LANE_CENTERING_ASSIST_COMMAND
Update LANE_CENTERING_ASSIST_ENABLED documentation in HAL
Add HAL changes for LANE_CENTERING_ASSIST_STATE
Temporary errors should be conveyed through ErrorState values in the
STATE property.
Bug: 264946039
Test: presubmit
Change-Id: I06092b1571aaa63ab165a8e2a2d04f9d57eccb64
Temporary errors should be conveyed through ErrorState values in the
STATE property.
Bug: 264946034
Test: presubmit
Change-Id: I720dd691bc859d3113fa48f0f5b9a0b4a909d952
Temporary errors should be conveyed through ErrorState values in the
STATE property.
Bug: 264336118
Test: presubmit
Change-Id: I28de0aceaabb33647085d80b79da215da4a146cf
Temporary errors should be conveyed through ErrorState values in the
STATE property.
Bug: 266998630
Test: presubmit
Change-Id: If1acfe2454d552b2339c636cd7d790fa42f3bc10
This property supports error states in addition to its own state.
This is why the comments mention two @data_enums for this property.
This works because states are integer values so as long as all states
have distinct integer values, this functions correctly.
Bug: 266998630
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Test: atest CtsCarTestCases:LaneDepartureWarningStateTest
Test: atest AndroidCarApiTest:LaneDepartureWarningStateTest
Change-Id: Ic26fcfe8b41bb44a851daf59d64f0ceb536333c3
Temporary errors should be conveyed through ErrorState values in the
STATE property.
Bug: 264946042
Test: presubmit
Change-Id: Idfd427fb69948f81307c29acd6285826e2cada99
This property supports error states in addition to its own state.
This is why the comments mention two @data_enums for this property.
This works because states are integer values so as long as all states
have distinct integer values, this functions correctly.
Bug: 264946042
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Test: atest CtsCarTestCases:LaneCenteringAssistStateTest
Test: atest AndroidCarApiTest:LaneCenteringAssistStateTest
Change-Id: I3f805bedff35eef2731a7d9fc0bec593e3c639a3
Temporary errors should be conveyed through ErrorState values in the
STATE property.
Bug: 264946157
Test: presubmit
Change-Id: I1ac2d570ff47efb879acdef110e9775baf6cea4b
This property supports error states in addition to its own state.
This is why the comments mention two @data_enums for this property.
This works because states are integer values so as long as all states
have distinct integer values, this functions correctly.
Bug: 264946157
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Test: atest CtsCarTestCases:LaneKeepAssistStateTest
Test: atest AndroidCarApiTest:LaneKeepAssistStateTest
Change-Id: I60ea32b21dc79d692eeb733e4b38deb16a3231f2
Update supportedEnumValues array for ADAS STATE properties with new
state. Adjust defaultValue to a more sensible value for ADAS
properties.
Bug: 267174892
Test: presubmit
Change-Id: I2e2c130524156a8ef302ea774ce4dcbfe1260c4a
Added NOT_AVAILABLE_POOR_VISIBILITY to ErrorState enum between
NOT_AVAILABLE_SPEED_HIGH and NOT_AVAILABLE_SAFETY to be consistent with
StatusCode.
Bug: 267174892
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest AndroidCarApiTest:ErrorStateTest
Change-Id: Iad0edb555c7d0f6c3f4570cb489663e65eb08fd4
VehicleUnit contains MILLI_SECS in types.hal but not in
VehicleUnit.aidl.
Bug: 267556675
Test: atest VehicleUnitTest
Change-Id: I9616ab75575da32b108e1fca811357ea7464b12d
Add NOT_AVAILABLE_DISABLED, NOT_AVAILABLE_SPEED_LOW,
NOT_AVAILABLE_SPEED_HIGH, NOT_AVAILABLE_POOR_VISIBILITY,
and NOT_AVAILABLE_SAFETY StatusCode definitions.
These were added to support ADAS properties, but could
be used for non-ADAS properties.
Bug: 263294718
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: Ic3a8cd30f1fb0f7b0300cc77ab8ca7cb66b15316
An implementation of BLIND_SPOT_WARNING_ENABLED should return false when
there's an issue with the ADAS system and it cannot retrieve the
property. It should not return NOT_AVAILABLE.
Bug: 264946039
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I3f8765b9bbaa96931dd2ae0bab1c8fbc913b261c
This property supports error states in addition to its own state.
This is why the comments mention two @data_enums for this property.
This works because states are integer values so as long as all states
have distinct integer values, this functions correctly.
Bug: 264946039
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Test: atest CtsCarTestCases:BlindSpotWarningStateTest
Test: atest AndroidCarApiTest:BlindSpotWarningStateTest
Change-Id: Idc64af44ecdf33ee5c89d3bf7d303498d80a0d14
Since 1 new ACC property had been introduced, we decided to shift the
unique IDs of all the ADAS properties that come after it, namely the HOD
and Driver attention monitoring properties, by 1.
Bug: 266850785
Test: atest CarPropertyManagerTest
Change-Id: I63e296c03dbac678eaed6e35d68c8cacc383f949
An implementation of AUTOMATIC_EMERGENCY_BRAKING_ENABLED or FORWARD_COLLISION_WARNING_ENABLED should return false when there's an issue with the ADAS system and it cannot retrieve
the property. It should not return NOT_AVAILABLE.
Bug: 264946034
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: Ieddbcdf766543cfb94cb5b295b22ac4369641c81
Let's move canhalconfigurator-aidl from the system partition to the
system_ext partition to share a common system image across internal
AAOS builds.
Bug: 263516803
Test: build and confirm the files are relocated
Change-Id: I54a65f49daff1ff4730056bc83b7dc57c836509d
Let's move canhalconfigurator from the system partition to the
system_ext partition to share a common system image across internal
AAOS builds.
Bug: 263516803
Test: build and confirm the files are relocated
Change-Id: Ibd68797aa9356e3e80662442434d939eca955576
A test case closes the EVS display explicitly to make sure an associated
EGL surface is destoryed before running a next test case.
Fix: 266098494
Test: atest VtsHalEvsTargetTest
Change-Id: I4079242884ed436bca95c983b3e4475f2cef1464
This property supports error states in addition to its own state.
This is why the comments mention two @data_enums for this property.
This works because states are integer values so as long as all states
have distinct integer values, this functions correctly.
Bug: 264946034
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Test: atest ForwardCollisionWarningStateTest
Change-Id: Ib9292d8e64cc0d404065efccbfcf7fabd9fd1f69
An implementation of AUTOMATIC_EMERGENCY_BRAKING_ENABLED should return
false when there's an issue with the ADAS system and it cannot retrieve
the property. It should not return NOT_AVAILABLE.
Bug: 264336118
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I2dab0c48865ed1ccc40433b9fbe5ea341a2488f3
This property supports error states in addition to its own state.
This is why the comments mention two @data_enums for the property.
This works because states are integer values so as long as all states
have distinct integer values, this functions correctly.
Bug: 264336118
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Test: atest AutomaticEmergencyBrakingStateTest
Test: atest ErrorStateTest
Change-Id: I6acf5958caf00822b1455915cc715e04453d0bbd
Split VHAL property definitions and enums out from the VHAL interface
so that we can update the property separatly. This allows us to
backport new property definition to older releases more easily.
Test: Manual build
Bug: 264600792
Change-Id: I6040a1d4d7832a970a5ad5e5a28c359b15b402fb
- These are required to send keyinputv2 and motioninput events via fake
VHal.
Fix: 263184145
Test: Manually tested by sending events
Test: atest FakeVehicleHardwareTest
Change-Id: I078f6e27d4a0de5ac145f9c2058f53f8567ba293
Previously HVAC properties are unavailable to set when hvac power is
off. This CL makes VHAL returns NOT_AVAILABLE for get as well. VHAL
will also generate property change event when the power is switched
on again.
Test: atest FakeVehicleHardwareTest
Bug: 262461830
Change-Id: I17ca8a4e48f3ff5854226a6a38a42220078073d5
Hardware address sanitizer is complaining about parseConfigFile. I
suspect the issue is that protobuf is taking a pointer to an ifstream
rather than a reference, unique_ptr, or shared_ptr. I _think_ this
results in some sort of attempt to access the stream after it's closed.
In order to get around this, I moved ownership of the stream up one
level so that the stream stays open for longer.
Bug: 263769296
Test: canhalconfigurator-aidl doesn't crash on seahawk_hwasan-userdebug
Change-Id: I937d501a4759f0781304c518b518beaf8c6fed68
* changes:
Add HAL changes for LANE_DEPARTURE_WARNING_ENABLED
Add HAL changes for BLIND_SPOT_WARNING_ENABLED
Add HAL changes for FORWARD_COLLISION_WARNING_ENABLED