Home
last modified time | relevance | path

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

12345678910>>...13

/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);
47 void freeBuffer(const native_handle_t* bufferHandle);
48 Error importStream(const native_handle_t* rawHandle, const native_handle_t** outStreamHandle);
49 void freeStream(const native_handle_t* streamHandle);
75 Error lookupCache(uint32_t slot, const native_handle_t** outHandle);
76 Error updateCache(uint32_t slot, const native_handle_t* handle,
80 Error getHandle(uint32_t slot, bool fromCache, const native_handle_t* inHandle,
81 const native_handle_t** outHandle, const native_handle** outReplacedHandle);
86 std::vector<const native_handle_t*> mHandles;
96 Error getBuffer(uint32_t slot, bool fromCache, const native_handle_t* inHandle,
[all …]
/hardware/google/gfxstream/guest/mesa/include/android_stub/cutils/
Dnative_handle.h31 alignas(native_handle_t) char (name)[ \
32 sizeof(native_handle_t) + sizeof(int) * ((maxFds) + (maxInts))]
47 } native_handle_t; typedef
49 typedef const native_handle_t* buffer_handle_t;
59 int native_handle_close(const native_handle_t* h);
68 native_handle_t* native_handle_init(char* storage, int numFds, int numInts);
78 native_handle_t* native_handle_create(int numFds, int numInts);
87 native_handle_t* native_handle_clone(const native_handle_t* handle);
99 int native_handle_delete(native_handle_t* h);
/hardware/interfaces/graphics/mapper/3.0/utils/vts/include/mapper-vts/3.0/
DMapperVts.h54 std::vector<const native_handle_t*> allocate(const BufferDescriptor& descriptor,
57 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo,
66 const native_handle_t* importBuffer(const hidl_handle& rawHandle);
67 void freeBuffer(const native_handle_t* bufferHandle);
72 void* lock(const native_handle_t* bufferHandle, uint64_t cpuUsage,
75 YCbCrLayout lockYCbCr(const native_handle_t* bufferHandle, uint64_t cpuUsage,
77 int unlock(const native_handle_t* bufferHandle);
79 bool validateBufferSize(const native_handle_t* bufferHandle,
81 void getTransportSize(const native_handle_t* bufferHandle, uint32_t* outNumFds,
91 const native_handle_t* cloneBuffer(const hidl_handle& rawHandle);
[all …]
/hardware/interfaces/graphics/mapper/4.0/utils/vts/include/mapper-vts/4.0/
DMapperVts.h90 std::vector<const native_handle_t*> allocate(
94 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo,
97 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate()
102 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate()
107 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate()
122 const native_handle_t* importBuffer(const hidl_handle& rawHandle, enum Tolerance tolerance);
123 const native_handle_t* importBuffer(const hidl_handle& rawHandle) { in importBuffer()
127 void freeBuffer(const native_handle_t* bufferHandle);
132 void* lock(const native_handle_t* bufferHandle, uint64_t cpuUsage,
134 int unlock(const native_handle_t* bufferHandle);
[all …]
/hardware/interfaces/graphics/mapper/2.0/utils/vts/include/mapper-vts/2.0/
DMapperVts.h54 std::vector<const native_handle_t*> allocate(const BufferDescriptor& descriptor, uint32_t count,
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,
73 YCbCrLayout lockYCbCr(const native_handle_t* bufferHandle, uint64_t cpuUsage,
75 int unlock(const native_handle_t* bufferHandle);
79 const native_handle_t* cloneBuffer(const hidl_handle& rawHandle);
86 std::unordered_set<const native_handle_t*> mClonedBuffers;
87 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,
/hardware/interfaces/graphics/mapper/4.0/utils/vts/
DMapperVts.cpp75 auto buffer = const_cast<native_handle_t*>(bufferHandle); in ~Gralloc()
82 auto buffer = const_cast<native_handle_t*>(bufferHandle); in ~Gralloc()
88 const native_handle_t* Gralloc::cloneBuffer(const hidl_handle& rawHandle, in cloneBuffer()
90 const native_handle_t* bufferHandle = native_handle_clone(rawHandle.getNativeHandle()); in cloneBuffer()
100 std::vector<const native_handle_t*> Gralloc::allocate(const BufferDescriptor& descriptor, in allocate()
104 std::vector<const native_handle_t*> bufferHandles; in allocate()
119 const native_handle_t* bufferHandle = nullptr; in allocate()
144 const native_handle_t* Gralloc::allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate()
190 const native_handle_t* Gralloc::importBuffer(const hidl_handle& rawHandle, in importBuffer()
192 const native_handle_t* bufferHandle = nullptr; 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()
128 const native_handle_t* Gralloc::allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate()
157 const native_handle_t* Gralloc::importBuffer(const hidl_handle& rawHandle) { in importBuffer()
158 const native_handle_t* bufferHandle = nullptr; in importBuffer()
162 bufferHandle = static_cast<const native_handle_t*>(tmpBuffer); in importBuffer()
[all …]
/hardware/google/camera/common/sensor_listener/
Dgoog_gralloc_wrapper.h53 std::vector<const native_handle_t*> Allocate(
59 const native_handle_t* AllocateOneBuffer(
73 const native_handle_t* ImportBuffer(
77 void FreeBuffer(const native_handle_t* buffer_handle);
83 void* Lock(const native_handle_t* buffer_handle, uint64_t cpu_usage,
89 int Unlock(const native_handle_t* buffer_handle);
92 const native_handle_t* CloneBuffer(const hardware::hidl_handle& raw_handle);
103 std::unordered_set<const native_handle_t*> cloned_buffers_;
106 std::unordered_set<const native_handle_t*> imported_buffers_;
Dgoog_gralloc_wrapper.cc49 auto buffer = const_cast<native_handle_t*>(buffer_handle); in ~GoogGrallocWrapper()
56 auto buffer = const_cast<native_handle_t*>(buffer_handle); in ~GoogGrallocWrapper()
77 const native_handle_t* GoogGrallocWrapper::CloneBuffer( in CloneBuffer()
79 const native_handle_t* buffer_handle = in CloneBuffer()
91 std::vector<const native_handle_t*> GoogGrallocWrapper::Allocate( in Allocate()
94 std::vector<const native_handle_t*> buffer_handles; in Allocate()
123 const native_handle_t* GoogGrallocWrapper::AllocateOneBuffer( in AllocateOneBuffer()
150 const native_handle_t* GoogGrallocWrapper::ImportBuffer( in ImportBuffer()
152 const native_handle_t* buffer_handle = nullptr; in ImportBuffer()
160 buffer_handle = static_cast<const native_handle_t*>(tmp_buffer); in ImportBuffer()
[all …]
/hardware/interfaces/graphics/mapper/2.0/utils/vts/
DMapperVts.cpp41 auto buffer = const_cast<native_handle_t*>(bufferHandle); in ~Gralloc()
48 auto buffer = const_cast<native_handle_t*>(bufferHandle); in ~Gralloc()
65 const native_handle_t* Gralloc::cloneBuffer(const hidl_handle& rawHandle) { in cloneBuffer()
66 const native_handle_t* bufferHandle = native_handle_clone(rawHandle.getNativeHandle()); in cloneBuffer()
76 std::vector<const native_handle_t*> Gralloc::allocate(const BufferDescriptor& descriptor, in allocate()
79 std::vector<const native_handle_t*> bufferHandles; in allocate()
107 const native_handle_t* Gralloc::allocate(const IMapper::BufferDescriptorInfo& descriptorInfo, in allocate()
136 const native_handle_t* Gralloc::importBuffer(const hidl_handle& rawHandle) { in importBuffer()
137 const native_handle_t* bufferHandle = nullptr; in importBuffer()
141 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 = getImportedBuffer(buffer); in freeBuffer()
93 const native_handle_t* bufferHandle = getConstImportedBuffer(buffer); in lock()
115 const native_handle_t* bufferHandle = getConstImportedBuffer(buffer); in lockYCbCr()
135 const native_handle_t* bufferHandle = getConstImportedBuffer(buffer); in unlock()
155 virtual void* addImportedBuffer(native_handle_t* bufferHandle) { in addImportedBuffer()
159 virtual Error freeImportedBuffer(native_handle_t* bufferHandle) { in freeImportedBuffer()
163 virtual native_handle_t* getImportedBuffer(void* buffer) const { in getImportedBuffer()
164 return static_cast<native_handle_t*>(buffer); in getImportedBuffer()
167 virtual const native_handle_t* getConstImportedBuffer(void* buffer) const { in getConstImportedBuffer()
[all …]
/hardware/interfaces/graphics/composer/2.1/utils/resources/
DComposerResources.cpp36 Error ComposerHandleImporter::importBuffer(const native_handle_t* rawHandle, in importBuffer()
37 const native_handle_t** outBufferHandle) { in importBuffer()
51 void ComposerHandleImporter::freeBuffer(const native_handle_t* bufferHandle) { in freeBuffer()
57 Error ComposerHandleImporter::importStream(const native_handle_t* rawHandle, in importStream()
58 const native_handle_t** outStreamHandle) { in importStream()
59 const native_handle_t* streamHandle = nullptr; in importStream()
71 void ComposerHandleImporter::freeStream(const native_handle_t* streamHandle) { in freeStream()
74 native_handle_delete(const_cast<native_handle_t*>(streamHandle)); in freeStream()
118 Error ComposerHandleCache::lookupCache(uint32_t slot, const native_handle_t** outHandle) { in lookupCache()
127 Error ComposerHandleCache::updateCache(uint32_t slot, const native_handle_t* handle, in updateCache()
[all …]
/hardware/interfaces/common/support/
Dtest.cpp25 static void checkEq(const NativeHandle& aidl, native_handle_t* libcutils, bool exceptFds) { in checkEq()
66 native_handle_t* to = makeFromAidl(handle); in TEST()
75 native_handle_t* to = makeFromAidl(handle); in TEST()
83 native_handle_t* to = dupFromAidl(handle); in TEST()
91 native_handle_t* to = dupFromAidl(handle); in TEST()
97 static native_handle_t* makeTestLibcutilsHandle() { in makeTestLibcutilsHandle()
98 native_handle_t* handle = native_handle_create(2, 4); in makeTestLibcutilsHandle()
109 native_handle_t* handle = native_handle_create(0, 0); in TEST()
118 native_handle_t* handle = makeTestLibcutilsHandle(); in TEST()
127 native_handle_t* handle = native_handle_create(0, 0); in TEST()
[all …]
DNativeHandle.cpp32 static native_handle_t* fromAidl(const NativeHandle& handle, bool doDup) { in fromAidl()
33 native_handle_t* to = native_handle_create(handle.fds.size(), handle.ints.size()); in fromAidl()
44 native_handle_t* makeFromAidl(const NativeHandle& handle) { in makeFromAidl()
47 native_handle_t* dupFromAidl(const NativeHandle& handle) { in dupFromAidl()
51 static NativeHandle toAidl(const native_handle_t* handle, bool doDup) { in toAidl()
65 NativeHandle makeToAidl(const native_handle_t* handle) { in makeToAidl()
69 NativeHandle dupToAidl(const native_handle_t* handle) { in dupToAidl()
/hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/
DGrallocLoader.h61 void* add(native_handle_t* bufferHandle) { in add()
68 native_handle_t* get(void* buffer) { in get()
69 auto bufferHandle = static_cast<native_handle_t*>(buffer); in get()
75 const native_handle_t* getConst(void* buffer) { in getConst()
76 auto bufferHandle = static_cast<const native_handle_t*>(buffer); in getConst()
84 std::unordered_set<const native_handle_t*> mBufferHandles;
91 void* addImportedBuffer(native_handle_t* bufferHandle) override { in addImportedBuffer()
95 Error freeImportedBuffer(native_handle_t* bufferHandle) override { in freeImportedBuffer()
104 native_handle_t* getImportedBuffer(void* buffer) const override { in getImportedBuffer()
108 const native_handle_t* getConstImportedBuffer(void* buffer) const override { in getConstImportedBuffer()
/hardware/google/gfxstream/guest/android/
DGrallocGoldfish.cpp53 uint32_t GoldfishGralloc::getHostHandle(native_handle_t const* handle) { in getHostHandle()
65 const native_handle_t* handle = AHardwareBuffer_getNativeHandle(ahb); in getHostHandle()
69 const native_handle_t* GoldfishGralloc::getNativeHandle(const AHardwareBuffer* ahb) { in getNativeHandle()
73 int GoldfishGralloc::getFormat(const native_handle_t* handle) { in getFormat()
78 const native_handle_t* handle = AHardwareBuffer_getNativeHandle(ahb); in getFormat()
82 uint32_t GoldfishGralloc::getFormatDrmFourcc(const native_handle_t* handle) { in getFormatDrmFourcc()
87 const native_handle_t* handle = AHardwareBuffer_getNativeHandle(ahb); in getFormatDrmFourcc()
103 size_t GoldfishGralloc::getAllocatedSize(const native_handle_t* handle) { in getAllocatedSize()
108 const native_handle_t* handle = AHardwareBuffer_getNativeHandle(ahb); in getAllocatedSize()
DGrallocGoldfish.h34 uint32_t getHostHandle(native_handle_t const* handle) override;
37 const native_handle_t* getNativeHandle(const AHardwareBuffer* ahb) override;
39 int getFormat(const native_handle_t* handle) override;
42 uint32_t getFormatDrmFourcc(const native_handle_t* handle) override;
48 size_t getAllocatedSize(const native_handle_t* handle) override;
DGrallocMinigbm.h34 uint32_t getHostHandle(native_handle_t const* handle) override;
37 const native_handle_t* getNativeHandle(const AHardwareBuffer* ahb) override;
39 int getFormat(const native_handle_t* handle) override;
42 uint32_t getFormatDrmFourcc(const native_handle_t* handle) override;
48 size_t getAllocatedSize(const native_handle_t* handle) override;
/hardware/google/gchips/libvendorgraphicbuffer/gralloc4/
Dvendor_graphicbuffer_meta.cpp85 native_handle_t* handle = const_cast<native_handle_t*>(hnd); in get_dataspace()
112 native_handle_t* handle = const_cast<native_handle_t*>(hnd); in set_dataspace()
244 native_handle_t* handle = const_cast<native_handle_t*>(hnd); in get_video_metadata()
262 native_handle_t* handle = const_cast<native_handle_t*>(hnd); in get_video_metadata_roiinfo()
279 native_handle_t* handle = const_cast<native_handle_t*>(hnd); in get_format_fourcc()
305 native_handle_t* handle = const_cast<native_handle_t*>(hnd); in get_format_modifier()
379 native_handle_t* handle = const_cast<native_handle_t*>(hnd); in import_buffer()
384 native_handle_t* bufferHandle = nullptr; in import_buffer()
391 bufferHandle = static_cast<native_handle_t*>(tmpBuffer); in import_buffer()
404 native_handle_t* handle = const_cast<native_handle_t*>(hnd); in free_buffer()
/hardware/interfaces/graphics/composer/2.2/utils/resources/
DComposerResources.cpp34 Error ComposerDisplayResource::getReadbackBuffer(const native_handle_t* inHandle, in getReadbackBuffer()
35 const native_handle_t** outHandle, in getReadbackBuffer()
47 Error ComposerResources::getDisplayReadbackBuffer(Display display, const native_handle_t* rawHandle, in getDisplayReadbackBuffer()
48 const native_handle_t** outHandle, in getDisplayReadbackBuffer()
51 const native_handle_t* importedHandle; in getDisplayReadbackBuffer()
68 const native_handle_t* replacedHandle; in getDisplayReadbackBuffer()
/hardware/interfaces/common/support/include/aidlcommonsupport/
DNativeHandle.h34 native_handle_t* makeFromAidl(const aidl::android::hardware::common::NativeHandle& handle);
41 native_handle_t* dupFromAidl(const aidl::android::hardware::common::NativeHandle& handle);
50 aidl::android::hardware::common::NativeHandle makeToAidl(const native_handle_t* handle);
56 aidl::android::hardware::common::NativeHandle dupToAidl(const native_handle_t* handle);
/hardware/interfaces/graphics/composer/2.2/utils/resources/include/composer-resources/2.2/
DComposerResources.h44 Error getReadbackBuffer(const native_handle_t* inHandle, const native_handle_t** outHandle, in getReadbackBuffer()
63 Error getDisplayReadbackBuffer(Display display, const native_handle_t* rawHandle, in getDisplayReadbackBuffer()
64 const native_handle_t** outHandle, in getDisplayReadbackBuffer()
67 const native_handle_t* importedHandle; in getDisplayReadbackBuffer()
84 const native_handle_t* replacedHandle; in getDisplayReadbackBuffer()
/hardware/interfaces/graphics/mapper/2.1/vts/functional/
DVtsHalGraphicsMapperV2_1TargetTest.cpp64 const native_handle_t* bufferHandle; in TEST_P()
77 native_handle_t* invalidHandle = nullptr; in TEST_P()
90 native_handle_t* rawBufferHandle; in TEST_P()
91 ASSERT_NO_FATAL_FAILURE(rawBufferHandle = const_cast<native_handle_t*>( in TEST_P()
110 native_handle_t* bufferHandle; in TEST_P()
113 bufferHandle = const_cast<native_handle_t*>(mGralloc->allocate(info, true, &stride))); in TEST_P()
151 const native_handle_t* bufferHandle; in TEST_P()
163 native_handle_t* invalidHandle = nullptr; in TEST_P()
178 native_handle_t* rawBufferHandle; in TEST_P()
179 ASSERT_NO_FATAL_FAILURE(rawBufferHandle = const_cast<native_handle_t*>( in TEST_P()

12345678910>>...13