Eva Chen
756617334f
Add ULTRASONICS_SENSOR_MEASURED_DISTANCE to HAL layer.
...
Bug: 292141998
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: I1bdd4fe5bd56a8af24c9b720a3e191a55a6a120b
2023-12-12 22:56:09 -08:00
Eva Chen
df05df56ba
Add ULTRASONICS_SENSOR_SUPPORTED_RANGES to HAL layer.
...
Bug: 292141998
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: Id648eeba8590c93d19dbdc5cc9b84fab67f30db4
2023-12-12 22:56:08 -08:00
Eva Chen
968bf44f66
Add ULTRASONICS_SENSOR_DETECTION_RANGE to HAL layer.
...
Bug: 292141998
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: I52808bc26422691d2b80e5f45f31a82a44fdfbc4
2023-12-12 22:56:07 -08:00
Eva Chen
727aa3f29d
Add ULTRASONICS_SENSOR_FIELD_OF_VIEW to HAL layer.
...
Bug: 292141998
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: I2e8b35317ab7ecc952de1e8680ebfc8eac2a020f
2023-12-12 22:56:07 -08:00
Eva Chen
9e226e5099
Add ULTRASONICS_SENSOR_ORIENTATION to HAL layer.
...
Bug: 292141998
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: I5b40cb5ce27a0d4e2b2b67c0a94b47aafa3ebd5c
2023-12-12 22:56:07 -08:00
Eva Chen
544b24ba94
Add ULTRASONICS_SENSOR_POSITION to HAL layer.
...
Bug: 292141998
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: I97d2576179bc7e668f6036c911235dc1dcd67dcb
2023-12-12 22:56:06 -08:00
Eva Chen
95e88820a1
Merge "Add new VENDOR VehicleArea to HAL layer." into main
2023-12-13 04:54:16 +00:00
Treehugger Robot
5feeb3a5eb
Merge "Update OWNERS file." into main am: e35fd5922b
am: 8262c93f22
am: 3721dc7ecd
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2871780
Change-Id: I319ee1497cba9062349a09faae65825e9e25afb5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-13 03:54:57 +00:00
Treehugger Robot
e35fd5922b
Merge "Update OWNERS file." into main
2023-12-13 01:28:25 +00:00
Yu Shan
bdd4c1aaea
Update OWNERS file.
...
Test: None
Bug: None
Change-Id: I0c2b9bba98c0543ed44cf7c5ad1a350e195b7b29
2023-12-12 17:24:42 -08:00
shrikar
33a3369d18
Added ELECTRONIC_STABILITY_CONTROL_ENABLED to HAL
...
Bug: 313435670
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I7d9bdc5bfccc3037a29d7d9b72c705797cc53064
2023-12-12 21:16:32 +00:00
shrikar
84866f7c35
Added VALET_MODE_ENABLED to HAL
...
Bug: 313324764
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I2365ac050978ade0d441ff96bf9160bd2b6651e4
2023-12-12 21:16:32 +00:00
shrikar
858c4e1791
Added LOW_SPEED_COLLISION_WARNING_STATE to HAL
...
Bug: 310955303
Test: atest VtsHalAutomotiveVehicle_TargetTest
FakeVehicleHardwareTest
Change-Id: I30980af5af1d6b954d6a4166be4df6ac92235388
2023-12-12 21:16:32 +00:00
shrikar
45df34b615
Added LOW_SPEED_COLLISION_WARNING_ENABLED to HAL
...
Bug: 310252857
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: Ie2072d9cc0c8af83caf2f6e5590d5d1bd6c4e4aa
2023-12-12 21:16:32 +00:00
shrikar
a492e7d598
Added EV_BATTERY_AVERAGE_TEMPERATURE to HAL
...
Bug: 309861157
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I3ddf1d71969b233516cf6e617a4f9328e256ea7f
2023-12-12 21:16:32 +00:00
shrikar
d816e0433c
Added IMPACT_DETECTED to HAL
...
Bug: 309826888
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I79c72bed8dcd96632cf9c7b6ff71c04198625467
2023-12-12 21:16:31 +00:00
shrikar
7717aa80ac
Added SEAT_BELT_PRETENSIONER_DEPLOYED to HAL
...
Bug: 309666683
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I79ca3e68c18fb961e83d1bd67f794256fe806f55
2023-12-12 21:16:31 +00:00
shrikar
420b31dddf
Added SEAT_AIRBAGS_DEPLOYED to HAL
...
Bug: 309620475
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I90db503d61c70cb2ab2581d3327a09b3225ac62c
2023-12-12 21:16:31 +00:00
Eva Chen
1a14f6a8f3
Add new VENDOR VehicleArea to HAL layer.
...
Bug: 292141998
Test: atest CtsCarTestCases:CarPropertyConfigTest CtsCarTestCases:CarPropertyManagerTest
Change-Id: I454350e19064895f6019430b16d10b9ef4976836
2023-12-11 22:43:43 -08:00
shrikar
d6f9f8e4ec
Added VEHICLE_DRIVING_AUTOMATION_CURRENT_LEVEL to HAL
...
Bug: 309014379
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I8b764ad7eb3fc05874f58d31499e6923bdb557c2
2023-12-11 23:13:45 +00:00
Yu Shan
e35cbd5d9a
Merge "Use batched property updates in IVehicleHardware." into main
2023-12-11 22:29:45 +00:00
Eva Chen
31b852d133
Merge "Add DRIVER_DISTRACTION_WARNING to HAL layer." into main
2023-12-09 09:28:17 +00:00
Eva Chen
e0a1360cc5
Merge "Add DRIVER_DISTRACTION_WARNING_ENABLED to HAL layer." into main
2023-12-09 09:26:46 +00:00
Eva Chen
823ae19422
Merge "Add DRIVER_DISTRACTION_STATE to HAL layer." into main
2023-12-09 06:58:43 +00:00
Eva Chen
c2854e4bd1
Merge "Add DRIVER_DISTRACTION_SYSTEM_ENABLED to HAL layer." into main
2023-12-09 04:12:58 +00:00
Eva Chen
b08db8e5b3
Merge "Add DRIVER_DROWSINESS_ATTENTION_WARNING to HAL layer." into main
2023-12-09 02:43:55 +00:00
Yu Shan
863a1b2e54
Use batched property updates in IVehicleHardware.
...
This CL demonstrates how IVehicleHardware layer can batch property
update events for all continuous properties subscribed
at the same interval. For example, previously, 4 areas for tire
pressure, despite subscribed with the same interval, will generate
4 property update events through 4 binder calls. Since they are
updated at the same time, all the 4 events can be sent through one
binder call.
Note that this is different from the batching done at DefaultVehicleHal
side where the property events are put into a queue for batching. If
IVehicleHardware layer can provides batching, then we can avoid the
extra latency introduced by batching in DefaultVehicleHal layer.
In order to achieve batching, this CL adds several functions to
VehiclePropertyStore that operates on a list of values. Note that
VehiclePropertyStore is still backward compatible with this CL,
meaning that old APIs are not affected. But in order to achieve
better performance, caller can migrate to the newer APIs.
Test: atest FakeVehicleHardwareTest VehicleHalVehicleUtilsTest
Bug: 314850840
Change-Id: I94a13d3ed2b90aede4d627f73ce2f2828bb3e740
2023-12-07 17:14:16 -08:00
Treehugger Robot
209b180d41
Merge "Return config using a copy not a pointer." into main
2023-12-07 23:57:44 +00:00
Yu Shan
b2d54bf984
Return config using a copy not a pointer.
...
Introduce VehiclePropertyStore.getPropConfig that returns a copy of
the config instead of a constant pointer. If the internal map is updated,
the pointer might become invalid, so it is safer to just return a copy.
We do not modify the existing API for backward compatibility.
Test: atest VehiclePropertyStoreTest
Bug: 308202443
Change-Id: I769866a09577cc69d25276349b7688cabcbc0c20
2023-12-07 15:09:40 -08:00
Eva Chen
295de24b78
Merge "Add DRIVER_DROWSINESS_ATTENTION_WARNING_ENABLED to HAL layer." into main
2023-12-07 04:10:35 +00:00
Eva Chen
14c6111afa
Merge "Add DRIVER_DROWSINESS_ATTENTION_STATE to HAL layer." into main
2023-12-07 04:09:02 +00:00
Shrikar Amirisetty
f1c5aa2bc2
Merge "Added new VehicleAreConfig.aidl fields to ProtoMessageConverter" into main
2023-12-06 16:54:19 +00:00
Yi Kong
62b951e58b
Fix -Wunused-variable compiler warning am: 810d41a774
am: 4eeda91a4a
am: 76705af803
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2861356
Change-Id: I00242599f1a67f59a8e2f415ffa52231d54007dc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 13:50:56 +00:00
Yi Kong
4eeda91a4a
Fix -Wunused-variable compiler warning am: 810d41a774
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2861356
Change-Id: I3383d70ff4387df65a0fdcaf0004061e5ad0c9a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-06 12:29:41 +00:00
Yi Kong
810d41a774
Fix -Wunused-variable compiler warning
...
Test: presubmit
Change-Id: I146d3435fe76da7f300452a14b62ce430c38ae36
2023-12-06 14:03:58 +09:00
Eva Chen
9a0925e15f
Add DRIVER_DISTRACTION_WARNING to HAL layer.
...
Bug: 292142225
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Test: atest CtsCarTestCases:DriverDistractionWarningTest
Test: atest AndroidCarApiTest:DriverDistractionWarningTest
Change-Id: Ib5ef9c8bd4f0f2a73a92e8ee08e6835ad24f95da
2023-12-05 18:52:57 -08:00
Eva Chen
c62166e3ab
Add DRIVER_DISTRACTION_WARNING_ENABLED to HAL layer.
...
Bug: 292142225
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: I6315dd0e7eb63c9e4e2314ae00b027ba7543e192
2023-12-05 18:30:00 -08:00
Eva Chen
a342b723fd
Add DRIVER_DISTRACTION_STATE to HAL layer.
...
Bug: 292142225
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Test: atest CtsCarTestCases:DriverDistractionStateTest
Test: atest AndroidCarApiTest:DriverDistractionStateTest
Change-Id: I413291427b3d6243214d42c9efef63e29ab3e8da
2023-12-05 18:29:49 -08:00
Eva Chen
51770b0d70
Add DRIVER_DISTRACTION_SYSTEM_ENABLED to HAL layer.
...
Bug: 292142225
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: I554725c48aa570a1d79db49d6090163b989e2fbc
2023-12-05 17:18:31 -08:00
Eva Chen
05c548cb58
Add DRIVER_DROWSINESS_ATTENTION_WARNING to HAL layer.
...
Bug: 292142225
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Test: atest CtsCarTestCases:DriverDrowsinessAttentionWarningTest
Test: atest AndroidCarApiTest:DriverDrowsinessAttentionWarningTest
Change-Id: I6e838cba6c6ee78cfb73d83582bd5b3e66d2cb20
2023-12-05 17:18:19 -08:00
Eva Chen
0c285d7f98
Merge "Add DRIVER_DROWSINESS_ATTENTION_SYSTEM_ENABLED to HAL layer." into main
2023-12-05 19:55:50 +00:00
Shrikar Amirisetty
3d096c4456
Merge "Created new tool to partially generate java enum in framework from aidl" into main
2023-12-03 02:55:35 +00:00
Eva Chen
6ec790b400
Add DRIVER_DROWSINESS_ATTENTION_WARNING_ENABLED to HAL layer.
...
Bug: 292142225
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: I9e80fe45dd17ec3502fd52809fa5a88d145e5806
2023-12-02 00:14:07 -08:00
Eva Chen
9f1d8c028f
Add DRIVER_DROWSINESS_ATTENTION_STATE to HAL layer.
...
Bug: 292142225
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Test: atest CtsCarTestCases:DriverDrowsinessAttentionStateTest
Test: atest AndroidCarApiTest:DriverDrowsinessAttentionStateTest
Change-Id: I6d1b058fd84c124b08607bdb4f7eb99198219863
2023-12-01 23:12:33 -08:00
shrikar
0ca801eb6a
Created new tool to partially generate java enum in framework from aidl
...
Bug: 309010685
Test: Tested by generating enums for upcoming property CLs
Change-Id: Ieee43f888262723828548787653f0b1b84de3691
2023-12-02 00:03:25 +00:00
Eva Chen
bbb7b6da5d
Add DRIVER_DROWSINESS_ATTENTION_SYSTEM_ENABLED to HAL layer.
...
Bug: 292142225
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: Ic7e55d3dff58e4836e706ca627b56602e5421855
2023-11-30 23:06:45 -08:00
Yu Shan
e5456f1c57
Refactor RecurrentTimer to use Looper.
...
Use Looper to make the logic cleaner.
Test: atest VehicleHalVehicleUtilsTest
Bug: 305103906
Change-Id: I5a4669b104964ac1dddff4b70b19b2f4e94c2b90
2023-11-30 13:52:11 -08:00
Yu Shan
c69b857b8d
Use timestamp from property store when get prop.
...
Previously the timestamp in property events might come from two
different sources. For property update events, the timestamp is
generated from VehicleHalServer. For getProperty request, the
timestamp is generated from EmulatedVehicleHal. This might cause
a getProperty request which returns an older value to have a newer
timestamp compared to the newer property update event. As a result,
the new property update event will be ignored by the client, which
should not be the case since the property is actually updated and
the client should get the update.
This causes flaky test cases if the client is try to subscribe, which
will cause a get property request for the initial value and the client
is changing the value, which will cause a new property update event at
the same time.
Test: atest android.hardware.automotive.vehicle@2.0-default-impl-unit-tests
Bug: 311219830
Change-Id: I78613b1de30624011bd90a5d0da244f0e3d67337
2023-11-30 13:06:07 -08:00
Yu Shan
60a76f0e04
Fix testListProperties test.
...
We should update the config count in the unit test for
ag/25331307.
Test: atest android.hardware.automotive.vehicle@2.0-default-impl-unit-tests
Bug: 310035422
Change-Id: I821e43ec7fda31007457821186cce7fd0bc4f9b6
2023-11-30 11:14:11 -08:00
Aaqib Ismail
7a8a8ad079
Change temp approximations to be accurate
...
We need to use a more accurate ratio of celsius to fahrenheit along
with better min/max temperature conversions so if a client sets the
value using standard conversion or using this table, they will produce
the same result.
Bug: 313720524
Test: atest CtsCarTestCases:CarPropertyManagerTest
Change-Id: I80a45962e7025c9c529381fd3522839f78bf413f
2023-11-29 10:57:03 -08:00