Commit Graph

1185 Commits

Author SHA1 Message Date
Trevor Black
3e01679bb5 Merge "The aidl changes necessary to add requested AHB format enums" 2022-12-21 00:24:27 +00:00
Trevor David Black
060a59992d The aidl changes necessary to add requested AHB format enums
PIXEL_FORMAT_R_16_UINT
- AHARDWAREBUFFER_FORMAT_R16_UINT
PIXEL_FORMAT_RG_1616_UINT
- AHARDWAREBUFFER_FORMAT_R16G16_UINT
PIXEL_FORMAT_RGBA_10101010
- AHARDWAREBUFFER_FORMAT_R10G10B10A10_UNORM

Bug: 233033456
Test: Build
Change-Id: I7b9829f549dd6d931531f14fef458d1fecc82ac9
2022-12-15 19:18:11 +00:00
John Reck
0e4732c1a5 Adjust IMapperMetadataTypes.h to match gralloc4 encoding
Specifically include the header encoding. Initially
omitted as it's a bit redundant, the value in having
bit-for-bit identical encoding between gralloc4 &
imapper5 seems worthwhile enough to keep it.

Test: impltests + VtsHalGraphicsMapperStableC
Change-Id: Iee37bb97acf40362c301a06f9118938b1a0c2cd9
2022-12-15 13:50:07 -05:00
John Reck
749f5af092 Add some more tests & tweak spec around SMPTE2094-40
Test: this
Change-Id: If7c549b8efcf490859f10c225a700188b76a54fa
2022-12-15 13:49:55 -05:00
Steven Moreland
2e37f01273 Merge "graphics.common V3 -> V4" 2022-12-09 17:21:59 +00:00
Sally Qi
ab88d5cac3 Merge "Expose COLOR_MODE_DISPLAY_BT2020." 2022-12-08 17:00:12 +00:00
Marc Kassis
9c428fe3ed graphics.common V3 -> V4
Bug: 251177105
Test: m
Change-Id: I816b8e14a0741402090cdc4732c2a904e830ff4e
Merged-In: I1cb84ec85f98789d0737207a1661b39a25538c96
Merged-In: I2e1561f4ccb59a2a833af9a7afd07840ab2ebfa4
2022-12-07 10:53:12 +00:00
Sally Qi
d43651c2a8 Expose COLOR_MODE_DISPLAY_BT2020.
Bug: 256551001
Test: build and flash; hidl-gen -L hash
android.hardware:hardware/interfaces
android.hardware.graphics.common@1.2::types >> current.txt

Change-Id: I33116c1b31bd981b04489bc9704a54e97332aed7
2022-12-01 22:07:33 -08:00
John Reck
4346ad0f75 Merge "IMapper 5 - the Stable C approach" 2022-12-01 23:48:40 +00:00
John Reck
97f313746f IMapper 5 - the Stable C approach
Test: make VtsHalGraphicsMapperStableC_TargetTest VtsHalGraphicsAllocatorAidl_TargetTest

Change-Id: I910b27f388e3fb7261425dd4b2133885c05edd37
Merged-In: I910b27f388e3fb7261425dd4b2133885c05edd37
2022-12-01 17:37:59 +00:00
Steven Moreland
558762c14d allocator frozen false
magic -> explicit

Bug: 259465531
Test: N/A
Merged-In: I56b04a0f682a0ba3dc58a42c0a14bb506591c594
Change-Id: I56b04a0f682a0ba3dc58a42c0a14bb506591c594
(cherry picked from commit f65553745b)
2022-11-23 21:29:48 +00:00
Steven Moreland
e9d1bca6d7 Merge "composer3 frozen" 2022-11-21 20:30:28 +00:00
Steven Moreland
576e098973 composer3 frozen
magic -> explicit

Bug: 259465531
Test: build
Merged-In: Iefdfe812fc9309a0a758eedb3da9d3676e956f02
Change-Id: Icc336c6640adc064e755ab23c934d7d07cc6339f
2022-11-19 04:26:01 +00:00
Treehugger Robot
3777e1cb44 Merge "a.h.graphics.common frozen true" 2022-11-19 00:51:08 +00:00
Steven Moreland
3bc7a4937d a.h.graphics.common frozen true
magic -> explicit

Bug: 259465531
Test: build
Merged-In: I080bee98df6d4ad8799dd60c5090c2e79244ce2f
Change-Id: I3223d33c296c73e7c14e8ed87806ba6ed8ff3392
2022-11-18 20:11:02 +00:00
Steven Moreland
00ba1e951d android.hardware.graphics.allocator - VNDK - use V1
Breaking SDK finalization.

Bug: 259146177
Change-Id: I637ab649cbd1d0c886c91859398888f22025b963
Test: N/A
2022-11-17 00:07:44 +00:00
Treehugger Robot
38bd71130e Merge "Preemptive minimal import" 2022-11-16 03:09:04 +00:00
John Reck
1dd64b4f83 Preemptive minimal import
Just to handle conflicts from internal

Test: make
Merged-In: I6fbc22272ba95b44aa09ff08f9d9a7adbb9ae8be
Change-Id: Ibe3ca5c654057b60fa9f045e6fc1f39d14463b44
2022-11-15 16:27:54 -05:00
Treehugger Robot
e42d6d0bb9 Merge "Remove unused include Util.h." 2022-11-02 18:57:18 +00:00
John Reck
15703c76af Update OWNERS
Remove all subfolder OWNERS in favor of single top-level
Update top-level OWNERS

Fixes: 230785548
Test: n/a

Change-Id: I9e4f4fa7938e31f0caf864836889f8ebb5ca5675
2022-11-02 12:36:41 -04:00
Rachel Lee
c85172b200 Remove unused include Util.h.
Util.h is not used in ComposerServiceWriter so it should not be
included. Otherwise when using ComposerServiceWriter, Util.h is not
found in the local directory.

Bug: 255623263
Test: m
Test: flashall to device

Change-Id: I4ce57b37d6a9a899d114e5ac64d443cfa51d826a
Merged-In: I4ce57b37d6a9a899d114e5ac64d443cfa51d826a
2022-11-01 17:17:11 +00:00
Sally Qi
a1c66a2993 Add cc_defaults wrapper for android.hardware.graphics.allocator ndk
package.

- to avoid manually rev up if needed.

Bug: 243429120
Test: builds
Change-Id: I25bfcc203cda61af308c37c3766fa9efe6c6784c
Merged-In: I25bfcc203cda61af308c37c3766fa9efe6c6784c
2022-10-20 18:27:12 -04:00
Jason Macnak
866abc15d9 Support P010 with Gralloc2 on Gralloc1 passthrough
... by updating the toYCbCrLayout function to more closely follow
the requirements found in the comments of `android_flex_plane_t`.

Bug: b/244411455
Test: untested.
Change-Id: I1173253e25583336bf480160d4f6ac9f72882971
2022-09-14 13:10:22 -07:00
JihCheng Chiu
d0dbe4ef03 fix segmentation fault of GraphicsComposerAidlCommandTest
When we run the VTS of GraphicsComposerAidlCommandTest, we always meet
segmentation fault issue in some test items. VTS test items crashed
when it deleted the layer or display from resource manager and try to
go next loop.
The problem is the test item try to delete the layer iterator or
display iterator in the loop, so the iterator become an invalid
iterator. Then it try to use the invalid iterator for going to next
iterator. This behavior caused segmentation fault. We use different
way to fix deleting layer and deleting display.
Delete layer: Test item always delete all layer for each display, so
              we always delete layer via get the first iterator until
              the resource manager is empty.
Delete display: Test item only delete virtual display, so we move the
                physical display to a temporary map. After delete all
                virtual display, we swap the temporary map and
                original map.

Bug: 243781450
Test: 1. test GraphicsComposerAidlCommandTest.SetLayerColorTransform
         for deleting layer
      2. test GraphicsComposerAidlCommandTest.SetOutputBuffer
         for deleting disply

Change-Id: Id467df658e78ed29fdfc039cabc119f8bf62d69d
2022-08-26 02:11:23 +00:00
William Escande
2591c3d0cf [Bluetooth apex] Use new apex name
The Bluetooth apex name is now called com.android.btservices

Bug: 243054261
Test: Build
Change-Id: Ib63646722cbef948b5198fc5f2a9b5ac2ca52ae3
2022-08-22 11:27:58 -07:00
Xin Li
035ee7b933 DO NOT MERGE - Merge TP1A.220624.013
Merged-In: I25e8f827645db8e83c8c3142f5e76a912fdf7b22
Change-Id: Iabfc2e451749cbfe858e7bca6492565bf020d878
2022-07-11 21:47:42 -07:00
Midas Chien
8c75b834f4 composer: vts: configure layer for DisplayDecoration
Some HW may not support crop function for decoration and current API
can't query this capability. Configure decoration layer to full screen
to avoid this limitation.

Bug: 225765061
Test: VtsHalGraphicsComposer3_TargetTest
--gtest_filter=*DisplayDecoration*

Change-Id: If47154adf9d48f9c1b8390b4bee090d8bf40ff3b
(cherry picked from commit 7d55d4269d)
Merged-In: If47154adf9d48f9c1b8390b4bee090d8bf40ff3b
(cherry picked from commit 308f4ac906)
Merged-In: If47154adf9d48f9c1b8390b4bee090d8bf40ff3b
2022-06-29 00:03:45 +00:00
Ram Indani
3171473723 Merge "[VTS] Update allocator name for AIDL allocator." into tm-dev am: 82b65f9e42
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18739824

Change-Id: I5650d21dbca7fd050c2d37d9d057566783c4c823
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 17:56:11 +00:00
ramindani
b2b747ffd4 [VTS] Update allocator name for AIDL allocator.
We used "default" value for the allocator in the test
and this value was used as is for the AIDL allocator.
This caused the test to fail because we were not able to acquire the
appropriate allocator as AIDL allocator instance is not named "default".
Update the test to use the correct instance name for AIDL allocator,
if available.

Test: atest VtsHalGraphicsComposerV2_1TargetTest
atest VtsHalGraphicsComposerV2_2TargetTest
atest VtsHalGraphicsComposerV2_3TargetTest
atest VtsHalGraphicsComposerV2_4TargetTest
atest VtsHalGraphicsComposer3_TargetTest
BUG: 234671596

test results after updates:
VTS 2.1 : http://ab/I84600010058657636
VTS 2.2 : http://ab/I51800010058498973
VTS 2.3 : http://ab/I87700010058914863
VTS 2.4 : http://ab/I88900010058592031
VTS 3.0 : http://ab/I96200010058838905

Change-Id: I04ae1a18d757cfd941d4929ad08f6bb2c8643f76
2022-06-07 23:33:12 +00:00
Ankit Goyal
8cd0e2a5cf Skip front buffer test if not supported am: 694e50be3b
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18625486

Change-Id: I13e5450ad3eb39f7297d4293a80604cfbc66329b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-27 17:28:54 +00:00
Ankit Goyal
7d0e96cd20 Do not generate failed status on allocation failure am: 72415bcfa3
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18625205

Change-Id: If0381068c6dd6c3197c5682251cda36627f42a7a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-27 17:28:53 +00:00
Ankit Goyal
694e50be3b Skip front buffer test if not supported
Bug: 218383959
Test: this
Change-Id: I61beba63556c1d6a32e220fffd8e4b4fdfd8bd94
2022-05-26 17:04:18 -07:00
Ankit Goyal
72415bcfa3 Do not generate failed status on allocation failure
Bug: 218383959
Test: this
Change-Id: Ibb37d9cad8004d31c3d7cb75ebfa7839f7d07ed0
2022-05-26 17:04:12 -07:00
TreeHugger Robot
0971537d4e Merge "Tweak IMapper 4.0 VTS to run with AIDL IAllocator" into tm-dev am: 412f907bd3
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18418692

Change-Id: Ic6798f01c122a09543e130027fb2ca0157cc95c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-23 22:39:52 +00:00
Alec Mouri
38ccfd7a29 Tweak IMapper 4.0 VTS to run with AIDL IAllocator
When there is no HIDL IAllocator installed on the device, then these
tests must still run.

Bug: 231982605
Test: VtsHalGraphicsMapperV4_0TargetTest
Change-Id: If7503d398c03086df470971cc2c10029270525f9
2022-05-23 18:38:37 +00:00
Alec Mouri
a8d0222e33 Merge "Update Mapper4 SetBadMetadata VTS test for optional metadata" into tm-dev am: 325d853148
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18327687

Change-Id: Ie25d8a8549dcc07be8d81ac30ad9500b8bad4422
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 17:56:13 +00:00
Jason Macnak
895d411403 Update Mapper4 SetBadMetadata VTS test for optional metadata
The common decode function for optional gralloc4 metadata
`android::gralloc4::decodeOptionalMetadata()` treats an empty
input `hidl_vec<uint8_t>` as `std::nullopt` and not a bad
value. aosp/1907915 previously tried to update the encoding
and decoding of optional metadata in order to distinguish
this case but the change broke GRF. Instead, let's update the
SetBadMetadata test to use some actual incorrect data for the
optional metadata tests instead of an empty vec.

Bug: b/207388558
Test: cvd start
Test: VtsHalGraphicsMapperV4_0TargetTest
Change-Id: I87c20930cb701e87c89489bd0359cce0522cfe44
2022-05-11 22:25:28 +00:00
Alix Espino
bc8a276ddd Merge changes I07c0f96d,I8734474f am: 5440b3663c am: a629baedb9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2066561

Change-Id: I6f6cd5818d27f6e5bca6aa6d4ebeb9e1ac3b3cfc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-10 23:51:42 +00:00
Jiyong Park
9264d3f783 Finalize android.hardware.graphics.common-V3
For some unknown reason, the Android.bp file was not updated when
freezeing the V3 of android.hardware.graphics.common interface. Fixing
it manually.

Bug: 230660133
Test: `m nothing` with https://googleplex-android-review.git.corp.google.com/q/topic:Tiramisu-SDK-Finalization-rel
Change-Id: I4bf6548e1200864810bcf8a7c1025ba56d48747b
2022-04-28 08:07:53 +09:00
Alix
ea13312de0 Deleted clang property in Android.bp files
Deleted deprecated clang property in Android.bp files using bpmodify.

Bug: 208980553
Test: treehugger
Change-Id: I07c0f96d07ad39dfedfc7ede275b7794c58bf2d2
2022-04-25 21:00:34 +00:00
Alix
3ce97170b1 autogenerated reformatting by bpfmt
Bug: 208980553
Test: treehugger
Change-Id: I8734474f4e75bcf808701bcbc747bc53c64907cc
2022-04-25 20:58:57 +00:00
ramindani
d575109c1e Check Exception Code for Service specific error
Before checking the service specific error
we need to check that getExceptionCode returns
EX_SERVICE_SPECIFIC error code. Added a method and
used that to do the two checks together for exceptionCode
and for the service specific error code, so that we don't
repeat two lines in all the tests that need them.

EXPECT_NO_FATAL_FAILURES print the correct line number of the test
or iteration of the test when used with helper functions, and
testing guidelines recommend it too here: go/gunitadvanced#propagating-fatal-failures

Test: atest VtsHalGraphicsComposer3_TargetTest
BUG: 205152739
Change-Id: I1d3c3aa9b34dcefb14be507ff61b73b6f08a5204
2022-04-25 20:44:04 +00:00
ramindani
c7585d9dc4 Set isOpaque For BlendMode::None
Test: atest VtsHalGraphicsComposer3_TargetTest
BUG: 216205298
BUG: 219576457

Change-Id: I479d8367e5abf8893b94ac64b7149a2f0e4cf75b
2022-04-22 16:25:39 +00:00
Jiyong Park
18ba537008 Merge changes from topic "aidl_freeze_tm" into tm-dev
* changes:
  V1 is the latest version of android.media.audio.common.types
  Freeze AIDL APIs for TM
2022-04-20 15:55:20 +00:00
TreeHugger Robot
bce81ecc1e Merge "Move ComposerServiceWriter to composer3." into tm-dev 2022-04-19 21:32:21 +00:00
Jiyong Park
70f5837e1f Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: I61eb51c0334eb99489c6f1570110d7e18c350c99
2022-04-16 07:03:24 +09:00
Alec Mouri
da91f729c1 Merge "Send brightness nits to composer" into tm-dev 2022-04-11 16:28:58 +00:00
Rachel Lee
d69c54a4e1 Move ComposerServiceWriter to composer3.
It can be reused more easily.

Bug: 216204575
Test: m; flashall
Change-Id: I76b8533ba16ad1d01fcd182bf72b65982dce7c20
2022-04-08 16:09:32 -07:00
Alec Mouri
18339992dd Allow old gralloc implementations to skip P010 support.
P010 is mandated for vendor versions that are at least api level 33.
Gralloc versions below this may not support P010 due to lack of
enforcement, but tests for already-shipping devices must still pass.

Bug: 220360702
Test: VtsHalGraphicsMapperV3_0TargetTest
Change-Id: I7ba268713bada133491813aa3c9bd87fdecd2fef
2022-04-06 19:00:23 +00:00
TreeHugger Robot
486839fdef Merge "Update renderengine dependency to VTS" into tm-dev 2022-04-02 07:47:52 +00:00