/frameworks/base/core/jni/ |
D | android_os_NativeHandle.cpp | 46 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()
|
D | android_util_StringBlock.cpp | 129 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/ |
D | utils.cpp | 138 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/ |
D | CameraHardwareInterface.h | 449 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/ |
D | GraphicBuffer.cpp | 473 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/ |
D | native_handle_wrapper.h | 28 const int int_count = handle->numInts; in NativeHandleWrapper() 88 sizeof(int) * handle->numInts); in FromFdsAndInts()
|
D | bufferhub_rpc.h | 33 const int int_count = buffer.handle()->numInts; in NativeBufferHandle()
|
/frameworks/base/core/jni/hwbinder/ |
D | EphemeralStorage.cpp | 75 int numFds, int numInts) { in allocTemporaryNativeHandle() argument 79 item.mPtr = native_handle_create(numFds, numInts); in allocTemporaryNativeHandle()
|
D | EphemeralStorage.h | 46 native_handle_t *allocTemporaryNativeHandle(int numFds, int numInts);
|
/frameworks/av/media/utils/ |
D | AImageReaderUtils.cpp | 45 handle->numInts < std::ceil(sizeof(size_t) / sizeof(int))) { in AImageReader_getHGBPFromHandle()
|
/frameworks/av/media/libmedia/include/media/omx/1.0/ |
D | Conversion.h | 641 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/ |
D | C2AllocatorGralloc.cpp | 125 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()
|
D | types.cpp | 160 if (from->numFds != 1 || from->numInts != 0) { in h2b()
|
D | C2AllocatorIon.cpp | 97 numInts = sizeof(mInts) / sizeof(int), enumerator 107 C2HandleIon::numInts,
|
/frameworks/av/media/bufferpool/2.0/tests/ |
D | allocator.cpp | 62 numInts = sizeof(mInts) / sizeof(int), enumerator 71 HandleAshmem::numInts,
|
/frameworks/av/media/bufferpool/1.0/vts/ |
D | allocator.cpp | 62 numInts = sizeof(mInts) / sizeof(int), enumerator 71 HandleAshmem::numInts,
|
/frameworks/native/services/bufferhub/ |
D | BufferHubService.cpp | 93 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/ |
D | H2BGraphicBufferProducer.cpp | 155 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()
|
D | Conversion.cpp | 221 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/ |
D | VtsHalBufferHubV1_0TargetTest.cpp | 225 EXPECT_GT(token->numInts, 1); in TEST_F() 320 EXPECT_GT(token->numInts, 1); in TEST_F()
|
/frameworks/av/media/ndk/tests/ |
D | AImageReaderWindowHandleTest.cpp | 141 ASSERT_NE(nh->numInts, 0); in TEST_F()
|
/frameworks/native/libs/gui/bufferqueue/2.0/ |
D | types.cpp | 153 if (from->numFds != 1 || from->numInts != 0) { in h2b()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | RadioResponse.java | 2357 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/ |
D | ion_buffer.cpp | 166 const int int_count = other->handle()->numInts; in Duplicate()
|
/frameworks/av/media/ndk/ |
D | NdkImageReader.cpp | 659 size_t numInts = ceil(nhDataByteSize / sizeof(int)) + 1; in convertHalTokenToNativeHandle() local 665 native_handle_create(0, numInts); in convertHalTokenToNativeHandle()
|