Home
last modified time | relevance | path

Searched refs:endIndex (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/PhoneCommon/src/com/android/phone/common/compat/
DPathInterpolatorCompat.java81 int endIndex = mX.length - 1; in getInterpolation() local
82 while (endIndex - startIndex > 1) { in getInterpolation()
83 int midIndex = (startIndex + endIndex) / 2; in getInterpolation()
85 endIndex = midIndex; in getInterpolation()
91 final float xRange = mX[endIndex] - mX[startIndex]; in getInterpolation()
100 final float endY = mY[endIndex]; in getInterpolation()
/packages/apps/Settings/src/com/android/settings/
DLinkifyUtils.java58 final int endIndex = text.indexOf(PLACE_HOLDER_LINK_END); in linkify() local
59 if (endIndex == -1) { in linkify()
63 text.delete(endIndex, endIndex + PLACE_HOLDER_LINK_END.length()); in linkify()
80 spannableContent.setSpan(spannableLink, beginIndex, endIndex, in linkify()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/data/paging/
DFakeInMemoryAlbumPagingSource.kt85 val endIndex = (startIndex + params.loadSize) - 1 in <lambda>() constant
92 val pageData = DATA.slice(startIndex..endIndex) in <lambda>()
95 val nextRow = DATA.getOrNull(endIndex + 1) in <lambda>()
DFakeInMemoryMediaPagingSource.kt88 val endIndex = (startIndex + params.loadSize) - 1 in <lambda>() constant
95 val pageData = DATA.slice(startIndex..endIndex) in <lambda>()
98 val nextRow = DATA.getOrNull(endIndex + 1) in <lambda>()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/
DContactsIndexerImpl.java156 int endIndex = in batchRemoveContactsAsync() local
160 Collection<String> currentContactIds = unWantedIds.subList(startIndex, endIndex); in batchRemoveContactsAsync()
172 startIndex = endIndex; in batchRemoveContactsAsync()
207 int endIndex = Math.min(startIndex + NUM_CONTACTS_PER_BATCH_FOR_CP2, wantedIdListSize); in batchUpdateContactsAsync() local
208 Collection<String> currentContactIds = wantedContactIds.subList(startIndex, endIndex); in batchUpdateContactsAsync()
215 startIndex = endIndex; in batchUpdateContactsAsync()
/packages/modules/Uwb/service/java/com/android/server/uwb/util/
DDataTypeConversionUtil.java71 byte[] response, int startIndex, int endIndex) { in byteArrayToHexString() argument
72 char[] hex = new char[(endIndex - startIndex) * 2]; in byteArrayToHexString()
74 for (int i = 0; i < endIndex - startIndex; i++) { in byteArrayToHexString()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryChartView.java542 final int endIndex, in drawAxisLabelsBetweenStartIndexAndEndIndex() argument
544 if (endIndex - startIndex <= 1) { in drawAxisLabelsBetweenStartIndexAndEndIndex()
547 if ((endIndex - startIndex) % 2 == 0) { in drawAxisLabelsBetweenStartIndexAndEndIndex()
548 int middleIndex = (startIndex + endIndex) / 2; in drawAxisLabelsBetweenStartIndexAndEndIndex()
550 || hasOverlap(displayAreas, middleIndex, endIndex)) { in drawAxisLabelsBetweenStartIndexAndEndIndex()
558 canvas, displayAreas, middleIndex, endIndex, baselineY); in drawAxisLabelsBetweenStartIndexAndEndIndex()
560 int middleIndex1 = startIndex + round((endIndex - startIndex) / 3f); in drawAxisLabelsBetweenStartIndexAndEndIndex()
561 int middleIndex2 = startIndex + round((endIndex - startIndex) * 2 / 3f); in drawAxisLabelsBetweenStartIndexAndEndIndex()
564 || hasOverlap(displayAreas, middleIndex2, endIndex)) { in drawAxisLabelsBetweenStartIndexAndEndIndex()
576 canvas, displayAreas, middleIndex2, endIndex, baselineY); in drawAxisLabelsBetweenStartIndexAndEndIndex()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DMoreSuggestions.java103 private boolean fitInWidth(final int startIndex, final int endIndex, final int width) { in fitInWidth() argument
104 for (int index = startIndex; index < endIndex; index++) { in fitInWidth()
111 private int calcurateMaxRowWidth(final int startIndex, final int endIndex) { in calcurateMaxRowWidth() argument
117 while (index < endIndex && mRowNumbers[index] == row) { in calcurateMaxRowWidth()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DWallpaperOffsetInterpolator.java97 int endIndex = getNumPagesExcludingEmpty() - 1; in wallpaperOffsetForScroll() local
98 final int leftPageIndex = mIsRtl ? endIndex : 0; in wallpaperOffsetForScroll()
99 final int rightPageIndex = mIsRtl ? 0 : endIndex; in wallpaperOffsetForScroll()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DStringUtils.java248 final int startIndex, final int endIndex) { in toCodePointArray() argument
254 new int[Character.codePointCount(charSequence, startIndex, endIndex)]; in toCodePointArray()
255 copyCodePointsAndReturnCodePointCount(codePoints, charSequence, startIndex, endIndex, in toCodePointArray()
279 @Nonnull final CharSequence charSequence, final int startIndex, final int endIndex, in copyCodePointsAndReturnCodePointCount() argument
282 for (int index = startIndex; index < endIndex; in copyCodePointsAndReturnCodePointCount()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSpannableStringUtils.java124 final int startIndex, final int endIndex) { in hasUrlSpans() argument
131 final URLSpan[] spans = spanned.getSpans(startIndex - 1, endIndex + 1, URLSpan.class); in hasUrlSpans()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlWheel.java216 int endIndex; in getTouchIndicatorIndex() local
221 endIndex = mSecondLevelStartIndex - 1; in getTouchIndicatorIndex()
223 endIndex = getChildCount() - 1; in getTouchIndicatorIndex()
228 (delta <= (mChildRadians[endIndex] + halfTouchSectorRadians))) { in getTouchIndicatorIndex()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DApplicationQosPolicyRequestHandler.java491 int endIndex = Math.min(request.size(), MAX_POLICIES_PER_TRANSACTION); in divideRequestIntoBatches() local
492 while (startIndex < endIndex) { in divideRequestIntoBatches()
493 batches.add(request.subList(startIndex, endIndex)); in divideRequestIntoBatches()
495 endIndex = Math.min(request.size(), endIndex + MAX_POLICIES_PER_TRANSACTION); in divideRequestIntoBatches()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/provider/
DChreDiscoveryProvider.java392 int endIndex = element.hasValueLength() ? element.getValueLength() : in addDataElementsToPresenceDevice() local
401 element.getValue().substring(0, endIndex).toByteArray())); in addDataElementsToPresenceDevice()
408 element.getValue().substring(0, endIndex).toByteArray())); in addDataElementsToPresenceDevice()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureTrailDrawingPoints.java255 private void debugDrawPoints(final Canvas canvas, final int startIndex, final int endIndex, in debugDrawPoints() argument
263 for (int i = startIndex; i < endIndex; i++) { in debugDrawPoints()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduParser.java486 int endIndex = str.indexOf("/"); in parseHeaders() local
487 if (endIndex > 0) { in parseHeaders()
488 str = str.substring(0, endIndex); in parseHeaders()
568 int endIndex = str.indexOf("/"); in parseHeaders() local
569 if (endIndex > 0) { in parseHeaders()
570 str = str.substring(0, endIndex); in parseHeaders()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduParser.java460 int endIndex = str.indexOf("/"); in parseHeaders() local
461 if (endIndex > 0) { in parseHeaders()
462 str = str.substring(0, endIndex); in parseHeaders()
542 int endIndex = str.indexOf("/"); in parseHeaders() local
543 if (endIndex > 0) { in parseHeaders()
544 str = str.substring(0, endIndex); in parseHeaders()
/packages/apps/Car/DebuggingRestrictionController/libs/
Dokio-1.15.0.jarMETA-INF/ META-INF/MANIFEST.MF okio/ okio/AsyncTimeout$Watchdog. ...
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarAlarmManager.java369 final int endIndex = cursor.getColumnIndex(Instances.END); in scheduleNextAlarmLocked() local
393 final long endTime = cursor.getLong(endIndex); in scheduleNextAlarmLocked()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DLevenshteinDistance.kt133 override fun subSequence(startIndex: Int, endIndex: Int): String { in subSequence()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMessageNotificationState.java449 int endIndex = MAX_CHARACTERS_IN_GROUP_NAME; in truncateGroupMessageName() local
453 endIndex = i; in truncateGroupMessageName()
457 return conversationName.substring(0, endIndex) + '\u2026'; in truncateGroupMessageName()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputLogicTests.java500 int endIndex = mEditText.getText().length(); in testAutoCorrectByUserHistory() local
502 "qpmz ", mEditText.getText().subSequence(startIndex, endIndex).toString()); in testAutoCorrectByUserHistory()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.kt2176 val endIndex = endDay - firstDay in drawAllDayEvents() constant
2189 event.right = computeDayLeftPosition(endIndex + 1).toFloat() - DAY_GAP in drawAllDayEvents()
2197 incrementSkipCount(mSkippedAlldayEvents, startIndex, endIndex) in drawAllDayEvents()
2201 incrementSkipCount(mSkippedAlldayEvents, startIndex, endIndex) in drawAllDayEvents()
2247 private fun incrementSkipCount(counts: IntArray?, startIndex: Int, endIndex: Int) { in incrementSkipCount()
2248 if (counts == null || startIndex < 0 || endIndex > counts.size) { in incrementSkipCount()
2251 for (i in startIndex..endIndex) { in incrementSkipCount()
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java670 int endIndex = Math.min(endRow * mColumns, mCount); in paintDecoration() local
675 for (int i = startIndex; i < endIndex; i++) { in paintDecoration()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java810 final int endIndex = mIsRtl ? -1 : childCount; in getPageScrolls() local
820 for (int i = startIndex, childStart = scrollOffsetStart; i != endIndex; i += delta) { in getPageScrolls()

12