Home
last modified time | relevance | path

Searched refs:startIndex (Results 1 – 25 of 38) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureTrailDrawingPoints.java178 int startIndex; in drawGestureTrailLocked() local
179 for (startIndex = mTrailStartIndex; startIndex < trailSize; startIndex++) { in drawGestureTrailLocked()
180 final int elapsedTime = sinceDown - eventTimes[startIndex]; in drawGestureTrailLocked()
186 mTrailStartIndex = startIndex; in drawGestureTrailLocked()
188 if (startIndex < trailSize) { in drawGestureTrailLocked()
192 int p1x = getXCoordValue(xCoords[startIndex]); in drawGestureTrailLocked()
193 int p1y = yCoords[startIndex]; in drawGestureTrailLocked()
194 final int lastTime = sinceDown - eventTimes[startIndex]; in drawGestureTrailLocked()
196 for (int i = startIndex + 1; i < trailSize; i++) { in drawGestureTrailLocked()
226 debugDrawPoints(canvas, startIndex, trailSize, paint); in drawGestureTrailLocked()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlWheel.java208 int startIndex = (mCurrentLevel == 0) ? 0 : mSecondLevelStartIndex; in getTouchIndicatorIndex() local
213 if (mZoomControl != null) startIndex++; in getTouchIndicatorIndex()
220 if ((delta >= (mChildRadians[startIndex] - halfTouchSectorRadians)) && in getTouchIndicatorIndex()
224 index = (int) ((delta - mChildRadians[startIndex]) in getTouchIndicatorIndex()
227 if (index > sectors) return (startIndex + sectors); in getTouchIndicatorIndex()
229 if (index < 0) return startIndex; in getTouchIndicatorIndex()
231 if (delta <= (mChildRadians[startIndex + index] in getTouchIndicatorIndex()
233 return (startIndex + index); in getTouchIndicatorIndex()
235 if (delta >= (mChildRadians[startIndex + index + 1] in getTouchIndicatorIndex()
237 return (startIndex + index + 1); in getTouchIndicatorIndex()
[all …]
/packages/apps/PhoneCommon/src/com/android/phone/common/compat/
DPathInterpolatorCompat.java80 int startIndex = 0; in getInterpolation() local
82 while (endIndex - startIndex > 1) { in getInterpolation()
83 int midIndex = (startIndex + endIndex) / 2; in getInterpolation()
87 startIndex = midIndex; in getInterpolation()
91 final float xRange = mX[endIndex] - mX[startIndex]; in getInterpolation()
93 return mY[startIndex]; in getInterpolation()
96 final float tInRange = t - mX[startIndex]; in getInterpolation()
99 final float startY = mY[startIndex]; in getInterpolation()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Dint_array_view.h145 size_t startIndex = 0; variable
148 result.emplace_back(mPtr + startIndex, i - startIndex);
149 startIndex = i + 1;
155 result.emplace_back(mPtr + startIndex, mSize - startIndex);
/packages/apps/Dialer/java/com/android/contacts/common/util/
DSearchUtil.java55 matched.startIndex = index - (start + 1); in findMatchingLine()
118 static int findNextTokenStart(String line, int startIndex) { in findNextTokenStart() argument
119 int index = startIndex; in findNextTokenStart()
190 public int startIndex = -1; field in SearchUtil.MatchedLine
195 return "MatchedLine{" + "line='" + line + '\'' + ", startIndex=" + startIndex + '}'; in toString()
/packages/apps/Contacts/src/com/android/contacts/util/
DSearchUtil.java28 public int startIndex = -1; field in SearchUtil.MatchedLine
35 ", startIndex=" + startIndex + in toString()
72 matched.startIndex = index - (start + 1); in findMatchingLine()
135 static int findNextTokenStart(String line, int startIndex) { in findNextTokenStart() argument
136 int index = startIndex; in findNextTokenStart()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DHtmlUtils.java160 final int start = lastSeen.startIndex; in handleEnd()
171 final int start = wrapper.startIndex; in handleFont()
217 final int startIndex; field in HtmlUtils.SpannedConverter.TagWrapper
219 TagWrapper(HtmlDocument.Tag tag, int startIndex) { in TagWrapper() argument
221 this.startIndex = startIndex; in TagWrapper()
/packages/apps/Contacts/tests/src/com/android/contacts/util/
DSearchUtilTest.java35 assertEquals(5, matched.startIndex); in testFindMatchingLine()
40 assertEquals(0, matched.startIndex); in testFindMatchingLine()
45 assertEquals(0, matched.startIndex); in testFindMatchingLine()
50 assertEquals(9, matched.startIndex); in testFindMatchingLine()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMediaSet.java202 protected int enumerateMediaItems(ItemConsumer consumer, int startIndex) { in enumerateMediaItems() argument
210 consumer.consume(startIndex + start + i, item); in enumerateMediaItems()
220 ItemConsumer consumer, int startIndex) { in enumerateTotalMediaItems() argument
222 start += enumerateMediaItems(consumer, startIndex); in enumerateTotalMediaItems()
226 consumer, startIndex + start); in enumerateTotalMediaItems()
DClusterAlbum.java98 protected int enumerateMediaItems(ItemConsumer consumer, int startIndex) { in enumerateMediaItems() argument
99 mDataManager.mapMediaItems(mPaths, consumer, startIndex); in enumerateMediaItems()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DUriUtils.java250 int startIndex) { in getSubactionDialogUri() argument
251 return getSubactionDialogUri(uri, dialogTitle, dialogDescription, null, startIndex); in getSubactionDialogUri()
284 String startName, int startIndex) { in getSubactionDialogUri() argument
299 if (startIndex != -1) { in getSubactionDialogUri()
301 Integer.toString(startIndex)); in getSubactionDialogUri()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/preferences/
DWifiWakeupTogglePreferenceController.java126 int startIndex = locationText.toString().indexOf(highlightedWord); in getNoLocationSummary() local
127 if (startIndex < 0) { in getNoLocationSummary()
131 msg.setSpan(new URLSpan((String) null), startIndex, startIndex + highlightedWord.length(), in getNoLocationSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DDonutView.java244 int startIndex = percentString.indexOf(percentageSignString); in getPercentageStringSpannable() local
245 int endIndex = startIndex + percentageSignString.length(); in getPercentageStringSpannable()
248 if (startIndex < 0) { in getPercentageStringSpannable()
249 startIndex = 0; in getPercentageStringSpannable()
255 startIndex, in getPercentageStringSpannable()
/packages/apps/Settings/src/com/android/settings/widget/
DDonutView.java244 int startIndex = percentString.indexOf(percentageSignString); in getPercentageStringSpannable() local
245 int endIndex = startIndex + percentageSignString.length(); in getPercentageStringSpannable()
248 if (startIndex < 0) { in getPercentageStringSpannable()
249 startIndex = 0; in getPercentageStringSpannable()
255 startIndex, in getPercentageStringSpannable()
/packages/apps/SecureElement/src/com/android/se/security/gpac/
DBerTlv.java70 public static BerTlv decode(byte[] data, int startIndex) throws ParserException { in decode() argument
71 return BerTlv.decode(data, startIndex, true); in decode()
75 public static BerTlv decode(byte[] data, int startIndex, boolean containsAllData) in decode() argument
82 int curIndex = startIndex; in decode()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info.cpp112 const int startIndex = ProximityInfoUtils::getStartIndexFromCoordinates(x, y, in hasSpaceProximity() local
115 AKLOGI("hasSpaceProximity: index %d, %d, %d", startIndex, x, y); in hasSpaceProximity()
120 AKLOGI("Index: %d", mProximityCharsArray[startIndex + i]); in hasSpaceProximity()
122 if (proximityCharsArray[startIndex + i] == KEYCODE_SPACE) { in hasSpaceProximity()
Dproximity_info_utils.h158 const int startIndex = getStartIndexFromCoordinates(x, y, cellHeight, cellWidth, gridWidth); in calculateProximities() local
159 if (startIndex >= 0) { in calculateProximities()
161 const int c = proximityCharsArray[startIndex + i]; in calculateProximities()
/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
113 int index = startIndex; in calcurateMaxRowWidth()
/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/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DBaseActionFragment.java117 int startIndex = mFragment.getArguments().getInt(EXTRA_INDEX, -1); in onCreate() local
118 if (startIndex != -1) { in onCreate()
121 mIndexToSelect = startIndex; in onCreate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DContactsDictionaryUtils.java32 final int startIndex) { in getWordEndPosition() argument
35 for (end = startIndex + 1; end < len; end += Character.charCount(cp)) { in getWordEndPosition()
/packages/apps/Messaging/src/com/android/messaging/ui/
DPlainTextEditText.java57 final int startIndex = selectionStart - 1; in onTextContextMenuItem() local
60 if (pasteStringLength == 1 && text.charAt(startIndex) == OBJECT_UNICODE) { in onTextContextMenuItem()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DSendersView.java220 int startIndex = sb.length(); in appendMessageInfo() local
225 startIndex, sb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in appendMessageInfo()
228 startIndex = sb.length(); in appendMessageInfo()
230 sb.setSpan(span, startIndex, sb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in appendMessageInfo()
/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/Calendar/src/com/android/calendar/
DDayView.java2047 int startIndex = -1; in drawAllDayHighlights() local
2052 startIndex = 0; in drawAllDayHighlights()
2055 startIndex = todayIndex + 1; in drawAllDayHighlights()
2058 if (startIndex >= 0) { in drawAllDayHighlights()
2062 r.left = computeDayLeftPosition(startIndex) + 1; in drawAllDayHighlights()
2561 int startIndex = startDay - firstDay; in drawAllDayEvents() local
2573 event.left = computeDayLeftPosition(startIndex); in drawAllDayEvents()
2582 incrementSkipCount(mSkippedAlldayEvents, startIndex, endIndex); in drawAllDayEvents()
2586 incrementSkipCount(mSkippedAlldayEvents, startIndex, endIndex); in drawAllDayEvents()
2632 private void incrementSkipCount(int[] counts, int startIndex, int endIndex) { in incrementSkipCount() argument
[all …]

12