Home
last modified time | relevance | path

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

123456789

/frameworks/av/media/codec2/vndk/include/
DC2SurfaceSyncObj.h170 struct HandleSyncMem : public native_handle_t {
172 native_handle_t(cHeader), in HandleSyncMem()
192 static bool isValid(const native_handle_t * const o);
208 version = sizeof(native_handle_t)
210 const static native_handle_t cHeader;
219 static std::shared_ptr<C2SurfaceSyncMemory> Import(native_handle_t *handle);
234 native_handle_t *handle();
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.h51 native_handle_t *UnwrapNativeCodec2GrallocHandle(const C2Handle *const handle);
61 const native_handle_t *const handle,
72 native_handle_t *handle,
91 const native_handle_t *const handle,
/frameworks/native/libs/gui/include/gui/bufferqueue/1.0/
DConversion.h80 native_handle_t* native_handle_create_from_fd(int fd);
93 int native_handle_read_fd(native_handle_t const* nh, int index = 0);
143 hidl_handle inHidlHandle(native_handle_t const* nh);
315 status_t unflattenFence(hidl_handle* fence, native_handle_t** nh,
342 bool wrapAs(hidl_handle* t, native_handle_t** nh, Fence const& l);
408 HGraphicBufferProducer::FenceTimeSnapshot* t, native_handle_t** nh,
447 std::vector<native_handle_t*>* nh,
506 std::vector<std::vector<native_handle_t*> >* nh,
540 std::vector<std::vector<native_handle_t*> >* nh,
638 native_handle_t** nh,
[all …]
/frameworks/av/media/module/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()
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/media/module/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()
182 bool TestBufferPoolAllocator::Fill(const native_handle_t *handle, const unsigned char val) { in Fill()
200 bool TestBufferPoolAllocator::Verify(const native_handle_t *handle, const unsigned char val) { in Verify()
222 bool TestBufferPoolAllocator::MapMemoryForMutex(const native_handle_t *handle, void **mem) { in MapMemoryForMutex()
Dallocator.h54 static bool Fill(const native_handle_t *handle, const unsigned char val);
56 static bool Verify(const native_handle_t *handle, const unsigned char val);
58 static bool MapMemoryForMutex(const native_handle_t *handle, void **mem);
/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/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/base/services/core/jni/
Dcom_android_server_biometrics_SurfaceToNativeHandleConverter.cpp34 native_handle_t* convertHalTokenToNativeHandle(const HalToken& halToken) { in convertHalTokenToNativeHandle()
49 native_handle_t* nh = native_handle_create(0, numInts); in convertHalTokenToNativeHandle()
59 HalToken convertNativeHandleToHalToken(native_handle_t* handle) { in convertNativeHandleToHalToken()
86 native_handle_t* native_handle = convertHalTokenToNativeHandle(halToken); in acquireSurfaceHandle()
102 native_handle_t* handle = in releaseSurfaceHandle()
/frameworks/av/camera/tests/fuzzer/
Dcamera_fuzzer.cpp74 native_handle_t* /*handle*/) override { in postRecordingFrameHandleTimestamp() argument
79 const std::vector<native_handle_t*>& /*handles*/) override { in postRecordingFrameHandleTimestampBatch() argument
92 native_handle_t* createNativeHandle();
100 void recordingFrameHandleCallbackTimestamp(nsecs_t, native_handle_t*) override { return; }; in recordingFrameHandleCallbackTimestamp() argument
102 const std::vector<native_handle_t*>&) override { in recordingFrameHandleCallbackTimestampBatch() argument
107 native_handle_t* CameraFuzzer::createNativeHandle() { in createNativeHandle()
110 native_handle_t* handle = native_handle_create(numFds, numInts); in createNativeHandle()
307 native_handle_t* handle = createNativeHandle(); in invokeCamera()
311 native_handle_t* handle = createNativeHandle(); in invokeCamera()
316 std::vector<native_handle_t*> handles; in invokeCamera()
[all …]
/frameworks/av/media/codec2/vndk/
DC2AllocatorGralloc.cpp82 bool native_handle_is_invalid(const native_handle_t *const handle) { in native_handle_is_invalid()
88 return ((size_t)handle->version != sizeof(native_handle_t) || in native_handle_is_invalid()
150 const native_handle_t *const handle, in WrapAndMoveNativeHandle()
163 native_handle_t *res = native_handle_create(handle->numFds, handle->numInts + NUM_INTS); in WrapAndMoveNativeHandle()
172 const native_handle_t *const handle, in WrapNativeHandle()
178 native_handle_t *clone = native_handle_clone(handle); in WrapNativeHandle()
200 native_handle_t *handle, in MigrateNativeHandle()
215 static native_handle_t* UnwrapNativeHandle( in UnwrapNativeHandle()
221 native_handle_t *res = native_handle_create(handle->numFds, handle->numInts - NUM_INTS); in UnwrapNativeHandle()
301 const native_handle_t *const handle, in WrapAndMoveNativeHandle()
[all …]
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()
/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;
120 void releaseRecordingFrameHandle(native_handle_t *handle);
124 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);
/frameworks/av/media/module/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/module/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/media/module/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/codec2/tests/vndk/
DC2FenceTest.cpp118 native_handle_t *handle = _C2FenceFactory::CreateNativeHandle(fence); in validateNullFence()
161 native_handle_t *handle = _C2FenceFactory::CreateNativeHandle(fence); in validateSingleFdFence()
247 native_handle_t *handle = native_handle_create(3 /* numfds */, 1 /* numints */); in TEST_F()
277 native_handle_t *handle = _C2FenceFactory::CreateNativeHandle(fence); in validateTwoFdUnorderedFence()
353 native_handle_t *handle = _C2FenceFactory::CreateNativeHandle(fence); in validateThreeFdFence()
373 native_handle_t *handle = native_handle_create(1 /* numfds */, 1 /* numints */); in TEST_F()
389 native_handle_t *handle = native_handle_create(2 /* numfds */, 1 /* numints */); in TEST_F()
404 native_handle_t *handle = native_handle_create(1 /* numfds */, 1 /* numints */); in TEST_F()
421 native_handle_t *handle = native_handle_create(3 /* numfds */, 1 /* numints */); in TEST_F()
444 native_handle_t *handle = native_handle_create(3 /* numfds */, 1 /* numints */); in TEST_F()
/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/av/media/module/bufferpool/2.0/
DBufferPoolClient.cpp68 native_handle_t **handle,
74 native_handle_t **handle, std::shared_ptr<BufferPoolData> *buffer);
102 native_handle_t **handle);
106 native_handle_t **handle);
188 native_handle_t *mHandle;
197 ConnectionId connectionId, BufferId id, native_handle_t *handle) in ClientBuffer()
223 std::shared_ptr<BufferPoolData> fetchCache(native_handle_t **pHandle) { in fetchCache()
236 native_handle_t **pHandle) { in createCache()
358 native_handle_t **pHandle, in allocate()
364 native_handle_t *handle = nullptr; in allocate()
[all …]
/frameworks/native/libs/sensor/include/sensor/
DSensorManager.h42 typedef struct native_handle native_handle_t; typedef
71 int createDirectChannel(size_t size, int channelType, const native_handle_t *channelData);
73 int deviceId, size_t size, int channelType, const native_handle_t *channelData);
/frameworks/av/media/utils/
DAImageReaderUtils.cpp28 const native_handle_t *handle) { in convertNativeHandleToHGBP()
40 const native_handle_t *handle) { in AImageReader_getHGBPFromHandle()

123456789