Commit graph

1234 commits

Author SHA1 Message Date
Kai
4d1fe81bee Add placeholder properties for emulator
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
2021-08-11 23:32:58 +00:00
Yu Shan
58f71e79cb Rename EmulatedUserHal to FakeUserHal.
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
2021-08-11 23:10:31 +00:00
TreeHugger Robot
44b0ff42e3 Merge "Set the minSampleRate > 0 for continuous properties on the AAOS emulator." into sc-dev am: 4f8d0ea1ad am: abf474d2e9 am: 029819097b
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15483496

Change-Id: I3f87d595174addf0adbf47a21ec4770e14299b3c
2021-08-10 03:49:41 +00:00
TreeHugger Robot
029819097b Merge "Set the minSampleRate > 0 for continuous properties on the AAOS emulator." into sc-dev am: 4f8d0ea1ad am: abf474d2e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15483496

Change-Id: I0e59e20d25da0d9d40127e66ae5fd37280481a6b
2021-08-10 03:33:55 +00:00
TreeHugger Robot
171be708d9 Merge "Set the minSampleRate > 0 for continuous properties on the AAOS emulator." into sc-dev am: 4f8d0ea1ad am: abf474d2e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15483496

Change-Id: I8d626df393b44121bc1e67682b812fd75910bbfb
2021-08-10 03:33:54 +00:00
TreeHugger Robot
0766c8b05e Merge "Set the minSampleRate > 0 for continuous properties on the AAOS emulator." into sc-dev am: 4f8d0ea1ad am: b868d54446
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15483496

Change-Id: Id908872cefc47078b2a8302915b452f6292fc223
2021-08-10 03:33:10 +00:00
TreeHugger Robot
df7d8cd017 Merge "Set the minSampleRate > 0 for continuous properties on the AAOS emulator." into sc-dev am: 4f8d0ea1ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15483496

Change-Id: Icdd119946e28353deb43388934f2dc4fd4d53ab8
2021-08-10 03:18:31 +00:00
Jiyong Park
b1e88b8ce6 Merge "Remove ndk_platform backend. Use the ndk backend." into sc-dev-plus-aosp am: e996f02801 am: 82230861e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15481541

Change-Id: Ica7ec2964d726cfb5259ab6db26777b1d9ff1bc7
2021-08-10 00:21:08 +00:00
Tyler Trephan
d1705d569a Set the minSampleRate > 0 for continuous properties on the AAOS
emulator.

Test: atest CarPropertyManagerTest
Bug: 194680297
Change-Id: I3b9c359885d173c89e825b206b629ed9dfa38d13
2021-08-09 08:44:55 -07:00
Jiyong Park
d55d28a1d0 Remove ndk_platform backend. Use the ndk backend.
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)
2021-08-09 11:20:04 +09:00
Yu Shan
5e9d9cde8e Remove debug properties.
After migrating all existing usage of debug properties, we no longer
need them.

Test: Local build.
Bug: 193565753
Change-Id: I6d94ebf527ee0fbb3041cdf949f7c61f81488752
2021-08-05 18:36:06 -07:00
Yu Shan
1e23e77316 Merge "Add DEBUG_CMD in emulator message." 2021-08-05 22:07:51 +00:00
Jiyong Park
c426c6dbdc Remove ndk_platform backend. Use the ndk backend.
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
2021-08-04 12:48:07 +09:00
Dominik Laskowski
c7ef39d130 evs: Use ui::LayerStack
Bug: 182939859
Test: Build
Change-Id: I8d21e3a0bea81a351fb0c48882f92eb8c784ad80
2021-08-03 19:03:52 -07:00
Yu Shan
3a338c6829 Add DEBUG_CMD in emulator message.
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
2021-08-03 17:10:51 -07:00
TreeHugger Robot
3b14735c8b Merge "Support more types for set property cmd." into sc-v2-dev am: 0786af29fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15307250

Change-Id: Ia7d29f5b4e41f1370c9ebfe42361c7cf042f81d2
2021-08-03 20:02:24 +00:00
TreeHugger Robot
0786af29fb Merge "Support more types for set property cmd." into sc-v2-dev 2021-08-03 19:39:34 +00:00
TreeHugger Robot
6e798125d0 Merge "Update EVS VTS test case" into sc-dev am: bdc4eebc1a am: f4c339a156
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15229810

Change-Id: I14c4c3a9eead5818f2b6380f8e2cce4754be3913
2021-08-03 19:05:30 +00:00
TreeHugger Robot
839dd53605 Merge "Update EVS VTS test case" into sc-dev am: bdc4eebc1a am: 2165d64fa1
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15229810

Change-Id: I743e22a219419cec2d818038345e6937461817d4
2021-08-03 19:05:05 +00:00
TreeHugger Robot
f4c339a156 Merge "Update EVS VTS test case" into sc-dev am: bdc4eebc1a
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15229810

Change-Id: I97da4f6a0fd1027f741eacac3e2962d2ab4100f0
2021-08-03 18:49:58 +00:00
TreeHugger Robot
2c64659ade Merge "Update EVS VTS test case" into sc-dev am: bdc4eebc1a
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15229810

Change-Id: I7e768c6923143f5dfaedda10454f990290732f26
2021-08-03 18:48:03 +00:00
TreeHugger Robot
bdc4eebc1a Merge "Update EVS VTS test case" into sc-dev 2021-08-03 18:30:33 +00:00
Tyler Trephan
10447d53c1 Fixed failing CTS tests related vehicle properties on the AAOS emulator. am: 6ac46d6bf2 am: 93a3dff55e
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15421133

Change-Id: I36ab7c161fb56e4b76cf86d0d00d677a7ec0a15b
2021-07-30 17:20:13 +00:00
Tyler Trephan
feacd6e72c Fixed failing CTS tests related vehicle properties on the AAOS emulator. am: 6ac46d6bf2 am: 0531800197
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15421133

Change-Id: I560faae33d947b0e329b928518eef0f86e659297
2021-07-30 17:19:48 +00:00
Tyler Trephan
93a3dff55e Fixed failing CTS tests related vehicle properties on the AAOS emulator. am: 6ac46d6bf2
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15421133

Change-Id: I7da297cd9110378408a4a440eebe6c849dd57870
2021-07-30 17:08:42 +00:00
Tyler Trephan
5232236b74 Fixed failing CTS tests related vehicle properties on the AAOS emulator. am: 6ac46d6bf2
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15421133

Change-Id: Ib693f78e353cd0821b8617d3afbbd952fb851395
2021-07-30 17:06:58 +00:00
Tyler Trephan
6ac46d6bf2 Fixed failing CTS tests related vehicle properties on the AAOS emulator.
-Added supported gears to CURRENT_GEAR config.
-Changed INFO_EXTERIOR_DIMENSIONS to int32 array

Test: atest CarPropertyManagerTest
Bug: 194182294
Change-Id: I96d241d0c388b8fc397af9f45a8a8072a05ee8d1
2021-07-29 16:49:39 -07:00
Yu Shan
27946f0b00 Support more types for set property cmd.
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)
2021-07-29 19:38:06 +00:00
TreeHugger Robot
9e420b77de Merge "Support debug setValue." 2021-07-28 23:34:12 +00:00
Yu Shan
5d7442f9c9 Merge "Create default VehicleService." 2021-07-28 18:18:52 +00:00
Kai Wang
bb68774ddd Merge "Add FAN_DIRECTION for assistant's test case" 2021-07-28 16:45:35 +00:00
Jiyong Park
04cd025c7c Merge "Remove ndk_platform backend. Use the ndk backend." am: 2346a4c6b9 am: 4ef9aa49dc am: 48131c0ace am: 08fcb12dd7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1778908

Change-Id: Ib3539a8eaded000ddc6f77212e49030e3d071afc
2021-07-28 13:05:10 +00:00
Jiyong Park
08fcb12dd7 Merge "Remove ndk_platform backend. Use the ndk backend." am: 2346a4c6b9 am: 4ef9aa49dc am: 48131c0ace
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1778908

Change-Id: Ic60e42a8dab88914bf593976e66a914d0d0d094d
2021-07-28 12:48:44 +00:00
Jiyong Park
48131c0ace Merge "Remove ndk_platform backend. Use the ndk backend." am: 2346a4c6b9 am: 4ef9aa49dc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1778908

Change-Id: Ib35b7b0ddc0bebd0714d290b1ac2fab8d5a1893e
2021-07-28 12:39:05 +00:00
Kai
36588116b9 Add FAN_DIRECTION for assistant's test case
Add more FAN_DIRECTION in google VHAL for testing

Bug: 192508890
Test: adb shell dumpsys cmd get-property-value 356582673
Change-Id: I6d2bbf04477b0f80d40cd5999c648d5163de86ac
2021-07-27 17:18:29 -07:00
Yu Shan
920960002f Support debug setValue.
Test: atest android.hardware.automotive.vehicle@2.0-default-impl-unit-tests
Bug: 193565753
Change-Id: I603f9fb986b2b131d05a23fb1cc1517f99c5bf0a
2021-07-27 15:15:03 -07:00
Yu Shan
612dbf6fb6 Create default VehicleService.
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
2021-07-27 15:15:02 -07:00
Jiyong Park
27f77fefd7 Remove ndk_platform backend. Use the ndk backend.
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
2021-07-27 14:44:47 +09:00
TreeHugger Robot
34422ab4b7 Merge changes from topic "default_vhal_emulated_user"
* changes:
  Move emulatedUserHal to default VHAL.
  Add fake OBD2 frame logic to default VHAL.
  Support vendor override in default VHAL.
2021-07-27 02:13:54 +00:00
garysungang
97d1039dfd Update EVS VTS test case
Update test case - CameraStreamExternalBuffering
Use native resolution instead of fixed test buffer 640x320

Bug: 190127973
Test: Manually run VTS on seahawk
Change-Id: I11043af4215fb9c5a2658591e9bdf9e468542a1b
2021-07-26 10:25:19 -07:00
Tomasz Wasilczyk
7b2bb9cc3c Implement add/remove membership for Netlink sockets
Change-Id: Ib98f14b1d758ee7b4d464b359d4792c3ca7027b0
Test: with other b/169681573 changes
Bug: 169681573
2021-07-23 16:17:43 +00:00
TreeHugger Robot
3e62bcb28b Merge "Add areaId check." 2021-07-22 01:33:29 +00:00
Keith Mok
b04e7fcabf Move vehicle hal to start in early_hal am: 165d173e94 am: 1d82ab8a79
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15236343

Change-Id: I75576b9e9ca4149e0142116f65027716fc8ddd46
2021-07-22 00:56:30 +00:00
Yu Shan
56020bc1c7 Move emulatedUserHal to default VHAL.
Test: Run on emulator. Verify user hal logic works. unit test.
Bug: 193831021
Change-Id: I9b91205ac11837f31950018f2de12542df85e202
2021-07-21 17:50:33 -07:00
Yu Shan
122eea67d3 Add fake OBD2 frame logic to default VHAL.
Test: unit test
Bug: 193831021
Change-Id: Ie26cf0c5468984781bd6d7a0bf7edc2e0b2426e3
2021-07-21 17:50:33 -07:00
Yu Shan
4a23901e50 Support vendor override in default VHAL.
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
2021-07-21 17:48:40 -07:00
Yu Shan
656882ac79 Add areaId check.
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
2021-07-21 16:46:33 -07:00
Yu Shan
fdf28cf28d Add heart beat event to Default VHAL.
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
2021-07-19 13:27:08 -07:00
Keith Mok
1b32420aff Remove vehicle binding seed property in emulator
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
2021-07-16 20:13:58 +00:00
Keith Mok
8a572821be Remove vehicle binding seed property in emulator
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
2021-07-14 18:32:10 +00:00
Keith Mok
165d173e94 Move vehicle hal to start in early_hal
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
2021-07-14 00:08:32 +00:00
Yu Shan
795f4de0b4 Extend onDump to support debug options.
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
2021-07-13 15:09:08 -07:00
Yu Shan
e48c26f482 Add input checks for Default VHAL.
Test: atest android.hardware.automotive.vehicle@2.0-default-impl-unit-tests
Bug: 188204722

Change-Id: I5f7084796a62c7e53a00f488fafb1026a182ce0c
2021-07-13 14:55:41 -07:00
Yu Shan
39844576b7 Add default VHAL test.
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
2021-07-01 18:59:53 -07:00
TreeHugger Robot
44eaf71a26 Merge "change all automotive AIDL HAL to generate Java for module" 2021-06-30 23:24:03 +00:00
Keun young Park
eadcf71d4b change all automotive AIDL HAL to generate Java for module
- CarService will become mainline module,

Bug: 192462140
Test: build
Change-Id: I71e2955de12594ff0a8dc74cdcc269997e214ef1
2021-06-30 12:14:40 -07:00
Yu Shan
6029a37036 Separate VHAL emulator logic out.
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
2021-06-29 17:29:22 -07:00
Kai Wang
38ca2571c5 Merge "Skip vts for hvac properties" into sc-dev am: 193a3e90bf am: cc637ad3e2
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15018375

Change-Id: Ie899b1e30f3951f1216f97b97f892439d61e6a46
2021-06-18 19:27:04 +00:00
Xin Li
b519a76f20 DO NOT MERGE - Merge ab/7272582
Bug: 190855093
Merged-In: Icfd3007a194da7ade037e359858b3dd48f24a0d6
Change-Id: Ie35ebafed5ca7a7f81ee2c03f799cc76f72d16d8
2021-06-18 01:26:08 +00:00
Kai
9228043bbc Skip vts for hvac properties
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
2021-06-17 14:00:03 -07:00
Kai Wang
581ac16988 Merge "Fix VHAL VTS issue on GSI image" into sc-dev am: a8c42cf0a1 am: 52ed5b7172
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14912436

Change-Id: I5b9178f8f71ff6f9bcf750982ca4e11f29a94ba4
2021-06-10 23:41:29 +00:00
TreeHugger Robot
eb8fcbf3ea Merge "Add vhal unit tests to presubmit." 2021-06-09 03:48:04 +00:00
TreeHugger Robot
dddbe1565c Merge "Support more types for set property cmd." 2021-06-09 03:23:53 +00:00
Kai
9ba9f5e2f2 Fix VHAL VTS issue on GSI image
Bug: 183961835
Test: atest VtsHalAutomotiveVehicleV2_0TargetTest
Change-Id: I78b4e38e7462cb8cc69ca999f0da64a1e396df90
2021-06-08 16:06:24 -07:00
TreeHugger Robot
b15923e25b Merge "Add AIDL version of vehicle hal" 2021-06-08 17:04:10 +00:00
Keun young Park
7339375409 Add AIDL version of vehicle hal
- 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
2021-06-08 16:41:07 +00:00
Yu Shan
045138dedd Add vhal unit tests to presubmit.
Test: presubmit.
Bug: b/189883643
Change-Id: I8e93ffb1f5ea8bb7d8656d8955c97494638df85c
2021-06-04 17:20:53 -07:00
Yu Shan
8ae3ea9813 Support more types for set property cmd.
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
2021-06-04 17:20:51 -07:00
Yu Shan
fb023d01f8 Fix two unit test failures.
Test: 'atest android.hardware.automotive.vehicle@2.0-manager-unit-tests'
Verify all tests pass.

Change-Id: Id5941e5dea77098a3a5cd853fd2bd0f30f9a8ae2
2021-06-01 16:03:14 -07:00
Jiyong Park
b23a63eb4c Merge "Freeze AIDL APIs for SC" into sc-dev am: a26f0629d3 am: dee60af878 am: d14002573f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14672882

Change-Id: I6819e1fcbdf93d250d1526d658b334c187867ee8
2021-05-25 23:40:11 +00:00
Jiyong Park
72b6359859 Freeze AIDL APIs for SC
Ignore-AOSP-First: part of SC finalization

Bug: 188713899
Test: m
Change-Id: Iee18cd05954dc8ea08cc4f985499a70977d1af4f
2021-05-25 10:13:26 +09:00
Kai Wang
6e3c5921c4 Merge "Rename Unix_time property to EPOCH_TIME" into sc-dev am: afc115199a am: 461dd8c42e
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14555283

Change-Id: Ib046b45a1a5a993cc1b3146e33b9ebdae9c9f4e6
2021-05-20 03:26:36 +00:00
Enrico Granata
49f9cbe43c Merge changes If98db799,I5c55bae2,If418dcdd,I5aff41ac
* 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
2021-05-18 18:58:21 +00:00
Hao Chen
930e3aab39 Vehicle HAL client reads the config from the server instead of DefaultConfigs.h
Test: Launch cf auto instance (with default vhal) and

atest
packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/CarPropertyTest.java

Bug: 188005769

Change-Id: If98db799be8c894bd9a7ba44bf3075f1f7384e5c
2021-05-18 10:41:04 -06:00
Hao Chen
e5970af788 Remove duplicates in DefaultConfig.h
Test: build and unit tests

Bug: 188005769

Change-Id: I5c55bae2f54725542ac56ebd04ba58de6af63d9e
2021-05-18 10:39:10 -06:00
Hao Chen
4c9d6b0d1b Split the utility parts out of DefaultConfig.h
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
2021-05-18 10:39:03 -06:00
Hao Chen
0b7c287fc8 Use PropStore on the Server Side to Simulate ECU
Test: build and unit tests

Bug: 188005769

Change-Id: I5aff41acbc4795def84ceb8e363019ff9668120c
2021-05-18 10:38:55 -06:00
Chris Weir
62923fcbb6 Merge "Update nl::Socket for TCU-gRPC" 2021-05-17 20:14:20 +00:00
Hao Chen
4065fbfa46 Vehicle HAL client reads the config from the server instead of DefaultConfigs.h
Test: Launch cf auto instance (with default vhal) and

atest
packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/CarPropertyTest.java

Bug: 188005769

Change-Id: If98db799be8c894bd9a7ba44bf3075f1f7384e5c
2021-05-17 20:10:01 +00:00
Hao Chen
87527e238d Merge changes I5c55bae2,If418dcdd,I5aff41ac into sc-dev
* changes:
  Remove duplicates in DefaultConfig.h
  Split the utility parts out of DefaultConfig.h
  Use PropStore on the Server Side to Simulate ECU
2021-05-17 19:38:03 +00:00
Kai Wang
afc115199a Merge "Rename Unix_time property to EPOCH_TIME" into sc-dev 2021-05-17 18:16:07 +00:00
Kai Wang
3be21ccf01 Rename Unix_time property to EPOCH_TIME
Bug: 188227292
Test: build and flash with google VHAL
      check property from KitchenSink
Change-Id: I7dc1833a000949f246a1a8be6f87970a1478832b
2021-05-14 23:47:00 +00:00
Hao Chen
d2e8b5fdb2 Remove duplicates in DefaultConfig.h
Test: build and unit tests

Bug: 188005769

Change-Id: I5c55bae2f54725542ac56ebd04ba58de6af63d9e
2021-05-14 14:59:14 -07:00
Hao Chen
f2654a4c73 Split the utility parts out of DefaultConfig.h
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
2021-05-14 14:59:14 -07:00
Hao Chen
945c430d19 Use PropStore on the Server Side to Simulate ECU
Test: build and unit tests

Bug: 188005769

Change-Id: I5aff41acbc4795def84ceb8e363019ff9668120c
2021-05-14 14:58:52 -07:00
Chris Weir
ca8504a4fe Update nl::Socket for TCU-gRPC
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
2021-05-11 11:43:38 -07:00
TreeHugger Robot
50430249d4 Merge "Set the intial value of Cluster VHAL." into sc-dev am: d8f90606b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14464591

Change-Id: I0f4035b069345a845546985a26f4bbba463bbf6f
2021-05-10 22:51:44 +00:00
Yuncheol Heo
9ceb2ca131 Set the intial value of Cluster VHAL.
- 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
2021-05-07 00:04:29 -07:00
Roman Kiryanov
be0eddeaee Merge "Move the qemu_pipe library into vhal_v2_0" am: de2b8f248e am: e6f4bdcd3d am: 75b7a259df am: 565d157410
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1670545

Change-Id: I8485d9ca839c776c4e9e196ad9abfc050a447033
2021-04-22 01:00:35 +00:00
Roman Kiryanov
565d157410 Merge "Move the qemu_pipe library into vhal_v2_0" am: de2b8f248e am: e6f4bdcd3d am: 75b7a259df
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1670545

Change-Id: I64c7db977c46faa31181487b9b599e922e293cb7
2021-04-22 00:30:53 +00:00
Roman Kiryanov
75b7a259df Merge "Move the qemu_pipe library into vhal_v2_0" am: de2b8f248e am: e6f4bdcd3d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1670545

Change-Id: I00025d86e877368b177d764d178dd3518cbd8279
2021-04-22 00:07:11 +00:00
TreeHugger Robot
d7fd139511 Merge "Change CLUSTER_DISPLAY_STATE message to be able to set the bounds." into sc-dev am: 6cb1efc762
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14245735

Change-Id: I68a5218c05fdb650a22bc29df83afbc328eb19f2
2021-04-20 22:38:49 +00:00
TreeHugger Robot
6cb1efc762 Merge "Change CLUSTER_DISPLAY_STATE message to be able to set the bounds." into sc-dev 2021-04-20 22:18:32 +00:00
Yuncheol Heo
7a1ed4758a Merge "Move the guard definition ENABLE_VENDOR_CLUSTER_PROPERTY_FOR_TESTING." into sc-dev am: 7435ee220f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14238057

Change-Id: Ia91a8c70d19d586de816d309d8fdb3c0ae852594
2021-04-20 18:19:28 +00:00
Yuncheol Heo
7435ee220f Merge "Move the guard definition ENABLE_VENDOR_CLUSTER_PROPERTY_FOR_TESTING." into sc-dev 2021-04-20 17:53:07 +00:00
Yuncheol Heo
65becfa568 Change CLUSTER_DISPLAY_STATE message to be able to set the bounds.
- 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
2021-04-19 22:25:06 -07:00
TreeHugger Robot
cc21cd1e35 Merge "Update OWNERS" into sc-dev am: 1a39a98c9f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14238089

Change-Id: Iafbdfb8d3613381afee37a3bc927a475b894542e
2021-04-20 04:22:28 +00:00
Yuncheol Heo
38ec240f8f Move the guard definition ENABLE_VENDOR_CLUSTER_PROPERTY_FOR_TESTING.
- 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
2021-04-19 16:26:13 -07:00
Changyeon Jo
d4ac93a514 Update OWNERS
Add Gary Sun to the owners of the EVS HAL interface

Fix: 185830679
Test: N/A
Change-Id: I732198ca3795d5d296d614b4f37a84110ab56f73
2021-04-19 15:20:26 -07:00
Kai Wang
c6e5c5f1b0 Merge "HVAC properties and CRITICALLY_LOW_TIRE_PRESSURE" into sc-dev am: eaa9bd3aeb
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/13964007

Change-Id: I186d216200e608d12e60fae520c98a214698e496
2021-04-16 21:28:32 +00:00