Commit graph

2000 commits

Author SHA1 Message Date
Terry Guan
e9d306d75e Merge "Added additional comments for vendor error codes" 2023-02-17 00:02:38 +00:00
Aaqib Ismail
48d2e1c688 Merge "Add missing documentation in HAL for enum states" 2023-02-16 21:35:10 +00:00
Aaqib Ismail
68175631b6 Add missing documentation in HAL for enum states
This change for WindshieldWipersState, VehicleOilLevel, and
TrailerState aligns the documentation in the HAL with the API level.

Bug: 269329431
Test: presubmit
Change-Id: I115ac9a6f03c051b0de526e60a44dca41220533f
2023-02-16 19:49:12 +00:00
Terry Guan
543009b95e Added additional comments for vendor error codes
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
2023-02-16 09:33:48 -08:00
TreeHugger Robot
291f6828b4 Merge "Add APIs for the sensor embedded data" 2023-02-16 08:16:38 +00:00
Aaqib Ismail
c0da595666 Merge "Add HAL changes for WINDSHIELD_WIPERS_SWITCH" 2023-02-16 05:00:40 +00:00
Aaqib Ismail
c37a211ed5 Add HAL changes for WINDSHIELD_WIPERS_SWITCH
Bug: 266986465
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Test: atest CtsCarTestCases:WindshieldWipersSwitchTest
Test: atest AndroidCarApiTest:WindshieldWipersSwitchTest
Change-Id: Idebd9dea3e03a8c37984af87a502c23d55433b73
2023-02-15 13:24:52 -08:00
Changyeon Jo
08a8a722dd Add APIs for the sensor embedded data
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
2023-02-15 12:43:31 -08:00
shrikar
22164c6be5 Added DRIVER_ATTENTION_MONITORING_STATE to HAL layer.
Bug: 264946416
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: Ie68b718d719dc5de050d31f6dd614ce5e9ecb32c
2023-02-15 17:12:04 +00:00
shrikar
39859e91e8 Added DRIVER_ATTENTION_MONITORING_WARNING to HAL layer.
Bug: 264946418
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I7eb6fd0c781c5b4bf500e9d137a74860100f6be4
2023-02-15 17:11:04 +00:00
shrikar
a6785997b3 Added HANDS_ON_DETECTION_WARNING to HAL layer.
Bug: 264946505
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: Idc807524b06e8001a795d63f9ad2f1294a834a0f
2023-02-15 17:09:11 +00:00
shrikar
6d88bf5b9a Added HANDS_ON_DETECTION_DRIVER_STATE to HAL layer
Bug: 264946425
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I89ed7c254917eb48b69682b18950c15f60afd2f0
2023-02-15 17:08:34 +00:00
Shrikar Amirisetty
a3ebd83775 Merge changes from topics "cc_command", "cc_state", "cc_type", "elka_state", "rename_acc"
* 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
2023-02-15 16:49:59 +00:00
Yu Shan
f2f3145adc Merge "Define ivnandroiddevice HAL." 2023-02-15 01:23:45 +00:00
Raj Goparaju
b8ad985619 Merge changes from topic "feature_dynamicVolSupport"
* changes:
  Adding VTS tests for IAudioControl#registerModuleChangeCallback
  Add default implementation for dynamic volume config feature
  Adding support for dynamic audio gain config
2023-02-14 21:07:37 +00:00
TreeHugger Robot
83c9899fb1 Merge "Add new EVS service types" 2023-02-14 20:51:17 +00:00
shrikar
5df0f9574c Added CRUISE_CONTROL_COMMAND to HAL layer.
Bug: 266861468
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I7c6ca1d392932158ae3016194b6c092c03b7a44e
2023-02-14 19:32:28 +00:00
shrikar
2753b9edff Added CRUISE_CONTROL_STATE to HAL layer.
Bug: 266866448
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I35a10ba6a3799a86265fc26d8d0643b7d7bdd446
2023-02-14 19:32:17 +00:00
shrikar
d440ed4177 Added CRUISE_CONTROL_TYPE to HAL layer.
Bug: 266858123
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I2a8c6ac72c1c6f3feb90ffeb7a7b7f8fef0443c7
2023-02-14 19:32:08 +00:00
shrikar
80cc0c5a32 Added EMERGENCY_LANE_KEEP_ASSIST_STATE to HAL layer.
Bug: 264946353
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I16a046e0eed02ba79bf7ed6212e9063b91b9f43a
2023-02-14 19:32:00 +00:00
Yu Shan
a891e00adb Define ivnandroiddevice HAL.
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
2023-02-14 11:15:40 -08:00
shrikar
5d1b816b8d Renamed ADAPTIVE_CRUISE_CONTROL_ENABLED to CRUISE_CONTROL_ENABLED in HAL
Bug: 261737998
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I34ad0ba32a5f2ad2037fbe65c011c63d400a12e4
2023-02-14 16:41:22 +00:00
Raj Goparaju
a8bf907f9a Adding VTS tests for IAudioControl#registerModuleChangeCallback
Tests the following:
a) successful registration
b) successful un-registration
b) exception check
   - double registration
   - nullptr registration
   - unsupported feature

Bug: 261647905
Test: run vts --module VtsAidlHalAudioControlTest

Change-Id: I7336c9e8dd8e3ca444e77218fc1150e5528dba32
Signed-off-by: Raj Goparaju <rajgoparaju@google.com>
2023-02-13 10:35:59 -08:00
Raj Goparaju
27a02e1111 Add default implementation for dynamic volume config feature
- 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>
2023-02-13 10:35:48 -08:00
Raj Goparaju
fd96ddced7 Adding support for dynamic audio gain config
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>
2023-02-12 22:13:25 -08:00
Terry Guan
324cdeff9a Merge "Changed order of manifest" 2023-02-10 17:56:35 +00:00
TreeHugger Robot
410310aa4f Merge "Update BLIND_SPOT_WARNING_ENABLED documentation in HAL" 2023-02-10 04:49:08 +00:00
Aaqib Ismail
c10e6cb721 Merge "Add MILLI_SECS to VehicleUnit.aidl" 2023-02-10 02:27:21 +00:00
Aaqib Ismail
ff29c893c0 Merge changes from topics "LaneCenteringAssistCommand", "LaneCenteringAssistState", "LaneDepartureWarningState"
* 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
2023-02-10 02:26:18 +00:00
Eva Chen
f2202358a5 Merge "Add explanatory note to ADAS properties." 2023-02-10 01:19:56 +00:00
Terry Guan
6c55d90884 Changed order of manifest
Bug: 268162044
Test: atest vts_halManifest_validate_test
Change-Id: I7b8e2f822220bc1c66fc85a4d252b529b7d7d95f
2023-02-09 14:50:47 -08:00
Aaqib Ismail
9f398eb933 Merge "Update LANE_KEEP_ASSIST_ENABLED documentation in HAL" 2023-02-09 20:04:45 +00:00
Changyeon Jo
f8091f5d08 Add new EVS service types
This change adds below new service types to EvsServiceType enum.
- FRONTVIEW
- LEFTVIEW
- RIGHTVIEW
- DRIVERVIEW
- FRONTPASSENGERSVIEW
- REARPASSENGERSVIEW
- USER_DEFINED

Bug: 191940626
Test: m -j
Change-Id: I907cd8e588e38659eedb77ac882b3a498f75f2d3
2023-02-09 11:21:16 -08:00
Aaqib Ismail
dacd5b0512 Update BLIND_SPOT_WARNING_ENABLED documentation in HAL
Temporary errors should be conveyed through ErrorState values in the
STATE property.

Bug: 264946039
Test: presubmit
Change-Id: I06092b1571aaa63ab165a8e2a2d04f9d57eccb64
2023-02-09 10:17:08 -08:00
Aaqib Ismail
326c88dd0f Update FORWARD_COLLISION_WARNING_ENABLED documentation in HAL
Temporary errors should be conveyed through ErrorState values in the
STATE property.

Bug: 264946034
Test: presubmit
Change-Id: I720dd691bc859d3113fa48f0f5b9a0b4a909d952
2023-02-09 10:14:34 -08:00
Aaqib Ismail
d76f8458a6 Update AUTOMATIC_EMERGENCY_BRAKING_ENABLED documentation in HAL
Temporary errors should be conveyed through ErrorState values in the
STATE property.

Bug: 264336118
Test: presubmit
Change-Id: I28de0aceaabb33647085d80b79da215da4a146cf
2023-02-09 10:13:04 -08:00
Aaqib Ismail
162976161a Update LANE_DEPARTURE_WARNING_ENABLED documentation in HAL
Temporary errors should be conveyed through ErrorState values in the
STATE property.

Bug: 266998630
Test: presubmit
Change-Id: If1acfe2454d552b2339c636cd7d790fa42f3bc10
2023-02-09 10:12:41 -08:00
Aaqib Ismail
8462db5859 Add HAL changes for LANE_DEPARTURE_WARNING_STATE
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
2023-02-09 10:12:34 -08:00
Aaqib Ismail
0ffd39c1e4 Add HAL changes for LANE_CENTERING_ASSIST_COMMAND
Bug: 264946354
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Test: atest CtsCarTestCases:LaneCenteringAssistCommandTest
Test: atest AndroidCarApiTest:LaneCenteringAssistCommandTest
Change-Id: I126ed24748f9ef7cd9bc0541e2bdbf75eac43edf
2023-02-09 10:12:26 -08:00
Aaqib Ismail
f5b63fcf13 Update LANE_CENTERING_ASSIST_ENABLED documentation in HAL
Temporary errors should be conveyed through ErrorState values in the
STATE property.

Bug: 264946042
Test: presubmit
Change-Id: Idfd427fb69948f81307c29acd6285826e2cada99
2023-02-09 10:12:01 -08:00
Aaqib Ismail
db03444d5a Add HAL changes for LANE_CENTERING_ASSIST_STATE
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
2023-02-09 10:11:25 -08:00
Aaqib Ismail
38ca038608 Update LANE_KEEP_ASSIST_ENABLED documentation in HAL
Temporary errors should be conveyed through ErrorState values in the
STATE property.

Bug: 264946157
Test: presubmit
Change-Id: I1ac2d570ff47efb879acdef110e9775baf6cea4b
2023-02-09 10:10:49 -08:00
TreeHugger Robot
28224192ba Merge changes from topics "GloveBoxLocked", "GloveBoxOpened"
* changes:
  Add HAL changes for GLOVE_BOX_LOCKED
  Add HAL changes for GLOVE_BOX_DOOR_POS
2023-02-09 17:54:51 +00:00
Aaqib Ismail
732a1d77b0 Add HAL changes for WINDSHIELD_WIPERS_STATE
Bug: 266985981
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Test: atest CtsCarTestCases:WindshieldWipersStateTest
Test: atest AndroidCarApiTest:WindshieldWipersStateTest
Change-Id: I0c23d71f5d020886733ffebf8d11fe17172e3683
2023-02-09 06:43:18 +00:00
Aaqib Ismail
63d52d1d59 Add HAL changes for WINDSHIELD_WIPERS_PERIOD
Bug: 266986551
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Test: atest CtsPermission2TestCases:PermissionPolicyTest
Change-Id: Icf06bd00a55a46769d6cca9ecc37e31227e0e16a
2023-02-09 06:42:36 +00:00
Terry Guan
f5555f4408 Merge "Changed Status code" 2023-02-09 03:54:06 +00:00
Aaqib Ismail
654e766039 Merge "Add HAL changes for LANE_KEEP_ASSIST_STATE" 2023-02-08 23:29:34 +00:00
Aaqib Ismail
78db2ca676 Add HAL changes for LANE_KEEP_ASSIST_STATE
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
2023-02-08 14:49:12 -08:00
Aaqib Ismail
38ecabbabf Add HAL documentation for ErrorState values
Bug: 267174892
Test: presubmit
Change-Id: I724a9e633011cf664b7f9e0b62106074a2d9e7c6
2023-02-07 23:49:44 -08:00
Aaqib Ismail
5e1b683b2a Add NOT_AVAILABLE_POOR_VISIBILITY to supportedEnumValues
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
2023-02-07 23:49:44 -08:00