Home
last modified time | relevance | path

Searched refs:numInts (Results 1 – 7 of 7) 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/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_vndk/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.h227 other.mHandle->numFds, other.mHandle->numInts);
234 static_cast<size_t>(other.mHandle->numInts) * sizeof(int));
/system/libhwbinder/
DParcel.cpp849 + handle->numFds * sizeof(int) + handle->numInts * sizeof(int); in writeNativeHandleNoDup()
1449 int numInts = (*handle)->numInts; in readNullableNativeHandleNoDup() local
1456 if (numInts < 0 || numInts > NATIVE_HANDLE_MAX_INTS) { in readNullableNativeHandleNoDup()
1461 if (nativeHandleSize != (sizeof(native_handle_t) + ((numFds + numInts) * sizeof(int)))) { in readNullableNativeHandleNoDup()
/system/tools/hidl/test/java_test/
Dhidl_test_java_native.cpp887 EXPECT_EQ(reference->numInts, result->numInts); in checkNativeHandlesDataEquality()
890 int numInts = reference->numInts; in checkNativeHandlesDataEquality() local
891 EXPECT_TRUE(isArrayEqual(&(reference->data[offset]), &(result->data[offset]), numInts)); in checkNativeHandlesDataEquality()
/system/tools/hidl/test/hidl_test/
Dhidl_test_client.cpp204 EXPECT_EQ(reference->numInts, result->numInts); in checkNativeHandlesDataEquality()
207 int numInts = reference->numInts; in checkNativeHandlesDataEquality() local
208 EXPECT_ARRAYEQ(&(reference->data[offset]), &(result->data[offset]), numInts); in checkNativeHandlesDataEquality()
1609 EXPECT_EQ(handle->numInts, 10); in TEST_F()
1624 EXPECT_EQ(h->numInts, 10) << " for element " << i; in TEST_F()