Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/util/
DContainerHelpers.java31 final int mid = (lo + hi) >>> 1; in binarySearch() local
32 final int midVal = array[mid]; in binarySearch()
35 lo = mid + 1; in binarySearch()
37 hi = mid - 1; in binarySearch()
39 return mid; // value found in binarySearch()
50 final int mid = (lo + hi) >>> 1; in binarySearch() local
51 final long midVal = array[mid]; in binarySearch()
54 lo = mid + 1; in binarySearch()
56 hi = mid - 1; in binarySearch()
58 return mid; // value found in binarySearch()
/frameworks/support/v4/java/android/support/v4/util/
DContainerHelpers.java50 int mid = (lo + hi) >>> 1; in binarySearch() local
51 int midVal = array[mid]; in binarySearch()
54 lo = mid + 1; in binarySearch()
56 hi = mid - 1; in binarySearch()
58 return mid; // value found in binarySearch()
69 final int mid = (lo + hi) >>> 1; in binarySearch() local
70 final long midVal = array[mid]; in binarySearch()
73 lo = mid + 1; in binarySearch()
75 hi = mid - 1; in binarySearch()
77 return mid; // value found in binarySearch()
/frameworks/base/libs/hwui/utils/
DSortedListImpl.cpp55 ssize_t mid; in _indexOrderOf() local
59 mid = l + (h - l) / 2; in _indexOrderOf()
60 const void* const curr = reinterpret_cast<const char *> (a) + (mid * s); in _indexOrderOf()
63 err = l = mid; in _indexOrderOf()
66 l = mid + 1; in _indexOrderOf()
68 h = mid - 1; in _indexOrderOf()
/frameworks/base/core/jni/
Dandroid_animation_PropertyValuesHolder.cpp36 jmethodID mid = env->GetMethodID(targetClass, nativeString, "(I)V"); in android_animation_PropertyValuesHolder_getIntMethod() local
38 return mid; in android_animation_PropertyValuesHolder_getIntMethod()
45 jmethodID mid = env->GetMethodID(targetClass, nativeString, "(F)V"); in android_animation_PropertyValuesHolder_getFloatMethod() local
47 return mid; in android_animation_PropertyValuesHolder_getFloatMethod()
Dandroid_opengl_EGLExt.cpp104 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { in fromEGLHandle() argument
110 return (void*) (_env->CallIntMethod(obj, mid)); in fromEGLHandle()
Dandroid_opengl_EGL14.cpp103 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { in fromEGLHandle() argument
109 return (void*) (_env->CallIntMethod(obj, mid)); in fromEGLHandle()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DSortingCursorWrapper.java179 int mid = (left + right) >>> 1; in binarySort() local
182 final String rhs = value[mid]; in binarySort()
193 right = mid; in binarySort()
195 left = mid + 1; in binarySort()
232 int mid = (left + right) >>> 1; in binarySort() local
235 final long rhs = value[mid]; in binarySort()
238 right = mid; in binarySort()
240 left = mid + 1; in binarySort()
/frameworks/native/opengl/libagl/
DTokenizer.cpp108 ssize_t mid; in _indexOrderOf() local
111 mid = l + (h - l)/2; in _indexOrderOf()
112 const run_t* const curr = a + mid; in _indexOrderOf()
117 err = l = mid; in _indexOrderOf()
120 l = mid + 1; in _indexOrderOf()
122 h = mid - 1; in _indexOrderOf()
Degl.cpp1116 int mid = (first + last) / 2; in binarySearch() local
1117 if (key > sortedArray[mid].key) { in binarySearch()
1118 first = mid + 1; in binarySearch()
1119 } else if (key < sortedArray[mid].key) { in binarySearch()
1120 last = mid - 1; in binarySearch()
1122 return mid; in binarySearch()
/frameworks/base/test-runner/src/junit/runner/
DSorter.java21 String mid= (String)values.elementAt((left + right) / 2); in sortStrings() local
23 while (((String)(values.elementAt(left))).compareTo(mid) < 0) in sortStrings()
25 while (mid.compareTo((String)(values.elementAt(right))) < 0) in sortStrings()
/frameworks/av/media/libstagefright/timedtext/
DTimedTextSRTSource.cpp233 size_t mid = 0; in getText() local
236 mid = low + (high - low)/2; in getText()
237 int diff = compareExtendedRangeAndTime(mid, seekTimeUs); in getText()
241 low = mid + 1; in getText()
243 high = mid - 1; in getText()
246 mIndex = mid; in getText()
/frameworks/native/opengl/tools/glgen/stubs/egl/
DEGL14cHeader.cpp103 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { in fromEGLHandle() argument
109 return (void*) (_env->CallIntMethod(obj, mid)); in fromEGLHandle()
DEGLExtcHeader.cpp104 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { in fromEGLHandle() argument
110 return (void*) (_env->CallIntMethod(obj, mid)); in fromEGLHandle()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/camera/
DCameraPairwiseTest.java465 int mid = (int) Math.floor(supportedPictureSizes.size() / 2); in genericPairwiseTestCase() local
473 params.setPictureSize(supportedPictureSizes.get(mid).width, in genericPairwiseTestCase()
474 supportedPictureSizes.get(mid).height); in genericPairwiseTestCase()
478 supportedPictureSizes.get(mid).height); in genericPairwiseTestCase()
/frameworks/base/docs/html/training/graphics/opengl/
Dtouch.jd68 // reverse direction of rotation above the mid-line
73 // reverse direction of rotation to left of the mid-line
/frameworks/native/opengl/tests/hwc/
DhwcCommit.cpp1128 double mid = (double) best in scHScale() local
1130 Rational::double2Rational(mid, in scHScale()
1227 double mid = (double) best in scVScale() local
1229 Rational::double2Rational(mid, in scVScale()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp730 ssize_t mid; in indexOfString() local
732 mid = l + (h - l)/2; in indexOfString()
733 const uint8_t* s = (const uint8_t*)string8At(mid, &len); in indexOfString()
743 (const char*)s, c, (int)l, (int)mid, (int)h)); in indexOfString()
747 return mid; in indexOfString()
749 l = mid + 1; in indexOfString()
751 h = mid - 1; in indexOfString()
782 ssize_t mid; in indexOfString() local
784 mid = l + (h - l)/2; in indexOfString()
785 const char16_t* s = stringAt(mid, &len); in indexOfString()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DProcessStats.java1616 int mid = (lo + hi) >>> 1; in binarySearch() local
1617 int midVal = (array[mid] >> OFFSET_TYPE_SHIFT) & OFFSET_TYPE_MASK; in binarySearch()
1620 lo = mid + 1; in binarySearch()
1622 hi = mid - 1; in binarySearch()
1624 return mid; // value found in binarySearch()
/frameworks/base/docs/html/training/animation/
Dzoom.jd130 // so that it can be canceled mid-way.
/frameworks/base/docs/html/guide/appendix/
Dmedia-formats.jd156 &bull; Type 0 and 1 (.mid, .xmf, .mxmf)<br>
/frameworks/base/media/jni/mediaeditor/
DVideoEditorMain.cpp2279 jmethodID mid = env->GetMethodID(cls, "onThumbnail", "(I)V"); in videoEditor_getPixelsList() local
2290 env->CallVoidMethod(callback, mid, (jint)k); in videoEditor_getPixelsList()
/frameworks/base/docs/html/distribute/googleplay/quality/
Dtablet.jd938 could include mid-size tablets, tablets with more or fewer hardware/software
/frameworks/base/docs/html/guide/topics/media/jet/
Djetcreator_manual.jd366 <p>.mid File. This is the standard MIDI
/frameworks/base/api/
Dcurrent.txt21476 field public static final java.lang.String MSG_ID = "mid";