Home
last modified time | relevance | path

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

12

/frameworks/base/core/jni/
Dandroid_os_NativeHandle.cpp46 const int numInts = handle->numInts; in MakeJavaNativeHandleObj() local
47 ScopedLocalRef<jintArray> ints(env, env->NewIntArray(numInts)); in MakeJavaNativeHandleObj()
48 env->SetIntArrayRegion(ints.get(), 0, numInts, &(handle->data[numFds])); in MakeJavaNativeHandleObj()
71 const int numInts = (int) env->GetArrayLength(ints.get()); in MakeCppNativeHandle() local
74 ? native_handle_create(numFds, numInts) in MakeCppNativeHandle()
75 : storage->allocTemporaryNativeHandle(numFds, numInts); in MakeCppNativeHandle()
79 env->GetIntArrayRegion(ints.get(), 0, numInts, &(handle->data[numFds])); in MakeCppNativeHandle()
Dandroid_util_StringBlock.cpp129 static const int numInts = sizeof(ResStringPool_span)/sizeof(jint); in android_content_StringBlock_nativeGetStyle() local
132 num*numInts, numInts, in android_content_StringBlock_nativeGetStyle()
/frameworks/av/camera/ndk/ndk_vendor/impl/
Dutils.cpp138 nh1->numInts != nh2->numInts) { in isWindowNativeHandleEqual()
141 for (int i = 0; i < nh1->numInts; i++) { in isWindowNativeHandleEqual()
153 if (nh1->numInts != nh2->numInts) { in isWindowNativeHandleLessThan()
154 return nh1->numInts < nh2->numInts; in isWindowNativeHandleLessThan()
157 for (int i = 0; i < nh1->numInts; i++) { in isWindowNativeHandleLessThan()
/frameworks/av/services/camera/libcameraservice/device1/
DCameraHardwareInterface.h449 result = 31 * result + buf->numInts; in operator()
450 int length = buf->numFds + buf->numInts; in operator()
460 if (buf1->numFds == buf2->numFds && buf1->numInts == buf2->numInts) { in operator()
461 int length = buf1->numFds + buf1->numInts; in operator()
/frameworks/native/libs/ui/
DGraphicBuffer.cpp473 const size_t numInts = static_cast<size_t>(buf[11]); in unflatten() local
480 if (numFds >= maxNumber || numInts >= (maxNumber - flattenWordCount)) { in unflatten()
485 ALOGE("unflatten: numFds or numInts is too large: %zd, %zd", numFds, numInts); in unflatten()
489 const size_t sizeNeeded = (flattenWordCount + numInts) * sizeof(int); in unflatten()
500 if (numFds || numInts) { in unflatten()
513 native_handle_create(static_cast<int>(numFds), static_cast<int>(numInts)); in unflatten()
523 memcpy(h->data + numFds, buf + flattenWordCount, numInts * sizeof(int)); in unflatten()
579 int numIntsInToken = tokenHandle->handle()->numInts; in flattenBufferHubBuffer()
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
Dnative_handle_wrapper.h28 const int int_count = handle->numInts; in NativeHandleWrapper()
88 sizeof(int) * handle->numInts); in FromFdsAndInts()
Dbufferhub_rpc.h33 const int int_count = buffer.handle()->numInts; in NativeBufferHandle()
/frameworks/base/core/jni/hwbinder/
DEphemeralStorage.cpp75 int numFds, int numInts) { in allocTemporaryNativeHandle() argument
79 item.mPtr = native_handle_create(numFds, numInts); in allocTemporaryNativeHandle()
DEphemeralStorage.h46 native_handle_t *allocTemporaryNativeHandle(int numFds, int numInts);
/frameworks/av/media/utils/
DAImageReaderUtils.cpp45 handle->numInts < std::ceil(sizeof(size_t) / sizeof(int))) { in AImageReader_getHGBPFromHandle()
/frameworks/av/media/libmedia/include/media/omx/1.0/
DConversion.h641 size_t const numInts = 12 + (handle ? handle->numInts : 0); in convertTo() local
642 int32_t* ints = new int32_t[numInts]; in convertTo()
661 ints[11] = static_cast<int32_t>(handle->numInts); in convertTo()
664 std::copy(intsStart, intsStart + handle->numInts, &ints[12]); in convertTo()
668 size_t size = numInts * sizeof(int32_t); in convertTo()
/frameworks/av/media/codec2/vndk/
DC2AllocatorGralloc.cpp125 handle->numInts < 0 || in native_handle_is_invalid()
127 handle->numFds > int((INT_MAX - handle->version) / sizeof(int)) - handle->numInts); in native_handle_is_invalid()
155 || handle->numInts < NUM_INTS) { in getExtraData()
159 &handle->data[handle->numFds + handle->numInts - NUM_INTS]); in getExtraData()
190 … handle->numInts > int((INT_MAX - handle->version) / sizeof(int)) - NUM_INTS - handle->numFds) { in WrapAndMoveNativeHandle()
198 native_handle_t *res = native_handle_create(handle->numFds, handle->numInts + NUM_INTS); in WrapAndMoveNativeHandle()
200 memcpy(&res->data, &handle->data, sizeof(int) * (handle->numFds + handle->numInts)); in WrapAndMoveNativeHandle()
248 native_handle_t *res = native_handle_create(handle->numFds, handle->numInts - NUM_INTS); in UnwrapNativeHandle()
250 memcpy(&res->data, &handle->data, sizeof(int) * (res->numFds + res->numInts)); in UnwrapNativeHandle()
Dtypes.cpp160 if (from->numFds != 1 || from->numInts != 0) { in h2b()
DC2AllocatorIon.cpp97 numInts = sizeof(mInts) / sizeof(int), enumerator
107 C2HandleIon::numInts,
/frameworks/av/media/bufferpool/2.0/tests/
Dallocator.cpp62 numInts = sizeof(mInts) / sizeof(int), enumerator
71 HandleAshmem::numInts,
/frameworks/av/media/bufferpool/1.0/vts/
Dallocator.cpp62 numInts = sizeof(mInts) / sizeof(int), enumerator
71 HandleAshmem::numInts,
/frameworks/native/services/bufferhub/
DBufferHubService.cpp93 if (!tokenHandle.getNativeHandle() || tokenHandle->numFds != 0 || tokenHandle->numInts <= 1) { in importBuffer()
117 if (tokenHandle->numInts - 1 != numIntsForHMAC) { in importBuffer()
120 tokenId, numIntsForHMAC, tokenHandle->numInts - 1); in importBuffer()
/frameworks/native/libs/gui/bufferqueue/1.0/
DH2BGraphicBufferProducer.cpp155 size_t const numInts = 12 + in convertTo() local
156 static_cast<size_t>(handle ? handle->numInts : 0); in convertTo()
157 int32_t* ints = new int32_t[numInts]; in convertTo()
176 ints[11] = static_cast<int32_t>(handle->numInts); in convertTo()
179 std::copy(intsStart, intsStart + handle->numInts, &ints[12]); in convertTo()
183 size_t size = numInts * sizeof(int32_t); in convertTo()
DConversion.cpp221 size_t const numInts = 12 + static_cast<size_t>(handle ? handle->numInts : 0); in convertTo() local
222 int32_t* ints = new int32_t[numInts]; in convertTo()
241 ints[11] = static_cast<int32_t>(handle->numInts); in convertTo()
244 std::copy(intsStart, intsStart + handle->numInts, &ints[12]); in convertTo()
248 size_t size = numInts * sizeof(int32_t); in convertTo()
/frameworks/hardware/interfaces/bufferhub/1.0/vts/functional/
DVtsHalBufferHubV1_0TargetTest.cpp225 EXPECT_GT(token->numInts, 1); in TEST_F()
320 EXPECT_GT(token->numInts, 1); in TEST_F()
/frameworks/av/media/ndk/tests/
DAImageReaderWindowHandleTest.cpp141 ASSERT_NE(nh->numInts, 0); in TEST_F()
/frameworks/native/libs/gui/bufferqueue/2.0/
Dtypes.cpp153 if (from->numFds != 1 || from->numInts != 0) { in h2b()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRadioResponse.java2357 int numInts; in responseCdmaBroadcastConfig() local
2358 numInts = CDMA_BROADCAST_SMS_NO_OF_SERVICE_CATEGORIES in responseCdmaBroadcastConfig()
2360 ret = new int[numInts]; in responseCdmaBroadcastConfig()
2367 for (int i = 1; i < numInts; i += CDMA_BSI_NO_OF_INTS_STRUCT) { in responseCdmaBroadcastConfig()
2373 int numInts; in responseCdmaBroadcastConfig() local
2374 numInts = (numServiceCategories * CDMA_BSI_NO_OF_INTS_STRUCT) + 1; in responseCdmaBroadcastConfig()
2375 ret = new int[numInts]; in responseCdmaBroadcastConfig()
/frameworks/native/libs/vr/libbufferhub/
Dion_buffer.cpp166 const int int_count = other->handle()->numInts; in Duplicate()
/frameworks/av/media/ndk/
DNdkImageReader.cpp659 size_t numInts = ceil(nhDataByteSize / sizeof(int)) + 1; in convertHalTokenToNativeHandle() local
665 native_handle_create(0, numInts); in convertHalTokenToNativeHandle()

12