Add some placeholder properties in google VHAL. Developers who use the
aae emulator can use them in developing new features without
implementing a real property.
Bug: 193460353
Test: build aae emulator, use adb lshal to change property values
Change-Id: I6131a4892495c4c1e1c73e078572a666a33f984e
EmulatedUserHal is a library that allows setting and getting fake
user HAL properties, and has nothing to do with emulator. So we
rename it to FakeUserHal to be clearer.
Test: Local build.
Bug: 194340549
Change-Id: I29bf3ceb9e4cacb0a1da96699bd4ba843cab883d
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.
Bug: 161456198
Test: m
Merged-In: I0652f1efe920111d79dd8c2ecd52e55dda54538f
Change-Id: Ib58c9f1cb80d083a3c62d03415610be855b80f03
(cherry picked from commit c426c6dbdc)
After migrating all existing usage of debug properties, we no longer
need them.
Test: Local build.
Bug: 193565753
Change-Id: I6d94ebf527ee0fbb3041cdf949f7c61f81488752
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.
Bug: 161456198
Test: m
Change-Id: I0652f1efe920111d79dd8c2ecd52e55dda54538f
Add DEBUG_CMD to allow emulator to send debug commands to VHAL.
This is used to replace the special debug properites.
Test: None
Bug: 193565753
Change-Id: I5fe8fbae05e075e74c85aa6771f14c243003bc77
Now support int64, float and bytes.
This CL also allows setting read-only properties or reading
write-only properties through cmdline. The cmdline debug interface
is for test only and does not need to enforce these restrictions.
Test: unit tests.
Bug: b/189969547
Merged-In: Ib0e085f7a68e3d54782c21fb12caa500a0ad82ec
Change-Id: Ib0e085f7a68e3d54782c21fb12caa500a0ad82ec
(cherry picked from commit 8ae3ea9813)
Add more FAN_DIRECTION in google VHAL for testing
Bug: 192508890
Test: adb shell dumpsys cmd get-property-value 356582673
Change-Id: I6d2bbf04477b0f80d40cd5999c648d5163de86ac
Create default VehicleService to use the default VHAL implementation.
The original default VehicleService is now renamed to emulator-service.
Test: Presubmit.
Bug: 192276902
Change-Id: I4ef4c3d68a0d3f7c7e0742fe7d4477cdb0a89c76
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same 'ndk' backend.
Bug: 161456198
Test: m
Change-Id: Ibe8beeaf0d1b33968fb782f1f70c17ae9e9bf871
Update test case - CameraStreamExternalBuffering
Use native resolution instead of fixed test buffer 640x320
Bug: 190127973
Test: Manually run VTS on seahawk
Change-Id: I11043af4215fb9c5a2658591e9bdf9e468542a1b
Move vendor override property logic from emulated VHAL to
default VHAL. If system property
"persist.vendor.vhal_init_value_override" is set, then we would
try to parse JSON files in "/vendor/etc/vhaloverride/" and use the
values there to override the default initial values.
Test: unit test
Bug: 193831021
Change-Id: I6823aab3de284d5b1d96186bc9f1325d868fd8d6
According to types.hal, a non-global properties should have areaConfigs
that define allowed areaIds. We need to check that the areaId is in
the areaConfigs list before setting the value to prevent unexpected
behavior.
Test: unit test.
Bug: 193831021
Change-Id: I90faf808aa6ac5278e99cf6313454515afaaca2f
VHAL needs to send out heartbeat event so that watchdog does not
kill it. This is required for all VHAL so move the logic to default
VHAL.
Test: Local run on emulator. Add a test case in
android.hardware.automotive.vehicle@2.0-default-impl-unit-tests
Bug: 193831021
Change-Id: Ieacd991c22fa0d70d254426d728d3827a38d0b42
Emulator does not support vehicle binding seed property,
but it reports it supports it. Remove it for now.
Otherwise the vehicle binding utilities will try to set the
vehicle binding seed but that will not be saved anywhere
in the emulator.
Test: manual
Bug: 157501579
Change-Id: I9e8ad382a49e1108e0e25d6eee94b24d766264e8
Merged-In: I874e94b06fe675a96e5b15c9bff087023b4ea109
Emulator does not support vehicle binding seed property,
but it reports it supports it. Remove it for now.
Otherwise the vehicle binding utilities will try to set the
vehicle binding seed but that will not be saved anywhere
in the emulator.
Test: manual
Bug: 157501579
Change-Id: I874e94b06fe675a96e5b15c9bff087023b4ea109
Vehicle HAL required before storage encryption can get unlocked
when using vehicle seed binding with ECU.
Test: manual, check vehicle-hal starts in early_hal from logcat
Bug: 157501579
Change-Id: I88db77fbb1d04577b999b47e6f8dc4df1b300832
Extend onDump to support debugging. This CL only adds
genFakeData option.
Test: atest android.hardware.automotive.vehicle@2.0-default-impl-unit-tests
Bug: 193565753
Change-Id: I11d5d0f12c0ef050544c798bff2b4b27962bd3df
Add tests for default VHAL implementation. This CL also modifies
the onDump interface for IVehicleServer. The onDump interface now
returns the dumped info to the caller and let the caller print
the info to hidl_handle. This is due to IVehicleServer might run
in non-android VM that has no notion of HIDL handle.
Test: atest
Change-Id: I4fc5dedf69d6730b1b196ce171be08339ee7fbd2
Test: run test
Create EmulatedVehicleServer logic and moves emulator dependency
under it. This is part of the default VHAL refactoring. By letting
EmulatedVehicleServer depends on emulator, if we provides a
different VehicleServer implementation, it would not have emulator
dependency.
Create DefaultVehicleHal and let EmulatedVehicleHal inherits from
DefaultVehicleHal.
Test: Locally run in an emulator, test setting/getting properties
through emulator. Would add more tests in following CL.
Bug: 188204722
Change-Id: I20c4f69144277c717fed880a3bb9824f23ae0490
Setting hvac properties might have a lot of dependency issue.
Uses other properties for testing set method.
Bug: 189948885
Test: atest VtsHalAutomotiveVehicleV2_0TargetTest
Change-Id: I715e9ce68e9e81618cdc6b433f0c108ebc057610
- This is still under development but will replace HIDL version later.
- It will become stable later when all necessary features are ready.
- This CL translated HIDL into AIDL as it is. More changes will be added later.
- Most code was generate from hidl2aidl:
$ hidl2aidl -o tmp android.hardware.automotive.vehicle@2.0
- translate_vehicle_props.py types.hal to generate VehicleProperty enum.
- added @utf8InCpp for all String
Bug: 148703287
Test: build, make -j android.hardware.automotive.vehicle-cpp android.hardware.automotive.vehicle-java
Change-Id: I7a7f1c0c0751ad0101958d56db939324c05400b5
Now support int64, float and bytes.
This CL also allows setting read-only properties or reading
write-only properties through cmdline. The cmdline debug interface
is for test only and does not need to enforce these restrictions.
Test: unit tests.
Bug: b/189969547
Change-Id: Ib0e085f7a68e3d54782c21fb12caa500a0ad82ec
* changes:
Vehicle HAL client reads the config from the server instead of DefaultConfigs.h
Remove duplicates in DefaultConfig.h
Split the utility parts out of DefaultConfig.h
Use PropStore on the Server Side to Simulate ECU
So that the client side may use the utilities without introducing the
"default configs". "default configs" should only be visible to the
server, and the vehicle hal server will take care of configs.
Test: build and unit tests
Bug: 188005769
Change-Id: If418dcdd1c5b261179104bb414c52f3eb04d3ea8
So that the client side may use the utilities without introducing the
"default configs". "default configs" should only be visible to the
server, and the vehicle hal server will take care of configs.
Test: build and unit tests
Bug: 188005769
Change-Id: If418dcdd1c5b261179104bb414c52f3eb04d3ea8
Add a new wrapper for nl::Socket::send() that doesn't require
sockaddr_nl to be passed in, just a uint32_t pid.
Bug: 173213787
Test: manual - switch hu/tcu to use new send() function and verify that
they still work.
Change-Id: Iba49f8b3db35d96772fc0cc0a5b0aca5fb4ae307
- This is the cause of the inital empty Cluster VHAL messages.
Bug: 186455827
Test: Check the size of Cluster VHAL arguments by the logcat.
Change-Id: I5703295c163af4bcc27bd7c41ff32eafcffcead3
- Previously it can specify the size only, but we'll change the argument
to set the rectangle area (to be able to set the starting position).
Bug: 173454429
Test: it builds
Change-Id: I15329983e1af4de82a474f5c3e803905f4742848
- The target code is compiled with the libary, so move the definition
to the libary.
Bug: 181802283
Test: check if ClusterOSDouble gets the vendor messages.
Change-Id: Id501be674844bda73ccf5ae74d97a363869db7b7