Add the special property VHAL_SUPPORTED_PROPERTY_IDS to ref VHAL
to test getting all property configs through multiiple requests.
Test: atest DefaultConfigSupportedPropertyIdsTest
Run gcar emulator and check HVAC property.
Bug: 243449202
Change-Id: I9e7e8e798044c363548b879db1c4f39841362bbd
The test code constructed an `std::string` without a size from a
non-terminated string, which causes a memory error.
Test: atest 'DefaultVhalImplTest#testDump' on flame_hwasan
Bug: 233677013
Change-Id: I7d27c009c2e3307895a4a741743332fd4eed0e24
mThread should not be created in initization list,
since class member variables are not ready yet,
and the thread will access those variables.
Even if the shared variable is atomic, it must be modified under the
mutex in order to correctly publish the modification to the waiting
thread.
Bug: 231668271
Test: android.hardware.automotive.vehicle@V1-default-service_fuzzer
Change-Id: Ibbf36ddf9edcaa8d016349631784f54f6fd6c877
* Timed out runs do not show any warning messages.
* These test files cannot finish clang-tidy runs with
the following settings:
TIDY_TIMEOUT=90
WITH_TIDY=1
CLANG_ANALYZER_CHECKS=1
* When TIDY_TIMEOUT is set, in Android continuous builds,
tidy_timeout_srcs files will not be compiled by clang-tidy.
When developers build locally without TIDY_TIMEOUT,
tidy_timeout_srcs files will be compiled.
* Some of these test modules may be split into smaller ones,
or disable some time consuming checks, and then
enable clang-tidy to run within limited time.
Bug: 201099167
Test: make droid tidy-hardware-interfaces_subset
Change-Id: I1de28f1572fff368f67eab512fffec9f2e5c2a9b
VehicleHalProto would be used by AIDL Vhal as well so move it to
a common place.
Test: Presubmit
Bug: 215419573
Change-Id: I1e886a64a6c5ef76f7dc918feccc9cf63b8bca0c
CLUSTER_SWITCH_UI is a INT32 property that should only have one
init value instead of 2. This is causing confusion in the code
that uses the default value.
Test: None
Bug: 202448791
Change-Id: Id55f448f1dd5ee33291e30d32e6fbf868ad8fe3a
CRITICALLY_LOW_TIRE_PRESSURE is a seat type property. Added areaId into
the property config.
Bug: 174585018
Test: atest AtsCarHostTests
Change-Id: I260b9e79844f44cad31efcf510301af0ee6227a1
This is a change in behaviour for EPOCH_TIME to align it with a future revisions.
Bug: 157504928
Test: atest CarServicesTest
Test: atest VehiclePropertyIdsTest
Change-Id: I81881a03a1a562afc93cb1a2fe8a8fffa43f093d
Added SPDX-license-identifier-Apache-2.0 to:
automotive/vehicle/2.0/default/impl/vhal_v2_0/tests/Android.bp
automotive/vehicle/2.0/default/impl/vhal_v2_0/userhal/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: I07633391fdf6298dadd9bde70e7fc12cee2bb646
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
Merged-In: I6131a4892495c4c1e1c73e078572a666a33f984e
(cherry picked from commit 4d1fe81bee)
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