/frameworks/base/core/java/android/util/ |
ContainerHelpers.java | 27 final int mid = (lo + hi) >>> 1; local 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; local 47 final long midVal = array[mid]; 50 lo = mid + 1; 52 hi = mid - 1; 54 return mid; // value foun [all...] |
/ndk/tests/build/test-gnustl-chrono/jni/ |
hanoi.h | 8 extern void hanoi(int from, int to, int mid, int n,
|
hanoi.c | 3 void hanoi(int from, int to, int mid, int n, void (*callback)(int, int)) { 7 hanoi(from, mid, to, n - 1, callback); 9 hanoi(mid, to, from, n - 1, callback);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
bisect.py | 17 mid = (lo+hi)//2 18 if x < a[mid]: hi = mid 19 else: lo = mid+1 40 mid = (lo+hi)//2 41 if x < a[mid]: hi = mid 42 else: lo = mid+1 61 mid = (lo+hi)//2 62 if a[mid] < x: lo = mid+ [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
bisect.py | 17 mid = (lo+hi)//2 18 if x < a[mid]: hi = mid 19 else: lo = mid+1 40 mid = (lo+hi)//2 41 if x < a[mid]: hi = mid 42 else: lo = mid+1 61 mid = (lo+hi)//2 62 if a[mid] < x: lo = mid+ [all...] |
/art/runtime/verifier/ |
dex_gc_map.cc | 38 int mid = (hi + lo) / 2; local 39 int mid_pc = GetDexPc(mid); 41 lo = mid + 1; 43 hi = mid - 1; 45 return GetBitMap(mid);
|
/frameworks/base/core/java/android/app/usage/ |
TimeSparseArray.java | 48 int mid = -1; local 51 mid = lo + ((hi - lo) / 2); 52 key = keyAt(mid); 55 lo = mid + 1; 57 hi = mid - 1; 59 return mid; 64 return mid;
|
/cts/tests/tests/media/src/android/media/cts/ |
CameraProfileTest.java | 31 private void checkQuality(int low, int mid, int high) { 32 Log.v(TAG, "low = " + low + ", mid = " + mid + ", high = " + high); 34 assertTrue(mid >= 0 && mid <= 100); 36 assertTrue(low <= mid && mid <= high); 41 int mid = CameraProfile.getJpegEncodingQualityParameter(CameraProfile.QUALITY_MEDIUM); local 43 checkQuality(low, mid, high); 50 int mid = CameraProfile.getJpegEncodingQualityParameter(id, CameraProfile.QUALITY_MEDIUM) local [all...] |
/frameworks/support/v4/java/android/support/v4/util/ |
ContainerHelpers.java | 50 int mid = (lo + hi) >>> 1; local 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; local 70 final long midVal = array[mid]; 73 lo = mid + 1; 75 hi = mid - 1; 77 return mid; // value foun [all...] |
/external/compiler-rt/test/asan/TestCases/ |
contiguous_container.cc | 14 char *mid = beg + capacity; local 20 old_mid = mid; 21 mid = beg + size; 22 __sanitizer_annotate_contiguous_container(beg, end, old_mid, mid); 28 assert(__sanitizer_verify_contiguous_container(beg, mid, end)); 29 if (mid != beg) 30 assert(!__sanitizer_verify_contiguous_container(beg, mid - 1, end)); 31 if (mid != end) 32 assert(!__sanitizer_verify_contiguous_container(beg, mid + 1, end)); 36 __sanitizer_annotate_contiguous_container(beg, end, mid, end) [all...] |
/external/lzma/CPP/7zip/Archive/Common/ |
MultiStream.cpp | 17 int left = 0, mid = _streamIndex, right = Streams.Size();
local 20 CSubStreamInfo &m = Streams[mid];
22 right = mid;
24 left = mid + 1;
27 _streamIndex = mid;
30 mid = (left + right) / 2;
32 _streamIndex = mid;
|
/external/lzma/CPP/Common/ |
MyVector.h | 85 int mid = (left + right) / 2;
local 86 const T& midValue = (*this)[mid];
88 return mid;
90 right = mid;
92 left = mid + 1;
102 int mid = (left + right) / 2;
local 103 const T& midValue = (*this)[mid];
105 return mid;
107 right = mid;
109 left = mid + 1; 119 int mid = (left + right) \/ 2; local 226 int mid = (left + right) \/ 2; local 242 int mid = (left + right) \/ 2; local [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/cglib/util/ |
SorterTemplate.java | 93 int mid = lo + diff / 2; local 94 mergeSort(lo, mid); 95 mergeSort(mid, hi); 96 merge(lo, mid, hi, mid - lo, hi - mid); 128 private void rotate(int lo, int mid, int hi) { 130 int hit = mid - 1; 134 lot = mid; hit = hi - 1; 148 int mid= lo + half local 163 int mid = lo + half; local [all...] |
/external/e2fsprogs/e2fsck/ |
dx_dirinfo.c | 83 int low, high, mid; local 95 mid = (low+high)/2; 96 if (mid == low || mid == high) 98 if (ino == ctx->dx_dir_info[mid].ino) 99 return &ctx->dx_dir_info[mid]; 100 if (ino < ctx->dx_dir_info[mid].ino) 101 high = mid; 103 low = mid;
|
/frameworks/base/test-runner/src/junit/runner/ |
Sorter.java | 19 String mid= (String)values.elementAt((left + right) / 2); local 21 while (((String)(values.elementAt(left))).compareTo(mid) < 0) 23 while (mid.compareTo((String)(values.elementAt(right))) < 0)
|
/external/chromium_org/third_party/skia/src/animator/ |
SkGetCondensedInfo.cpp | 26 int mid = (hi + lo) >> 1; local 27 if (strcmp(&strings[lengths[mid << 2]], target) < 0) 28 lo = mid + 1; 30 hi = mid; 42 int mid = (hi + lo) >> 1; local 43 if (gTypeIDs[mid] < match) 44 lo = mid + 1; 46 hi = mid;
|
/external/skia/src/animator/ |
SkGetCondensedInfo.cpp | 26 int mid = (hi + lo) >> 1; local 27 if (strcmp(&strings[lengths[mid << 2]], target) < 0) 28 lo = mid + 1; 30 hi = mid; 42 int mid = (hi + lo) >> 1; local 43 if (gTypeIDs[mid] < match) 44 lo = mid + 1; 46 hi = mid;
|
/external/chromium_org/third_party/freetype/src/psnames/ |
pstables.h | 4096 int mid = ( min + max ) >> 1; local [all...] |
/external/chromium_org/third_party/opus/src/celt/ |
rate.h | 67 int mid = (lo+hi+1)>>1; local 69 if ((int)cache[mid] >= bits) 70 hi = mid; 72 lo = mid;
|
/external/chromium_org/third_party/skia/experimental/Intersection/ |
CubicParameterization_Test.cpp | 31 Cubic whole, first, second, mid; local 35 quad_to_cubic(midThird, mid); 42 if (!implicit_matches(mid, first)) { 45 if (!implicit_matches(mid, second)) {
|
/external/freetype/src/psnames/ |
pstables.h | 4096 int mid = ( min + max ) >> 1; local [all...] |
/external/libopus/celt/ |
rate.h | 67 int mid = (lo+hi+1)>>1; local 69 if ((int)cache[mid] >= bits) 70 hi = mid; 72 lo = mid;
|
/external/lzma/CPP/7zip/Common/ |
FilePathAutoRename.cpp | 40 extension = fullProcessedPath.Mid(dotPos);
48 unsigned mid = (left + right) / 2;
local 49 if (MakeAutoName(name, extension, mid, path))
50 left = mid + 1;
52 right = mid;
|
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/psnames/ |
pstables.h | 4110 int mid = ( min + max ) >> 1; local [all...] |
/external/skia/experimental/Intersection/ |
CubicParameterization_Test.cpp | 31 Cubic whole, first, second, mid; local 35 quad_to_cubic(midThird, mid); 42 if (!implicit_matches(mid, first)) { 45 if (!implicit_matches(mid, second)) {
|