Home
last modified time | relevance | path

Searched refs:rawHandle (Results 1 – 25 of 26) sorted by relevance

12

/hardware/interfaces/graphics/composer/2.1/utils/resources/
DComposerResources.cpp36 Error ComposerHandleImporter::importBuffer(const native_handle_t* rawHandle, in importBuffer() argument
38 if (!rawHandle || (!rawHandle->numFds && !rawHandle->numInts)) { in importBuffer()
43 status_t status = mMapper.importBufferNoValidate(rawHandle, outBufferHandle); in importBuffer()
57 Error ComposerHandleImporter::importStream(const native_handle_t* rawHandle, in importStream() argument
60 if (rawHandle) { in importStream()
61 streamHandle = native_handle_clone(rawHandle); in importStream()
345 const native_handle_t* rawHandle, in getDisplayClientTarget() argument
348 return getHandle(display, 0, slot, Cache::CLIENT_TARGET, fromCache, rawHandle, outBufferHandle, in getDisplayClientTarget()
353 const native_handle_t* rawHandle, in getDisplayOutputBuffer() argument
356 return getHandle(display, 0, slot, Cache::OUTPUT_BUFFER, fromCache, rawHandle, outBufferHandle, in getDisplayOutputBuffer()
[all …]
/hardware/interfaces/graphics/composer/2.1/utils/resources/include/composer-resources/2.1/
DComposerResources.h46 Error importBuffer(const native_handle_t* rawHandle, const native_handle_t** outBufferHandle);
48 Error importStream(const native_handle_t* rawHandle, const native_handle_t** outStreamHandle);
215 const native_handle_t* rawHandle,
220 const native_handle_t* rawHandle,
225 const native_handle_t* rawHandle, const native_handle_t** outBufferHandle,
228 Error getLayerSidebandStream(Display display, Layer layer, const native_handle_t* rawHandle,
254 const native_handle_t* rawHandle, const native_handle_t** outHandle,
/hardware/interfaces/graphics/mapper/4.0/utils/vts/include/mapper-vts/4.0/
DMapperVts.h122 const native_handle_t* importBuffer(const hidl_handle& rawHandle, enum Tolerance tolerance);
123 const native_handle_t* importBuffer(const hidl_handle& rawHandle) { in importBuffer() argument
124 return importBuffer(rawHandle, Tolerance::kToleranceStrict); in importBuffer()
176 const native_handle_t* cloneBuffer(const hidl_handle& rawHandle, enum Tolerance tolerance);
177 const native_handle_t* cloneBuffer(const hidl_handle& rawHandle) { in cloneBuffer() argument
178 return cloneBuffer(rawHandle, Tolerance::kToleranceStrict); in cloneBuffer()
/hardware/interfaces/graphics/mapper/2.0/utils/vts/
DMapperVts.cpp65 const native_handle_t* Gralloc::cloneBuffer(const hidl_handle& rawHandle) { in cloneBuffer() argument
66 const native_handle_t* bufferHandle = native_handle_clone(rawHandle.getNativeHandle()); in cloneBuffer()
136 const native_handle_t* Gralloc::importBuffer(const hidl_handle& rawHandle) { in importBuffer() argument
138 mMapper->importBuffer(rawHandle, [&](const auto& tmpError, const auto& tmpBuffer) { in importBuffer()
140 << "failed to import buffer %p" << rawHandle.getNativeHandle(); in importBuffer()
/hardware/interfaces/graphics/composer/2.2/utils/resources/
DComposerResources.cpp47 Error ComposerResources::getDisplayReadbackBuffer(Display display, const native_handle_t* rawHandle, in getDisplayReadbackBuffer() argument
52 Error error = mImporter.importBuffer(rawHandle, &importedHandle); in getDisplayReadbackBuffer()
/hardware/interfaces/graphics/mapper/2.0/utils/vts/include/mapper-vts/2.0/
DMapperVts.h65 const native_handle_t* importBuffer(const hidl_handle& rawHandle);
79 const native_handle_t* cloneBuffer(const hidl_handle& rawHandle);
/hardware/interfaces/graphics/mapper/3.0/utils/vts/
DMapperVts.cpp82 const native_handle_t* Gralloc::cloneBuffer(const hidl_handle& rawHandle) { in cloneBuffer() argument
83 const native_handle_t* bufferHandle = native_handle_clone(rawHandle.getNativeHandle()); in cloneBuffer()
157 const native_handle_t* Gralloc::importBuffer(const hidl_handle& rawHandle) { in importBuffer() argument
159 mMapper->importBuffer(rawHandle, [&](const auto& tmpError, const auto& tmpBuffer) { in importBuffer()
161 << "failed to import buffer %p" << rawHandle.getNativeHandle(); in importBuffer()
/hardware/interfaces/graphics/mapper/3.0/utils/vts/include/mapper-vts/3.0/
DMapperVts.h66 const native_handle_t* importBuffer(const hidl_handle& rawHandle);
91 const native_handle_t* cloneBuffer(const hidl_handle& rawHandle);
/hardware/interfaces/graphics/composer/2.2/utils/resources/include/composer-resources/2.2/
DComposerResources.h63 Error getDisplayReadbackBuffer(Display display, const native_handle_t* rawHandle, in getDisplayReadbackBuffer() argument
68 Error error = mImporter.importBuffer(rawHandle, &importedHandle); in getDisplayReadbackBuffer()
/hardware/interfaces/graphics/mapper/2.0/utils/hal/include/mapper-hal/2.0/
DMapper.h57 Return<void> importBuffer(const hidl_handle& rawHandle, in importBuffer() argument
59 if (!rawHandle.getNativeHandle()) { in importBuffer()
65 Error error = mHal->importBuffer(rawHandle.getNativeHandle(), &bufferHandle); in importBuffer()
DMapperHal.h38 virtual Error importBuffer(const native_handle_t* rawHandle,
/hardware/interfaces/graphics/mapper/4.0/utils/vts/
DMapperVts.cpp88 const native_handle_t* Gralloc::cloneBuffer(const hidl_handle& rawHandle, in cloneBuffer() argument
90 const native_handle_t* bufferHandle = native_handle_clone(rawHandle.getNativeHandle()); in cloneBuffer()
190 const native_handle_t* Gralloc::importBuffer(const hidl_handle& rawHandle, in importBuffer() argument
193 mMapper->importBuffer(rawHandle, [&](const auto& tmpError, const auto& tmpBuffer) { in importBuffer()
196 << "failed to import buffer %p" << rawHandle.getNativeHandle(); in importBuffer()
/hardware/interfaces/graphics/composer/2.1/utils/hal/include/composer-hal/2.1/
DComposerCommandEngine.h216 auto rawHandle = readHandle(&useCache); in executeSetClientTarget() local
224 auto err = mResources->getDisplayClientTarget(mCurrentDisplay, slot, useCache, rawHandle, in executeSetClientTarget()
364 auto rawHandle = readHandle(&useCache); in executeSetLayerBuffer() local
371 rawHandle, &buffer, &replacedBuffer); in executeSetLayerBuffer()
486 auto rawHandle = readHandle(); in executeSetLayerSidebandStream() local
490 auto err = mResources->getLayerSidebandStream(mCurrentDisplay, mCurrentLayer, rawHandle, in executeSetLayerSidebandStream()
/hardware/interfaces/graphics/mapper/2.1/utils/passthrough/include/mapper-passthrough/2.1/
DGralloc1Hal.h66 Error importBuffer(const native_handle_t* rawHandle, in importBuffer() argument
69 mDevice, rawHandle, const_cast<const native_handle_t**>(outBufferHandle)); in importBuffer()
/hardware/interfaces/graphics/mapper/2.0/vts/functional/
DVtsHalGraphicsMapperV2_0TargetTest.cpp196 const native_handle_t* rawHandle; in TEST_P() local
197 ASSERT_NO_FATAL_FAILURE(rawHandle = mGralloc->allocate(mDummyDescriptorInfo, false)); in TEST_P()
200 mGralloc->getMapper()->importBuffer(rawHandle, [&](const auto& tmpError, const auto& buffer) { in TEST_P()
212 ASSERT_NO_FATAL_FAILURE(mGralloc->freeBuffer(rawHandle)); in TEST_P()
/hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/
DGralloc0Hal.h76 Error importBuffer(const native_handle_t* rawHandle, in importBuffer() argument
78 native_handle_t* bufferHandle = native_handle_clone(rawHandle); in importBuffer()
DGralloc1Hal.h96 Error importBuffer(const native_handle_t* rawHandle, in importBuffer() argument
98 native_handle_t* bufferHandle = native_handle_clone(rawHandle); in importBuffer()
/hardware/interfaces/graphics/mapper/3.0/vts/functional/
DVtsHalGraphicsMapperV3_0TargetTest.cpp197 const native_handle_t* rawHandle; in TEST_P() local
198 ASSERT_NO_FATAL_FAILURE(rawHandle = mGralloc->allocate(mDummyDescriptorInfo, false)); in TEST_P()
201 mGralloc->getMapper()->importBuffer(rawHandle, [&](const auto& tmpError, const auto& buffer) { in TEST_P()
213 ASSERT_NO_FATAL_FAILURE(mGralloc->freeBuffer(rawHandle)); in TEST_P()
/hardware/interfaces/automotive/vehicle/2.0/default/tests/fuzzer/
DVehicleManager_fuzzer.cpp180 native_handle_t* rawHandle = native_handle_create(/*numFds=*/1, /*numInts=*/0); in invokeDebug() local
181 fd.setTo(native_handle_clone(rawHandle), /*shouldOwn=*/true); in invokeDebug()
204 native_handle_delete(rawHandle); in invokeDebug()
/hardware/libhardware/include_all/hardware/
Dgralloc1.h814 gralloc1_device_t* device, const buffer_handle_t rawHandle,
/hardware/libhardware/include/hardware/
Dgralloc1.h814 gralloc1_device_t* device, const buffer_handle_t rawHandle,
/hardware/interfaces/graphics/mapper/stable-c/vts/
DVtsHalGraphicsMapperStableC_TargetTest.cpp93 explicit BufferHandle(AIMapper* mapper, native_handle_t* rawHandle) : mIMapper(mapper) { in BufferHandle() argument
94 EXPECT_EQ(AIMAPPER_ERROR_NONE, mIMapper->v5.importBuffer(rawHandle, &mHandle)); in BufferHandle()
147 const native_handle_t* rawHandle() const { return mRawHandle; } in rawHandle() function in BufferAllocation
666 ASSERT_EQ(AIMAPPER_ERROR_NONE, mapper()->v5.importBuffer(buffer->rawHandle(), &bufferHandle)); in TEST_P()
703 EXPECT_EQ(AIMAPPER_ERROR_BAD_BUFFER, mapper()->v5.freeBuffer(buffer->rawHandle())) in TEST_P()
1229 EXPECT_EQ(AIMAPPER_ERROR_BAD_BUFFER, mapper()->v5.unlock(buffer->rawHandle(), &releaseFence)) in TEST_P()
1237 EXPECT_EQ(AIMAPPER_ERROR_BAD_BUFFER, mapper()->v5.unlock(buffer->rawHandle(), &releaseFence)) in TEST_P()
/hardware/interfaces/graphics/mapper/2.0/
DIMapper.hal106 * @param rawHandle is the raw buffer handle to import.
116 importBuffer(handle rawHandle) generates (Error error, pointer buffer);
/hardware/interfaces/graphics/mapper/4.0/vts/functional/
DVtsHalGraphicsMapperV4_0TargetTest.cpp613 const native_handle_t* rawHandle; in TEST_P() local
614 ASSERT_NO_FATAL_FAILURE(rawHandle = mGralloc->allocate(mDummyDescriptorInfo, false)); in TEST_P()
617 mGralloc->getMapper()->importBuffer(rawHandle, [&](const auto& tmpError, const auto& buffer) { in TEST_P()
629 ASSERT_NO_FATAL_FAILURE(mGralloc->freeBuffer(rawHandle)); in TEST_P()
1162 const native_handle_t* rawHandle; in TEST_P() local
1164 ASSERT_NO_FATAL_FAILURE(rawHandle = mGralloc->allocate(mDummyDescriptorInfo, false, in TEST_P()
1169 ASSERT_NO_FATAL_FAILURE(writeBufferHandle = mGralloc->importBuffer(rawHandle)); in TEST_P()
1170 ASSERT_NO_FATAL_FAILURE(readBufferHandle = mGralloc->importBuffer(rawHandle)); in TEST_P()
/hardware/interfaces/graphics/mapper/3.0/
DIMapper.hal108 * @param rawHandle Raw buffer handle to import.
117 importBuffer(handle rawHandle) generates (Error error, pointer buffer);

12