Commit Graph

1088 Commits

Author SHA1 Message Date
Changyeon Jo
2180645f10 [RESTRICT AUTOMERGE] Modify CameraUseStreamConfigToDisplay
Exclude logical camera devices from CameraUseStreamConfigToDisplay test
case.

Bug: 275049370
Test: atest VtsHalEvsV1_0TargetTest and
      atest VtsHalEvsV1_1TargetTest
Change-Id: If6b31d94bdbffd2f4e9ab9bd5c8957ec85904187
(cherry picked from commit d5732b6bbf)
2024-01-17 01:33:55 +00:00
Changyeon Jo
a343d0cf0c Increase frame counters in the same critical section am: 928a4535c8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: I8a59e6173179a284bb90960b30e2e5a35de075a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 22:39:21 +00:00
Changyeon Jo
928a4535c8 Increase frame counters in the same critical section
Bug: 275049370
Test: atest VtsHalEvsV1_0TargetTest
Change-Id: I814aac4edec142027d3802f5ee0d7a444ae2ee86
2023-06-15 21:11:09 +00:00
Changyeon Jo
e6bb228dc6 Remove color format constraints
VtsHalEvsV1_1TargetTest does not verify any behavior depending on
a frame buffer's color format.

Bug: 240685726
Test: atest VtsHalEvsV1_1TargetTest
Change-Id: I592a0a8de5fffd98178d624ee5aac4c28245d056
2022-08-17 01:03:20 +00:00
Changyeon Jo
bfbbba6300 Corrects color format requirements
EVS HAL implementations are expected to support any of following color
formats:
- RGBA 8888
- BGRA 8888
- NV21
- YV12
- Or, YUY2

Bug: 240685726
Test: atest VtsHalEvsV1_1TargetTest
Change-Id: I9fbbf1d29e52b24d8a53854faa58ac578094b305
2022-08-10 22:56:45 +00:00
Treehugger Robot
ea1df0eab4 Merge "Update VtsHalEvsV1_*TargetTest am: 7bc98ce6ed" into android12-tests-dev 2021-12-08 23:10:24 +00:00
Changyeon Jo
3ac7a0c7c9 Update VtsHalEvsV1_*TargetTest am: 7bc98ce6ed
Original change: commit 7bc98ce6ed

Fix: 209710364
Test: TreeHugger
Change-Id: If323d494b4311e94c966e7943a0c85f5aa99b917
2021-12-08 19:15:29 +00:00
Changyeon Jo
32a001b98e Update VtsHalEvsV1_1TargetTest
This CL makes following changes to fix bugs in VTS test cases.

* Correct the definition of RawStreamConfig and its size constant.
* Update all test cases to use a stream configuration reported by the
  target camera device.
* Update CameraStreamExternalBuffering test cases to take internally
  allocated buffers into account.

Bug: 192460757
Bug: 199626993
Test: atest VtsHalEvsV1_1TargetTest
Change-Id: Ia03775ae543617ba5057e91bbbb5aed9221d1a30
2021-12-06 16:20:18 +00:00
Changyeon Jo
7bc98ce6ed Update VtsHalEvsV1_*TargetTest
- Removes a requirement of the landscape aspect ratio of the captured
  frames because the Extended View System now allows the video streams
  in any aspect ratio
- Increases the maximum latency of the video stream start request from
  500 ms to 1 second to accommodate the camera system design with the
  additional processing units outside of the head unit
- Reduces a number of additional buffers to allocate from 6 to 2 in
  CameraStreamBuffering test, to be consistent with comments

Bug: 204835095
Test: atest VtsHalEvsV1_0TargetTest and
      atest VtsHalEvsV1_1TargetTest
Change-Id: Id41bde10964b650f78e76d4f97a4588367f7c7fc
2021-11-23 20:08:01 +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
TreeHugger Robot
bdc4eebc1a Merge "Update EVS VTS test case" into sc-dev 2021-08-03 18:30:33 +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
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
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
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
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
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
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
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
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
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
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
eaa9bd3aeb Merge "HVAC properties and CRITICALLY_LOW_TIRE_PRESSURE" into sc-dev 2021-04-16 21:08:50 +00:00
Kai
786db4a6da HVAC properties and CRITICALLY_LOW_TIRE_PRESSURE
Address the requests from google Assistant team:
Add CRITICALLY_LOW_TIRE_PRESSURE to indicate critically low tire pressure
Add HVAC_TEMPERATURE_VALUE_SUGGESTION to let OEMs suggest temperature
value for android.

Bug: 116673704
Bug: 174207039
Bug: 157608587
Bug: 161831228
Bug: 174202040
Test: Use "adb shell cmd car_service get-carpropertyconfig" to check if
the properties are added in google HAL.
atest VehiclePropertyIdsTest

Change-Id: I46b71bc44cfef64755109dd460777f36dd1d2767
2021-04-14 08:45:39 +00:00
Yuncheol Heo
ed48cd23bc Merge "Redirect the Cluster VHAL messages to vendor ones, or vice versa." into sc-dev 2021-04-09 17:15:11 +00:00
Roman Kiryanov
4e370a4b42 Move the qemu_pipe library into vhal_v2_0
The vhal is the only user of this library and
this library is deprecated.

Bug: 175046060
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I0948ee43f476b002b2a643cbae95e333bcbc373d
2021-04-08 12:11:30 -07:00
Yuncheol Heo
e3eea4f932 Redirect the Cluster VHAL messages to vendor ones, or vice versa.
- We'll reroute the Cluster VHAL messages to vendor ones, so that our
ClusetrOSDobule can receive them through the vendor properties.

Bug: 181802283
Test: check if ClusterOSDouble gets the vendor messages.
Change-Id: Iee71e7453bec6a633b94aa7f56e8ceec5fc7b9bd
2021-04-06 23:32:39 -07:00
Kai
425a83b6fc Add ETC_CARD_TYPE and ETC_CARD_STATUS
Allow applications to know whether a Japanese ETC Card Reader is present,
and whether a valid ETC card is inserted to the reader.

Bug: 171751885
Test: check properites in kitchensink
atest CarServicesTest
atest VehiclePropertyIdsTest

Change-Id: I9e9135b2eb0d2e701413dcc1b964e193a47d7b19
2021-04-02 17:03:46 -07:00
Yuncheol Heo
2339430855 Merge "Remove the suffix LEGACY from CLUSTER_NAVIGATION_STATE_LEGACY." into sc-dev 2021-03-31 23:07:19 +00:00
Hayden Gomes
a0335554d1 Merge "Applying cleanup to default AIDL AudioControl" into sc-dev 2021-03-31 20:53:26 +00:00
Yuncheol Heo
e60e17f781 Remove the suffix LEGACY from CLUSTER_NAVIGATION_STATE_LEGACY.
- It sounds awkward to have the suffix LEGACY for the new VHAL.

Bug: 173454429
Test: atest ClusterHomeManagerTest ClusterHalServiceTest
Change-Id: I4b79bed21859af3dee1efe2da420cb19c2aa19db
2021-03-31 12:40:08 -07:00
Kai Wang
64d4651081 Merge "Add Unix_time and STORAGE_ENCRYPTION_BINDING_SEED" into sc-dev 2021-03-30 19:55:17 +00:00
Kai
fd2cbf9981 Add Unix_time and STORAGE_ENCRYPTION_BINDING_SEED
Add two new properties. Unix_time and STORAGE_ENCRYPTION_BINDING_SEED.

Bug: 176936731
Bug: 176985441
Test: adb shell cmd car_service get-carpropertyconfig
Change-Id: Ib94d8747a1b9ad0f187a8f78a87cd7f10b4506c5
2021-03-25 21:05:52 +00:00
Bob Badour
304e9ea675 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  automotive/vehicle/2.0/vts/functional/Android.bp
  media/c2/1.2/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Iffcdec8246a5acaf28ccb4475a309554f46b56ce
2021-03-25 12:22:15 -07:00
Hayden Gomes
6333eedc9e Applying cleanup to default AIDL AudioControl
Updating default AudioControl HAL with cleanup steps
applied based on feedback to emulator specific version
of HAL.

Bug: 183601304
Test: adb shell dumpsys
android.hardware.automotive.audiocontrol.IAudioControl/default --request
AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE 0 3

Change-Id: Ic8068b66d7f99a4bfaed025f13303f33d3f3a5bc
2021-03-25 11:36:03 -07:00
Kai Wang
25274e82aa Merge "Convert VTS for VHAL from python to gtest" into sc-dev 2021-03-24 04:15:18 +00:00
Kai Wang
91c9697d54 Merge "Correct Vehicle properties permissions" into sc-dev 2021-03-17 23:53:16 +00:00
Roman Kiryanov
5b30be06fa Merge "Use ro.boot.qemu to check if the device is an emulator" am: 03fb28b9fc am: f3593338c0 am: 02118721a7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1627762

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I68c162c5b3f7e2721a915cb4a45b4a29727ab428
2021-03-13 03:47:34 +00:00
Kai
40b9fe8213 Convert VTS for VHAL from python to gtest
VTS10 won't be supported after S.
Rewrite the VTS for VHAL in gtest test suit.
Also, the test is moved from host-side to target side.

Bug: 153872561
Test: atest -c VtsHalAutomotiveVehicleV2_0TargetTest
Change-Id: I89d3983daba2ea5784ba9d95833c3f2dda3b1fac
2021-03-12 19:07:46 -08:00
Roman Kiryanov
02118721a7 Merge "Use ro.boot.qemu to check if the device is an emulator" am: 03fb28b9fc am: f3593338c0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1627762

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9421a57880d57f6a42912222c6f585dc76157931
2021-03-13 02:38:21 +00:00
Hao Chen
d7886ba5e2 Merge "Gracefully stop the GeneratorHub worker thread in destructor" into rvc-qpr-dev am: a216f7fade am: d8c5052cd1
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/13807297

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibc7c6f87ba19dda040bf15d2ce28276495b50993
2021-03-11 02:45:03 +00:00