/system/core/libcutils/ |
D | native_handle.cpp | 25 native_handle_t* native_handle_init(char* storage, int numFds, int numInts) { in native_handle_init() 26 if ((uintptr_t) storage % alignof(native_handle_t)) { in native_handle_init() 31 native_handle_t* handle = (native_handle_t*) storage; in native_handle_init() 32 handle->version = sizeof(native_handle_t); in native_handle_init() 38 native_handle_t* native_handle_create(int numFds, int numInts) { in native_handle_create() 45 size_t mallocSize = sizeof(native_handle_t) + (sizeof(int) * (numFds + numInts)); in native_handle_create() 46 native_handle_t* h = static_cast<native_handle_t*>(malloc(mallocSize)); in native_handle_create() 48 h->version = sizeof(native_handle_t); in native_handle_create() 55 native_handle_t* native_handle_clone(const native_handle_t* handle) { in native_handle_clone() 56 native_handle_t* clone = native_handle_create(handle->numFds, handle->numInts); in native_handle_clone() [all …]
|
/system/core/libcutils/include/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);
|
/system/core/libcutils/include_vndk/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);
|
/system/core/libutils/include/utils/ |
D | NativeHandle.h | 23 typedef struct native_handle native_handle_t; typedef 33 static sp<NativeHandle> create(native_handle_t* handle, bool ownsHandle); 35 const native_handle_t* handle() const { in handle() 43 NativeHandle(native_handle_t* handle, bool ownsHandle); 46 native_handle_t* mHandle;
|
/system/libhidl/base/ |
D | HidlSupport.cpp | 46 hidl_handle::hidl_handle(const native_handle_t* handle) : hidl_handle() { in hidl_handle() 82 hidl_handle &hidl_handle::operator=(const native_handle_t *native_handle) { in operator =() 100 void hidl_handle::setTo(native_handle_t* handle, bool shouldOwn) { in setTo() 106 const native_handle_t* hidl_handle::operator->() const { in operator ->() 111 hidl_handle::operator const native_handle_t *() const { in operator const native_handle_t*() 116 const native_handle_t *hidl_handle::getNativeHandle() const { in getNativeHandle() 129 native_handle_t *handle = const_cast<native_handle_t*>( in freeHandle() 130 static_cast<const native_handle_t*>(mHandle)); in freeHandle() 294 native_handle_t* handle = native_handle_create(1, 0); in getInstance()
|
/system/core/libutils/ |
D | NativeHandle.cpp | 22 sp<NativeHandle> NativeHandle::create(native_handle_t* handle, bool ownsHandle) { in create() 26 NativeHandle::NativeHandle(native_handle_t* handle, bool ownsHandle) in NativeHandle()
|
/system/libhidl/transport/allocator/1.0/default/ |
D | AshmemAllocator.cpp | 37 native_handle_t* handle = native_handle_create(1, 0); in allocateOne() 49 native_handle_close(const_cast<native_handle_t *>(memory.handle())); in cleanup() 50 native_handle_delete(const_cast<native_handle_t *>(memory.handle())); in cleanup()
|
/system/libhidl/base/include/hidl/ |
D | MQDescriptor.h | 65 native_handle_t* nHandle, size_t size); 68 MQDescriptor(size_t bufferSize, native_handle_t* nHandle, 94 inline const ::native_handle_t *handle() const { in handle() 98 inline ::native_handle_t *handle() { in handle() 142 ::android::hardware::details::hidl_pointer<native_handle_t> mHandle; 169 native_handle_t* nhandle, size_t size) in MQDescriptor() 181 MQDescriptor<T, flavor>::MQDescriptor(size_t bufferSize, native_handle_t* nHandle, in MQDescriptor()
|
D | HidlSupport.h | 101 hidl_handle(const native_handle_t *handle); 112 hidl_handle &operator=(const native_handle_t *native_handle); 116 void setTo(native_handle_t* handle, bool shouldOwn = false); 118 const native_handle_t* operator->() const; 121 operator const native_handle_t *() const; 124 const native_handle_t *getNativeHandle() const; 132 details::hidl_pointer<const native_handle_t> mHandle; 241 hidl_memory(const hidl_string &name, const native_handle_t *handle, size_t size) in hidl_memory() 284 const native_handle_t* handle() const { in handle()
|
/system/libhwbinder/include/hwbinder/ |
D | Parcel.h | 114 status_t writeEmbeddedNativeHandle(const native_handle_t *handle, 168 size_t parent_offset, const native_handle_t **handle) const; 170 size_t parent_offset, const native_handle_t **handle) const; 171 status_t readNativeHandleNoDup(const native_handle_t **handle) const; 172 status_t readNullableNativeHandleNoDup(const native_handle_t **handle) const; 205 status_t readNullableNativeHandleNoDup(const native_handle_t **handle,
|
/system/libhwbinder/ |
D | Parcel.cpp | 835 status_t Parcel::writeNativeHandleNoDup(const native_handle_t *handle, in writeNativeHandleNoDup() 848 size_t native_handle_size = sizeof(native_handle_t) in writeNativeHandleNoDup() 868 .parent_offset = offsetof(native_handle_t, data), in writeNativeHandleNoDup() 874 status_t Parcel::writeNativeHandleNoDup(const native_handle_t *handle) in writeNativeHandleNoDup() 879 status_t Parcel::writeEmbeddedNativeHandle(const native_handle_t *handle, in writeEmbeddedNativeHandle() 1406 const native_handle_t **handle) const in readEmbeddedNativeHandle() 1415 status_t Parcel::readNullableNativeHandleNoDup(const native_handle_t **handle, in readNullableNativeHandleNoDup() 1430 if (nativeHandleSize < sizeof(native_handle_t)) { in readNullableNativeHandleNoDup() 1461 if (nativeHandleSize != (sizeof(native_handle_t) + ((numFds + numInts) * sizeof(int)))) { in readNullableNativeHandleNoDup() 1483 if (fd_array_obj->parent_offset != offsetof(native_handle_t, data)) { in readNullableNativeHandleNoDup() [all …]
|
/system/libhidl/transport/ |
D | HidlBinderSupport.cpp | 58 const native_handle_t *handle; in readEmbeddedFromParcel() 85 const native_handle_t *handle; in readEmbeddedFromParcel()
|
/system/tools/hidl/test/java_test/ |
D | hidl_test_java_native.cpp | 877 static void checkNativeHandlesDataEquality(const native_handle_t* reference, in checkNativeHandlesDataEquality() 878 const native_handle_t* result) { in checkNativeHandlesDataEquality() 913 native_handle_t* h = native_handle_create(0, testHandleData.size()); in TEST_F() 956 const native_handle_t* result = safeUnion.f().getNativeHandle(); in TEST_F() 1000 native_handle_t* h = native_handle_create(0, testData.size()); in TEST_F() 1078 const native_handle_t* reference = testHandles[i].getNativeHandle(); in TEST_F() 1079 const native_handle_t* result = safeUnion.c()[i].getNativeHandle(); in TEST_F() 1133 const native_handle_t* result = safeUnion.a().getNativeHandle(); in TEST_F()
|
/system/tools/hidl/c2hal/test/ |
D | test.h | 99 typedef void (*special_types)(const native_handle_t* a, int b);
|
/system/core/healthd/ |
D | charger_test.cpp | 112 native_handle_t* nativeHandle = native_handle_create(1, 0); in createHidlHandle()
|
/system/libhidl/transport/include/hidl/ |
D | HidlBinderSupport.h | 141 const native_handle_t *_hidl_mq_handle_ptr; in readEmbeddedFromParcel()
|
/system/tools/hidl/test/hidl_test/ |
D | hidl_test_client.cpp | 195 static void checkNativeHandlesDataEquality(const native_handle_t* reference, in checkNativeHandlesDataEquality() 196 const native_handle_t* result) { in checkNativeHandlesDataEquality() 1305 native_handle_t *handle = native_handle_create(0, 0); in TEST_F() 1608 const native_handle_t* handle = myHandle.h.getNativeHandle(); in TEST_F() 1623 const native_handle_t *h = handles[i]; in TEST_F() 2306 native_handle_t* h = native_handle_create(0, testData.size()); in TEST_F() 2384 const native_handle_t* reference = testHandles[i].getNativeHandle(); in TEST_F() 2385 const native_handle_t* result = safeUnion.c()[i].getNativeHandle(); in TEST_F() 2439 const native_handle_t* result = safeUnion.a().getNativeHandle(); in TEST_F()
|
/system/libfmq/include/fmq/ |
D | MessageQueueBase.h | 664 native_handle_t* mqHandle = native_handle_create(1 /* numFds */, 0 /* numInts */); in MessageQueueBase() 1165 const native_handle_t* handle = mDesc->handle(); in mapGrantorDescr()
|
/system/chre/host/hal_generic/ |
D | generic_context_hub.cc | 67 const native_handle_t *handle = hh.getNativeHandle(); in hidlHandleToFileDescriptor()
|
/system/libhidl/ |
D | test_main.cpp | 186 native_handle_t* testHandle = native_handle_create(0 /* numInts */, 0 /* numFds */); in TEST_F()
|