Home
last modified time | relevance | path

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

/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortingCursorWrapper.java201 int mid = (left + right) >>> 1; in binarySort() local
205 final boolean rhsIsDir = isDirs[mid]; in binarySort()
212 final String rhs = sortKey[mid]; in binarySort()
228 compare = pivotId.compareTo(ids[mid]); in binarySort()
232 right = mid; in binarySort()
234 left = mid + 1; in binarySort()
282 int mid = ((left + right) >>> 1); in binarySort() local
286 final boolean rhsIsDir = isDirs[mid]; in binarySort()
293 final long rhs = sortKey[mid]; in binarySort()
312 compare = pivotId.compareTo(ids[mid]); in binarySort()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DChartGridView.java98 final long mid = (start + end) / 2; in setBounds() local
100 mLabelMid = makeLabel(formatDateRange(context, mid, mid)); in setBounds()
148 final Layout mid = mLabelMid; in onDraw() local
149 if (mid != null) { in onDraw()
151 canvas.translate((width - mid.getWidth()) / 2, height + padding); in onDraw()
152 mid.draw(canvas); in onDraw()
/packages/apps/Settings/src/com/android/settings/widget/
DChartGridView.java98 final long mid = (start + end) / 2; in setBounds() local
100 mLabelMid = makeLabel(formatDateRange(context, mid, mid)); in setBounds()
148 final Layout mid = mLabelMid; in onDraw() local
149 if (mid != null) { in onDraw()
151 canvas.translate((width - mid.getWidth()) / 2, height + padding); in onDraw()
152 mid.draw(canvas); in onDraw()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DCollections.java49 int mid = lo + (hi - lo) / 2; in binarySearch() local
50 long midKey = keyRetriever.getKey(list.get(mid)); in binarySearch()
53 lo = mid + 1; in binarySearch()
55 hi = mid - 1; in binarySearch()
57 return mid; in binarySearch()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactSectionIndexer.java79 final int mid = (left + right) / 2; in getSectionForPosition() local
80 final int startingPos = mSectionStartingPositions.get(mid); in getSectionForPosition()
81 final int nextStartingPos = mSectionStartingPositions.get(mid + 1); in getSectionForPosition()
83 return mid; in getSectionForPosition()
85 right = mid - 1; in getSectionForPosition()
87 left = mid + 1; in getSectionForPosition()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DSortedArrayAdapter.java224 int mid = (lb + ub) / 2; in findInsertPositionBinary() local
225 T r = (T) get(mid); in findInsertPositionBinary()
228 return mid; in findInsertPositionBinary()
230 lb = mid + 1; in findInsertPositionBinary()
232 ub = mid - 1; in findInsertPositionBinary()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/
DContactTernarySearchTree.java54 node.mid = put(node.mid, key, value, position + 1); in put()
82 return get(node.mid, key, position + 1); in get()
94 private Node mid; field in ContactTernarySearchTree.Node
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DSpringAnimationBuilder.java183 double mid = (edgeTime + duration) / 2; in build() local
184 if (isAtEquilibrium(mid)) { in build()
185 duration = mid; in build()
187 edgeTime = mid; in build()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java878 int mid = len / 2; in getGaussianMask() local
881 for (int i = 0; i <= mid; i++) { in getGaussianMask()
882 float ex = (float) Math.exp(-(i - mid) * (i - mid) / (mid * mid)) in getGaussianMask()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java1690 float mid = getMeasuredWidth() / 2; in getVisibleChildrenRange() local
1691 visibleLeft = mid - ((mid - visibleLeft) / scaleX); in getVisibleChildrenRange()
1692 visibleRight = mid + ((visibleRight - mid) / scaleX); in getVisibleChildrenRange()
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java1132 int mid = (start + end) / 2; in getProgramAt() local
1133 Program program = mPrograms.get(mid); in getProgramAt()
1135 return getProgramAt(timeMs, start, mid - 1); in getProgramAt()
1137 return getProgramAt(timeMs, mid + 1, end); in getProgramAt()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrDataManagerImpl.java582 int mid = (start + end) / 2; in getNextStartTimeAfter() local
583 if (scheduledRecordings.get(mid).getStartTimeMs() <= startTime) { in getNextStartTimeAfter()
584 start = mid + 1; in getNextStartTimeAfter()
586 end = mid - 1; in getNextStartTimeAfter()
/packages/apps/Dialer/java/com/android/dialer/logging/
Ddialer_impression.proto762 // The call turns into RTT call mid call.
/packages/inputmethods/LatinIME/dictionaries/
Dro_wordlist.combined.gz1dictionary=main:ro,locale=ro,description=Română,date=1412325511, ...
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...
Dlt_wordlist.combined.gz1dictionary=main:lt,locale=lt,description=Lietuvių,date=1393228136, ...
Des_wordlist.combined.gz1dictionary=main:es,locale=es,description=Español,date=1414726268, ...