summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* DO NOT MERGE: Fixing SRGB for devices that do not support SRGB color modeValerie Hau2019-07-161-33/+53
| | | | | | | Bug: 135375302 Test: build, boot, VtsHalGraphicsComposerV2_2TargetTest Change-Id: Ie8f53effe3e6e29a4523ebfa450c79fdf96ed585 Merged-In: Ie8f53effe3e6e29a4523ebfa450c79fdf96ed585
* VTS : fix vts fail [1/1]jie.yuan2019-07-161-1/+1
| | | | | | | | | | | | | | | | | Problem: VtsHalGraphicsComposerV2_1Target#GraphicsComposerHidlCommandTest.PRESENT_DISPLAY_NO_LAYER_STATE_CHANGES fail the testcase setcolormode SRGB without check if current device support SRGB Solution: change setColorMode from SRGB to NATIVE Verify: verify in on franklin Bug: 135375302 Test: build, boot, VtsHalGraphicsComposerV2_1TargetTest Change-Id: I646c263d96b03f9d30e6563a45cff37835001609 Merged-In: I5eebe5f530e3b62037d669992cf2eca0849f10be
* Wait until old ComposerClient is fully destroyed before recreatingValerie Hau2019-06-211-5/+3
| | | | | | | | | | | Possible race condition where EventCallbacks are registered before old implementation deregisters on destruction. Stems from fact that strong pointer destruction does not mean the object has completely run its destructor method Bug: 135210708 Test: build, boot, VtsHalGraphicsComposerV2_1TargetTest Change-Id: I0851f1197d8341854f5bdac5fbb08553fc32b710
* Adding support for different Mapper versions in IComposer VTS testsValerie Hau2019-06-1919-186/+377
| | | | | | | Bug: 135139498 Test: build, boot, VtsHalGraphicsComposerV2_<1,2,3>TargetTest, Change-Id: I05e2832c64d4c06eb4afd64c3323d7edbd19a5f4 Merged-In: I05e2832c64d4c06eb4afd64c3323d7edbd19a5f4
* libhidltransport users user libhidlbaseSteven Moreland2019-06-122-0/+2
| | | | | | | | | | | libhidltransport symbols are being moved into libhidlbase in order to optimize linking/memory usage. libhidltransport will no longer be required in the future (however removing references to it will come separately). Bug: 134961554 Test: boot Change-Id: Ibcc2db32d3bec1a786b60e11d4820ecd0605f403
* Put composer 2.3 in the right cpuset.Peiyong Lin2019-05-131-0/+1
| | | | | | | | | the composer HAL should be in the system-background cpuset, but hwc 2.3 is not in any cpuset. This patch restricts it to system-background. BUG: 132559090 Test: Build, flash and boot. Change-Id: I1739a6c049e195f6cc79b81fcba7a6fcb55b546a
* Merge "Return display capability if getDisplayBrightnessSupport is not ↵Peiyong Lin2019-05-084-5/+31
|\ | | | | | | registered." into qt-dev
| * Return display capability if getDisplayBrightnessSupport is not registered.Peiyong Lin2019-05-014-5/+31
| | | | | | | | | | | | | | | | | | | | | | | | If getDisplayBrightnessSupport is not registered, there are two possibilities, one is it's not supported at all, the other is that the support is returned in getDisplayCapabilities. And thus we need to check getDisplayCapabilities, and we return UNSUPPORTED always in this case. This patch also allows getPerFrameMetadataKeys to return UNSUPPORTED on non-HDR capable devices. BUG: 131595097 Test: Build, boot. Change-Id: Ied302b1ac702dd94e039f1081d5420395c1bfbf4
* | Merge "Fix getDisplayCapabilitiesBasic VTS test" into qt-devTreeHugger Robot2019-05-081-4/+2
|\ \
| * | Fix getDisplayCapabilitiesBasic VTS testValerie Hau2019-05-071-4/+2
| |/ | | | | | | | | | | | | | | | | | | | | Old test checked error code when calling getBrightnessSupport in the getDisplayCapabilitiesBasic test. However, it is possible that the function is not implemented (UNSUPPORTED). We want to return normally and use the returned supported boolean to check this instead. Bug: 132043561, 132056857 Test: VtsHalGraphicsComposerV2_3TargetTest Change-Id: I94f8f39ba9129c4a8d939a5385538db3489c46b9
* | Merge "Fix setLayerCursorPosition test" into qt-devTreeHugger Robot2019-05-071-1/+1
|\ \
| * | Fix setLayerCursorPosition testValerie Hau2019-05-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Set composition type to Cursor Bug: 132057336, 131181758 Test: VtsHalGraphicsComposerV2_1TargetTest Change-Id: I03ae799358abcdbd0a1c39a13d30d76aa7712004
* | | Merge "Fix setLayerCursorPosition Test" into qt-devValerie Hau2019-05-071-0/+27
|\| |
| * | Fix setLayerCursorPosition TestValerie Hau2019-05-071-0/+27
| |/ | | | | | | | | | | Bug: 131181758 Test: build, boot, VtsHalGraphicsComposerV2_1TargetTest Change-Id: I70f4f8f64c16ce45eba70c2e47d3fa2913034eba
* / Call into validateBufferSize and getTransportSizeValerie Hau2019-04-241-17/+31
|/ | | | | | | | | | | | After adding validateBufferSize and getTransportSize, call into these functions if they have been implemented This reverts commit 5e01b1411afdecc94ab7e60b92ad02672eb5f759. Reason for revert: Merge once targets w/ gralloc0 dependency have been updated Bug: 130669566 Test: build, boot Change-Id: Ic20a62c5e73f517028a358548442d59c9cf91cdf
* Revert "Call into validateBufferSize and getTransportSize"Valerie Hau2019-04-231-31/+17
| | | | | | | | | This reverts commit 69ee26a3891b8652c8c67fc8f8a262368f6fa7ff. Reason for revert: Break in Elfin Bug: 130669566 Change-Id: Ia44fd087981770676a6887aa390c674c2855f4cb
* Call into validateBufferSize and getTransportSizeValerie Hau2019-04-221-17/+31
| | | | | | | | | After adding validateBufferSize and getTransportSize, call into these functions if they have been implemented Bug: 130669566 Test: build, boot Change-Id: I445cb6122107a514bc0bf433a9e140dbe3122573
* Deprecate getDisplayBrightnessSupport.Peiyong Lin2019-04-152-11/+13
| | | | | | | | Brightness is already a per display capability, we don't need this API. BUG: 130313275 Test: build Change-Id: I0a669aca19a2873df41bee82bd0e5e2775af8101
* Merge "Fix composer@2.3 VTS tests." into qt-devTreeHugger Robot2019-04-115-20/+26
|\
| * Fix composer@2.3 VTS tests.Peiyong Lin2019-04-105-20/+26
| | | | | | | | | | | | | | | | | | Some required APIs must be implemented, and thus passthrough will always assume the function pointers exist. BUG: 130195295 Test: atest VtsHalGraphicsComposerV2_3Target Change-Id: Ic2790363fcb116e66438697b1a2e64e71ffc8ac6
* | mapper: support new usage and formatMarissa Wall2019-04-102-4/+4
|/ | | | | | | | | | | Update IMapper to use usage and format from android.hardware.graphics.common@1.2. This enables support for the usage HW_IMAGE_ENCODER and the format HSV_888 which is already being defined and used. Test: IMapper VTS tests Bug: 79465976 Change-Id: I680beb6e5b1cd246c28d17f855f5c76a5831ce06
* Merge "IMapper: change an error message" into qt-devTreeHugger Robot2019-04-051-1/+1
|\
| * IMapper: change an error messageMarissa Wall2019-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | Change the error message that prints when IMapper 3.0 isn't present. The old warning was causing unnecessary concerns. Bug: 128013727 Test: compile Change-Id: I197cd953d08a8e9f3bdee92cede973bf1b97dfe2 (cherry picked from commit ccbd24f6336bf7141b9a6e463b89aa027b289bfe)
* | Revert "Revert "Mark layers with color transform client composition if not ↵Valerie Hau2019-04-042-6/+123
|/ | | | | | | | | | | | | | | | implemented."" This reverts commit 6f5a48f7af9de2c7cb69ac14a8a8666617f27d21. Reason for revert: Reinstating with fix Below is the original commit message: SET_LAYER_COLOR_TRANSFORM is an optional API, and thus when it's not implemented. we want to make sure we follow the spec to mark those layers as client composition and add them into changed layers list proactively. BUG: 115554640 Test: Verify with setting color transform manually. Change-Id: Ia2e8634b01ee1b5c99893e86ef451f90337ef90f
* Revert "Mark layers with color transform client composition if not implemented."Andrew Chant2019-04-042-123/+6
| | | | | | | | | | | This reverts commit c53ea9f5f8e8d30ad79618d57b965a492962b546. Reason for revert: Breaks some display output Bug: 129945273 Bug: 115554640 Merged-In: If70a148ae6ad673b5dd03143b3f1ed73eaa1290f Change-Id: If70a148ae6ad673b5dd03143b3f1ed73eaa1290f
* Mark layers with color transform client composition if not implemented.Peiyong Lin2019-04-032-6/+123
| | | | | | | | | | SET_LAYER_COLOR_TRANSFORM is an optional API, and thus when it's not implemented. we want to make sure we follow the spec to mark those layers as client composition and add them into changed layers list proactively. BUG: 115554640 Test: Verify with setting color transform manually. Change-Id: I53b4039eb63cccd1b174e3c6da3b6336b85e0321
* graphics.mapper@2.0: Document previously-implicit accessRegion behavior.Eino-Ville Talvala2019-03-281-0/+3
| | | | | | | | | | | | | | Existing Android framework code (and transitively, CTS test) require that an accessRegion of (0,0,0,0) is treated the same as an accessRegion covering the entire buffer, when calling lock() or lockYCbCr(). Document this so that there is no confusion about this going forward, since this requirement pre-dates the HIDL HALs. Bug: 119440345 Test: Builds Change-Id: Id16831d3da4ec3dc74dbdca18447581a50ee1193
* Adding negative slot index check in ComposerResourcesValerie Hau2019-03-271-2/+2
| | | | | | Bug: N/A Test: build, boot Change-Id: I8ab18ed8f7c322ee995abc534309b51e796276fe
* Accompany HardwareBuffer with generation numberPawin Vongmasa2019-03-191-5/+16
| | | | | | | | | | | | | | attachBuffer() should take a generation number and requestBuffer() should return a generation number because AHardwareBuffer does not carry the generation number. Test: make cts -j123 && cts-tradefed run cts-dev -m \ CtsMediaTestCases --compatibility:module-arg \ CtsMediaTestCases:include-annotation:\ android.platform.test.annotations.RequiresDevice Bug: 127778192 Change-Id: I201f84cf66f0e19b794a05c5ba88066360a37d96
* Merge "Moved brightness from Lights to SF."Michael Wright2019-03-127-4/+132
|\
| * Moved brightness from Lights to SF.Dan Gittik2019-03-087-4/+132
| | | | | | | | | | | | | | | | Test: manual. Check that brightness works. Fixes: 111435292 Change-Id: I3d19bc2fc4088bc9a956a5cf38c3b163fe35256f
* | Merge "bufferqueue@1.0: remove comment in function def" am: 5418f17004 am: ↵Steven Moreland2019-03-121-1/+1
|\ \ | |/ |/| | | | | | | | | | | 1b7da8b6bb am: 095414578e Change-Id: Ib83e63c4e21071c020de29b38c7898ac1a0e5cb7
| * bufferqueue@1.0: remove comment in function defSteven Moreland2019-03-091-1/+1
| | | | | | | | | | | | Bug: 124382459 Test: manual Change-Id: Ia99990d6ba3d50d81eb58735212142ec88a74293
* | Remove obsolete comments.Peiyong Lin2019-03-071-2/+0
| | | | | | | | | | | | BUG: 127850729 Test: N/A Change-Id: I6d45f30c129749a95050d3c046fbfe91d0a75f3e
* | Merge "Update makefies: no 'types' internal"Steven Moreland2019-03-053-17/+0
|\ \
| * | Update makefies: no 'types' internalSteven Moreland2019-03-043-17/+0
| | | | | | | | | | | | | | | | | | Bug: 123976090 Test: N/A Change-Id: I84b659b163b63d39535b462a3df8a9c19f680976
* | | Merge "Update makefies: no 'types'" am: 4ee5ec1469 am: bab622f6a6Steven Moreland2019-03-044-23/+0
|\ \ \ | |/ / |/| / | |/ | | | | am: 7224bc9bcf Change-Id: I434939e0770afa436c532a945542fce30a71ef7d
| * Update makefies: no 'types'Steven Moreland2019-03-044-23/+0
| | | | | | | | | | | | Bug: 123976090 Test: N/A Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
* | [composer] Remove implication. am: 849c980804 am: b48a6fa60aPeiyong Lin2019-02-281-3/+3
|\| | | | | | | | | | | am: d581ab1940 Change-Id: I5c38b7a6b15fbb52d11e27e334dd03c54784de35
| * [composer] Remove implication.Peiyong Lin2019-02-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | The spec of setLayerDataspace never specifies the types of layer it should be call on, however, the spec has the implication that this method will only work for layers with buffer, which is mis-leading. This patch changes the wording of setLayerDataspace spec, removes the implication. Note that this change won't break backward compatability. BUG: 126713799 Test: N/A Change-Id: I97f22469897cb687dcb64a3d419bcb48a3668e5a
* | Update makefiles.Steven Moreland2019-02-111-0/+3
| | | | | | | | | | | | Bug: 123976090 Test: N/A Change-Id: I5fb6c126a090a3fe0fa4829ea9224564133dc1ae
* | Camera: Add HAL interface change for HEICShuzhen Wang2019-02-041-0/+38
| | | | | | | | | | | | | | | | | | | | | | - Add new usage flag to indicate the consumer of the buffer is HEIC encoder. - Add new data space to indicate that the BLOB buffer is HEIC encoded. - Add new BlobId to specify JPEG APPs segments. Test: testHeic CTS test Bug: 79465976 Change-Id: Iaa6a1d017223e84fc1c5dd0a9d90d9f09240e827
* | Merge "Camera: Add dynamic depth tags and dataspace"TreeHugger Robot2019-01-281-0/+7
|\ \
| * | Camera: Add dynamic depth tags and dataspaceEmilian Peev2019-01-271-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add necessary metadata tags for supporting dynamic depth streams. Includes minor gfx fix which should help eliminate build errors after HIDL header autogen. Bug: 109735087 Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --skip-preconditions --module VtsHalCameraProviderV2_4Target -l INFO Change-Id: Ia476b195095ae7a29bc740174331dfbfdaa6d320
* | | Add interface tagHuihong Luo2019-01-281-0/+1
|/ / | | | | | | | | | | | | | | so other components can start the hal interface when needed. Test: manual Change-Id: I61a4d396e86ec8dbda2cbabcc7afca7be7628f26 (cherry picked from commit c4f493977b6315d3dfe8e05f0c2516e2b00feca4)
* | graphics.common: add HSV format definition to 1.2Kevin DuBois2019-01-257-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds HSV format used in some color sampling engines to the list of pixel formats. Rev the sampling engine in composer to reference the new format revision. Test: built image, with new format reported in vendor code. Test: VtsHalGraphicsComposerV2_3TargetTest Fixes: 122943743 Roll-forward of build-breaking topic commit. No changes were needed in this patch. see bug 123404649 for breakage details. This reverts commit e2f69f22289ffadc8dcfdbb476422e194442253a. Change-Id: I38ac5cafeb6a07e683352c8d297892a681e24702
* | Merge "Revert "graphics.common: add HSV format definition to 1.2""Kevin DuBois2019-01-257-27/+12
|\ \
| * | Revert "graphics.common: add HSV format definition to 1.2"Kevin DuBois2019-01-257-27/+12
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 97e1a932ec52ce49e4c51527a6fce78bfa810294. Reason for revert: broke build Change-Id: Ib264957e9a1de83c37e4129471b3c75522e21d08
* | | Merge "graphics.common: add HSV format definition to 1.2"Kevin DuBois2019-01-257-12/+27
|\| |
| * | graphics.common: add HSV format definition to 1.2Kevin DuBois2019-01-247-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds HSV format used in some color sampling engines to the list of pixel formats. Rev the sampling engine in composer to reference the new format revision. Test: built image, with new format reported in vendor code. Test: VtsHalGraphicsComposerV2_3TargetTest Fixes: 122943743 Change-Id: I1b454a86f464f38e3c2cbeef5379a187ff38ab06