Home
last modified time | relevance | path

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

12

/aosp12/hardware/interfaces/graphics/composer/2.1/utils/resources/
H A DComposerResources.cpp47 Error ComposerHandleImporter::importBuffer(const native_handle_t* rawHandle, in importBuffer() argument
49 if (!rawHandle || (!rawHandle->numFds && !rawHandle->numInts)) { in importBuffer()
102 Error ComposerHandleImporter::importStream(const native_handle_t* rawHandle, in importStream() argument
105 if (rawHandle) { in importStream()
106 streamHandle = native_handle_clone(rawHandle); in importStream()
390 const native_handle_t* rawHandle, in getDisplayClientTarget() argument
398 const native_handle_t* rawHandle, in getDisplayOutputBuffer() argument
406 const native_handle_t* rawHandle, in getLayerBuffer() argument
414 const native_handle_t* rawHandle, in getLayerSidebandStream() argument
466 ? mImporter.importBuffer(rawHandle, &importedHandle) in getHandle()
[all …]
/aosp12/hardware/interfaces/graphics/mapper/4.0/utils/vts/include/mapper-vts/4.0/
H A DMapperVts.h90 const native_handle_t* importBuffer(const hidl_handle& rawHandle, enum Tolerance tolerance);
91 const native_handle_t* importBuffer(const hidl_handle& rawHandle) { in importBuffer() argument
92 return importBuffer(rawHandle, Tolerance::kToleranceStrict); in importBuffer()
137 const native_handle_t* cloneBuffer(const hidl_handle& rawHandle, enum Tolerance tolerance);
138 const native_handle_t* cloneBuffer(const hidl_handle& rawHandle) { in cloneBuffer() argument
139 return cloneBuffer(rawHandle, Tolerance::kToleranceStrict); in cloneBuffer()
/aosp12/hardware/interfaces/graphics/composer/2.1/utils/resources/include/composer-resources/2.1/
H A DComposerResources.h47 Error importBuffer(const native_handle_t* rawHandle, const native_handle_t** outBufferHandle);
49 Error importStream(const native_handle_t* rawHandle, const native_handle_t** outStreamHandle);
218 const native_handle_t* rawHandle,
223 const native_handle_t* rawHandle,
228 const native_handle_t* rawHandle, const native_handle_t** outBufferHandle,
231 Error getLayerSidebandStream(Display display, Layer layer, const native_handle_t* rawHandle,
257 const native_handle_t* rawHandle, const native_handle_t** outHandle,
/aosp12/hardware/interfaces/graphics/mapper/2.0/utils/vts/
H A 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()
/aosp12/hardware/interfaces/graphics/mapper/3.0/utils/vts/
H A DMapperVts.cpp80 const native_handle_t* Gralloc::cloneBuffer(const hidl_handle& rawHandle) { in cloneBuffer() argument
81 const native_handle_t* bufferHandle = native_handle_clone(rawHandle.getNativeHandle()); in cloneBuffer()
151 const native_handle_t* Gralloc::importBuffer(const hidl_handle& rawHandle) { in importBuffer() argument
153 mMapper->importBuffer(rawHandle, [&](const auto& tmpError, const auto& tmpBuffer) { in importBuffer()
155 << "failed to import buffer %p" << rawHandle.getNativeHandle(); in importBuffer()
/aosp12/hardware/interfaces/graphics/mapper/4.0/utils/vts/
H A DMapperVts.cpp74 const native_handle_t* Gralloc::cloneBuffer(const hidl_handle& rawHandle, in cloneBuffer() argument
76 const native_handle_t* bufferHandle = native_handle_clone(rawHandle.getNativeHandle()); in cloneBuffer()
160 const native_handle_t* Gralloc::importBuffer(const hidl_handle& rawHandle, in importBuffer() argument
163 mMapper->importBuffer(rawHandle, [&](const auto& tmpError, const auto& tmpBuffer) { in importBuffer()
166 << "failed to import buffer %p" << rawHandle.getNativeHandle(); in importBuffer()
/aosp12/hardware/interfaces/graphics/composer/2.1/utils/hal/include/composer-hal/2.1/
H A 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()
/aosp12/hardware/interfaces/graphics/composer/2.2/utils/resources/
H A DComposerResources.cpp47 Error ComposerResources::getDisplayReadbackBuffer(Display display, const native_handle_t* rawHandle, in getDisplayReadbackBuffer() argument
52 Error error = mImporter.importBuffer(rawHandle, &importedHandle); in getDisplayReadbackBuffer()
/aosp12/hardware/interfaces/graphics/mapper/2.0/utils/vts/include/mapper-vts/2.0/
H A DMapperVts.h65 const native_handle_t* importBuffer(const hidl_handle& rawHandle);
79 const native_handle_t* cloneBuffer(const hidl_handle& rawHandle);
/aosp12/hardware/interfaces/sensors/common/vts/utils/
H A DGrallocWrapper.cpp128 native_handle_t* importBuffer(const hidl_handle& rawHandle);
186 const hidl_handle& rawHandle) { in importBuffer() argument
189 mMapper->importBuffer(rawHandle, [&](auto error, void* tmpBuffer) { in importBuffer()
191 ALOGE("Failed to import buffer %p: %" PRId32, rawHandle.getNativeHandle(), in importBuffer()
/aosp12/hardware/interfaces/graphics/mapper/2.0/utils/hal/include/mapper-hal/2.0/
H A 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()
H A DMapperHal.h38 virtual Error importBuffer(const native_handle_t* rawHandle,
/aosp12/hardware/interfaces/graphics/mapper/3.0/utils/vts/include/mapper-vts/3.0/
H A DMapperVts.h66 const native_handle_t* importBuffer(const hidl_handle& rawHandle);
91 const native_handle_t* cloneBuffer(const hidl_handle& rawHandle);
/aosp12/hardware/interfaces/graphics/composer/2.2/utils/resources/include/composer-resources/2.2/
H A DComposerResources.h61 Error getDisplayReadbackBuffer(Display display, const native_handle_t* rawHandle, in getDisplayReadbackBuffer() argument
66 Error error = mImporter.importBuffer(rawHandle, &importedHandle); in getDisplayReadbackBuffer()
/aosp12/hardware/google/gchips/gralloc3/src/
H A Dmali_gralloc_public_interface.cpp583 …tic int32_t mali_gralloc1_import_buffer(gralloc1_device_t* device, const buffer_handle_t rawHandle, in mali_gralloc1_import_buffer() argument
589 if (rawHandle == 0) in mali_gralloc1_import_buffer()
591 AERR("Bad input raw handle %p to import", rawHandle); in mali_gralloc1_import_buffer()
605 native_handle_t* bufferHandle = native_handle_clone(rawHandle); in mali_gralloc1_import_buffer()
608 AERR("Failed to clone %p for importing it", rawHandle); in mali_gralloc1_import_buffer()
H A DGrallocWrapper.cpp61 Error Mapper::importBuffer(const hardware::hidl_handle& rawHandle, in importBuffer() argument
65 auto ret = mMapper->importBuffer(rawHandle, in importBuffer()
H A DGrallocMapper.cpp218 Return<void> GrallocMapper::importBuffer(const hidl_handle& rawHandle, in importBuffer() argument
221 if (!rawHandle.getNativeHandle()) in importBuffer()
228 native_handle_t* bufferHandle = native_handle_clone(rawHandle.getNativeHandle()); in importBuffer()
/aosp12/hardware/interfaces/graphics/mapper/2.0/vts/functional/
H A 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()
/aosp12/hardware/interfaces/graphics/mapper/3.0/vts/functional/
H A DVtsHalGraphicsMapperV3_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()
/aosp12/hardware/google/gchips/gralloc4/src/4.x/
H A DGrallocMapper.cpp62 Return<void> GrallocMapper::importBuffer(const hidl_handle &rawHandle, importBuffer_cb hidl_cb) in importBuffer() argument
64 common::importBuffer(rawHandle, hidl_cb); in importBuffer()
/aosp12/hardware/interfaces/graphics/mapper/2.1/utils/passthrough/include/mapper-passthrough/2.1/
H A DGralloc1Hal.h66 Error importBuffer(const native_handle_t* rawHandle, in importBuffer() argument
69 mDevice, rawHandle, const_cast<const native_handle_t**>(outBufferHandle)); in importBuffer()
/aosp12/frameworks/native/libs/ui/
H A DGraphicBufferMapper.cpp85 status_t GraphicBufferMapper::importBuffer(buffer_handle_t rawHandle, in importBuffer() argument
93 status_t error = mMapper->importBuffer(hardware::hidl_handle(rawHandle), &bufferHandle); in importBuffer()
95 ALOGW("importBuffer(%p) failed: %d", rawHandle, error); in importBuffer()
102 ALOGE("validateBufferSize(%p) failed: %d", rawHandle, error); in importBuffer()
/aosp12/hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/
H A DGralloc0Hal.h76 Error importBuffer(const native_handle_t* rawHandle, in importBuffer() argument
78 native_handle_t* bufferHandle = native_handle_clone(rawHandle); in importBuffer()
H A DGralloc1Hal.h96 Error importBuffer(const native_handle_t* rawHandle, in importBuffer() argument
98 native_handle_t* bufferHandle = native_handle_clone(rawHandle); in importBuffer()
/aosp12/hardware/google/gchips/gralloc4/src/hidl_common/
H A DMapper.h52 void importBuffer(const hidl_handle &rawHandle, IMapper::importBuffer_cb hidl_cb);

12