Commit graph

2585 commits

Author SHA1 Message Date
Shrikar Amirisetty
844a04c078 Merge "Updated EV_CHARGE_STATE HAL docs with behavior on reaching user target" into main 2024-03-26 00:27:47 +00:00
shrikar
2f2f97ccb1 Updated EV_CHARGE_STATE HAL docs with behavior on reaching user target
Bug: 324447986
Test: presubmit
Change-Id: I33250f4a78a048a90f3f06ed66553e83200dd87b
2024-03-21 18:23:52 +00:00
shrikar
9b8607e503 Specified in INFO_MAKE and INFO_MODEL HAL docs to use public names
Bug: 316921360
Bug: 316922545
Test: presubmit
Change-Id: I3f3956ba59381ce4580d92814cfcb096ebd35c17
2024-03-21 17:40:33 +00:00
Treehugger Robot
44f4ac4305 Merge "Add documentation to all connector types" into main 2024-03-20 02:20:16 +00:00
Yu Shan
eb32b75be7 Merge "Add description field to meta.json file." into main 2024-03-19 22:31:18 +00:00
Yu Shan
a81a13a50d Add description field to meta.json file.
This allows emulator to show the detailed desription for each
VHAL property by hovering on the property name.

Test: Manually inspect the JSON file.
Bug: 324486041
Change-Id: Ie07dc055d30ae9b84641f952401871348141b398
2024-03-19 14:09:22 -07:00
Yu Shan
dfb1d75acb Fix flaky TestWakeupClientServiceImplUnitTest.
Previously the test will block forever if buildAndStart returns
a nullptr if the test grpc server fails to start. This CL fixes
this issue by adding a timeout and stop the wait even if the return
value is nullptr. This CL also lets grpc randomly pick an available
port instead of hard coding the port to make test more stable.

Test: atest --host TestWakeupClientServiceImplUnitTest
Bug: 330115017
Change-Id: I1113f95f92a25254e850b7a2eec249d1101c0dfe
2024-03-19 20:02:33 +00:00
Treehugger Robot
c26e3123f3 Merge "Sort the enum types alphabetically." into main 2024-03-19 02:37:16 +00:00
Yu Shan
38bc1add03 Sort the enum types alphabetically.
Sort them so that they are in a stable order.

Test: Presubmit
Bug: 329269744
Change-Id: Ic541713024442ccfb88088f9bd829e71b20ef832
2024-03-18 18:20:15 -07:00
Treehugger Robot
d00ab8a729 Merge "Updated _STEERING_ANGLE properties HAL docs with steering wheel info" into main 2024-03-18 22:49:21 +00:00
Aaqib Ismail
e259d7e0ff Add documentation to all connector types
Mention to use TESLA_SUPERCHARGER instead of TESLA_HPWC because they are
the same standard. Mention that TESLA_SUPERCHARGER refers to the new
NACS standard.

Bug: 328106085
Test: m
Change-Id: I8821f8a26b5971fcc7597b56c5e239a093e5795a
2024-03-18 14:30:11 -07:00
Shrikar Amirisetty
a9c2cfa80b Merge "Specify additional FUEL_* properties don't apply to EVs in HAL docs" into main 2024-03-15 18:35:50 +00:00
Treehugger Robot
f77ab0a86d Merge "Fixed _EV_BATTERY_CAPACITY property HAL docs to specify usable capacity" into main 2024-03-15 18:35:23 +00:00
Shrikar Amirisetty
f99ae73f1a Merge "Fixed PHEV expansion in INFO_FUEL_TYPE HAL docs" into main 2024-03-15 18:35:06 +00:00
shrikar
3d9c1b8d2a Updated _STEERING_ANGLE properties HAL docs with steering wheel info
Bug: 316947825
Bug: 316948592
Test: presubmit
Change-Id: I0b63bcc112f32a627b50c28126ae4b6882c5597d
2024-03-15 01:38:02 +00:00
Kiyoung Kim
b3b01a6cc2 Merge "Remove VNDK definition(s)" into main 2024-03-15 01:37:03 +00:00
shrikar
1ea74efef4 Fixed PHEV expansion in INFO_FUEL_TYPE HAL docs
Bug: 316942280
Test: presubmit
Change-Id: Ie1b8f7ea2bbfb9904e0ac09d2611201cf7d1f330
2024-03-15 00:43:43 +00:00
shrikar
37484fc7f7 Specify additional FUEL_* properties don't apply to EVs in HAL docs
Bug: 329678281
Test: atest CarPropertyManagerTest
Change-Id: I940f55f6d656fc1fc12694a04a6e8f58e0a159f7
2024-03-14 21:35:27 +00:00
Treehugger Robot
ac6dd190ad Merge "Added documentation to ENV_OUTSIDE_TEMPERATURE on multi sensor readings" into main 2024-03-14 21:32:09 +00:00
shrikar
c6e1808b4b Fixed _EV_BATTERY_CAPACITY property HAL docs to specify usable capacity
Bug: 316940310
Test: presubmit
Change-Id: I1b2f04e2c8882b22fefb7cf2bf1431e109dcdfe8
2024-03-14 21:01:26 +00:00
shrikar
9a657502da Added documentation to ENV_OUTSIDE_TEMPERATURE on multi sensor readings
Bug: 316927617
Test: presubmit
Change-Id: I4d2d0d8b554d1ecaeaee985d4b519f51767a80d7
2024-03-14 20:13:35 +00:00
Treehugger Robot
2478977135 Merge "Specify FUEL_* properties don't apply to electric vehicles in HAL docs" into main 2024-03-14 19:31:54 +00:00
shrikar
02beb9b9c1 Specify FUEL_* properties don't apply to electric vehicles in HAL docs
Bug: 316924644
Bug: 316926630
Bug: 316941652
Test: presubmit
Change-Id: Ic838e3e480d71dcab720bab2d1de493e8b7a205a
2024-03-13 22:28:49 +00:00
Felix Obenhuber
dcfc3db66b Add RustDerive to VHAL parcelables.
This is not considered an interface change so we update V2 and V3
version as well so that AOSP partners may use it.

I manually generate the hash code for V2 and V3 interface using:
system/tools/aidl/build/hash_gen.sh hardware/interfaces/automotive\
/vehicle/aidl/aidl_api/android.hardware.automotive.vehicle 2 \
/tmp/hash.2
and
system/tools/aidl/build/hash_gen.sh hardware/interfaces/automotive\
/vehicle/aidl/aidl_api/android.hardware.automotive.vehicle 2 1 \
/tmp/hash.3
and append the hash to thehash file under V2 and V3 interface.

Test: Presubmit
Bug: 329283602
Change-Id: I889c0d51f2c2633908231dd39c9ea5259de36667
2024-03-13 14:45:03 -07:00
Aaqib Ismail
4fe46286e5 Merge "Update HVAC_TEMPERATURE_SET/HVAC_TEMPERATURE_VALUE_SUGGESTION HAL docs" into main 2024-03-13 18:06:14 +00:00
Kiyoung Kim
09639b93ba Remove VNDK definition(s)
As of VNDK deprecation, any libraries that defines vndk is no longer
valid anymore. This change removes all VNDK definition(s) from modules
which was VNDK. Any former VNDK-SP libraries will be marked as double-loadable,
so it can keep be able to be referenced by LLNDK libraries.

Bug: 328994089
Test: AOSP CF build succeeded
Change-Id: Ic4f19113c1a25dc1fb60cdfbf9c0f2d8d7d09726
Ignore-AOSP-First: Merge conflict
2024-03-13 11:28:18 +09:00
Treehugger Robot
9c38c56187 Merge "Fixed defined versions for new Android V vehicle properties" into main 2024-03-12 06:49:02 +00:00
Aaqib Ismail
2f9f0b32e8 Update HVAC_TEMPERATURE_SET/HVAC_TEMPERATURE_VALUE_SUGGESTION HAL docs
Explain how to define the configArray and how to map fahrenheit values
to celsius values. Mention standardizing the values suggested and the
values defined by the configArray table.

Bug: 313720524
Test: m
Change-Id: I1ebd8223804a939968dfad1d8cb5a4de2d214946
2024-03-11 15:05:43 -07:00
Aaqib Ismail
ad69f7a1bb Merge "Revert^2 "Change HVAC_MAX_DEFROST_ON to front and back row area IDs"" into main 2024-03-05 21:29:01 +00:00
Treehugger Robot
2036d294b4 Merge "Remove unnecssary checks in VehiclePropertyStore." into main 2024-03-05 04:50:45 +00:00
Yu Shan
e390c1c975 Remove unnecssary checks in VehiclePropertyStore.
We use propId and areaId as key to get the current value, so there
is not need to check them against the value to update.

Test: Presubmit
Bug: 307977317
Change-Id: I5e8b3f676c02b4130769615f78a25b3a32b5b6ee
2024-03-04 15:44:49 -08:00
Aaqib Ismail
f12db3a909 Revert^2 "Change HVAC_MAX_DEFROST_ON to front and back row area IDs"
This reverts commit 0a36f19c73.

Reason for revert: Submitting with test fixed

Change-Id: I4b53ad65516abab2cf5317e3b991adfedcb18146
2024-03-03 21:37:54 +00:00
Liana Kazanova
73c85334bd Merge "Revert "Change HVAC_MAX_DEFROST_ON to front and back row area IDs"" into main 2024-03-01 19:50:58 +00:00
Liana Kazanova
0a36f19c73 Revert "Change HVAC_MAX_DEFROST_ON to front and back row area IDs"
This reverts commit 21999ff48c.

Reason for revert: DroidMonitor: Potential culprit for b/327699697 - verifying through ABTD before revert submission. 

Change-Id: I53a278f1317f5307441103dc42dc5be6f20d7075
2024-03-01 19:08:25 +00:00
Treehugger Robot
57a4b047e2 Merge changes I1320c57d,I9b878369 into main
* changes:
  Fill in the missing status field.
  Update client-side remote access test script.
2024-03-01 05:01:42 +00:00
Yu Shan
c2b9eaa4e7 Fill in the missing status field.
Fill in the missing status field for VEHICLE_IN_USE and
AP_POWER_BOOTUP_REASON property.

Test: Presubmit
Bug: 327640442
Change-Id: I1320c57da5ec4c7910676a234b9c7bc0d3b6e3ea
2024-02-29 18:42:44 -08:00
Yu Shan
ab4ac2ea0b Update client-side remote access test script.
Change default launch emulator command to launch_emu to enable
easier testing with built images. Add option: "--local-image" to
use "aae emulatro run".

Test: Manual run
Bug: 326991438
Change-Id: I9b8783694e18968250e82b8c22cb02504b2dd08f
2024-02-29 18:42:42 -08:00
Aaqib Ismail
21999ff48c Change HVAC_MAX_DEFROST_ON to front and back row area IDs
This helps standardize commands sent by Assistant for using the
defroster.

Bug: 323101580
Test: m
Change-Id: I006ca7fc779e011a3d3be8cac95fe34a3567d4b2
2024-02-29 13:08:55 -08:00
shrikar
10cc332c67 Fixed defined versions for new Android V vehicle properties
Bug: 327635895
Test: presubmit
Change-Id: I12b532a0a7eca6e398d779578af01252c1470bf1
2024-02-29 18:51:32 +00:00
Devin Moore
9eec1433fa Merge "Vendor API level 202404 is now frozen" into main 2024-02-29 17:14:40 +00:00
Yu Shan
1bf90fa404 Fix a bug in VUR VTS test.
The logic is to check whether each element is not the same as
previous element. We forgot to increase i.

Test: Presubmit
Bug: 326987403
Change-Id: I5cab61a86092fb14d17551a533e8cdaff1abfee5
2024-02-26 11:25:36 -08:00
Yu Shan
13a8745385 Merge "Add VTS for VUR." into main 2024-02-23 21:38:09 +00:00
Shrikar Amirisetty
bb81704eba Merge changes If53c6395,I972b7f0c into main
* changes:
  Added resolution check in DefaultVehicleHal
  Added resolution to SubscriptionManager in reference VHAL
2024-02-22 21:52:32 +00:00
Yu Shan
a9cbdea48b Add VTS for VUR.
Add VTS for testing subscription with variable update rate on.

Test: atest VtsHalAutomotiveVehicle_TargetTest on reference VHAL.
Bug: 323073584
Change-Id: I3c8f4e87ee11487466a1b75ae611cb58f84d8ef5
2024-02-22 11:17:14 -08:00
Tyler Trephan
1519c7baa0 Merge "Generated UnitsForVehicleProperty.java from VehicleProeprty.aidl" into main 2024-02-22 16:00:34 +00:00
Yu Shan
2385eb0484 Merge changes from topic "vhal_grpc" into main
* changes:
  Use runtime config file instead of compile flag.
  Move FakeVehicleHardwareUnitTest to auto-presumbmit.
  Support Enter Garage Mode in remote access HAL.
2024-02-22 01:45:09 +00:00
Yu Shan
e0ed350875 Use runtime config file instead of compile flag.
Use runtime config file instead of compile flag to control an
optional external grpc server address. This allows us to test
connecting with an external simluated power unit without recompiling
the image.

Test: Manual test with push the config file at
/vendor/etc/automotive/powercontroller/serverconfig
Bug: 325675883

Change-Id: I04193e7603a670c8398c6d6dc0466a0071f7c33d
2024-02-21 14:37:18 -08:00
Yu Shan
4cc6345c6c Move FakeVehicleHardwareUnitTest to auto-presumbmit.
It depends on libgrpc++ which is not present on some cf target
system images.

Test: Presubmit
Bug: 316233421
Change-Id: I6fe76fff7fc4cab85ebe2bb50b6233cb71d33605
2024-02-21 14:36:26 -08:00
Yu Shan
9f982fb815 Support Enter Garage Mode in remote access HAL.
Handles task type in reference remote access HAL and passes to
remote access server through GRPC.

Update host-side TestWakeupClientService to handle vehicleInUse
and ApPowerBootupReason VHAL properties.

Update reference VHAL to get the property values rom a remote grpc
server.

Test: atest --host TestWakeupClientServiceImplUnitTest
Manual run TestWakeupClientServerHost verifies that reference
VHAL can get power properties.
Bug: 316233421

Change-Id: I188aa9eed2dedb3b81b4eb6f5685ca33b646b2f5
2024-02-21 12:03:52 -08:00
shrikar
cb59b0522b Added resolution check in DefaultVehicleHal
Bug: 276124296
Test: atest DefaultVehicleHalTest
Change-Id: If53c6395a8ea9656e6b59a43872a0d9f6871dac5
2024-02-21 01:17:22 +00:00