/hardware/interfaces/graphics/composer/2.1/utils/resources/include/composer-resources/2.1/ |
D | ComposerResources.h | 46 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/ |
D | native_handle.h | 31 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/ |
D | MapperVts.h | 54 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/ |
D | MapperVts.h | 90 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/ |
D | MapperVts.h | 54 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/ |
D | genlock.h | 62 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/ |
D | MapperVts.cpp | 75 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/ |
D | MapperVts.cpp | 58 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/ |
D | goog_gralloc_wrapper.h | 53 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_;
|
D | goog_gralloc_wrapper.cc | 49 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/ |
D | MapperVts.cpp | 41 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/ |
D | MapperHal.h | 38 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;
|
D | Mapper.h | 64 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/ |
D | ComposerResources.cpp | 36 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/ |
D | test.cpp | 25 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 …]
|
D | NativeHandle.cpp | 32 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/ |
D | GrallocLoader.h | 61 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/ |
D | GrallocGoldfish.cpp | 53 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()
|
D | GrallocGoldfish.h | 34 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;
|
D | GrallocMinigbm.h | 34 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/ |
D | vendor_graphicbuffer_meta.cpp | 85 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/ |
D | ComposerResources.cpp | 34 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/ |
D | NativeHandle.h | 34 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/ |
D | ComposerResources.h | 44 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/ |
D | VtsHalGraphicsMapperV2_1TargetTest.cpp | 64 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()
|