Home
last modified time | relevance | path

Searched refs:numInts (Results 1 – 10 of 10) sorted by relevance

/system/core/libcutils/
Dnative_handle.cpp25 native_handle_t* native_handle_init(char* storage, int numFds, int numInts) { in native_handle_init() argument
34 handle->numInts = numInts; 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()
40 numInts > NATIVE_HANDLE_MAX_INTS) { in native_handle_create()
45 size_t mallocSize = sizeof(native_handle_t) + (sizeof(int) * (numFds + numInts)); in native_handle_create()
50 h->numInts = numInts; in native_handle_create()
56 native_handle_t* clone = native_handle_create(handle->numFds, handle->numInts); in native_handle_clone()
70 sizeof(int) * handle->numInts); in native_handle_clone()
/system/core/libcutils/include_outside_system/cutils/
Dnative_handle.h38 int numInts; /* number of ints at &data[numFds] */ 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/cutils/
Dnative_handle.h38 int numInts; /* number of ints at &data[numFds] */ 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/
DMQDescriptor.h155 other.mHandle->numFds, other.mHandle->numInts);
162 static_cast<size_t>(other.mHandle->numInts) * sizeof(int));
/system/libfmq/include/fmq/
DConvertMQDescriptors.h98 for (; data_index < hidlDesc.handle()->numFds + hidlDesc.handle()->numInts; data_index++) { in unsafeHidlToAidlMQDescriptor()
DAidlMQDescriptorShim.h155 mHandle = native_handle_create(other.mHandle->numFds, other.mHandle->numInts);
162 static_cast<size_t>(other.mHandle->numInts) * sizeof(int));
DAidlMessageQueue.h143 for (; data_index < shim->handle()->numFds + shim->handle()->numInts; data_index++) {
/system/libhwbinder/
DParcel.cpp854 + handle->numFds * sizeof(int) + handle->numInts * sizeof(int); in writeNativeHandleNoDup()
1493 int numInts = (*handle)->numInts; in readNullableNativeHandleNoDup() local
1500 if (numInts < 0 || numInts > NATIVE_HANDLE_MAX_INTS) { in readNullableNativeHandleNoDup()
1505 if (nativeHandleSize != (sizeof(native_handle_t) + ((numFds + numInts) * sizeof(int)))) { in readNullableNativeHandleNoDup()
/system/tools/hidl/test/java_test/
Dhidl_test_java_native.cpp879 EXPECT_EQ(reference->numInts, result->numInts); in checkNativeHandlesDataEquality()
882 int numInts = reference->numInts; in checkNativeHandlesDataEquality() local
883 EXPECT_TRUE(isArrayEqual(&(reference->data[offset]), &(result->data[offset]), numInts)); in checkNativeHandlesDataEquality()
/system/tools/hidl/test/hidl_test/
Dhidl_test_client.cpp202 EXPECT_EQ(reference->numInts, result->numInts); in checkNativeHandlesDataEquality()
205 int numInts = reference->numInts; in checkNativeHandlesDataEquality() local
206 EXPECT_ARRAYEQ(&(reference->data[offset]), &(result->data[offset]), numInts); in checkNativeHandlesDataEquality()
1597 EXPECT_EQ(handle->numInts, 10); in TEST_F()
1612 EXPECT_EQ(h->numInts, 10) << " for element " << i; in TEST_F()