Searched refs:numFds (Results 1 – 9 of 9) sorted by relevance
/system/core/libcutils/ |
D | native_handle.cpp | 25 native_handle_t* native_handle_init(char* storage, int numFds, int numInts) { in native_handle_init() argument 33 handle->numFds = numFds; in native_handle_init() 38 native_handle_t* native_handle_create(int numFds, int numInts) { in native_handle_create() argument 39 if (numFds < 0 || numInts < 0 || numFds > NATIVE_HANDLE_MAX_FDS || in native_handle_create() 45 size_t mallocSize = sizeof(native_handle_t) + (sizeof(int) * (numFds + numInts)); in native_handle_create() 49 h->numFds = numFds; in native_handle_create() 56 native_handle_t* clone = native_handle_create(handle->numFds, handle->numInts); in native_handle_clone() 59 for (int i = 0; i < handle->numFds; i++) { in native_handle_clone() 62 clone->numFds = i; in native_handle_clone() 69 memcpy(&clone->data[handle->numFds], &handle->data[handle->numFds], in native_handle_clone() [all …]
|
/system/core/libcutils/include/cutils/ |
D | native_handle.h | 37 int numFds; /* number of file-descriptors at &data[0] */ member 68 native_handle_t* native_handle_init(char* storage, int numFds, int numInts); 78 native_handle_t* native_handle_create(int numFds, int numInts);
|
/system/core/libcutils/include_vndk/cutils/ |
D | native_handle.h | 37 int numFds; /* number of file-descriptors at &data[0] */ member 68 native_handle_t* native_handle_init(char* storage, int numFds, int numInts); 78 native_handle_t* native_handle_create(int numFds, int numInts);
|
/system/libhidl/base/include/hidl/ |
D | MQDescriptor.h | 227 other.mHandle->numFds, other.mHandle->numInts); 229 for (int i = 0; i < other.mHandle->numFds; ++i) { 233 memcpy(&mHandle->data[other.mHandle->numFds], &other.mHandle->data[other.mHandle->numFds],
|
/system/libhidl/transport/memory/1.0/default/ |
D | AshmemMapper.cpp | 34 if (mem.handle()->numFds == 0) { in mapMemory()
|
/system/tools/hidl/test/java_test/ |
D | hidl_test_java_native.cpp | 886 EXPECT_EQ(reference->numFds, result->numFds); in checkNativeHandlesDataEquality() 889 int offset = reference->numFds; in checkNativeHandlesDataEquality() 1116 const int numFds = testStrings.size(); in TEST_F() local 1117 native_handle* h = native_handle_create(numFds, testData.size() /* numInts */); in TEST_F() 1118 std::memcpy(&(h->data[numFds]), testData.data(), sizeof(testData)); in TEST_F() 1119 for (size_t i = 0; i < numFds; i++) { in TEST_F() 1136 for (size_t i = 0; i < result->numFds; i++) { in TEST_F()
|
/system/libhwbinder/ |
D | Parcel.cpp | 849 + handle->numFds * sizeof(int) + handle->numInts * sizeof(int); in writeNativeHandleNoDup() 866 .num_fds = static_cast<binder_size_t>(handle->numFds), in writeNativeHandleNoDup() 1448 int numFds = (*handle)->numFds; in readNullableNativeHandleNoDup() local 1451 if (numFds < 0 || numFds > NATIVE_HANDLE_MAX_FDS) { in readNullableNativeHandleNoDup() 1461 if (nativeHandleSize != (sizeof(native_handle_t) + ((numFds + numInts) * sizeof(int)))) { in readNullableNativeHandleNoDup() 1473 if (static_cast<int>(fd_array_obj->num_fds) != numFds) { in readNullableNativeHandleNoDup()
|
/system/tools/hidl/test/hidl_test/ |
D | hidl_test_client.cpp | 203 EXPECT_EQ(reference->numFds, result->numFds); in checkNativeHandlesDataEquality() 206 int offset = reference->numFds; in checkNativeHandlesDataEquality() 1610 EXPECT_EQ(handle->numFds, 0); in TEST_F() 1625 EXPECT_EQ(h->numFds, 0) << " for element " << i; in TEST_F() 2422 const int numFds = testStrings.size(); in TEST_F() local 2423 native_handle* h = native_handle_create(numFds, testData.size() /* numInts */); in TEST_F() 2424 std::memcpy(&(h->data[numFds]), testData.data(), sizeof(testData)); in TEST_F() 2425 for (size_t i = 0; i < numFds; i++) { in TEST_F() 2442 for (size_t i = 0; i < result->numFds; i++) { in TEST_F()
|
/system/chre/host/hal_generic/ |
D | generic_context_hub.cc | 68 return (handle != nullptr && handle->numFds >= 1) ? handle->data[0] : -1; in hidlHandleToFileDescriptor()
|