summaryrefslogtreecommitdiff
path: root/graphics
AgeCommit message (Collapse)Author
2022-07-28display: Fix for VTS test caseVinoth Jayaram
Fix for VTS test case - "ServiceProvidesAndDeclaresTheSameInterfaces". Removed interface android.hardware.graphics.composer@2.1 CRs-Fixed: 2795306 Change-Id: I2301d7c5c9a5b946758944eb7fc6c144e3561ded
2022-07-26Merge TP1A.220624.020Deyao Ren
Change-Id: I40236c927692cb653703b2e9c6ed8764318a732e
2022-06-29composer: vts: configure layer for DisplayDecorationMidas Chien
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 7d55d4269d5ec7247c00f9f1a84c33a6d6f53a00) Merged-In: If47154adf9d48f9c1b8390b4bee090d8bf40ff3b (cherry picked from commit 308f4ac90690febbac077c297302890772ada495) Merged-In: If47154adf9d48f9c1b8390b4bee090d8bf40ff3b
2022-06-13Merge TP1A.220609.001Scott Lobdell
Change-Id: If8cb4cb43231ff7552ab8a531716ac2689c06e22
2022-06-07[VTS] Update allocator name for AIDL allocator.ramindani
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-05-26Skip front buffer test if not supportedAnkit Goyal
Bug: 218383959 Test: this Change-Id: I61beba63556c1d6a32e220fffd8e4b4fdfd8bd94
2022-05-26Do not generate failed status on allocation failureAnkit Goyal
Bug: 218383959 Test: this Change-Id: Ibb37d9cad8004d31c3d7cb75ebfa7839f7d07ed0
2022-05-26Merge TP1A.220526.001Deyao Ren
Change-Id: I4a346501af5a75c3ddb44b3fd73fb46e4a60963b
2022-05-23Tweak IMapper 4.0 VTS to run with AIDL IAllocatorAlec Mouri
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-17Merge TP1A.220513.001Daniel Norman
Change-Id: I9ed083dba0a963b2ef3a9886a69ec0046aa9369d
2022-05-15Merge TP1A.220507.001Brian Orr
Change-Id: Ifd94c5f23194526eeb62cfe29ad19207671380ad
2022-05-11Update Mapper4 SetBadMetadata VTS test for optional metadataJason Macnak
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-08Merge TP1A.220425.001Deyao Ren
Change-Id: Iadbc8b240b510dc630fb32d0336e0fb6740daa4a
2022-05-03Merge TP1A.220422.001Deyao Ren
Change-Id: Ic995758f9abfaf9d0ac14cfe1d182387f988e42c
2022-04-28Finalize android.hardware.graphics.common-V3Jiyong Park
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-25Check Exception Code for Service specific errorramindani
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-22Merge TP1A.220414.003Scott Lobdell
Change-Id: Id8894d5b946744d159e41f802b49bc770b28e4b5
2022-04-22Set isOpaque For BlendMode::Noneramindani
Test: atest VtsHalGraphicsComposer3_TargetTest BUG: 216205298 BUG: 219576457 Change-Id: I479d8367e5abf8893b94ac64b7149a2f0e4cf75b
2022-04-20Merge changes from topic "aidl_freeze_tm" into tm-devJiyong Park
* changes: V1 is the latest version of android.media.audio.common.types Freeze AIDL APIs for TM
2022-04-19Merge "Move ComposerServiceWriter to composer3." into tm-devTreeHugger Robot
2022-04-16Freeze AIDL APIs for TMJiyong Park
Bug: 225941299 Test: m Change-Id: I61eb51c0334eb99489c6f1570110d7e18c350c99
2022-04-11Merge "Send brightness nits to composer" into tm-devAlec Mouri
2022-04-08Merge TP1A.220404.001Scott Lobdell
Change-Id: I3bce78ab5d441ef9e6c038cf7ebea0adcc41d47e
2022-04-08Move ComposerServiceWriter to composer3.Rachel Lee
It can be reused more easily. Bug: 216204575 Test: m; flashall Change-Id: I76b8533ba16ad1d01fcd182bf72b65982dce7c20
2022-04-06Allow old gralloc implementations to skip P010 support.Alec Mouri
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-02Merge "Update renderengine dependency to VTS" into tm-devTreeHugger Robot
2022-04-02Merge TP1A.220328.001Rob Seymour
Change-Id: Ibc87b2e88d675d4fb85b2de1778d093e4e4c2d9f
2022-04-02Merge changes from topic "aidl_freeze_tm" into tm-devJiyong Park
* changes: Implement getInterfaceHash/Version for SoundTrigger Add -Wno-missing-permission-annotation for soundtrigger3 V3 is the latest version of keymaster HAL interface Freeze AIDL APIs for TM
2022-03-31Add a few tests that FRONT_BUFFER is flushing properlyJohn Reck
Test: this Bug: 217776226 Change-Id: I49e32391620e005700d39539ca47da64199067a0
2022-03-31Freeze AIDL APIs for TMJiyong Park
Bug: 225941299 Test: m Change-Id: Ie41cc0797710f813f92c65c387f247c7806d8394
2022-03-31Update renderengine dependency to VTSAlec Mouri
Bug: 218954037 Test: builds Change-Id: I31f8a8764fa66a9aec4762354c425ba1442ef351 Merged-In: I31f8a8764fa66a9aec4762354c425ba1442ef351
2022-03-31Send brightness nits to composerAlec Mouri
Bug: 220396224 Test: builds, boots Change-Id: I6866422130776ae25d791b3cfd0d1a754d2488b9
2022-03-25Merge TP1A.220321.002Scott Lobdell
Change-Id: If51d1324897593e6bb61bf4795bc157004c10083
2022-03-24Clarify documentation for the dimming stage.Alec Mouri
Plumbing this enum to RenderEngine requires knowledge of the intended transfer function to apply the dimming stage in. Because this is expected to be a contrained use-case and because apis are frozen, document that RenderEngine is allowed to assume that the resulting dimming matrix may be gamma corrected using a 2.2 power function. Bug: 218954037 Test: builds Change-Id: Ie7d357f8ce79295af017d80c62a2759dbccce5d2
2022-03-18Merge "[HWC3.0] Add capability BOOT_DISPLAY_CONFIG" into tm-devRam Indani
2022-03-17Merge TP1A.220310.002Daniel Norman
Change-Id: Ic15874018152ca90e6f51bdb1be1b24eb32d57dd
2022-03-16[HWC3.0] Add capability BOOT_DISPLAY_CONFIGramindani
This Capabiliy::BOOT_DISPLAY_CONFIG will make the display boot display config optional on the HWC3.0 BUG: 216113429 Test: atest VtsHalGraphicsComposer3_TargetTest Change-Id: I3be3383922fdd91e0bbccebd3c73e458753b749f
2022-03-15Merge "Clear apex.go entries for bluetooth libs" into tm-devTreeHugger Robot
2022-03-11Merge TP1A.220225.003Scott Lobdell
Change-Id: Iad9e960e034127e3320f78d2eadd23e36300b10c
2022-03-08composer: minor documentation fixAdy Abraham
Bug: NA Change-Id: I167f6a1224ceed48723f3af15a07d71fbde168cc Test: NA
2022-03-07Merge TP1A.220209.001Deyao Ren
Change-Id: Ia39c40c82efb5b7c7d2ad4c464b75e6fd4e073aa
2022-03-02Clear apex.go entries for bluetooth libsWilliam Escande
Test: Build + TH + boot phone & use bluetooth Bug: 216433795 Change-Id: Ib1f9fee90006c73e5726a208e6cba8647967f5f4
2022-03-02Vts BlendMode tests skip for UNSUPPORTED ColorModeramindani
BUG: 221887749 Test: atest VtsHalGraphicsComposer3_TargetTest Change-Id: I6c0a35c64883333c70451c717f50cb84d85ce994
2022-03-01Vts readback status check fixesramindani
When we query for the getReadbackBufferAttributes we can get EX_UNSUPPORTED error when not supported and when this happens readback should not be supported. EXPECT_TRUE for this failure case was causing the test to fail when we received an EX_UNSUPPORTED for this. See for documentation: https://source.corp.google.com/android/hardware/interfaces/graphics/composer/aidl/android/hardware/graphics/composer3/IComposerClient.aidl;rcl=e1f0950945f687ed374a45911e2d7786de724ca4;l=436 BUG: 221889462 Test: atest VtsHalGraphicsComposer3_TargetTest Test link for the cf_x86_64_phone-userdebug http://ab/I39800010022763398 All the other test failures are tracked else where. Change-Id: Idf352761c5cc808540edfe2042c5ee4602b5e96b
2022-02-25DisplayDecoration VTS: remove expected changed composition typesLeon Scroggins III
If validateDisplay returns an error, changed composition types are not propagated back to the caller. Remove the expectation that they will be. Fixes: 221406264 Test: this Change-Id: I3e07e40b0c12a2cf6eaa685435647aab93172bb0
2022-02-24Merge "Actually add DimmingStage to client target properties" into tm-devTreeHugger Robot
2022-02-24Merge "getDisplayDecorationSupport: expect IComposerClient::EX_UNSUPPORTED" ↵Leon Scroggins
into tm-dev
2022-02-24Actually add DimmingStage to client target propertiesAlec Mouri
This change was missed while cherry-picking I5675c16f0895f9958e3bee3ee4c85df8937ecdb7 due to merge conflicts. So...actually merge this. Bug: 218954037 Test: builds Change-Id: Idb3a518f7dfd4f4fd598672ee709ccd5b1f3f06a
2022-02-24Merge "Minor spelling fix" into tm-devJason Macnak
2022-02-24getDisplayDecorationSupport: expect IComposerClient::EX_UNSUPPORTEDLeon Scroggins III
This is the error returned by cuttlefish, not EX_UNSUPPORTED_OPERATION. This also matches other tests, e.g. SetDisplayBrightness. Bug: 209458568 Test: this Change-Id: I885767c4f1c42edfb11359b36852a863cbc8b0ed