Home
last modified time | relevance | path

Searched refs:sizeArray (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/services/camera/libcameraservice/api1/client2/
DParameters.cpp2876 float ratio, const int32_t* sizeArray, size_t count) { in getMaxSizeForRatio() argument
2877 ALOG_ASSERT(sizeArray != NULL, "size array shouldn't be NULL"); in getMaxSizeForRatio()
2882 if (sizeArray[i] > 0 && sizeArray[i+1] > 0) { in getMaxSizeForRatio()
2883 float curRatio = static_cast<float>(sizeArray[i]) / sizeArray[i+1]; in getMaxSizeForRatio()
2884 if (fabs(curRatio - ratio) < ASPECT_RATIO_TOLERANCE && maxSize.width < sizeArray[i]) { in getMaxSizeForRatio()
2885 maxSize.width = sizeArray[i]; in getMaxSizeForRatio()
2886 maxSize.height = sizeArray[i+1]; in getMaxSizeForRatio()
2892 maxSize.width = sizeArray[0]; in getMaxSizeForRatio()
2893 maxSize.height = sizeArray[1]; in getMaxSizeForRatio()
DParameters.h383 Size getMaxSizeForRatio(float ratio, const int32_t* sizeArray, size_t count);
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp353 jlongArray valueArray, jintArray sizeArray, in nClosureCreate() argument
371 jint* jSizes = _env->GetIntArrayElements(sizeArray, nullptr); in nClosureCreate()
372 jsize sizes_length = _env->GetArrayLength(sizeArray); in nClosureCreate()
473 _env->ReleaseIntArrayElements (sizeArray, jSizes, JNI_ABORT); in nClosureCreate()
483 jintArray sizeArray) { in nInvokeClosureCreate() argument
507 jint* jSizes = _env->GetIntArrayElements(sizeArray, nullptr); in nInvokeClosureCreate()
508 jsize sizes_length = _env->GetArrayLength(sizeArray); in nInvokeClosureCreate()
545 _env->ReleaseIntArrayElements (sizeArray, jSizes, JNI_ABORT); in nInvokeClosureCreate()
1110 size_t *sizeArray = names.c_str_len(); in nElementCreate2() local
1114 nameArray, fieldCount * sizeof(size_t), sizeArray, in nElementCreate2()
[all …]
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp356 jlongArray valueArray, jintArray sizeArray, in nClosureCreate() argument
364 jint* jSizes = _env->GetIntArrayElements(sizeArray, nullptr); in nClosureCreate()
365 jsize sizes_length = _env->GetArrayLength(sizeArray); in nClosureCreate()
453 _env->ReleaseIntArrayElements (sizeArray, jSizes, JNI_ABORT); in nClosureCreate()
463 jintArray sizeArray) { in nInvokeClosureCreate() argument
472 jint* jSizes = _env->GetIntArrayElements(sizeArray, nullptr); in nInvokeClosureCreate()
473 jsize sizes_length = _env->GetArrayLength(sizeArray); in nInvokeClosureCreate()
506 _env->ReleaseIntArrayElements (sizeArray, jSizes, JNI_ABORT); in nInvokeClosureCreate()
964 size_t *sizeArray = names.c_str_len(); in nElementCreate2() local
968 fieldCount * sizeof(size_t), sizeArray, in nElementCreate2()