Home
last modified time | relevance | path

Searched refs:mid (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/core/java/android/util/
DContainerHelpers.java27 final int mid = (lo + hi) >>> 1; in binarySearch() local
28 final int midVal = array[mid]; in binarySearch()
31 lo = mid + 1; in binarySearch()
33 hi = mid - 1; in binarySearch()
35 return mid; // value found in binarySearch()
46 final int mid = (lo + hi) >>> 1; in binarySearch() local
47 final long midVal = array[mid]; in binarySearch()
50 lo = mid + 1; in binarySearch()
52 hi = mid - 1; in binarySearch()
54 return mid; // value found in binarySearch()
/frameworks/base/core/java/android/app/usage/
DTimeSparseArray.java49 int mid = -1; in closestIndexOnOrAfter() local
52 mid = lo + ((hi - lo) / 2); in closestIndexOnOrAfter()
53 key = keyAt(mid); in closestIndexOnOrAfter()
56 lo = mid + 1; in closestIndexOnOrAfter()
58 hi = mid - 1; in closestIndexOnOrAfter()
60 return mid; in closestIndexOnOrAfter()
65 return mid; in closestIndexOnOrAfter()
DEventList.java110 final int mid = (lo + hi) >>> 1; in firstIndexOnOrAfter() local
111 final long midTimeStamp = mEvents.get(mid).mTimeStamp; in firstIndexOnOrAfter()
113 hi = mid - 1; in firstIndexOnOrAfter()
114 result = mid; in firstIndexOnOrAfter()
116 lo = mid + 1; in firstIndexOnOrAfter()
/frameworks/base/tools/incident_report/
Dformatter.cpp76 size_t mid = (low + high) >> 1; in find_message_index() local
77 ProtoMessageFormat const* msg = get_message(mid); in find_message_index()
81 low = mid + 1; in find_message_index()
83 high = mid - 1; in find_message_index()
85 return mid; in find_message_index()
/frameworks/base/core/java/android/hardware/display/
DAmbientBrightnessDayStats.java219 int mid = (low + high) / 2; in getBucketIndex() local
220 if (mBucketBoundaries[mid] <= ambientBrightness in getBucketIndex()
221 && ambientBrightness < mBucketBoundaries[mid + 1]) { in getBucketIndex()
222 return mid; in getBucketIndex()
223 } else if (mBucketBoundaries[mid] < ambientBrightness) { in getBucketIndex()
224 low = mid + 1; in getBucketIndex()
225 } else if (mBucketBoundaries[mid] > ambientBrightness) { in getBucketIndex()
226 high = mid - 1; in getBucketIndex()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/hvac/
DTemperatureColorStore.java181 int mid = (low + high) >>> 1; in binarySearch() local
182 float midVal = sTemperatureColorValues[mid].getTemperature(); in binarySearch()
185 low = mid + 1; // Neither val is NaN, thisVal is smaller in binarySearch()
187 high = mid - 1; // Neither val is NaN, thisVal is larger in binarySearch()
192 return mid; // Key found in binarySearch()
194 low = mid + 1; in binarySearch()
196 high = mid - 1; in binarySearch()
/frameworks/base/services/people/java/com/android/server/people/data/
DEventList.java132 int mid = (low + high) >>> 1; in firstIndexOnOrAfter() local
133 if (mEvents.get(mid).getTimestamp() >= timestamp) { in firstIndexOnOrAfter()
134 high = mid - 1; in firstIndexOnOrAfter()
135 result = mid; in firstIndexOnOrAfter()
137 low = mid + 1; in firstIndexOnOrAfter()
/frameworks/compile/mclinker/include/mcld/ADT/
Dilist_sort.h46 size_t mid = size / 2; in sort() local
48 std::advance(mid_iter, mid); in sort()
54 sort(xs, mid, is_less_than); in sort()
55 sort(ys, size - mid, is_less_than); in sort()
/frameworks/base/core/jni/
Dandroid_animation_PropertyValuesHolder.cpp36 jmethodID mid = env->GetMethodID(targetClass, nativeString, "(I)V"); in android_animation_PropertyValuesHolder_getIntMethod() local
38 return reinterpret_cast<jlong>(mid); in android_animation_PropertyValuesHolder_getIntMethod()
45 jmethodID mid = env->GetMethodID(targetClass, nativeString, "(F)V"); in android_animation_PropertyValuesHolder_getFloatMethod() local
47 return reinterpret_cast<jlong>(mid); in android_animation_PropertyValuesHolder_getFloatMethod()
58 jmethodID mid = env->GetMethodID(targetClass, nativeString, signature); in getMultiparameterMethod() local
61 return reinterpret_cast<jlong>(mid); in getMultiparameterMethod()
Dandroid_opengl_EGLExt.cpp101 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { in fromEGLHandle() argument
108 return reinterpret_cast<void*>(_env->CallLongMethod(obj, mid)); in fromEGLHandle()
Dandroid_opengl_EGL15.cpp156 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { in fromEGLHandle() argument
163 jlong handle = _env->CallLongMethod(obj, mid); in fromEGLHandle()
/frameworks/base/core/java/android/animation/
DPathKeyframes.java82 int mid = (low + high) / 2; in getValue() local
83 float midFraction = mKeyframeData[(mid * NUM_COMPONENTS) + FRACTION_OFFSET]; in getValue()
86 high = mid - 1; in getValue()
88 low = mid + 1; in getValue()
90 return pointForIndex(mid); in getValue()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DItemGroup.java43 final int mid = (lo + hi) >>> 1; in binarySearch() local
44 final int midVal = array.valueAt(mid); in binarySearch()
47 lo = mid + 1; in binarySearch()
49 hi = mid - 1; in binarySearch()
51 return array.keyAt(mid); // value found in binarySearch()
/frameworks/base/cmds/incidentd/src/
Dincidentd_util.cpp36 int mid = (l + r) >> 1; in get_privacy_of_section() local
37 const Privacy* p = PRIVACY_POLICY_LIST[mid]; in get_privacy_of_section()
40 l = mid + 1; in get_privacy_of_section()
42 r = mid - 1; in get_privacy_of_section()
/frameworks/av/media/libmedia/
DCharacterEncodingDetector.cpp495 int mid = (start+end)/2; in isFrequent() local
498 if(c == values[mid]) { in isFrequent()
500 } else if (c > values[mid]) { in isFrequent()
501 start = mid + 1; in isFrequent()
503 end = mid - 1; in isFrequent()
506 mid = (start + end) / 2; in isFrequent()
/frameworks/base/cmds/incident/
Dmain.cpp149 ssize_t mid = (low + high) / 2; in find_section() local
150 IncidentSection const* section = INCIDENT_SECTIONS + mid; in find_section()
154 low = mid + 1; in find_section()
156 high = mid - 1; in find_section()
/frameworks/base/core/java/com/android/internal/app/procstats/
DSparseMappingTable.java402 int mid = (lo + hi) >>> 1; in binarySearch() local
403 byte midId = (byte)((mTable[mid] >> ID_SHIFT) & ID_MASK); in binarySearch()
406 lo = mid + 1; in binarySearch()
408 hi = mid - 1; in binarySearch()
410 return mid; // id found in binarySearch()
/frameworks/base/core/java/android/view/
DGhostView.java248 int mid = (low + high) / 2; in getInsertIndex() local
249 ViewGroup wrapper = (ViewGroup) overlayViewGroup.getChildAt(mid); in getInsertIndex()
253 low = mid + 1; in getInsertIndex()
255 high = mid - 1; in getInsertIndex()
/frameworks/native/opengl/tools/glgen/stubs/egl/
DEGLExtcHeader.cpp101 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { in fromEGLHandle() argument
108 return reinterpret_cast<void*>(_env->CallLongMethod(obj, mid)); in fromEGLHandle()
DEGL14cHeader.cpp104 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { in fromEGLHandle() argument
111 jlong handle = _env->CallLongMethod(obj, mid); in fromEGLHandle()
DEGL15cHeader.cpp156 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { in fromEGLHandle() argument
163 jlong handle = _env->CallLongMethod(obj, mid); in fromEGLHandle()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/camera/
DCameraPairwiseTest.java459 int mid = (int) Math.floor(supportedPictureSizes.size() / 2); in genericPairwiseTestCase() local
467 params.setPictureSize(supportedPictureSizes.get(mid).width, in genericPairwiseTestCase()
468 supportedPictureSizes.get(mid).height); in genericPairwiseTestCase()
472 supportedPictureSizes.get(mid).height); in genericPairwiseTestCase()
/frameworks/rs/script_api/
DGenerateDocumentation.cpp322 const char* mid = in writeHtmlVersionTag() local
329 stream << "Removed from " << mid << info.maxVersion + 1 << " and higher"; in writeHtmlVersionTag()
334 stream << "Added in " << mid << info.minVersion; in writeHtmlVersionTag()
336 stream << mid << info.minVersion << " - " << info.maxVersion; in writeHtmlVersionTag()
/frameworks/native/libs/vr/libpdx/private/pdx/
Dservice_endpoint.h21 int mid{0};
/frameworks/base/core/java/com/android/internal/widget/
DGridLayoutManager.java932 final int mid = (lo + hi) >>> 1; in findReferenceIndexFromCache() local
933 final int midVal = mSpanIndexCache.keyAt(mid); in findReferenceIndexFromCache()
935 lo = mid + 1; in findReferenceIndexFromCache()
937 hi = mid - 1; in findReferenceIndexFromCache()

12