The latest IVehicleHardware adds Subscribe/Unsubscribe function
to replace the existing updateSampleRate. This CL adds the
Subscribe function to protobuf definition and implements it.
Test: atest GRPCVehicleHardwareUnitTest GRPCVehicleProxyServerUnitTest
Flag: EXEMPT hal change
Bug: 328316981
Merged-In: I4f02885b77f21a215a8b282be583f76118e400ba
(cherry-picked from commit: f1a869055f)
Change-Id: I4f02885b77f21a215a8b282be583f76118e400ba
Implement the unsubscribe function in IVehicleHardware. This will
stop the server from generating property update events for the
specified [propId, areaId].
Test: atest GRPCVehicleHardwareUnitTest GRPCVehicleProxyServerUnitTest
Flag: EXEMPT hal change
Bug: 328316981
Merged-In: I35f4860eead0c8ec9b192657fe51cc0ff4319383
(cherry-picked from commit: cb00b1f816)
Change-Id: I35f4860eead0c8ec9b192657fe51cc0ff4319383
According to b/329690075, vendor tests need root to use vendor
lib, otherwise atest will cause link error.
Test: atest FakeVehicleHardwareTest on cf_auto
Flag: EXEMPT bug
Bug: 341762230
Merged-In: I6bab19b20e6fe91dbdb2a6526172a5dd1d092ff5
(cherry-picked from commit: f01c7aec0d)
Change-Id: I6bab19b20e6fe91dbdb2a6526172a5dd1d092ff5
We need to build a FakeVehicleHardware impl on host, thus we need
to add the host_supported option.
Test: Local build on host.
Bug: 328316981
Flag: EXEMPT hal change
Merged-In: Ia21d26640c465846423cab1a0ff8a283c798b92a
(cherry-picked from commit: 9d3513882a)
Change-Id: Ia21d26640c465846423cab1a0ff8a283c798b92a
If we do not init, the initial value is undefined.
Test: Local run
Bug: 340947823
Flag: EXEMPT bugfix
Change-Id: I18a3688a446dd969545e1fc2cb5f63210c3c02cd
Merged-In: I18a3688a446dd969545e1fc2cb5f63210c3c02cd
This suggested change is automatically generated based on group
memberships and affiliations.
If this change is unnecessary or in error, vote CR -1 and the bot
will abandon it. Vote CR +1/2 to approve this change.
See the owner's recent activity for context:
https://android-review.googlesource.com/q/chenhaosjtuacm@google.com
To report an issue, file a bug in the Infra>Codereview component.
Change-Id: I2d5fc15775dbf816c787795934438cbde46b178b
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.
Bug: 328994089
Test: AOSP CF build succeeded
Change-Id: Ifdade9c052db29c989ce7d804ba725361c4c0f8e
Merged-In: Ic4f19113c1a25dc1fb60cdfbf9c0f2d8d7d09726
Derive vehicle hal parcelables from the Clone trait where applicable. This is is
supportive for implementing a vehicle hal service in Rust because caching e.g
VehiclePropValue or VehiclePropConfig instances allow less verbose code and
increase performance. Cloning a VehiclePropConfig instead of constructing each
time needed is less verbose. Property configs are normally not updated at
runtime.
This is not an API change, so in order to avoid having to bump the AIDL
API version for this HAL we used the hash_gen.sh script as below:
$ m android.hardware.automotive.vehicle-update-api
$ m android.hardware.automotive.vehicle-freeze-api
$ vim vehicle/aidl/Android.bp # removed frozen_api argument and the newly
created version 3 block
$ cp -r aidl_api/android.hardware.automotive.vehicle/3/* aidl_api/android.hardware.automotive.vehicle/2/
$ rm -rf aidl_api/android.hardware.automotive.vehicle/3/
./system/tools/aidl/build/hash_gen.sh \
hardware/interfaces/automotive/vehicle/aidl/aidl_api/android.hardware.automotive.vehicle/2 \
1 \
hardware/interfaces/automotive/vehicle/aidl/aidl_api/android.hardware.automotive.vehicle/2/.hash
Test: manual - used new derives in custom implementation
Change-Id: I586b89b160eb7a01ce24fad211b9e909175cdd3c
Merged-In: I889c0d51f2c2633908231dd39c9ea5259de36667
This reverts commit 21999ff48c.
Reason for revert: DroidMonitor: Potential culprit for b/327699697 - verifying through ABTD before revert submission.
Change-Id: I53a278f1317f5307441103dc42dc5be6f20d7075
Fill in the missing status field for VEHICLE_IN_USE and
AP_POWER_BOOTUP_REASON property.
Test: Presubmit
Bug: 327640442
Change-Id: I1320c57da5ec4c7910676a234b9c7bc0d3b6e3ea
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
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
Add VTS for testing subscription with variable update rate on.
Test: atest VtsHalAutomotiveVehicle_TargetTest on reference VHAL.
Bug: 323073584
Change-Id: I3c8f4e87ee11487466a1b75ae611cb58f84d8ef5
* changes:
Use runtime config file instead of compile flag.
Move FakeVehicleHardwareUnitTest to auto-presumbmit.
Support Enter Garage Mode in remote access HAL.
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
It depends on libgrpc++ which is not present on some cf target
system images.
Test: Presubmit
Bug: 316233421
Change-Id: I6fe76fff7fc4cab85ebe2bb50b6233cb71d33605
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
CarEvsService shares state changes of its service types via this new
VHAL property.
Bug: 325317031
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: I50f8523aea6a2b5ccb55db9ca620e64e1cada8ee
This CL is created as a best effort to migrate test targets to the new Android ownership model.
It is based on historical data from repository history and insights from git blame.
Given the nature of this effort, there may be instances of incorrect attribution. If you find incorrect or unnecessary
attribution in this CL, please create a new CL to fix that.
For detailed guidelines and further information on the migration please refer to the link below,
go/new-android-ownership-model
Bug: 304529413
Test: N/A
Change-Id: Ibe1360ca3f7eb919834715aa90b0b842fbcd0692
Create EmuMetadataGenerator to convert AIDL generated java files
to meta.json that can be used by emulator to populate the available
vhal props list.
Added build rules to generate the Java files from AIDL files and
check whether the meta.json file needs to be updated.
Test: make sdk_car_x86_64-trunk_staging-userdebug target
Bug: 318747444
Change-Id: Ib3bc7b68a1312152617fdab4598ed389447c20cd
Merged-In: Ib3bc7b68a1312152617fdab4598ed389447c20cd
Create EmuMetadataGenerator to convert AIDL generated java files
to meta.json that can be used by emulator to populate the available
vhal props list.
Added build rules to generate the Java files from AIDL files and
check whether the meta.json file needs to be updated.
Test: make sdk_car_x86_64-trunk_staging-userdebug target
Bug: 318747444
Change-Id: Ib3bc7b68a1312152617fdab4598ed389447c20cd