Home
last modified time | relevance | path

Searched refs:native_handle_t (Results 1 – 25 of 196) sorted by relevance

12345678

/hardware/interfaces/graphics/mapper/3.0/utils/vts/include/mapper-vts/3.0/
DMapperVts.h53 std::vector<const native_handle_t*> allocate(const BufferDescriptor& descriptor,
56 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo,
65 const native_handle_t* importBuffer(const hidl_handle& rawHandle);
66 void freeBuffer(const native_handle_t* bufferHandle);
71 void* lock(const native_handle_t* bufferHandle, uint64_t cpuUsage,
74 YCbCrLayout lockYCbCr(const native_handle_t* bufferHandle, uint64_t cpuUsage,
76 int unlock(const native_handle_t* bufferHandle);
78 bool validateBufferSize(const native_handle_t* bufferHandle,
80 void getTransportSize(const native_handle_t* bufferHandle, uint32_t* outNumFds,
90 const native_handle_t* cloneBuffer(const hidl_handle& rawHandle);
[all …]
/hardware/interfaces/graphics/mapper/2.0/utils/vts/include/mapper-vts/2.0/
DMapperVts.h53 std::vector<const native_handle_t*> allocate(const BufferDescriptor& descriptor, uint32_t count,
55 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo,
64 const native_handle_t* importBuffer(const hidl_handle& rawHandle);
65 void freeBuffer(const native_handle_t* bufferHandle);
70 void* lock(const native_handle_t* bufferHandle, uint64_t cpuUsage,
72 YCbCrLayout lockYCbCr(const native_handle_t* bufferHandle, uint64_t cpuUsage,
74 int unlock(const native_handle_t* bufferHandle);
78 const native_handle_t* cloneBuffer(const hidl_handle& rawHandle);
85 std::unordered_set<const native_handle_t*> mClonedBuffers;
86 std::unordered_set<const native_handle_t*> mImportedBuffers;
/hardware/qcom/display/msm8960/libgenlock/
Dgenlock.h62 genlock_status_t genlock_create_lock(native_handle_t *buffer_handle);
71 genlock_status_t genlock_release_lock(native_handle_t *buffer_handle);
79 genlock_status_t genlock_attach_lock(native_handle_t *buffer_handle);
95 genlock_status_t genlock_lock_buffer(native_handle_t *buffer_handle,
105 genlock_status_t genlock_unlock_buffer(native_handle_t *buffer_handle);
114 genlock_status_t genlock_wait(native_handle_t *buffer_handle, int timeout);
123 genlock_status_t genlock_write_to_read(native_handle_t *buffer_handle,
Dgenlock.cpp67 genlock_status_t perform_lock_unlock_operation(native_handle_t *buffer_handle, in perform_lock_unlock_operation()
142 genlock_status_t genlock_create_lock(native_handle_t *buffer_handle) in genlock_create_lock()
197 genlock_status_t genlock_release_lock(native_handle_t *buffer_handle) in genlock_release_lock()
227 genlock_status_t genlock_attach_lock(native_handle_t *buffer_handle) in genlock_attach_lock()
275 genlock_status_t genlock_lock_buffer(native_handle_t *buffer_handle, in genlock_lock_buffer()
304 genlock_status_t genlock_unlock_buffer(native_handle_t *buffer_handle) in genlock_unlock_buffer()
322 genlock_status_t genlock_wait(native_handle_t *buffer_handle, int timeout) { in genlock_wait()
359 genlock_status_t genlock_write_to_read(native_handle_t *buffer_handle, in genlock_write_to_read()
/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/
DGrallocWrapper.h45 std::vector<const native_handle_t*> allocate(const mapper2::BufferDescriptor& descriptor,
48 const native_handle_t* allocate(const mapper2::IMapper::BufferDescriptorInfo& descriptorInfo,
54 const native_handle_t* importBuffer(const hardware::hidl_handle& rawHandle);
55 void freeBuffer(const native_handle_t* bufferHandle);
60 void* lock(const native_handle_t* bufferHandle, uint64_t cpuUsage,
63 int unlock(const native_handle_t* bufferHandle);
67 const native_handle_t* cloneBuffer(const hardware::hidl_handle& rawHandle);
74 std::unordered_set<const native_handle_t*> mClonedBuffers;
75 std::unordered_set<const native_handle_t*> mImportedBuffers;
/hardware/interfaces/sensors/common/vts/utils/
DGrallocWrapper.cpp46 auto buffer = const_cast<native_handle_t*>(bufferHandle); in ~GrallocWrapper()
53 auto buffer = const_cast<native_handle_t*>(bufferHandle); in ~GrallocWrapper()
72 const native_handle_t* GrallocWrapper::cloneBuffer(const hardware::hidl_handle& rawHandle) { in cloneBuffer()
73 const native_handle_t* bufferHandle = native_handle_clone(rawHandle.getNativeHandle()); in cloneBuffer()
81 std::vector<const native_handle_t*> GrallocWrapper::allocate( in allocate()
83 std::vector<const native_handle_t*> bufferHandles; in allocate()
110 const native_handle_t* GrallocWrapper::allocate( in allocate()
135 const native_handle_t* GrallocWrapper::importBuffer(const hardware::hidl_handle& rawHandle) { in importBuffer()
136 const native_handle_t* bufferHandle = nullptr; in importBuffer()
141 bufferHandle = static_cast<const native_handle_t*>(tmpBuffer); in importBuffer()
[all …]
/hardware/interfaces/graphics/mapper/3.0/utils/vts/
DMapperVts.cpp58 auto buffer = const_cast<native_handle_t*>(bufferHandle); in ~Gralloc()
65 auto buffer = const_cast<native_handle_t*>(bufferHandle); in ~Gralloc()
82 const native_handle_t* Gralloc::cloneBuffer(const hidl_handle& rawHandle) { in cloneBuffer()
83 const native_handle_t* bufferHandle = native_handle_clone(rawHandle.getNativeHandle()); in cloneBuffer()
93 std::vector<const native_handle_t*> Gralloc::allocate(const BufferDescriptor& descriptor, in allocate()
96 std::vector<const native_handle_t*> bufferHandles; in allocate()
124 const native_handle_t* Gralloc::allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate()
153 const native_handle_t* Gralloc::importBuffer(const hidl_handle& rawHandle) { in importBuffer()
154 const native_handle_t* bufferHandle = nullptr; in importBuffer()
158 bufferHandle = static_cast<const native_handle_t*>(tmpBuffer); in importBuffer()
[all …]
/hardware/interfaces/graphics/composer/2.1/utils/hal/include/composer-hal/2.1/
DComposerResources.h55 Error importBuffer(const native_handle_t* rawHandle, const native_handle_t** outBufferHandle) { in importBuffer()
61 const native_handle_t* bufferHandle; in importBuffer()
67 bufferHandle = static_cast<const native_handle_t*>(tmpBufferHandle); in importBuffer()
78 bufferHandle = static_cast<const native_handle_t*>(tmpBufferHandle); in importBuffer()
89 void freeBuffer(const native_handle_t* bufferHandle) { in freeBuffer()
93 static_cast<void*>(const_cast<native_handle_t*>(bufferHandle))); in freeBuffer()
96 static_cast<void*>(const_cast<native_handle_t*>(bufferHandle))); in freeBuffer()
101 Error importStream(const native_handle_t* rawHandle, const native_handle_t** outStreamHandle) { in importStream()
102 const native_handle_t* streamHandle = nullptr; in importStream()
114 void freeStream(const native_handle_t* streamHandle) { in freeStream()
[all …]
/hardware/interfaces/graphics/mapper/2.0/utils/vts/
DMapperVts.cpp43 auto buffer = const_cast<native_handle_t*>(bufferHandle); in ~Gralloc()
50 auto buffer = const_cast<native_handle_t*>(bufferHandle); in ~Gralloc()
67 const native_handle_t* Gralloc::cloneBuffer(const hidl_handle& rawHandle) { in cloneBuffer()
68 const native_handle_t* bufferHandle = native_handle_clone(rawHandle.getNativeHandle()); in cloneBuffer()
78 std::vector<const native_handle_t*> Gralloc::allocate(const BufferDescriptor& descriptor, in allocate()
81 std::vector<const native_handle_t*> bufferHandles; in allocate()
109 const native_handle_t* Gralloc::allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate()
138 const native_handle_t* Gralloc::importBuffer(const hidl_handle& rawHandle) { in importBuffer()
139 const native_handle_t* bufferHandle = nullptr; in importBuffer()
143 bufferHandle = static_cast<const native_handle_t*>(tmpBuffer); in importBuffer()
[all …]
/hardware/interfaces/graphics/mapper/2.0/utils/hal/include/mapper-hal/2.0/
DMapperHal.h38 virtual Error importBuffer(const native_handle_t* rawHandle,
39 native_handle_t** outBufferHandle) = 0;
42 virtual Error freeBuffer(native_handle_t* bufferHandle) = 0;
45 virtual Error lock(const native_handle_t* bufferHandle, uint64_t cpuUsage,
50 virtual Error lockYCbCr(const native_handle_t* bufferHandle, uint64_t cpuUsage,
55 virtual Error unlock(const native_handle_t* bufferHandle, base::unique_fd* outFenceFd) = 0;
DMapper.h64 native_handle_t* bufferHandle = nullptr; in importBuffer()
83 native_handle_t* bufferHandle = removeImportedBuffer(buffer); in freeBuffer()
93 const native_handle_t* bufferHandle = getImportedBuffer(buffer); in lock()
115 const native_handle_t* bufferHandle = getImportedBuffer(buffer); in lockYCbCr()
135 const native_handle_t* bufferHandle = getImportedBuffer(buffer); in unlock()
155 virtual void* addImportedBuffer(native_handle_t* bufferHandle) { in addImportedBuffer()
159 virtual native_handle_t* removeImportedBuffer(void* buffer) { in removeImportedBuffer()
160 return static_cast<native_handle_t*>(buffer); in removeImportedBuffer()
163 virtual const native_handle_t* getImportedBuffer(void* buffer) const { in getImportedBuffer()
164 return static_cast<const native_handle_t*>(buffer); in getImportedBuffer()
[all …]
/hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/
DGrallocLoader.h59 void* add(native_handle_t* bufferHandle) { in add()
64 native_handle_t* remove(void* buffer) { in remove()
65 auto bufferHandle = static_cast<native_handle_t*>(buffer); in remove()
71 const native_handle_t* get(void* buffer) { in get()
72 auto bufferHandle = static_cast<const native_handle_t*>(buffer); in get()
80 std::unordered_set<const native_handle_t*> mBufferHandles;
87 void* addImportedBuffer(native_handle_t* bufferHandle) override { in addImportedBuffer()
91 native_handle_t* removeImportedBuffer(void* buffer) override { in removeImportedBuffer()
95 const native_handle_t* getImportedBuffer(void* buffer) const override { in getImportedBuffer()
DGralloc0Hal.h76 Error importBuffer(const native_handle_t* rawHandle, in importBuffer()
77 native_handle_t** outBufferHandle) override { in importBuffer()
78 native_handle_t* bufferHandle = native_handle_clone(rawHandle); in importBuffer()
94 Error freeBuffer(native_handle_t* bufferHandle) override { in freeBuffer()
104 Error lock(const native_handle_t* bufferHandle, uint64_t cpuUsage, in lock()
129 Error lockYCbCr(const native_handle_t* bufferHandle, uint64_t cpuUsage, in lockYCbCr()
163 Error unlock(const native_handle_t* bufferHandle, base::unique_fd* outFenceFd) override { in unlock()
DGralloc1Hal.h96 Error importBuffer(const native_handle_t* rawHandle, in importBuffer()
97 native_handle_t** outBufferHandle) override { in importBuffer()
98 native_handle_t* bufferHandle = native_handle_clone(rawHandle); in importBuffer()
115 Error freeBuffer(native_handle_t* bufferHandle) override { in freeBuffer()
124 Error lock(const native_handle_t* bufferHandle, uint64_t cpuUsage, in lock()
140 Error lockYCbCr(const native_handle_t* bufferHandle, uint64_t cpuUsage, in lockYCbCr()
167 Error unlock(const native_handle_t* bufferHandle, base::unique_fd* outFenceFd) override { in unlock()
/hardware/interfaces/graphics/composer/2.2/utils/hal/include/composer-hal/2.2/
DComposerResources.h42 Error getReadbackBuffer(const native_handle_t* inHandle, const native_handle_t** outHandle, in getReadbackBuffer()
61 Error getDisplayReadbackBuffer(Display display, const native_handle_t* rawHandle, in getDisplayReadbackBuffer()
62 const native_handle_t** outHandle, in getDisplayReadbackBuffer()
65 const native_handle_t* importedHandle; in getDisplayReadbackBuffer()
82 const native_handle_t* replacedHandle; in getDisplayReadbackBuffer()
/hardware/interfaces/graphics/mapper/2.1/vts/functional/
DVtsHalGraphicsMapperV2_1TargetTest.cpp78 const native_handle_t* bufferHandle; in TEST_F()
91 native_handle_t* invalidHandle = nullptr; in TEST_F()
104 native_handle_t* rawBufferHandle; in TEST_F()
105 ASSERT_NO_FATAL_FAILURE(rawBufferHandle = const_cast<native_handle_t*>( in TEST_F()
124 native_handle_t* bufferHandle; in TEST_F()
127 bufferHandle = const_cast<native_handle_t*>(mGralloc->allocate(info, true, &stride))); in TEST_F()
165 const native_handle_t* bufferHandle; in TEST_F()
177 native_handle_t* invalidHandle = nullptr; in TEST_F()
192 native_handle_t* rawBufferHandle; in TEST_F()
193 ASSERT_NO_FATAL_FAILURE(rawBufferHandle = const_cast<native_handle_t*>( in TEST_F()
/hardware/interfaces/tetheroffload/config/1.0/vts/functional/
DVtsHalTetheroffloadConfigV1_0TargetTest.cpp117 native_handle_t* const nativeHandle1 = native_handle_create(1, 0); in TEST_F()
127 native_handle_t* const nativeHandle2 = native_handle_create(1, 0); in TEST_F()
140 native_handle_t* const nativeHandle1 = native_handle_create(0, 0); in TEST_F()
143 native_handle_t* const nativeHandle2 = native_handle_create(0, 0); in TEST_F()
159 native_handle_t* const nativeHandle1 = native_handle_create(1, 0); in TEST_F()
164 native_handle_t* const nativeHandle2 = native_handle_create(0, 0); in TEST_F()
175 native_handle_t* const nativeHandle1 = native_handle_create(0, 0); in TEST_F()
184 native_handle_t* const nativeHandle2 = native_handle_create(1, 0); in TEST_F()
/hardware/interfaces/graphics/mapper/2.0/vts/functional/
DVtsHalGraphicsMapperV2_0TargetTest.cpp90 std::vector<const native_handle_t*> bufferHandles; in TEST_F()
183 const native_handle_t* bufferHandle; in TEST_F()
192 const native_handle_t* clonedBufferHandle; in TEST_F()
197 const native_handle_t* importedBufferHandles[2]; in TEST_F()
210 const native_handle_t* rawHandle; in TEST_F()
213 native_handle_t* importedHandle = nullptr; in TEST_F()
216 importedHandle = static_cast<native_handle_t*>(buffer); in TEST_F()
249 native_handle_t* invalidHandle = nullptr; in TEST_F()
267 native_handle_t* invalidHandle = nullptr; in TEST_F()
277 const native_handle_t* clonedBufferHandle; in TEST_F()
[all …]
/hardware/interfaces/graphics/allocator/2.0/utils/passthrough/include/allocator-passthrough/2.0/
DGralloc0Hal.h75 std::vector<const native_handle_t*>* outBuffers) override { in allocateBuffers()
83 std::vector<const native_handle_t*> buffers; in allocateBuffers()
88 const native_handle_t* tmpBuffer; in allocateBuffers()
117 void freeBuffers(const std::vector<const native_handle_t*>& buffers) override { in freeBuffers()
128 const native_handle_t** outBuffer, uint32_t* outStride) { in allocateOneBuffer()
133 const native_handle_t* buffer = nullptr; in allocateOneBuffer()
/hardware/interfaces/graphics/mapper/3.0/vts/functional/
DVtsHalGraphicsMapperV3_0TargetTest.cpp90 std::vector<const native_handle_t*> bufferHandles; in TEST_F()
183 const native_handle_t* bufferHandle; in TEST_F()
192 const native_handle_t* clonedBufferHandle; in TEST_F()
197 const native_handle_t* importedBufferHandles[2]; in TEST_F()
210 const native_handle_t* rawHandle; in TEST_F()
213 native_handle_t* importedHandle = nullptr; in TEST_F()
216 importedHandle = static_cast<native_handle_t*>(buffer); in TEST_F()
249 native_handle_t* invalidHandle = nullptr; in TEST_F()
267 native_handle_t* invalidHandle = nullptr; in TEST_F()
277 const native_handle_t* clonedBufferHandle; in TEST_F()
[all …]
/hardware/interfaces/graphics/mapper/2.1/utils/vts/
DMapperVts.cpp71 bool Gralloc::validateBufferSize(const native_handle_t* bufferHandle, in validateBufferSize()
74 auto buffer = const_cast<native_handle_t*>(bufferHandle); in validateBufferSize()
80 void Gralloc::getTransportSize(const native_handle_t* bufferHandle, uint32_t* outNumFds, in getTransportSize()
82 auto buffer = const_cast<native_handle_t*>(bufferHandle); in getTransportSize()
108 const native_handle_t* Gralloc::allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate()
/hardware/interfaces/graphics/mapper/2.1/utils/vts/include/mapper-vts/2.1/
DMapperVts.h41 bool validateBufferSize(const native_handle_t* bufferHandle,
43 void getTransportSize(const native_handle_t* bufferHandle, uint32_t* outNumFds,
48 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo,
/hardware/google/av/codec2/vndk/
DC2AllocatorGralloc.cpp95 bool native_handle_is_invalid(const native_handle_t *const handle) { in native_handle_is_invalid()
101 return ((size_t)handle->version != sizeof(native_handle_t) || in native_handle_is_invalid()
163 const native_handle_t *const handle, in WrapAndMoveNativeHandle()
176 native_handle_t *res = native_handle_create(handle->numFds, handle->numInts + NUM_INTS); in WrapAndMoveNativeHandle()
185 const native_handle_t *const handle, in WrapNativeHandle()
191 native_handle_t *clone = native_handle_clone(handle); in WrapNativeHandle()
204 static native_handle_t* UnwrapNativeHandle( in UnwrapNativeHandle()
210 native_handle_t *res = native_handle_create(handle->numFds, handle->numInts - NUM_INTS); in UnwrapNativeHandle()
217 static native_handle_t* UnwrapNativeHandle( in UnwrapNativeHandle()
227 native_handle_t *res = native_handle_create(handle->numFds, handle->numInts - NUM_INTS); in UnwrapNativeHandle()
[all …]
/hardware/interfaces/graphics/mapper/2.1/utils/passthrough/include/mapper-passthrough/2.1/
DGralloc1Hal.h39 Error validateBufferSize(const native_handle_t* bufferHandle, in validateBufferSize()
60 Error getTransportSize(const native_handle_t* bufferHandle, uint32_t* outNumFds, in getTransportSize()
66 Error importBuffer(const native_handle_t* rawHandle, in importBuffer()
67 native_handle_t** outBufferHandle) override { in importBuffer()
69 mDevice, rawHandle, const_cast<const native_handle_t**>(outBufferHandle)); in importBuffer()
/hardware/interfaces/graphics/allocator/2.0/utils/hal/include/allocator-hal/2.0/
DAllocatorHal.h45 std::vector<const native_handle_t*>* outBuffers) = 0;
48 virtual void freeBuffers(const std::vector<const native_handle_t*>& buffers) = 0;

12345678