Commit Graph

1217 Commits

Author SHA1 Message Date
Sally Qi
9568c57a90 Merge "Revup android.hardware.graphics.composer3 v1 to v2 for cuttelfish." 2022-12-07 21:48:42 +00:00
Vadim Caen
79ee3e0e97 Merge "Enable Rust backend for Camera HAL" 2022-12-07 20:15:33 +00:00
John Reck
d3e3354201 Merge "Add some more tests & tweak spec around SMPTE2094-40" 2022-11-29 18:00:58 +00:00
John Reck
ae73a6ebd5 Add some more tests & tweak spec around SMPTE2094-40
Test: this
Change-Id: If7c549b8efcf490859f10c225a700188b76a54fa
2022-11-28 19:53:12 -05:00
Vadim Caen
60741ed7a2 Enable Rust backend for Camera HAL
Change-Id: I70ee4b41d887a9e9b1345020df9d591abdba5c65
2022-11-24 09:15:48 +00:00
TreeHugger Robot
19ce3c81b1 Merge "allocator frozen false" 2022-11-22 16:33:38 +00:00
Steven Moreland
f65553745b allocator frozen false
magic -> explicit

Bug: 259465531
Test: N/A
Change-Id: I56b04a0f682a0ba3dc58a42c0a14bb506591c594
2022-11-22 02:08:05 +00:00
Steven Moreland
a2fbcab17b composer3- frozen + VNDK version
magic -> explicit

Bug: 259465531
Change-Id: Iefdfe812fc9309a0a758eedb3da9d3676e956f02
Test: build
2022-11-19 00:49:03 +00:00
Steven Moreland
acd1d5db9b Merge "a.h.graphics.common frozen false" 2022-11-18 23:41:30 +00:00
Steven Moreland
6f697c9ecf a.h.graphics.common frozen false
magic -> explicit

Bug: 259465531
Change-Id: I080bee98df6d4ad8799dd60c5090c2e79244ce2f
Test: N/A
2022-11-18 19:39:29 +00:00
John Reck
48c546c7e9 IMapper 5 - the Stable C approach
Test: make VtsHalGraphicsMapperStableC_TargetTest VtsHalGraphicsAllocatorAidl_TargetTest

Change-Id: I910b27f388e3fb7261425dd4b2133885c05edd37
2022-11-18 11:20:00 -05:00
Steven Moreland
25e34ef19f android.hardware.graphics.allocator - VNDK - use V1 am: 00ba1e951d am: fac4a57d4f am: 1333beeebe
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2305313

Change-Id: Ib0d217abf1f8c779da88e2a5a875277a52d5bd90
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-17 03:01:07 +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
John Reck
73f935c43b Preemptive imports to avoid conflicts from AOSP
This is just a minimal staging of go/oag/topic:"imapper5"
to handle the difference between AOSP's graphics-common
and internal's graphics-common

Test: make
Change-Id: I6fbc22272ba95b44aa09ff08f9d9a7adbb9ae8be
2022-11-15 16:20:25 -05:00
Sally Qi
8ec063ff4d Revup android.hardware.graphics.composer3 v1 to v2 for cuttelfish.
- Enable Vts getOverlaySupport case.

Bug: 250036572
Test: this
Change-Id: I8a4acb53d5ac317f5dd51fefeeb2bc0859ad1c40
2022-11-12 11:21:04 -08:00
Leon Scroggins
6edb648f5b Merge "ComposerClient[Writer/Reader]: enforce a specific display" 2022-11-12 12:46:48 +00:00
Leon Scroggins III
c3d695db50 ComposerClient[Writer/Reader]: enforce a specific display
Add a new parameter and member to ComposerClient[Writer/Reader]
representing the only display it should apply to. The caller is
responsible for ensuring that they only ever refer to that same display.
The display is recorded here for error checking. This isn't strictly
necessary, but crashing here verifies that we only use the proper
display.

This is helpful for use with DisplayCapability.MULTI_THREADED_PRESENT,
although it is fine to use a single display per writer/reader without
the capability.

For the Reader, make the display optional, so that a single reader can
continue to be used for multiple displays. This allows devices without
the new DisplayCapability to continue to work without changes.

Remove copy constructor and operator=. Add a move constructor. This
ensures it will be properly moved when used in containers.

Bug: 241285491
Test: make
Change-Id: Ic7116e64138280747a32500c67dedeeabd7c669b
2022-11-03 11:44:53 -04:00
Steven Moreland
eaa8469b7c Merge "graphics.common V3 -> V4" 2022-11-02 21:21:29 +00:00
Treehugger Robot
344f7933ed Merge "Update OWNERS" am: 0ea6e013ef am: 91b8d6b035 am: 27ae2a7bef
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2282841

Change-Id: I99f6ab3a12e225cacbbaeffc9d28cd5b9451d3f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 20:40:19 +00: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
TreeHugger Robot
fddcef05a9 Merge "android.hardware.graphics.common V4 += Hdr type" 2022-10-31 17:33:59 +00:00
Steven Moreland
ed27779d14 graphics.common V3 -> V4
Bug: 251177105
Test: builds
Change-Id: I1cb84ec85f98789d0737207a1661b39a25538c96
2022-10-29 00:51:21 +00:00
Steven Moreland
2baa8cf1dd android.hardware.graphics.common V4 += Hdr type
Bug: 241349060
Test: m
Change-Id: I2e1561f4ccb59a2a833af9a7afd07840ab2ebfa4
2022-10-28 23:15:29 +00:00
Rachel Lee
f05679810e 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
2022-10-28 14:43:16 -07:00
Leon Scroggins III
b3e336edd1 Add a DisplayCapability for multi-threaded present
Also update composer3 to the latest version.

Begin writing a test.

Bug: 241285491
Test: atest VtsHalGraphicsComposer3_TargetTest:GraphicsComposerAidlCommandTest.MultiThreadedPresent
Change-Id: I5dbb01fc23abd5e0108c565f96d25e62c77fc16d
2022-10-28 18:32:49 +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
Sally Qi
2600d345ed Add getOverlaySupport() AIDL interface.
- add new VTS for new AIDL interface/API. Disable this new vts case for
  now due to no implementation on cuttlefish.
- rev up android.hardware.graphics.composer3-V1-ndk to V2 version.

Bug: 242588489
Test: build, atest VtsHalGraphicsComposer3_TargetTest
Change-Id: I5a5c0d52d7b64d927d211abf77f534f37c4d65d0
2022-10-12 15:32:38 -07:00
Leon Scroggins
c8d06b2979 Merge "Remove virtual from ~ComposerClientWriter" 2022-09-22 17:07:39 +00:00
Leon Scroggins III
af494c65c1 Remove virtual from ~ComposerClientWriter
This class has no other virtual methods, and it has no subclasses, so
it's unclear why it had a virtual destructor.

Bug: NA
Test: make
Change-Id: Ic87fe6596b6d796ca11822de53af2e4e521f127d
2022-09-20 17:16:19 -04:00
Jason Macnak
a01e5689ed Merge "Support P010 with Gralloc2 on Gralloc1 passthrough" am: 89142b4935 am: 96ee08d953 am: a0f7f8486e am: 68dc613d33 am: 8f0d5f67c8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2208777

Change-Id: I7082256539c21ec1fa8a70f679a9b46754638899
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 17:53:51 +00: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
Treehugger Robot
51478a8afc Merge "fix segmentation fault of GraphicsComposerAidlCommandTest" am: 9cf5a87265 am: 2a2ce43e66 am: b515796c3f am: 5555447a70 am: ef44568cfe
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2198035

Change-Id: I588d63a6a02a2bcf8a42b811926d68453c25c9f2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-02 21:23:16 +00:00
Sally Qi
0435c6b4f3 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
2022-09-01 13:28:00 -07:00
Sally Qi
784c253a05 Add cc_defaults as wrapper for graphics composer/common AIDL
interfaces.

- Add new Android.bp in graphics folder and wrap composer and common
  AIDL in to separate cc_defaults.
- remove composer3 dependency from allocator's VTS .bp file.

Bug: 243429120
Test: builds
Change-Id: Ia91e4ab87b7ac86248094317185b317d5604e654
2022-08-26 15:18:42 -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
Patrick Williams
dd5c696ca4 Merge "Replace RenderEngineResult with FenceResult" 2022-08-25 10:23:12 +00:00
Treehugger Robot
e9d562dac1 Merge "[Bluetooth apex] Use new apex name" am: 2412da0826 am: a326b313f7 am: 67d8a557e8 am: 606f24d35a am: 24465662af
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2192236

Change-Id: I8a35425fdecb6b17449008b7a08bf4bdc2080daf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 05:50:37 +00:00
Patrick Williams
af78e0ad80 Replace RenderEngineResult with FenceResult
Bug: b/232535621
Test: refactor, existing tests pass

Change-Id: I86fe498246e45d199a47008a3fb90af3030e83d6
2022-08-24 20:00:40 +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
Leon Scroggins III
6413bce9c8 Remove references to IComposer.createDisplay
This method does not exist.

Bug: NA
Test: documentation-only change
Change-Id: I3e5d138ec7cff46178212b82f982718836d479d6
2022-08-11 14:15:10 -04: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
Midas Chien
828d6c9f1a Merge "composer: vts: configure layer for DisplayDecoration" into tm-d1-dev am: 3ebbea4dc2 am: 2d56dcb7ae am: 95816049ba
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18743615

Change-Id: Ia0ef13f06b2dc813aebdbc445875c3f8faeddbbe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 10:36:23 +00:00
Midas Chien
95816049ba Merge "composer: vts: configure layer for DisplayDecoration" into tm-d1-dev am: 3ebbea4dc2 am: 2d56dcb7ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18743615

Change-Id: I7858508c343348dd455c1c3fe40d205824b30b48
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 08:18:12 +00:00
Midas Chien
3ebbea4dc2 Merge "composer: vts: configure layer for DisplayDecoration" into tm-d1-dev 2022-06-09 07:27:42 +00:00
Ram Indani
7a6d2f9d88 Merge "[VTS] Update allocator name for AIDL allocator." into tm-dev am: 82b65f9e42 am: 588b928a12 am: a1fe4c4667
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18739824

Change-Id: Id02748ca94a67578f7f32749cfc0928a96927c6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 18:33:53 +00:00