/frameworks/base/core/java/android/util/ |
D | ContainerHelpers.java | 27 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/ |
D | TimeSparseArray.java | 49 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()
|
D | EventList.java | 110 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/ |
D | formatter.cpp | 76 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/ |
D | AmbientBrightnessDayStats.java | 219 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/ |
D | TemperatureColorStore.java | 181 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/ |
D | EventList.java | 132 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/ |
D | ilist_sort.h | 46 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/ |
D | android_animation_PropertyValuesHolder.cpp | 36 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()
|
D | android_opengl_EGLExt.cpp | 101 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { in fromEGLHandle() argument 108 return reinterpret_cast<void*>(_env->CallLongMethod(obj, mid)); in fromEGLHandle()
|
D | android_opengl_EGL15.cpp | 156 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/ |
D | PathKeyframes.java | 82 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/ |
D | ItemGroup.java | 43 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/ |
D | incidentd_util.cpp | 36 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/ |
D | CharacterEncodingDetector.cpp | 495 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/ |
D | main.cpp | 149 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/ |
D | SparseMappingTable.java | 402 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/ |
D | GhostView.java | 248 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/ |
D | EGLExtcHeader.cpp | 101 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { in fromEGLHandle() argument 108 return reinterpret_cast<void*>(_env->CallLongMethod(obj, mid)); in fromEGLHandle()
|
D | EGL14cHeader.cpp | 104 fromEGLHandle(JNIEnv *_env, jmethodID mid, jobject obj) { in fromEGLHandle() argument 111 jlong handle = _env->CallLongMethod(obj, mid); in fromEGLHandle()
|
D | EGL15cHeader.cpp | 156 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/ |
D | CameraPairwiseTest.java | 459 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/ |
D | GenerateDocumentation.cpp | 322 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/ |
D | service_endpoint.h | 21 int mid{0};
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | GridLayoutManager.java | 932 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()
|