Home
last modified time | relevance | path

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

/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/av/media/libstagefright/timedtext/
DTimedTextSRTSource.cpp233 size_t mid = 0; in getText() local
237 mid = low + (high - low)/2; in getText()
238 currTimeUs = mTextVector.keyAt(mid); in getText()
244 low = mid + 1; in getText()
246 if ((high == mid + 1) in getText()
250 if (mid < 1) { in getText()
253 high = mid - 1; in getText()
256 mIndex = mid; in getText()
/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()
/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.cpp1106 int mid = (first + last) / 2; in binarySearch() local
1107 if (key > sortedArray[mid].key) { in binarySearch()
1108 first = mid + 1; in binarySearch()
1109 } else if (key < sortedArray[mid].key) { in binarySearch()
1110 last = mid - 1; in binarySearch()
1112 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/base/media/libdrm/mobile1/src/jni/
Ddrm1_jni.c212 jmethodID mid; in getInputStreamDataLength() local
228 mid = (*env)->GetMethodID(env, cls, "available", "()I"); in getInputStreamDataLength()
231 if (NULL == mid) in getInputStreamDataLength()
234 if (0 > (*env)->CallIntMethod(env, *pInputStream, mid)) in getInputStreamDataLength()
247 jmethodID mid; in readInputStreamData() local
265 mid = (*env)->GetMethodID(env, cls, "read", "([BII)I"); in readInputStreamData()
267 bufLen = (*env)->CallIntMethod(env, *pInputStream, mid, tmp, 0, bufLen); in readInputStreamData()
657 jmethodID mid; in Java_android_drm_mobile1_DrmRawContent_nativeReadContent() local
911 jmethodID mid; in Java_android_drm_mobile1_DrmRightsManager_nativeInstallDrmRights() local
/frameworks/native/libs/utils/
DVectorImpl.cpp535 ssize_t mid; in _indexOrderOf() local
539 mid = l + (h - l)/2; in _indexOrderOf()
540 const void* const curr = reinterpret_cast<const char *>(a) + (mid*s); in _indexOrderOf()
543 err = l = mid; in _indexOrderOf()
546 l = mid + 1; in _indexOrderOf()
548 h = mid - 1; in _indexOrderOf()
/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.cpp708 ssize_t mid; in indexOfString() local
710 mid = l + (h - l)/2; in indexOfString()
711 const char16_t* s = stringAt(mid, &len); in indexOfString()
716 c, (int)l, (int)mid, (int)h)); in indexOfString()
718 return mid; in indexOfString()
720 l = mid + 1; in indexOfString()
722 h = mid - 1; in indexOfString()
/frameworks/base/docs/html/guide/appendix/
Dmedia-formats.jd145 &bull; Type 0 and 1 (.mid, .xmf, .mxmf)<br>
/frameworks/base/media/jni/mediaeditor/
DVideoEditorMain.cpp2318 jmethodID mid = env->GetMethodID(cls, "onThumbnail", "(I)V"); in videoEditor_getPixelsList() local
2329 env->CallVoidMethod(callback, mid, (jint)k); in videoEditor_getPixelsList()
/frameworks/base/docs/html/guide/topics/media/jet/
Djetcreator_manual.jd366 <p>.mid File. This is the standard MIDI