Home
last modified time | relevance | path

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

1234567

/frameworks/native/libs/gui/include/gui/bufferqueue/1.0/
DConversion.h82 native_handle_t* native_handle_create_from_fd(int fd);
95 int native_handle_read_fd(native_handle_t const* nh, int index = 0);
154 hidl_handle inHidlHandle(native_handle_t const* nh);
326 status_t unflattenFence(hidl_handle* fence, native_handle_t** nh,
353 bool wrapAs(hidl_handle* t, native_handle_t** nh, Fence const& l);
419 HGraphicBufferProducer::FenceTimeSnapshot* t, native_handle_t** nh,
458 std::vector<native_handle_t*>* nh,
517 std::vector<std::vector<native_handle_t*> >* nh,
551 std::vector<std::vector<native_handle_t*> >* nh,
649 native_handle_t** nh,
[all …]
/frameworks/av/camera/ndk/ndk_vendor/impl/
Dutils.h45 std::vector<native_handle_t *> mSurfaceList;
55 bool isWindowNativeHandleEqual(const native_handle_t *nh1, const native_handle_t *nh2);
57 bool isWindowNativeHandleLessThan(const native_handle_t *nh1, const native_handle_t *nh2);
60 bool isWindowNativeHandleGreaterThan(const native_handle_t *nh1, const native_handle_t *nh2);
65 native_handle_t *mWindow = nullptr;
67 native_handle_ptr_wrapper(native_handle_t *nh) : mWindow(nh) { } in native_handle_ptr_wrapper()
71 operator native_handle_t *() const { return mWindow; }
Dutils.cpp132 bool isWindowNativeHandleEqual(const native_handle_t *nh1, const native_handle_t *nh2) { in isWindowNativeHandleEqual()
149 bool isWindowNativeHandleLessThan(const native_handle_t *nh1, const native_handle_t *nh2) { in isWindowNativeHandleLessThan()
165 bool isWindowNativeHandleGreaterThan(const native_handle_t *nh1, const native_handle_t *nh2) { in isWindowNativeHandleGreaterThan()
186 const native_handle_t *handle1 = handles1[i].getNativeHandle(); in areWindowNativeHandlesLessThan()
187 const native_handle_t *handle2 = handles2[i].getNativeHandle(); in areWindowNativeHandlesLessThan()
/frameworks/av/media/bufferpool/1.0/vts/
Dallocator.cpp34 struct HandleAshmem : public native_handle_t {
36 : native_handle_t(cHeader), in HandleAshmem()
46 static bool isValid(const native_handle_t * const o);
63 version = sizeof(native_handle_t)
65 const static native_handle_t cHeader;
68 const native_handle_t HandleAshmem::cHeader = {
75 bool HandleAshmem::isValid(const native_handle_t * const o) { in isValid()
164 bool TestBufferPoolAllocator::Fill(const native_handle_t *handle, const unsigned char val) { in Fill()
182 bool TestBufferPoolAllocator::Verify(const native_handle_t *handle, const unsigned char val) { in Verify()
/frameworks/av/media/bufferpool/2.0/tests/
Dallocator.cpp34 struct HandleAshmem : public native_handle_t {
36 : native_handle_t(cHeader), in HandleAshmem()
46 static bool isValid(const native_handle_t * const o);
63 version = sizeof(native_handle_t)
65 const static native_handle_t cHeader;
68 const native_handle_t HandleAshmem::cHeader = {
75 bool HandleAshmem::isValid(const native_handle_t * const o) { in isValid()
164 bool TestBufferPoolAllocator::Fill(const native_handle_t *handle, const unsigned char val) { in Fill()
182 bool TestBufferPoolAllocator::Verify(const native_handle_t *handle, const unsigned char val) { in Verify()
Dsingle.cpp101 native_handle_t *allocHandle = nullptr; in TEST_F()
124 native_handle_t *allocHandle = nullptr; in TEST_F()
142 native_handle_t *allocHandle = nullptr; in TEST_F()
143 native_handle_t *recvHandle = nullptr; in TEST_F()
/frameworks/av/camera/include/camera/
DCamera.h46 virtual void postRecordingFrameHandleTimestamp(nsecs_t timestamp, native_handle_t* handle) = 0;
49 const std::vector<native_handle_t*>& handles) = 0;
122 void releaseRecordingFrameHandle(native_handle_t *handle);
126 const std::vector<native_handle_t*> handles);
175 …virtual void recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* hand…
178 const std::vector<native_handle_t*>& handles);
190 virtual void releaseRecordingFrameHandle(native_handle_t* handle);
192 const std::vector<native_handle_t*>& handles);
/frameworks/av/media/codec2/vndk/include/
Dtypes.h58 HFenceWrapper(native_handle_t* h);
62 HFenceWrapper& set(native_handle_t* h);
63 HFenceWrapper& operator=(native_handle_t* h);
68 native_handle_t* mHandle{nullptr};
75 bool h2b(native_handle_t const* from, sp<BFence>* to);
DC2AllocatorGralloc.h34 native_handle_t *UnwrapNativeCodec2GrallocHandle(const C2Handle *const handle);
43 const native_handle_t *const handle,
54 native_handle_t *handle,
/frameworks/native/libs/gui/include/gui/bufferqueue/2.0/
Dtypes.h57 HFenceWrapper(native_handle_t* h);
61 HFenceWrapper& set(native_handle_t* h);
62 HFenceWrapper& operator=(native_handle_t* h);
67 native_handle_t* mHandle{nullptr};
74 bool h2b(native_handle_t const* from, sp<BFence>* to);
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
Dnative_handle_wrapper.h26 explicit NativeHandleWrapper(const native_handle_t* handle) { in NativeHandleWrapper()
45 native_handle_t* DuplicateHandle() const { in DuplicateHandle()
63 native_handle_t* TakeHandle() { in TakeHandle()
75 static native_handle_t* FromFdsAndInts(std::vector<FileHandleType> fds, in FromFdsAndInts()
77 native_handle_t* handle = native_handle_create(fds.size(), ints.size()); in FromFdsAndInts()
/frameworks/av/media/bufferpool/1.0/
DBufferPoolClient.cpp62 native_handle_t **handle,
68 native_handle_t **handle, std::shared_ptr<BufferPoolData> *buffer);
92 native_handle_t **handle);
96 native_handle_t **handle);
170 native_handle_t *mHandle;
179 ConnectionId connectionId, BufferId id, native_handle_t *handle) in ClientBuffer()
202 std::shared_ptr<BufferPoolData> fetchCache(native_handle_t **pHandle) { in fetchCache()
215 native_handle_t **pHandle) { in createCache()
303 native_handle_t **pHandle, in allocate()
309 native_handle_t *handle = nullptr; in allocate()
[all …]
DAccessorImpl.h51 const native_handle_t** handle);
56 const native_handle_t** handle);
258 BufferId *pId, const native_handle_t **handle);
278 const native_handle_t **handle);
/frameworks/native/libs/gui/bufferqueue/2.0/
Dtypes.cpp104 HFenceWrapper::HFenceWrapper(native_handle_t* h) : mHandle{h} { in HFenceWrapper()
111 HFenceWrapper& HFenceWrapper::set(native_handle_t* h) { in set()
117 HFenceWrapper& HFenceWrapper::operator=(native_handle_t* h) { in operator =()
139 native_handle_t* nh = native_handle_create(1, 0); in b2h()
148 bool h2b(native_handle_t const* from, sp<BFence>* to) { in h2b()
267 const_cast<native_handle_t*>( in b2h()
284 native_handle_t const* handle = from.nativeHandle; in h2b()
/frameworks/av/media/codec2/vndk/
Dtypes.cpp111 HFenceWrapper::HFenceWrapper(native_handle_t* h) : mHandle{h} { in HFenceWrapper()
118 HFenceWrapper& HFenceWrapper::set(native_handle_t* h) { in set()
124 HFenceWrapper& HFenceWrapper::operator=(native_handle_t* h) { in operator =()
146 native_handle_t* nh = native_handle_create(1, 0); in b2h()
155 bool h2b(native_handle_t const* from, sp<BFence>* to) { in h2b()
274 const_cast<native_handle_t*>( in b2h()
291 native_handle_t const* handle = from.nativeHandle; in h2b()
DC2AllocatorGralloc.cpp117 bool native_handle_is_invalid(const native_handle_t *const handle) { in native_handle_is_invalid()
123 return ((size_t)handle->version != sizeof(native_handle_t) || in native_handle_is_invalid()
185 const native_handle_t *const handle, in WrapAndMoveNativeHandle()
198 native_handle_t *res = native_handle_create(handle->numFds, handle->numInts + NUM_INTS); in WrapAndMoveNativeHandle()
207 const native_handle_t *const handle, in WrapNativeHandle()
213 native_handle_t *clone = native_handle_clone(handle); in WrapNativeHandle()
227 native_handle_t *handle, in MigrateNativeHandle()
242 static native_handle_t* UnwrapNativeHandle( in UnwrapNativeHandle()
248 native_handle_t *res = native_handle_create(handle->numFds, handle->numInts - NUM_INTS); in UnwrapNativeHandle()
278 native_handle_t *UnwrapNativeCodec2GrallocHandle(const C2Handle *const handle) { in UnwrapNativeCodec2GrallocHandle()
[all …]
/frameworks/av/media/bufferpool/1.0/include/bufferpool/
DBufferPoolTypes.h67 const native_handle_t *mHandle;
69 const native_handle_t *handle() { in handle()
73 BufferPoolAllocation(const native_handle_t *handle) : mHandle(handle) {} in BufferPoolAllocation()
/frameworks/av/camera/
DICameraRecordingProxyListener.cpp53 void recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* handle) { in recordingFrameHandleCallbackTimestamp()
69 const std::vector<native_handle_t*>& handles) { in recordingFrameHandleCallbackTimestampBatch()
125 native_handle_t* handle = data.readNativeHandle(); in onTransact()
145 std::vector<native_handle_t*> handles; in onTransact()
159 native_handle_t* handle = data.readNativeHandle(); in onTransact()
DICameraRecordingProxy.cpp74 void releaseRecordingFrameHandle(native_handle_t *handle) { in releaseRecordingFrameHandle()
87 void releaseRecordingFrameHandleBatch(const std::vector<native_handle_t*>& handles) { in releaseRecordingFrameHandleBatch()
152 std::vector<native_handle_t*> handles; in onTransact()
155 native_handle_t* handle = data.readNativeHandle(); in onTransact()
/frameworks/av/media/libstagefright/include/media/stagefright/
DCameraSource.h145 native_handle_t* handle);
148 const std::vector<native_handle_t*>& handles);
221 virtual void releaseRecordingFrameHandle(native_handle_t* handle);
223 virtual void releaseRecordingFrameHandleBatch(const std::vector<native_handle_t*>& handles);
236 native_handle_t* handle);
240 const std::vector<native_handle_t*>& handles);
290 std::vector<native_handle_t*> mInflightReturnedHandles;
/frameworks/av/media/bufferpool/2.0/include/bufferpool/
DBufferPoolTypes.h72 const native_handle_t *mHandle;
74 const native_handle_t *handle() { in handle()
78 BufferPoolAllocation(const native_handle_t *handle) : mHandle(handle) {} in BufferPoolAllocation()
/frameworks/av/media/bufferpool/2.0/
DBufferPoolClient.cpp66 native_handle_t **handle,
72 native_handle_t **handle, std::shared_ptr<BufferPoolData> *buffer);
100 native_handle_t **handle);
104 native_handle_t **handle);
182 native_handle_t *mHandle;
191 ConnectionId connectionId, BufferId id, native_handle_t *handle) in ClientBuffer()
217 std::shared_ptr<BufferPoolData> fetchCache(native_handle_t **pHandle) { in fetchCache()
230 native_handle_t **pHandle) { in createCache()
352 native_handle_t **pHandle, in allocate()
358 native_handle_t *handle = nullptr; in allocate()
[all …]
/frameworks/base/core/jni/
Dandroid_os_NativeHandle.h33 static jobject MakeJavaNativeHandleObj(JNIEnv *env, const native_handle_t *handle);
41 static native_handle_t* MakeCppNativeHandle(JNIEnv *env, jobject jHandle,
/frameworks/native/libs/nativewindow/include/vndk/
Dhardware_buffer.h27 const native_handle_t* AHardwareBuffer_getNativeHandle(const AHardwareBuffer* buffer);
49 const native_handle_t* handle, int32_t method,
/frameworks/av/media/utils/
DAImageReaderUtils.cpp28 const native_handle_t *handle) { in convertNativeHandleToHGBP()
40 const native_handle_t *handle) { in AImageReader_getHGBPFromHandle()

1234567