This reverts commit 439e897d10.
Reason for revert: Seahawk now uses v3 lib, which should not be affected
Change-Id: Ia04c9a2c28829778c4d9d24b4a1138b615ac9377
This reverts commit 57e19cdcd8.
Reason for revert: Droidmonitor triggered revert due to build breakage in b/342708614. Will be verifying through ABTD before submission.
Change-Id: I289ed2a3158e81b7b1da86df939d59970f65b0a5
Add stringToPropertyId to VehicleUtils and use that in
FakeVehicleHardware to support commands like "--set PERF_VEHICLE_SPEED".
Test: atest VehicleUtilsTest FakeVehicleHardwareTest
Bug: 342260344
Change-Id: If317929376eb18bb0c28f87c4d7a3321c58d72b1
This is the first step towards supporting delayed property config
discovery. Right now this does not bring too much benefit since
essential system service such as carwatchdog is still querying
property conifg early in the boot process. In the future once
we separate essential properties with non-essential properties,
we can improve more.
Test: atest DefaultVehicleHalTest
Bug: 342470570
Change-Id: Ie85aa163fa9128aa061dd5b3221954c7acac050c
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
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
Change-Id: I6bab19b20e6fe91dbdb2a6526172a5dd1d092ff5
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
Change-Id: I4f02885b77f21a215a8b282be583f76118e400ba
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
Change-Id: Ia21d26640c465846423cab1a0ff8a283c798b92a
If we do not init, the initial value is undefined.
Test: Local run
Bug: 340947823
Flag: EXEMPT bugfix
Change-Id: I18a3688a446dd969545e1fc2cb5f63210c3c02cd
PowerHalService relies on VHAL to use property change event to
communicate the display brightness. This CL updates the doc
to be explicit about this requirement.
Furthermore, getting PER_DISPLAY_BRIGHTNESS without specifying
which port to get is confusing, so this CL also updates the doc.
Test: None, no code change
Bug: 336831738
Change-Id: Id4d0e7ff5fc065a53a38e831810470469563c3e6
Need to create version specific directory so that a client/VHAL
implementation can link against a previously released property
interface.
Otherwise we force all the current clients/servers that use the
generated libs to use the latest property interface library.
Test: Presubmit
Bug: 337328290
Change-Id: I07ee8d0c2c6fa5c1c21f93a54d8b7455a2fad6d7
Also add VTS checks to ensure WRITE_ONLY configs don't exist along with
READ_ONLY and READ_WRITE configs
Bug: 332598311
Test: atest VtsHalAutomotiveVehicle_TargetTest
Change-Id: Ie3d38fc2fd582d8949736739e83d277d75d69e62
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
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 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
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