Commit graph

285 commits

Author SHA1 Message Date
Ronish Kalia
98ef872235 Merge "Migrate Test Targets to New Android Ownership Model" into main 2024-04-22 15:01:56 +00:00
Kiyoung Kim
9e9d41d162 Remove VNDK definition(s)
As of VNDK deprecation, any libraries that defines vndk is no longer
valid anymore. This change removes all VNDK definition(s) from modules
which was VNDK.

Bug: 328994089
Test: AOSP CF build succeeded
Change-Id: Ifdade9c052db29c989ce7d804ba725361c4c0f8e
Merged-In: Ic4f19113c1a25dc1fb60cdfbf9c0f2d8d7d09726
2024-04-05 02:29:07 +00:00
Aditya Choudhary
04ef2121cd Migrate Test Targets to New Android Ownership Model
This CL is created as a best effort to migrate test targets to the new Android ownership model.
It is based on historical data from repository history and insights from git blame.
Given the nature of this effort, there may be instances of incorrect attribution. If you find incorrect or unnecessary
attribution in this CL, please create a new CL to fix that.

For detailed guidelines and further information on the migration please refer to the link below,
go/new-android-ownership-model

Bug: 304529413
Test: N/A
Change-Id: Ibe1360ca3f7eb919834715aa90b0b842fbcd0692
2024-02-02 14:00:43 +00:00
Xin Li
763c473c3d Merge Android 24Q1 Release (ab/11220357)
Bug: 319669529
Merged-In: I976f80006aeb88bde2ae34ca4f9be72cea727d9e
Change-Id: Id94b25af52bd2e2847b6858697ab21cc6ce27aa3
2024-01-30 10:36:50 -08:00
Treehugger Robot
0e1c989a36 Merge "Modify CameraUseStreamConfigToDisplay" into android13-tests-dev am: 4c7a5de957 am: b4fadec4ff
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2911485

Change-Id: I435a47ef473b078290487d6470e93452270204da
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-18 05:06:18 +00:00
Treehugger Robot
b4fadec4ff Merge "Modify CameraUseStreamConfigToDisplay" into android13-tests-dev am: 4c7a5de957
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2911485

Change-Id: Ib03e2c8e9b8dd43bca4741dbd1024ab0da6c5f97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-18 04:44:07 +00:00
Changyeon Jo
47640027f2 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:46:07 +00:00
Changyeon Jo
050b2ce1cf Handle logical camera devices properly
- HighPriorityCameraClient test case is not executed against logical
  camera devices because clients are not allowed to change camera
  parameters via logical cameras.
- CameraStreamExternalBuffering test case closes logical camera device
  explicitly, to avoid any influence on following test scenarios.

Bug: 319165229
Test: atest VtsHalEvsTargetTest
Change-Id: I734d701a2056ab84fe74179b083c3f6c5463447b
2024-01-09 06:15:34 +00:00
Hao Chen
a15abfc0bd Video Emulated Stream
Test: Build and Run on CVD
Bug: 277861838
Change-Id: I5a1db063cae505a7e7d75b97bea7f14857da5a1e
2023-11-09 01:32:59 +00:00
Changyeon Jo
ba22368df0 Update CameraStreamBuffering test and correct instance name am: 912b16f8c5 am: b89bbf5625
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2794200

Change-Id: If7df49ed360c8484d18f393199105ea85a6c032e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-25 01:36:43 +00:00
Changyeon Jo
b89bbf5625 Update CameraStreamBuffering test and correct instance name am: 912b16f8c5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2794200

Change-Id: If6a14f102e39d5754a4ca42d6e2857a04a6a4e60
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-25 01:08:02 +00:00
Changyeon Jo
2c10ac81ef Merge "Update CameraStreamBuffering test and correct instance name" into main am: 945c9aa1de am: 9ca0c6637f am: f3f9a4c7cb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2796792

Change-Id: I441c646eb825b2484ffeb0b7125d449deb87961a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-18 22:32:39 +00:00
Changyeon Jo
912b16f8c5 Update CameraStreamBuffering test and correct instance name
- CameraStreamBuffering test is modified to use the minimum number of
  frame buffers that is required to run a camera pipeline for a single
  client instead of using an arbitrarily chosen number, which may not
  work for certain device implementations.
- Fix a name of v1.0 EvsManager implementation in
  VtsHalEvsV1_0TargetTest.cpp

Bug: 305642713
Test: atest VtsHalEvsV1_0TargetTest and
      atest VtsHalEvsV1_1TargetTest
Change-Id: Ieec986dbdf947311e0bc86871432da8a988d37ad
(cherry picked from commit 2d8834dc96)
2023-10-18 20:40:53 +00:00
Changyeon Jo
2d8834dc96 Update CameraStreamBuffering test and correct instance name
- CameraStreamBuffering test is modified to use the minimum number of
  frame buffers that is required to run a camera pipeline for a single
  client instead of using an arbitrarily chosen number, which may not
  work for certain device implementations.
- Fix a name of v1.0 EvsManager implementation in
  VtsHalEvsV1_0TargetTest.cpp

Bug: 305642713
Test: atest VtsHalEvsV1_0TargetTest and
      atest VtsHalEvsV1_1TargetTest
Change-Id: Ieec986dbdf947311e0bc86871432da8a988d37ad
2023-10-18 18:58:07 +00:00
Changyeon Jo
ab78601274 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
Bug: 305642713
Test: atest VtsHalEvsV1_0TargetTest and
      atest VtsHalEvsV1_1TargetTest
Change-Id: Id41bde10964b650f78e76d4f97a4588367f7c7fc
Merged-In: Id41bde10964b650f78e76d4f97a4588367f7c7fc
(cherry picked from commit 7bc98ce6ed)
2023-10-18 18:55:43 +00:00
sergiuferentz
7d7a24d5f6 Bump android.hardware.graphics.common V4->V5
Test: Build
Bug: 291142745
Change-Id: Ib0002feb982ffcc37fa7b69493c644b7a835cf4f
2023-10-03 16:14:03 +00:00
Hao Chen
e04a700d86 Use EvsCamera as the base of EvsMockCamera
Test: Build and run (mock) evs_app tests
Bug: 300533205
Change-Id: I8e43c5879dee9942c27d69cdfb3012d35b123441
2023-09-25 20:32:10 +00:00
Hao Chen
224446bcad Add EVS Video Emulated Camera Class
Test: Build
Bug: 277861838
Change-Id: Ic9ce648b857eddefccc24065397af5b2056426c7
2023-09-22 21:53:52 +00:00
Hao Chen
0d14a8297b Hanlding Streams and States
Test: Build && `atest android.hardware.automotive.evs-aidl-default-service_cam_state_test`
Bug: 277861838
Change-Id: Idd8fe8e76876dfd93a177d3529ccf118b626001d
2023-09-22 21:38:20 +00:00
Hao Chen
5ed789cd71 Add EvsCamera Class and Buffer Manipulation
Test: Build and `atest android.hardware.automotive.evs-aidl-default-service_cam_buffer_test`
Bug: 277861838
Change-Id: I28218f8e22e7daca3d8ce0bbec64c054a4462564
2023-09-21 23:40:02 +00:00
Treehugger Robot
317e9d4e22 Merge changes I2ca96002,I8f9c076e into main
* changes:
  Add the abstraction layer for the camera classes
  Add EVS Camera Device Type to the Default Implementation
2023-09-15 00:21:34 +00:00
Hao Chen
c5d5d7565d Add the abstraction layer for the camera classes
Test: Build
Bug: 277861838
Change-Id: I2ca960022916ef5db2896625208e74d4c0db5d36
2023-09-14 22:19:48 +00:00
Hao Chen
02a1825028 Add EVS Camera Device Type to the Default Implementation
Test: Build
Bug: 277861838
Change-Id: I8f9c076e0d03f541587015c71aeb8a9335d37733
2023-09-14 22:19:13 +00:00
Changyeon Jo
88ef0d64bc Merge "Update the default EVS HAL implementation" into main 2023-09-06 17:13:30 +00:00
Changyeon Jo
d095b7aafa Update OWNERS file am: bacdd1ec09
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2740885

Change-Id: Ie6784053acee05538e6d328d98c7cea1730291a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 04:55:17 +00:00
Changyeon Jo
bacdd1ec09 Update OWNERS file
This change updates OWNERS file for EVS interface.

Bug: 299195329
Test: Manual
Change-Id: Ife421b8aa4a380d8585e6d8476f0a24f31bc2633
2023-09-06 00:57:59 +00:00
Changyeon Jo
130d5a3aa0 Update the default EVS HAL implementation
Remove H2BGraphicBufferProducer usages from the default EVS HAL
implementation.

Bug: 297601247
Bug: 298091684
Test: Run evs_app on the cuttlefish emulator.
Change-Id: Ibca21d8e9cf87deb79c0050f9adcf02b5f16d34b
2023-08-31 13:12:39 -07:00
Changyeon Jo
f018e5213d Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: 4bf0cb2c5f am: b484054880 am: f1c67f57e9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: Ibc853cb9ad6ab961b3140c69efeb1c024f91006a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 02:46:28 +00:00
Changyeon Jo
9e8d44aba4 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: e0868c4484 am: ca64f5b140
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: If414ff886a8c2e6c336289e89f73719d740ac73c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 02:24:19 +00:00
Changyeon Jo
4bf0cb2c5f Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: I8ac30fb5abe6c6205d099d089e769ffb477ddc7b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 00:32:36 +00:00
Changyeon Jo
55baee93d6 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: Ic0db29743b092a5a2d01860e76356a38e3e4788b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 00:04:30 +00:00
Changyeon Jo
c070b5a14b Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: Ibcaac170949c319d2cff5b45bc8114238d0ada7b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 23:21:50 +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
Hao Chen
6cfe1f86e9 VTS: Skip the Check if getDisplayStateById is not Supported
Test: atest VtsHalEvsTargetTest
Bug: 276974949
Change-Id: I44d41b937611e06823fe8d2c8ef9d1da783bd17a
2023-04-14 16:07:08 -07:00
Alex Buynytskyy
ec1198d941 UpsideDownCake is now 34
Ignore-AOSP-First: UpsideDownCake Finalization
Bug: 275409981
Test: build
Change-Id: I832ab7a8b5445ba85e27bbcf5be64906bfa0e5be
2023-04-07 23:41:20 +00:00
TreeHugger Robot
9074fdc1da Merge "Correct comments" into udc-dev 2023-04-03 16:08:28 +00:00
Changyeon Jo
bc433a0d5b Correct comments
- Fix a typo on ExposureParameters.coarseIntegrationTimeLShift.
- Add a comment that describes a descriptor field of GridStatistics.

Bug: 276675923
Test: build
Change-Id: Ida93c21c9de7f7c1d661c790d82342750d5f29fe
2023-04-03 05:20:18 +00:00
Hao Chen
be81939285 Add VTS testcases for getDisplayStateById
Test: build
Bug: 275626422
Change-Id: I27dfced8f0040e6604baeed37df7e12f5ec5d73d
2023-03-29 16:20:09 -07:00
Hao Chen
ac8e696207 Uprev the EVS AIDL NDK Version
Bug: 262779341
Test: build
Change-Id: I39d2e6b969db11b03d4e1fe929b19d65f75e72ff
2023-03-29 15:50:00 -07:00
Hao Chen
96ca65804e Merge "Add VTS for EVS Display" into udc-dev 2023-03-29 20:05:39 +00:00
Hao Chen
e708da89b5 Add VTS for EVS Display
They are mostly copied from the HIDL 1.0 display test cases, with some minor changes.

Test: `atest VtsHalEvsTargetTest`
Bug: 275626422
Change-Id: Ica5379e7f021083b65ad8abf320f7751c1432c9e
2023-03-28 23:33:14 +00:00
Changyeon Jo
c9e4122f5b Implement incomplete or missing IEvsCamera methods
This CL completes IEvsCamera interface implementation by adding
following methods to a default AIDL EVS HAL implementation.
- IEvsCamera::importExternalBuffers()
- IEvsCamera::getIntParameterRange()
- IEvsCamera::setIntParameter()
- IEvsCamera::getIntParameter()

Fix: 275101894
Test: 1. Launch CVD in accelerated graphics mode (gfxstream).
      2. atest VtsHalEvsTargetTest --iteration 3
Change-Id: I70ed2a97f49d27146ce00cdaab9ca3f41a59fc98
2023-03-27 18:19:51 +00:00
Changyeon Jo
7e62631ea4 Revert "Revert "Add default implementation of AIDL EVS interface""
This reverts commit d12e05929a.

Bug: 218588089
Test: 1. Build cf_x86_64_auto lunch target.
      2. Launch cvd in the accelerated graphics mode.
      3. atest VtsHalEvsTargetTest and confirm that EVS HAL
         implementation passes all test cases except
         CameraStreamExternalBuffering that is not supported yet in new
         implementation.
      4. Run evs_app and confirm the color bar pattern is shown on the
         display.
         > adb root && adb shell evs_app --test
      5. Do the same on sdk_car_x86_64 lunch target.
Change-Id: I4647d0ef7a2bd98fdfcb3833bfb060b4063bc42e
2023-03-24 21:03:12 +00:00
Hao Chen
0e55469db9 Add Display ID when Getting Display State
Multiple displays can be opened concurrently, so display ID
is needed when getting status of active displays.

Test: build
Bug: 262779341

Change-Id: I12af698be85ba72f0fb81f143441956dd0bfe1d2
2023-03-16 11:23:21 -07:00
Kevin Han
d12e05929a Revert "Add default implementation of AIDL EVS interface"
Revert submission 21585493-b218588089

Reason for revert: b/273324345

Reverted changes: /q/submissionid:21585493-b218588089

Change-Id: I2826a16105f8e7b03f852f9babffb03d78d53fd0
2023-03-13 21:18:28 +00:00
Changyeon Jo
20dbc58c25 Add default implementation of AIDL EVS interface
This implementation is used for the emulators.

Bug: 218588089
Bug: 270753093
Test: 1. Build cf_x86_64_auto lunch target
      2. Launch cvd in the accelerated graphics mode
      3. Run evs_app and confirm the color bar pattern is shown on the
         display.
         > adb root && adb shell evs_app --test
Change-Id: I8179e74fc9f0b9547316368fca507e5c62ca5680
2023-03-11 01:51:13 +00:00
Treehugger Robot
b366b65df3 Merge "Update OWNERS file" am: 83248af588 am: d41829ab33 am: 4edb0654f5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2458408

Change-Id: I0f5edfc62b289662601d0d694cee148fd0baa483
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-01 06:49:59 +00:00
Changyeon Jo
24d22eb9df Update OWNERS file
Bug: 270900095
Test: Treehugger
Change-Id: Ieb0bf7eacb039db53da61207f2cb4ff70641bf75
2023-02-27 16:05:58 +00:00
Changyeon Jo
08a8a722dd Add APIs for the sensor embedded data
To make the sensor embedded data available to EVS clients, this change
adds new fields to BufferDesc and declare necessary data types.

Bug: 191939108
Test: build
Change-Id: Iaa41554e49c7ff30c11d391b00eae12dfef9e99b
2023-02-15 12:43:31 -08:00