Commit Graph

1310 Commits

Author SHA1 Message Date
Treehugger Robot
534c5eeea3 Merge "Revert "graphics: improve preloading for IMapper default impl"" am: aab958fef0 am: 3ce3ee6427 am: d95f1801c7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2497376

Change-Id: I1562de76110f9d938f00e3c603f6a2cf69e19a14
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-20 20:57:13 +00:00
Chia-I Wu
7ca92515be Revert "graphics: improve preloading for IMapper default impl"
This reverts commit 6d189b71a2.

Reason for revert: b/273884219, beagle_x15

Change-Id: I9706fc46f9aedbeb4bbcff7ebcb45939bcd20680
2023-03-20 16:36:56 +00:00
Kriti Dang
5fcddd74f6 Fixing the HDR conversion aidls
Bug: 251168514
Test: atest VtsHalGraphicsComposer3_TargetTest
Change-Id: I10310dd26809bd546c41d3d16bebcba711e43a50
2023-03-07 14:36:03 +00:00
Ram Indani
47a31d9393 Merge "[VTS] change the bool to lambda" into udc-dev 2023-03-04 00:13:28 +00:00
ramindani
9151889d57 [VTS] change the bool to lambda
BUG: 202734676
Test: atest VtsHalGraphicsComposer3_TargetTest
Change-Id: I5611cd8a6cc23491621470d6457e2bfc859fde4e
2023-03-03 18:51:09 +00:00
Ram Indani
9a7999d1eb Merge "VTS for the Refresh rate callback debug enabled" into udc-dev 2023-03-03 05:24:09 +00:00
ramindani
9dd8c4882b VTS for the Refresh rate callback debug enabled
BUG: 202734676
Test: atest VtsHalGraphicsComposer3_TargetTest
with the patch of
Ibc80d66eae6b21c3cf84d35fa819e97ccc509ede

Change-Id: I02bdf061420fe12ef4548008d66bb73e8cd416e8
2023-03-03 03:29:02 +00:00
Chia-I Wu
34eece60f5 Merge "graphics: improve preloading for IMapper default impl" am: 960c33c599 am: 697fddee77 am: 227a9f4155
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2459229

Change-Id: Ic80d75ea9db96d5dce2dd86942bddbecb0c5cd74
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-28 21:06:57 +00:00
Chia-I Wu
6d189b71a2 graphics: improve preloading for IMapper default impl
When GraphicBufferMapper::preloadHal dlopens the default impl, make sure
the gralloc module is also dlopen'ed.

Bug: 269664560
Test: android.view.cts.PixelCopyTest#testVideoProducer on grunt

Change-Id: I57418338d5212fb9a2c1ea82eba63d855f69ff32
2023-02-27 14:19:12 -08:00
Dorin Drimus
08212492f8 Fix VtsHalGraphicsComposer3_TargetTest / GetOverlaySupport
Test case is for composer starting with version 2 API, but the test case doesn't check version, so it fails for version 1 API.

Bug: 267565265
Test: 1. Push VtsHalGraphicsComposer3_TargetTest to device
2. Run VtsHalGraphicsComposer3_TargetTest
Test Command:
chmod 777 data/VtsHalGraphicsComposer3_TargetTest
./data/VtsHalGraphicsComposer3_TargetTest

Change-Id: I7bf37061aba84dfdfea5fc9dda5a300a1e5ec680
(cherry picked from commit 7493bbc999)
Merged-In: I7bf37061aba84dfdfea5fc9dda5a300a1e5ec680
2023-02-24 09:24:16 +00:00
Alec Mouri
bedde5e845 Check the correct sysprop for P010 support for gralloc 3 and 4. am: 960c14db22
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2441523

Change-Id: I86b2df035255b94e8a682c1870efea0df450aec4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-18 02:10:40 +00:00
Alec Mouri
960c14db22 Check the correct sysprop for P010 support for gralloc 3 and 4.
We need to check the first api level that the vendor shipped with.

Also check P010 support in the preamble of the relevant test rather than in allocate(), since otherwise either allocate() may incorrectly skip some tests or allocate() may succeed but with the wrong layout information.

Bug: 257442231
Test: VtsHalGraphicsMapperV4_0TargetTest
Change-Id: I00ae5aa01117704158c38f0689e91df99473e208
Merged-In: I00ae5aa01117704158c38f0689e91df99473e208
2023-02-16 23:16:14 +00:00
Alec Mouri
b9f8d25652 Merge "Check the correct sysprop for P010 support for gralloc 3 and 4." 2023-02-15 22:23:47 +00:00
Alec Mouri
78d76ea43f Check the correct sysprop for P010 support for gralloc 3 and 4.
We need to check the first api level that the vendor shipped with.

Also check P010 support in the preamble of the relevant test rather than in allocate(), since otherwise either allocate() may incorrectly skip some tests or allocate() may succeed but with the wrong layout information.

Bug: 257442231
Test: VtsHalGraphicsMapperV4_0TargetTest
Change-Id: I00ae5aa01117704158c38f0689e91df99473e208
2023-02-15 02:37:49 +00:00
Kriti Dang
376227694f Update setHdrConversionStrategy to return the preferredHdrOutput type
Bug: 268336382
Test: atest VtsHalGraphicsComposer3_TargetTest
Change-Id: I6ac912ac8a0329f4ea32acad657e44b473660c42
2023-02-14 18:10:16 +00:00
Ram Indani
f08f437e51 Merge changes from topic "hwc-rri"
* changes:
  [HWC3] VTS client updates for onRefreshRateChangedDebug callback And for setRefreshRateChangedCallbackDebugEnabled
  [HWC3] AIDL implementation for Refresh Rate Overlay indicator
2023-02-13 23:00:03 +00:00
ramindani
8345034b53 [HWC3] VTS client updates for onRefreshRateChangedDebug callback
And for setRefreshRateChangedCallbackDebugEnabled

This does not add any implementation for the VTS code.
Implementation will be added with the VTS tests as a followup.

Test: Device boots
BUG: 202734676
Change-Id: If47bbcf87698b346907b3bc1903908ff0a63203f
2023-02-10 14:27:09 -08:00
ramindani
ff0da0bb24 [HWC3] AIDL implementation for Refresh Rate Overlay indicator
Adds IComposerClient method to inform that the Refresh Rate callback is enabled.
Adds IComposerCallback to get the display vsyncPeriod for the Overlay.
Adds Composition type REFRESH_RATE_INDICATOR

Test: Device boots
BUG: 202734676
Change-Id: I48b0c05f49095b15cea444dc5c3ad8f78a043cb0
2023-02-10 09:25:47 -08:00
Sally Qi
2b4ceb6365 Add exception annotation to getOverlaySupport api.
Bug: 268246323
Test: builds
Change-Id: I1979fed444a9fd3d94af729112fff070beb01439
2023-02-08 12:59:54 -08:00
Yi Kong
0214404f6e Fix compiler warning discovered by clang-r484482 am: 07448c2929 am: ba993e51e8 am: 661d9018c7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2402792

Change-Id: I195de8f952c0b9091e4e57d64535e4e2014f3fb5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-25 20:10:23 +00:00
Yi Kong
07448c2929 Fix compiler warning discovered by clang-r484482
external/googletest/googletest/include/gtest/gtest.h:1545:11: error: invalid operands to binary expression ('const std::vector<unsigned char>' and 'const android::hardware::hidl_vec<unsigned char>') [clang-diagnostic-error]
  if (lhs == rhs) {
      ~~~ ^  ~~~

Test: presubmit
Change-Id: Iabe98a58d5dc5b9943c38240da2d8df6ac61fb7f
2023-01-26 01:23:03 +09:00
Sally Qi
a0545e3057 Merge "[Aidl graphics API] split dataspace array into tuples." 2023-01-24 16:34:02 +00:00
Devika Krishnadas
e794f8f5e4 Merge "gralloc4-vts: Remove assert for sizeInBits for RAW formats" 2023-01-20 20:57:09 +00:00
Treehugger Robot
7603d62a20 Merge "Drop <name>I</name> from mapper HAL." am: d2bbda8b32 am: 116ddaf033 am: 81f4ddd0c5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2392038

Change-Id: Ieb1ffe7a2a24c93b6696acd9d9c178475b826aef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-20 18:54:25 +00:00
Treehugger Robot
d2bbda8b32 Merge "Drop <name>I</name> from mapper HAL." 2023-01-20 17:10:47 +00:00
Sally Qi
c2c392fbea [Aidl graphics API] split dataspace array into tuples.
- update VTS test to make sure primaries/transfers/ranges bits are
  correct.

Bug: 242588489
Test: build and flash; atest VtsHalGraphicsComposer3_TargetTest

Change-Id: I77536d97b98e4dead208b7c8aeed9cfbb0d82316
2023-01-19 15:50:17 -08:00
Brian Lindahl
348bc9d779 Merge changes from topic "revert-uncache-hal-buffers-vts"
* changes:
  Revert "Add VTS test for clearing buffer slots to Composer HIDL and AIDL"
  Revert "Add VTS readback tests for buffer slot clearing"
  Revert "Add VTS for new API for clearing buffer slots"
2023-01-19 20:53:54 +00:00
Brian Lindahl
14bd07b195 Revert "Add VTS test for clearing buffer slots to Composer HIDL and AIDL"
This reverts commit ca3eef29b0.

NOTE: This is not a full revert, it leaves the production code in place and only reverts the VTS test changes.

Reason for revert: b/262370410

Test: atest VtsHalGraphicsComposerV2_1TargetTest on Oriole
Test: atest VtsHalGraphicsComposerV2_2TargetTest on Oriole
Test: atest VtsHalGraphicsComposerV2_3TargetTest on Oriole
Test: atest VtsHalGraphicsComposerV2_4TargetTest on Oriole
Bug: 262370410
Change-Id: Ie5ba7402cda2828ba33131d527ab0c3a66937648
2023-01-18 21:18:55 +00:00
Brian Lindahl
e887a25203 Revert "Add VTS readback tests for buffer slot clearing"
This reverts commit d103cd6828.

NOTE: This is not a full revert, it leaves the production code in place and only reverts the VTS test changes.

Reason for revert: b/262370410

Test: atest VtsHalGraphicsComposerV2_1TargetTest on Oriole
Test: atest VtsHalGraphicsComposerV2_2TargetTest on Oriole
Test: atest VtsHalGraphicsComposerV2_3TargetTest on Oriole
Test: atest VtsHalGraphicsComposerV2_4TargetTest on Oriole
Bug: 262370410
Change-Id: I336beb9f0ed81b305b26c6d8e9da70cfabe04bbd
2023-01-18 21:18:21 +00:00
Brian Lindahl
952057044b Revert "Add VTS for new API for clearing buffer slots"
This reverts commit 78ff2d6491.

NOTE: This is not a full revert, it leaves the production code in place and only reverts the VTS test changes.

Reason for revert: b/262370410

Test: atest VtsHalGraphicsComposerV2_1TargetTest on Oriole
Test: atest VtsHalGraphicsComposerV2_2TargetTest on Oriole
Test: atest VtsHalGraphicsComposerV2_3TargetTest on Oriole
Test: atest VtsHalGraphicsComposerV2_4TargetTest on Oriole
Bug: 262370410
Change-Id: Ica725cfaae6e2a08ed9c53eb9f17d6db1656bc93
2023-01-18 21:16:20 +00:00
Carlos Martinez Romero
7a6d907b99 Merge "Deprecate SKIP_VALIDATE." 2023-01-18 19:04:38 +00:00
Yifan Hong
ccb250d550 Drop <name>I</name> from mapper HAL.
libvintf now supports empty interface names for native HALs.

Test: TH
Bug: 264267049
Change-Id: Ie525478631e785ce8b9d813d08b0a92331047ced
2023-01-17 15:23:32 -08:00
Kriti Dang
5422df8f30 Merge "ComposerHAL APIs for HDR output control" 2023-01-17 17:37:35 +00:00
Sally Qi
c0f28978fa Merge "Remove length check to allow empty HDR10+ blobs to HWC" am: 2b42a74573 am: a7f01798f5 am: a0442dda02
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2374997

Change-Id: I7907436ae2e0460db31ec033e603442bc1120ab2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-13 22:07:13 +00:00
Sally Qi
2b42a74573 Merge "Remove length check to allow empty HDR10+ blobs to HWC" 2023-01-13 18:24:15 +00:00
Kriti Dang
3793ebdaea ComposerHAL APIs for HDR output control
Bug: 251168514
Test: atest VtsHalGraphicsComposer3_TargetTest
Change-Id: Icf5437c6dab2c8ce9247617f6e6006051fc206fb
2023-01-13 17:58:30 +01:00
Devika Krishnadas
7f3f32177b gralloc4-vts: Remove assert for sizeInBits for RAW formats
sizeInBits for components in RAW formats do not have to be invalid even if the bits are not contiguous.

Bug: 265348037
Test: atest VtsHalGraphicsMapperV4_0TargetTest

Change-Id: I69f58226e988c20b8ba5499ffec4fa0e2b2a68df
Signed-off-by: Devika Krishnadas <kdevika@google.com>
2023-01-13 00:28:04 +00:00
Treehugger Robot
ad6f10ae9f Merge "Clarify format BLOB locking" am: 66cf51232c am: c764d58ed8 am: 36c65361a0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2381019

Change-Id: I475aa5d0f415480aa1d9d8c599c55c4c8c0dceaf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-12 07:32:53 +00:00
Carlos Martinez Romero
cd04361bb3 Deprecate SKIP_VALIDATE.
Bug: 258549211
Test: Built it and flashed it + added a test.
Change-Id: I7a0dbea4dc0e6687f65d2136a8d21867d7232626
2023-01-11 23:49:21 +00:00
John Reck
5f86e5de89 Merge "Clarify deprecation message" am: fb373b0613 am: 394cdfbbac am: d62f8aa809
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2381012

Change-Id: I6dca82a54dbb55b2c8f80fd4b11efcc89c11fe36
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-11 01:01:41 +00:00
Sally Qi
1ae586175d Merge "[Graphics AIDL interface] add supportMixedColorSpaces boolean variable." 2023-01-10 21:32:01 +00:00
Sally Qi
2060a4e647 Remove length check to allow empty HDR10+ blobs to HWC
Bug: 212496177
Test: builds
Change-Id: Iad121cd6515e826c4b57976b14e7a5eb947b1728
2023-01-10 11:11:54 -08:00
John Reck
0c1a059f01 Clarify format BLOB locking
Bug: 162571907
Test: n/a doc only change
Change-Id: I3ab26cee8a790067447781e13062c62fc3b7c01c
2023-01-10 11:25:56 -05:00
John Reck
a190be3f86 Clarify deprecation message
Note that it's still used if mapper@4 is still used

Test: n/a doc only change
Change-Id: I21d3070684592f2931842acb43466ae4236856e6
2023-01-10 10:56:00 -05:00
John Reck
741ffc2fd8 Merge "Add a README and a standardizable VERSION" am: a74147236c am: 313e0cec86 am: f42300352e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2375176

Change-Id: I68e182beadfeaa8cb932a8fab501812cca694294
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-09 20:36:39 +00:00
Shubhangi Pawar
3e1907ae4a Merge "composer: vts: Init display dimension using active config" into android13-tests-dev 2023-01-09 18:59:00 +00:00
John Reck
a74147236c Merge "Add a README and a standardizable VERSION" 2023-01-09 18:38:26 +00:00
Treehugger Robot
9cd21bb582 Merge "Add ExtendableType to allocate" am: 0a9430add2 am: efa98b101f am: 926b4d8b2d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2364519

Change-Id: I21a7c5c74a94f434d9f1237f742cb3f261b4f0be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-09 09:37:10 +00:00
Treehugger Robot
0a9430add2 Merge "Add ExtendableType to allocate" 2023-01-09 08:05:54 +00:00
Treehugger Robot
bca716810c Merge "composer: vts: Init display dimension using active config" am: 12c9d664aa am: 177e0aeaaa am: df623aa638
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2302957

Change-Id: Ib27af495e361717e6c4466e8568d803110e6e0f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-09 06:29:20 +00:00