Commit graph

1474 commits

Author SHA1 Message Date
Manali Bhutiyani
18f658cde4 Merge "DisplayDecoration test: destroy layers per display" into main 2024-04-18 16:37:56 +00:00
Leon Scroggins III
c2a83d449c DisplayDecoration test: destroy layers per display
This appears to have been broken with
Ic3c0415612b1387671ab8efa0ec95ed727f6bf68, which attempts to destroy
layers for all displays using a single writer. The display command that
destroys a layer must be in the writer for that display, in order for
the displays to run independently. Do so in the test itself, rather than
relying on TearDown to destroy all of them.

Bug: 333974982
Test: atest VtsHalGraphicsComposer3_TargetTest
Flag: TEST_ONLY
Change-Id: Ib6807c85bc6cb32c56cc72126a9fa68363365912
2024-04-17 14:49:20 -04:00
Hsin-Yi Chen
e32d58be85 Merge "Move libimapper_stablec ABI dumps from prebuilts/abi-dumps" into main am: cdf6fc5424 am: e835d02eb8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3043453

Change-Id: I2e361cc7538e4edb8e045df28befeaf7950421ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-17 08:00:38 +00:00
Hsin-Yi Chen
219876109a Move libimapper_stablec ABI dumps from prebuilts/abi-dumps
The update process for prebuilts/abi-dumps/platform will be adapted for
trunk stable. The ABI dumps for libimapper_stablec are moved to
"abi-dumps" in this project so that the trunk stable release process
will not affect them.

Test: m libimapper_stablec_abicheck
Test: development/vndk/tools/header-checker/utils/create_reference_dumps.py \
      -libs libimapper_stablec_abicheck --lib-variant PLATFORM \
      -ref-dump-dir hardware/interfaces/graphics/mapper/stable-c/abi-dumps \
      -products aosp_arm64
Bug: 333532038
Change-Id: Ia69daa721ef983c18118bd6d0a70dd5b7a0a47a2
2024-04-16 20:21:56 +08:00
Ram Indani
8892a927f4 Merge "[Composer-VTS] Check minFrameIntervalNs to check if rate is changing" into main 2024-04-05 23:00:28 +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
ramindani
3ba7334dba [Composer-VTS] Check minFrameIntervalNs to check if rate is changing
With different VRR modes we may have 2 modes with
exactly the same minFrameIntervalNs, and in this case we can't
differentiate between 2 modes.

Test: atest VtsHalGraphicsComposer3_TargetTest
BUG: 328350178
Change-Id: I5cddfee8b789ed6ce1b223ec345175f19a0db091
2024-04-04 11:34:40 -07:00
Manali Bhutiyani
f687f7f7b8 [vts] Fix VTS batched-command tests
Fix VTS tests per comments in b/304976052.
Removing redundant tests, as existing CreateLayer, DestroyLayer,
 CreateLayer_BadDisplay and  DestroyLayer_BadDisplay
already provide the needed coverage.

Bug: 304976052
Test: atest VtsHalGraphicsComposer3_TargetTest
      atest PerInstance/GraphicsComposerAidlBatchedCommandTest
Change-Id: I34cb6a69aad6d8f86772a82833b8f15e465fe8d3
2024-04-04 18:20:30 +00:00
Treehugger Robot
22d9bade44 Merge "Fix annotation in doc" into main am: 2116f9c807 am: 2b16275c92
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3002168

Change-Id: Iad540930b35db7995e8d88582a9b64f4ac8ebde0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-20 01:26:43 +00:00
Treehugger Robot
2116f9c807 Merge "Fix annotation in doc" into main 2024-03-20 00:41:09 +00:00
Ady Abraham
530024ea4a composer: vts: add support for batched create/destroy layers
Bug: 315517904
Fixes: 329461909
Test: atest VtsHalGraphicsComposer3_TargetTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a00d246f2725b22d32b2908230de7620238827ba)
Merged-In: Ic3c0415612b1387671ab8efa0ec95ed727f6bf68
Change-Id: Ic3c0415612b1387671ab8efa0ec95ed727f6bf68
2024-03-19 23:11:56 +00:00
Leon Scroggins
9375782730 Merge "Provide better documentation for CommandErrors" into main 2024-03-15 15:09:35 +00:00
Leon Scroggins III
5e2c3fe166 Provide better documentation for CommandErrors
Some HWC implementations which do not support DISPLAY_DECORATION are
handling DISPLAY_DECORATION layers in VTS by reporting an error (as
required by the test) AND by proposing ChangedCompositionTypes. The
latter is unnecessary, as SF will never read the changed types. Update
the documentation to be more specific that this is unnecessary.

Bug: b/324977561
Bug: b/329119344
Bug: b/329017438
Bug: b/327322951
Bug: b/327090469
Test: GraphicsComposerAidlCommandTest#DisplayDecoration
Change-Id: I09c90e40818dc43b968c3e79e61e8b13a13e6344
2024-03-14 16:43:14 -04:00
John Reck
52414d1c2a Fix annotation in doc
Change-Id: I4fb90e7b30659227263087c85b98db31bb039184
2024-03-14 01:58:19 +00:00
Kiyoung Kim
09639b93ba 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. Any former VNDK-SP libraries will be marked as double-loadable,
so it can keep be able to be referenced by LLNDK libraries.

Bug: 328994089
Test: AOSP CF build succeeded
Change-Id: Ic4f19113c1a25dc1fb60cdfbf9c0f2d8d7d09726
Ignore-AOSP-First: Merge conflict
2024-03-13 11:28:18 +09:00
Devin Moore
9eec1433fa Merge "Vendor API level 202404 is now frozen" into main 2024-02-29 17:14:40 +00:00
Sally Qi
9b9ab2b71f Merge "Add vts case for OverlayProperties#isMixedColorSpacesSupported." into main 2024-02-27 00:05:14 +00:00
Sally Qi
0ca29273dc Add vts case for OverlayProperties#isMixedColorSpacesSupported.
- add sRGB and DisplayP3 layers in HWC, if mixedColorSpaces is
   supported, only DPU composition happens.

Bug: 311252937
Test: this
Change-Id: I400a6dd18a05bbdf69e249907e13a4fa7eafbf01
2024-02-26 10:34:11 -08:00
Devin Moore
a8efdb127e Vendor API level 202404 is now frozen
Ignore-AOSP-First: VINTF 202404 Finalization
Bug: 279809333
Test: build
Change-Id: Ie6d38d27a287e258c30516e0030ad8c931d06432
2024-02-20 21:05:23 +00:00
Ram Indani
6fd42c45dc Merge "[Composer-VTS] Adds vts for notifyExpectedPresent" into main 2024-02-16 17:21:18 +00:00
ramindani
fc93b73f78 [Composer-VTS] Adds vts for notifyExpectedPresent
Includes VTS for notifyExpectedPresent call,
frameRate change in the present call and
notifyExpectedPresent after timeout.

Test: atest VtsHalGraphicsComposer3_TargetTest
BUG: 291792736
Change-Id: I1ef7011d7dcbdd6bb378b80ca0b0d7cd52832897
2024-02-16 04:03:00 +00:00
Jooyung Han
4a6f517afd Merge "Use new API to load mapper" into main am: f6b4016c32 am: c1e4f6ede3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2963302

Change-Id: Ic1d942011cd9745f75850dc3482cb435eb29496c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-14 23:38:35 +00:00
John Reck
63143aa816 Merge "Fix VENDOR_MASK constant" into main 2024-02-14 23:37:56 +00:00
Jooyung Han
c1e4f6ede3 Merge "Use new API to load mapper" into main am: f6b4016c32
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2963302

Change-Id: I62e056a3c0ed6a4ac130fae5c01ee455b0da061e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-14 22:59:48 +00:00
John Reck
1d762b4e86 Fix VENDOR_MASK constant
It's not supposed to be sign-extended as that blocks off the entire
28-64 bit range instead of the 28-31 bit range as indicated in the
comment

As this value is correct in HIDL and in the docs, do a history
re-write of the AIDL value to match the intended (and previous)
values.

Test: make
Bug: 323484008
Change-Id: I0b373576a366c853c87109a9b24ec9f8d9cbdb4d
2024-02-14 15:21:35 +00:00
Treehugger Robot
446813dff6 Merge "Use new API to load mapper" into main am: 6a5da15033 am: 52e9ebfa91
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2960862

Change-Id: I42b3f655502f96e3b84518a666fd5b28353b98bd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-14 02:11:58 +00:00
Treehugger Robot
52e9ebfa91 Merge "Use new API to load mapper" into main am: 6a5da15033
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2960862

Change-Id: If9bc9393e42d5af792d04fabda945c2bb1a5a028
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-14 01:32:01 +00:00
Jooyung Han
4784c0b0b3 Use new API to load mapper
AServiceManager_getDeclaredPassthroughHal() can replace
android_load_sphal_library().

Bug: 316051788
Test: VtsHalGraphicsAllocatorAidl_TargetTest
Change-Id: I50021790693c3ec2bce8cb4af96b0d6ee276b2e7
2024-02-14 09:48:00 +09:00
Jooyung Han
0425704133 Use new API to load mapper
AServiceManager_getDeclaredPassthroughHal() can replace
android_load_sphal_library().

Bug: 325018681
Test: VtsHalGraphicsMapperStableC_TargetTest
Change-Id: I004355a9df8bd1ba4f9fb00149d7fddb9ac9f499
2024-02-13 21:37:47 +09:00
Treehugger Robot
c78f9f21f6 Merge "[DON'T BLOCK] Test ownership migration rules" into main am: 27e97308c4 am: 74dc4cc5d7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2950589

Change-Id: I9a26bb26763d77e109f1d911d0ea7c95f632703f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-07 02:26:27 +00:00
Treehugger Robot
74dc4cc5d7 Merge "[DON'T BLOCK] Test ownership migration rules" into main am: 27e97308c4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2950589

Change-Id: Ie4f36b193820490e606e7f5100ca29200f832fa2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-07 01:45:21 +00:00
Leon Scroggins III
63c8fea778 VTS: Add flag dependency so librenderengine can be used
I6c436b6b80b27930d82aabf22107216172773b56 adds a dependency for
librenderengine on flags. Add that dependency so we can use
librenderengine here, too.

Bug: 305445199

Test: atest VtsHalGraphicsComposerV2_2TargetTest
Test: atest VtsHalGraphicsComposer3_TargetTest
Change-Id: If339ac94a6eff4af34e60cf1c1135289b8915441
2024-02-05 12:51:01 -05:00
Aditya Choudhary
ad2ba1b851 [DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
go/new-android-ownership-model

Bug: 304529413
Test: N/A
Change-Id: Ic8c4bd6ac246e7efa98bbdaf822d12ae8e1230a5
2024-02-05 15:45:22 +00:00
Aditya Choudhary
39ed8dc1ad [DON'T BLOCK] Test ownership migration rules am: c5c6c62995 am: 85d604d0db
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2939799

Change-Id: I68af10e082403fcfdbd89e7d63bb07f207bc06e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-31 17:46:24 +00:00
Aditya Choudhary
85d604d0db [DON'T BLOCK] Test ownership migration rules am: c5c6c62995
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2939799

Change-Id: I1046113ffdcd09649fa65e023aae0969262772e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-31 17:06:10 +00:00
Aditya Choudhary
c5c6c62995 [DON'T BLOCK] Test ownership migration rules
This CL is created as a best effort to migrate test targets
to the new android ownership model. If you find incorrect or unnecessary
attribution in this CL, please create a separate CL to fix that.

For more details please refer to the link below,
<add g3 doc link>

Bug: 304529413
Test: N/A
Change-Id: I3322344f595f974f730dc824af0110388076d838
2024-01-31 11:06:17 +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
Ady Abraham
fc1e3f11ad composer: vts: don't clear reader errors on teardown
Fixing a bug that caused Teardown to clear the errors before
checking them

Bug: 303735490
Test: presubmit
Change-Id: Ieb02ab3015fc21bcef6624f8f45c3b84549005c2
2024-01-10 18:13:59 +08:00
Manali Bhutiyani
e558994665 Merge "Update aidl documentation" into main 2024-01-09 21:52:38 +00:00
Manali Bhutiyani
3dc6dd2bd4 Update aidl documentation
Bug: 290685621
Test: N/A

Change-Id: I1d30c24e667ce02d7553462d663cf66a32aa4b4b
2024-01-09 20:14:14 +00:00
Leon Scroggins
50ede7f71a Merge "Avoid crashing when failing graphics VTS" into main 2024-01-09 19:00:47 +00:00
Leon Scroggins III
94f4b20dcf Avoid crashing when failing graphics VTS
When the tests fail, ensure we continue running so we can run the
remainder of the tests.

Bug: 304976052
Test: atest GraphicsComposerAidlCommandTest
Change-Id: Ia6ab2bbd284bb7eddeb49164dcbe7285829ad9c3
2024-01-09 12:39:11 -05:00
Wiwit Rifa'i
c67c887c5a composer: vts: update getClientTargetSupport tests
Ensure the primary display to set power on before running
getClientTargetSupport tests for VTS 2.1 - 2.3.

Bug: 308252481
Test: atest VtsHalGraphicsComposerV2_1TargetTest
Test: atest VtsHalGraphicsComposerV2_2TargetTest
Test: atest VtsHalGraphicsComposerV2_3TargetTest
Change-Id: I6b793537ee42c87f37c4c1d7141364541f448134
2024-01-05 16:29:12 +08:00
Ady Abraham
a00d246f27 composer: vts: add support for batched create/destroy layers
Bug: 315517904
Test: TBD
Change-Id: Ic3c0415612b1387671ab8efa0ec95ed727f6bf68
2023-12-27 22:32:45 +00:00
ramindani
52416e06ff [Composer3] Update notifyExpectedPresent parameter names
Update the timeoutNs description to specify what 0 and not absent value
expected behavior is
BUG: 294102485
Test: VTS

Change-Id: I3954c8f1efad8190ed6d608e2968fe1dc15c2f11
2023-12-21 08:58:00 -08:00
Peter Lin
f43004efcf [VTS] Update SetDisplayBrightness test item am: 70d2ef6b34
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2883951

Change-Id: Ia57991b0f949307764afeb9fe9fa58c67740900e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-21 02:13:22 +00:00
Peter Lin
70d2ef6b34 [VTS] Update SetDisplayBrightness test item
Ensure the primary display power on before run the
SetDisplayBrightness test item.

Bug: 313794734
Test: atest VtsHalGraphicsComposer3_TargetTest:PerInstance/
      GraphicsComposerAidlCommandTest#SetDisplayBrightness/
      0_android_hardware_graphics_composer3_IComposer_default
      -- --abi arm64-v8a
Change-Id: I94fb700704bcbd8543f2a608dd75b9e745e40e37
Merged-In: I94fb700704bcbd8543f2a608dd75b9e745e40e37
2023-12-20 06:49:27 +00:00
Treehugger Robot
59d64f830e Merge "[VTS] Update SetDisplayBrightness test item" into main 2023-12-19 11:27:19 +00:00
Peter Lin
b9fbd4e3c7 [VTS] Update SetDisplayBrightness test item
Ensure the primary display power on before run the
SetDisplayBrightness test item.

Bug: 313794734
Test: atest VtsHalGraphicsComposer3_TargetTest:PerInstance/
      GraphicsComposerAidlCommandTest#SetDisplayBrightness/
      0_android_hardware_graphics_composer3_IComposer_default
      -- --abi arm64-v8a
Change-Id: I94fb700704bcbd8543f2a608dd75b9e745e40e37
2023-12-14 06:03:58 +00:00
Ram Indani
730f86fe18 Merge changes from topic "RRN" into main
* changes:
  [Composer3-VTS] Test Composer3-V3 for refreshPeriodNanos and vsyncPeriodNanos
  [HWC3] AIDL change to add refreshPeriodNanos to RefreshRateChangedDebugData
2023-12-13 19:03:18 +00:00