Home
last modified time | relevance | path

Searched refs:numInts (Results 1 – 25 of 35) 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.cpp132 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/
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/opt/telephony/src/java/com/android/internal/telephony/
DMessagingResponse.java110 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/
Dnative_handle_wrapper.h28 const int int_count = handle->numInts; in NativeHandleWrapper()
88 sizeof(int) * handle->numInts); in FromFdsAndInts()
/frameworks/base/services/core/jni/
Dcom_android_server_biometrics_SurfaceToNativeHandleConverter.cpp44 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/
DGraphicBuffer.cpp431 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/
DAImageReaderUtils.cpp45 handle->numInts < std::ceil(sizeof(size_t) / sizeof(int))) { in AImageReader_getHGBPFromHandle()
/frameworks/av/media/codec2/vndk/
DC2AllocatorGralloc.cpp85 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()
DC2Fence.cpp62 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()
DC2DmaBufAllocator.cpp83 numInts = sizeof(mInts) / sizeof(int), enumerator
91 C2HandleBuf::version, C2HandleBuf::numFds, C2HandleBuf::numInts, {}};
Dtypes.cpp160 if (from->numFds != 1 || from->numInts != 0) { in h2b()
/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/codec2/vndk/internal/
DC2HandleIonInternal.h57 numInts = sizeof(mInts) / sizeof(int), enumerator
/frameworks/av/media/bufferpool/1.0/vts/
Dallocator.cpp62 numInts = sizeof(mInts) / sizeof(int), enumerator
71 HandleAshmem::numInts,
/frameworks/av/media/libmedia/include/media/omx/1.0/
DConversion.h640 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/
Dallocator.cpp62 numInts = sizeof(mInts) / sizeof(int), enumerator
71 HandleAshmem::numInts,
/frameworks/av/media/codec2/vndk/include/
DC2SurfaceSyncObj.h187 numInts = sizeof(mInts) / sizeof(int), enumerator
/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.cpp207 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/
DAImageReaderWindowHandleTest.cpp141 ASSERT_NE(nh->numInts, 0); in TEST_F()
/frameworks/av/media/codec2/vndk/platform/
DC2SurfaceSyncObj.cpp32 C2SurfaceSyncMemory::HandleSyncMem::numInts,
/frameworks/native/libs/gui/bufferqueue/2.0/
Dtypes.cpp153 if (from->numFds != 1 || from->numInts != 0) { in h2b()
/frameworks/native/libs/vr/libbufferhub/
Dion_buffer.cpp166 const int int_count = other->handle()->numInts; in Duplicate()

12