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

/frameworks/base/core/java/android/util/
H A DContainerHelpers.java31 final int mid = (lo + hi) >>> 1;
32 final int midVal = array[mid];
35 lo = mid + 1;
37 hi = mid - 1;
39 return mid; // value found
50 final int mid = (lo + hi) >>> 1;
51 final long midVal = array[mid];
54 lo = mid + 1;
56 hi = mid - 1;
58 return mid; // valu
[all...]
/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.java21 String mid= (String)values.elementAt((left + right) / 2);
23 while (((String)(values.elementAt(left))).compareTo(mid) < 0)
25 while (mid.compareTo((String)(values.elementAt(right))) < 0)
/frameworks/base/core/jni/
H A Dandroid_animation_PropertyValuesHolder.cpp36 jmethodID mid = env->GetMethodID(targetClass, nativeString, "(I)V"); local
38 return mid;
45 jmethodID mid = env->GetMethodID(targetClass, nativeString, "(F)V"); local
47 return mid;
H A Dandroid_opengl_EGLExt.cpp104 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { argument
110 return (void*) (_env->CallIntMethod(obj, mid));
H A Dandroid_opengl_EGL14.cpp103 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { argument
109 return (void*) (_env->CallIntMethod(obj, mid));
/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.java179 int mid = (left + right) >>> 1;
182 final String rhs = value[mid];
193 right = mid;
195 left = mid + 1;
232 int mid = (left + right) >>> 1;
235 final long rhs = value[mid];
238 right = mid;
240 left = mid + 1;
/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/native/opengl/tools/glgen/stubs/egl/
H A DEGL14cHeader.cpp103 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { argument
109 return (void*) (_env->CallIntMethod(obj, mid));
H A DEGLExtcHeader.cpp104 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { argument
110 return (void*) (_env->CallIntMethod(obj, mid));
/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/base/libs/androidfw/
H A DResourceTypes.cpp730 ssize_t mid; local
732 mid = l + (h - l)/2;
733 const uint8_t* s = (const uint8_t*)string8At(mid, &len);
742 STRING_POOL_NOISY(ALOGI("Looking at %s, cmp=%d, l/mid/h=%d/%d/%d\n",
743 (const char*)s, c, (int)l, (int)mid, (int)h));
747 return mid;
749 l = mid + 1;
751 h = mid - 1;
782 ssize_t mid; local
784 mid
[all...]
/frameworks/native/opengl/tests/hwc/
H A DhwcCommit.cpp1090 // each pass of the binary search the mid-point between the greatest
1092 // has failed is calculated. This mid-point is then passed to a function
1094 // just below and above the mid-point. By default the lower rational
1128 double mid = (double) best local
1130 Rational::double2Rational(mid,
1189 // each pass of the binary search the mid-point between the greatest
1191 // has failed is calculated. This mid-point is then passed to a function
1193 // just below and above the mid-point. By default the lower rational
1227 double mid = (double) best local
1229 Rational::double2Rational(mid,
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DProcessStats.java1616 int mid = (lo + hi) >>> 1;
1617 int midVal = (array[mid] >> OFFSET_TYPE_SHIFT) & OFFSET_TYPE_MASK;
1620 lo = mid + 1;
1622 hi = mid - 1;
1624 return mid; // value found
/frameworks/base/media/jni/mediaeditor/
H A DVideoEditorMain.cpp2279 jmethodID mid = env->GetMethodID(cls, "onThumbnail", "(I)V"); local
2290 env->CallVoidMethod(callback, mid, (jint)k);

Completed in 630 milliseconds