Searched refs:mid (Results 1 - 24 of 24) sorted by relevance

/frameworks/base/core/java/android/util/
H A DContainerHelpers.java27 final int mid = (lo + hi) >>> 1;
28 final int midVal = array[mid];
31 lo = mid + 1;
33 hi = mid - 1;
35 return mid; // value found
46 final int mid = (lo + hi) >>> 1;
47 final long midVal = array[mid];
50 lo = mid + 1;
52 hi = mid - 1;
54 return mid; // valu
[all...]
/frameworks/base/core/java/android/app/usage/
H A DTimeSparseArray.java48 int mid = -1;
51 mid = lo + ((hi - lo) / 2);
52 key = keyAt(mid);
55 lo = mid + 1;
57 hi = mid - 1;
59 return mid;
64 return mid;
/frameworks/support/v4/java/android/support/v4/util/
H A DContainerHelpers.java50 int mid = (lo + hi) >>> 1;
51 int midVal = array[mid];
54 lo = mid + 1;
56 hi = mid - 1;
58 return mid; // value found
69 final int mid = (lo + hi) >>> 1;
70 final long midVal = array[mid];
73 lo = mid + 1;
75 hi = mid - 1;
77 return mid; // valu
[all...]
/frameworks/base/test-runner/src/junit/runner/
H A DSorter.java19 String mid= (String)values.elementAt((left + right) / 2);
21 while (((String)(values.elementAt(left))).compareTo(mid) < 0)
23 while (mid.compareTo((String)(values.elementAt(right))) < 0)
/frameworks/base/libs/hwui/utils/
H A DSortedListImpl.cpp55 ssize_t mid; local
59 mid = l + (h - l) / 2;
60 const void* const curr = reinterpret_cast<const char *> (a) + (mid * s);
63 err = l = mid;
66 l = mid + 1;
68 h = mid - 1;
/frameworks/native/opengl/libagl/
H A DTokenizer.cpp108 ssize_t mid; local
111 mid = l + (h - l)/2;
112 const run_t* const curr = a + mid;
117 err = l = mid;
120 l = mid + 1;
122 h = mid - 1;
H A Degl.cpp1116 int mid = (first + last) / 2; local
1117 if (key > sortedArray[mid].key) {
1118 first = mid + 1;
1119 } else if (key < sortedArray[mid].key) {
1120 last = mid - 1;
1122 return mid;
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DSortingCursorWrapper.java181 int mid = (left + right) >>> 1;
184 final String rhs = value[mid];
188 right = mid;
190 left = mid + 1;
227 int mid = (left + right) >>> 1;
230 final long rhs = value[mid];
233 right = mid;
235 left = mid + 1;
/frameworks/base/core/java/android/animation/
H A DPathKeyframes.java81 int mid = (low + high) / 2;
82 float midFraction = mKeyframeData[(mid * NUM_COMPONENTS) + FRACTION_OFFSET];
85 high = mid - 1;
87 low = mid + 1;
89 return pointForIndex(mid);
/frameworks/av/media/libstagefright/timedtext/
H A DTimedTextSRTSource.cpp233 size_t mid = 0; local
236 mid = low + (high - low)/2;
237 int diff = compareExtendedRangeAndTime(mid, seekTimeUs);
241 low = mid + 1;
243 high = mid - 1;
246 mIndex = mid;
/frameworks/base/core/jni/
H A Dandroid_animation_PropertyValuesHolder.cpp36 jmethodID mid = env->GetMethodID(targetClass, nativeString, "(I)V"); local
38 return reinterpret_cast<jlong>(mid);
45 jmethodID mid = env->GetMethodID(targetClass, nativeString, "(F)V"); local
47 return reinterpret_cast<jlong>(mid);
58 jmethodID mid = env->GetMethodID(targetClass, nativeString, signature); local
61 return reinterpret_cast<jlong>(mid);
H A Dandroid_opengl_EGLExt.cpp104 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { argument
110 return reinterpret_cast<void*>(_env->CallLongMethod(obj, mid));
H A Dandroid_opengl_EGL14.cpp103 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { argument
109 jlong handle = _env->CallLongMethod(obj, mid);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DPositionMap.java445 final int mid = (lo + hi) >>> 1;
446 final int midVal = array[mid];
449 lo = mid + 1;
451 hi = mid - 1;
453 return mid; // value found
H A DGridLayoutManager.java685 final int mid = (lo + hi) >>> 1;
686 final int midVal = mSpanIndexCache.keyAt(mid);
688 lo = mid + 1;
690 hi = mid - 1;
/frameworks/av/media/libmedia/
H A DCharacterEncodingDetector.cpp455 int mid = (start+end)/2; local
458 if(c == values[mid]) {
460 } else if (c > values[mid]) {
461 start = mid + 1;
463 end = mid - 1;
466 mid = (start + end) / 2;
/frameworks/native/opengl/tools/glgen/stubs/egl/
H A DEGL14cHeader.cpp103 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { argument
109 jlong handle = _env->CallLongMethod(obj, mid);
H A DEGLExtcHeader.cpp104 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { argument
110 return reinterpret_cast<void*>(_env->CallLongMethod(obj, mid));
/frameworks/base/core/java/android/view/
H A DGhostView.java247 int mid = (low + high) / 2;
248 ViewGroup wrapper = (ViewGroup) overlayViewGroup.getChildAt(mid);
252 low = mid + 1;
254 high = mid - 1;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/camera/
H A DCameraPairwiseTest.java465 int mid = (int) Math.floor(supportedPictureSizes.size() / 2);
473 params.setPictureSize(supportedPictureSizes.get(mid).width,
474 supportedPictureSizes.get(mid).height);
478 supportedPictureSizes.get(mid).height);
/frameworks/av/media/libstagefright/matroska/
H A DMatroskaExtractor.cpp184 const size_t mid = lo + (hi - lo) / 2; local
185 const mkvparser::CuePoint* const midCp = mCuePoints.itemAt(mid);
188 lo = mid + 1;
190 hi = mid;
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp860 ssize_t mid; local
862 mid = l + (h - l)/2;
863 const uint8_t* s = (const uint8_t*)string8At(mid, &len);
872 STRING_POOL_NOISY(ALOGI("Looking at %s, cmp=%d, l/mid/h=%d/%d/%d\n",
873 (const char*)s, c, (int)l, (int)mid, (int)h));
877 return mid;
879 l = mid + 1;
881 h = mid - 1;
912 ssize_t mid; local
914 mid
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcCommit.cpp1089 // each pass of the binary search the mid-point between the greatest
1091 // has failed is calculated. This mid-point is then passed to a function
1093 // just below and above the mid-point. By default the lower rational
1127 double mid = (double) best local
1129 Rational::double2Rational(mid,
1188 // each pass of the binary search the mid-point between the greatest
1190 // has failed is calculated. This mid-point is then passed to a function
1192 // just below and above the mid-point. By default the lower rational
1226 double mid = (double) best local
1228 Rational::double2Rational(mid,
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DProcessStats.java2014 int mid = (lo + hi) >>> 1;
2015 int midVal = (array[mid] >> OFFSET_TYPE_SHIFT) & OFFSET_TYPE_MASK;
2018 lo = mid + 1;
2020 hi = mid - 1;
2022 return mid; // value found

Completed in 679 milliseconds