/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 | 132 static const int numInts = sizeof(ResStringPool_span) / sizeof(jint); in android_content_StringBlock_nativeGetStyle() local 134 env->SetIntArrayRegion(array, num * numInts, numInts, (jint*)spans->unsafe_ptr()); 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/opt/telephony/src/java/com/android/internal/telephony/ |
D | MessagingResponse.java | 110 int numInts; in getCdmaBroadcastConfigResponse() local 111 numInts = RILUtils.CDMA_BROADCAST_SMS_NO_OF_SERVICE_CATEGORIES in getCdmaBroadcastConfigResponse() 113 ret = new int[numInts]; in getCdmaBroadcastConfigResponse() 120 for (int i = 1; i < numInts; i += RILUtils.CDMA_BSI_NO_OF_INTS_STRUCT) { in getCdmaBroadcastConfigResponse() 126 int numInts; in getCdmaBroadcastConfigResponse() local 127 numInts = (numServiceCategories * RILUtils.CDMA_BSI_NO_OF_INTS_STRUCT) + 1; in getCdmaBroadcastConfigResponse() 128 ret = new int[numInts]; in getCdmaBroadcastConfigResponse()
|
/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()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_biometrics_SurfaceToNativeHandleConverter.cpp | 44 size_t numInts = ceil(nhDataByteSize / sizeof(int)) + 1; in convertHalTokenToNativeHandle() local 49 native_handle_t* nh = native_handle_create(0, numInts); in convertHalTokenToNativeHandle()
|
/frameworks/native/libs/ui/ |
D | GraphicBuffer.cpp | 431 const size_t numInts = static_cast<size_t>(buf[11]); in unflatten() local 438 if (numFds >= maxNumber || numInts >= (maxNumber - flattenWordCount)) { in unflatten() 443 ALOGE("unflatten: numFds or numInts is too large: %zd, %zd", numFds, numInts); in unflatten() 447 const size_t sizeNeeded = (flattenWordCount + numInts) * sizeof(int); in unflatten() 458 if (numFds || numInts) { in unflatten() 471 native_handle_create(static_cast<int>(numFds), static_cast<int>(numInts)); in unflatten() 481 memcpy(h->data + numFds, buf + flattenWordCount, numInts * sizeof(int)); in unflatten()
|
/frameworks/av/media/utils/ |
D | AImageReaderUtils.cpp | 45 handle->numInts < std::ceil(sizeof(size_t) / sizeof(int))) { in AImageReader_getHGBPFromHandle()
|
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorGralloc.cpp | 85 handle->numInts < 0 || in native_handle_is_invalid() 87 handle->numFds > int((INT_MAX - handle->version) / sizeof(int)) - handle->numInts); in native_handle_is_invalid() 115 || handle->numInts < NUM_INTS) { in GetExtraData() 119 &handle->data[handle->numFds + handle->numInts - NUM_INTS]); in GetExtraData() 150 … handle->numInts > int((INT_MAX - handle->version) / sizeof(int)) - NUM_INTS - handle->numFds) { in WrapAndMoveNativeHandle() 158 native_handle_t *res = native_handle_create(handle->numFds, handle->numInts + NUM_INTS); in WrapAndMoveNativeHandle() 160 memcpy(&res->data, &handle->data, sizeof(int) * (handle->numFds + handle->numInts)); in WrapAndMoveNativeHandle() 208 native_handle_t *res = native_handle_create(handle->numFds, handle->numInts - NUM_INTS); in UnwrapNativeHandle() 210 memcpy(&res->data, &handle->data, sizeof(int) * (res->numFds + res->numInts)); in UnwrapNativeHandle()
|
D | C2Fence.cpp | 62 if (nh && nh->numFds >= 0 && nh->numFds <= MAX_FENCE_FDS && nh->numInts > 0) { in GetTypeFromNativeHandle() 241 if (!nh || nh->numFds != 1 || nh->numInts != 1) { in CreateFromNativeHandle()
|
D | C2DmaBufAllocator.cpp | 83 numInts = sizeof(mInts) / sizeof(int), enumerator 91 C2HandleBuf::version, C2HandleBuf::numFds, C2HandleBuf::numInts, {}};
|
D | types.cpp | 160 if (from->numFds != 1 || from->numInts != 0) { in h2b()
|
/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/codec2/vndk/internal/ |
D | C2HandleIonInternal.h | 57 numInts = sizeof(mInts) / sizeof(int), enumerator
|
/frameworks/av/media/bufferpool/1.0/vts/ |
D | allocator.cpp | 62 numInts = sizeof(mInts) / sizeof(int), enumerator 71 HandleAshmem::numInts,
|
/frameworks/av/media/libmedia/include/media/omx/1.0/ |
D | Conversion.h | 640 size_t const numInts = 12 + (handle ? handle->numInts : 0); in convertTo() local 641 int32_t* ints = new int32_t[numInts]; in convertTo() 660 ints[11] = static_cast<int32_t>(handle->numInts); in convertTo() 663 std::copy(intsStart, intsStart + handle->numInts, &ints[12]); in convertTo() 667 size_t size = numInts * sizeof(int32_t); in convertTo()
|
/frameworks/av/media/bufferpool/2.0/tests/ |
D | allocator.cpp | 62 numInts = sizeof(mInts) / sizeof(int), enumerator 71 HandleAshmem::numInts,
|
/frameworks/av/media/codec2/vndk/include/ |
D | C2SurfaceSyncObj.h | 187 numInts = sizeof(mInts) / sizeof(int), enumerator
|
/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 | 207 size_t const numInts = 12 + static_cast<size_t>(handle ? handle->numInts : 0); in convertTo() local 208 int32_t* ints = new int32_t[numInts]; in convertTo() 227 ints[11] = static_cast<int32_t>(handle->numInts); in convertTo() 230 std::copy(intsStart, intsStart + handle->numInts, &ints[12]); in convertTo() 234 size_t size = numInts * sizeof(int32_t); in convertTo()
|
/frameworks/av/media/ndk/tests/ |
D | AImageReaderWindowHandleTest.cpp | 141 ASSERT_NE(nh->numInts, 0); in TEST_F()
|
/frameworks/av/media/codec2/vndk/platform/ |
D | C2SurfaceSyncObj.cpp | 32 C2SurfaceSyncMemory::HandleSyncMem::numInts,
|
/frameworks/native/libs/gui/bufferqueue/2.0/ |
D | types.cpp | 153 if (from->numFds != 1 || from->numInts != 0) { in h2b()
|
/frameworks/native/libs/vr/libbufferhub/ |
D | ion_buffer.cpp | 166 const int int_count = other->handle()->numInts; in Duplicate()
|