Searched refs:startIndex (Results 1 - 25 of 35) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DGestureTrailDrawingPoints.java178 int startIndex;
179 for (startIndex = mTrailStartIndex; startIndex < trailSize; startIndex++) {
180 final int elapsedTime = sinceDown - eventTimes[startIndex];
186 mTrailStartIndex = startIndex;
188 if (startIndex < trailSize) {
192 int p1x = getXCoordValue(xCoords[startIndex]);
193 int p1y = yCoords[startIndex];
194 final int lastTime = sinceDown - eventTimes[startIndex];
255 debugDrawPoints(final Canvas canvas, final int startIndex, final int endIndex, final Paint paint) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DContactsDictionaryUtils.java29 * Returns the index of the last letter in the word, starting from position startIndex.
32 final int startIndex) {
35 for (end = startIndex + 1; end < len; end += Character.charCount(cp)) {
31 getWordEndPosition(final String string, final int len, final int startIndex) argument
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DSearchUtil.java28 public int startIndex = -1; field in class:SearchUtil.MatchedLine
35 ", startIndex=" + startIndex +
46 * @return A MatchedLine object containing the matching line and the startIndex of the substring
72 matched.startIndex = index - (start + 1);
131 * @param startIndex The index to start searching. 0 based indexing.
135 static int findNextTokenStart(String line, int startIndex) { argument
136 int index = startIndex;
/packages/inputmethods/LatinIME/native/jni/src/utils/
H A Dint_array_view.h145 size_t startIndex = 0;
148 result.emplace_back(mPtr + startIndex, i - startIndex);
149 startIndex = i + 1;
155 result.emplace_back(mPtr + startIndex, mSize - startIndex);
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
H A DSearchUtilTest.java35 assertEquals(5, matched.startIndex);
40 assertEquals(0, matched.startIndex);
45 assertEquals(0, matched.startIndex);
50 assertEquals(9, matched.startIndex);
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DIndicatorControlWheel.java208 int startIndex = (mCurrentLevel == 0) ? 0 : mSecondLevelStartIndex;
213 if (mZoomControl != null) startIndex++;
220 if ((delta >= (mChildRadians[startIndex] - halfTouchSectorRadians)) &&
224 index = (int) ((delta - mChildRadians[startIndex])
227 if (index > sectors) return (startIndex + sectors);
229 if (index < 0) return startIndex;
231 if (delta <= (mChildRadians[startIndex + index]
233 return (startIndex + index);
235 if (delta >= (mChildRadians[startIndex + index + 1]
237 return (startIndex
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DPlainTextEditText.java57 final int startIndex = selectionStart - 1;
60 if (pasteStringLength == 1 && text.charAt(startIndex) == OBJECT_UNICODE) {
/packages/apps/Calendar/src/com/android/calendar/event/
H A DAttendeesView.java290 final int startIndex = 0;
293 addView(mDividerForYes, startIndex);
297 index = startIndex + mYes;
301 final int startIndex = (mYes == 0 ? 0 : 1 + mYes);
304 addView(mDividerForNo, startIndex);
308 index = startIndex + mNo;
312 final int startIndex = (mYes == 0 ? 0 : 1 + mYes) + (mNo == 0 ? 0 : 1 + mNo);
315 addView(mDividerForMaybe, startIndex);
319 index = startIndex + mMaybe;
323 final int startIndex
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DHtmlUtils.java160 final int start = lastSeen.startIndex;
171 final int start = wrapper.startIndex;
217 final int startIndex; field in class:HtmlUtils.SpannedConverter.TagWrapper
219 TagWrapper(HtmlDocument.Tag tag, int startIndex) { argument
221 this.startIndex = startIndex;
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DMediaSet.java202 protected int enumerateMediaItems(ItemConsumer consumer, int startIndex) { argument
210 consumer.consume(startIndex + start + i, item);
220 ItemConsumer consumer, int startIndex) {
222 start += enumerateMediaItems(consumer, startIndex);
226 consumer, startIndex + start);
219 enumerateTotalMediaItems( ItemConsumer consumer, int startIndex) argument
H A DClusterAlbum.java98 protected int enumerateMediaItems(ItemConsumer consumer, int startIndex) { argument
99 mDataManager.mapMediaItems(mPaths, consumer, startIndex);
H A DDataManager.java216 // startIndex).
218 int startIndex) {
232 group.add(new PathId(path, i + startIndex));
217 mapMediaItems(ArrayList<Path> list, ItemConsumer consumer, int startIndex) argument
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
H A DBaseActionFragment.java117 int startIndex = mFragment.getArguments().getInt(EXTRA_INDEX, -1);
118 if (startIndex != -1) {
121 mIndexToSelect = startIndex;
H A DDialogActivity.java156 int startIndex) {
164 intent.putExtra(EXTRA_DIALOG_ACTIONS_START_INDEX, startIndex);
153 createIntent(Context context, String title, String breadcrumb, String description, String imageUri, int imageBackground, ArrayList<Action> actions, Class<? extends DialogActivity> activityClass, int startIndex) argument
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dproximity_info.cpp112 const int startIndex = ProximityInfoUtils::getStartIndexFromCoordinates(x, y, local
115 AKLOGI("hasSpaceProximity: index %d, %d, %d", startIndex, x, y);
120 AKLOGI("Index: %d", mProximityCharsArray[startIndex + i]);
122 if (proximityCharsArray[startIndex + i] == KEYCODE_SPACE) {
H A Dproximity_info_utils.h158 const int startIndex = getStartIndexFromCoordinates(x, y, cellHeight, cellWidth, gridWidth); local
159 if (startIndex >= 0) {
161 const int c = proximityCharsArray[startIndex + i];
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DSpannableStringUtils.java124 final int startIndex, final int endIndex) {
130 // trick, and works in all cases even if startIndex <= 0 or endIndex >= text.length().
131 final URLSpan[] spans = spanned.getSpans(startIndex - 1, endIndex + 1, URLSpan.class);
123 hasUrlSpans(final CharSequence text, final int startIndex, final int endIndex) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
H A DMoreSuggestions.java103 private boolean fitInWidth(final int startIndex, final int endIndex, final int width) { argument
104 for (int index = startIndex; index < endIndex; index++) {
111 private int calcurateMaxRowWidth(final int startIndex, final int endIndex) { argument
113 int index = startIndex;
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
H A DStringUtils.java242 * @param startIndex the start index inside the string in java chars, inclusive.
244 * @return a new array of code points. At most endIndex - startIndex, but possibly less.
248 final int startIndex, final int endIndex) {
254 new int[Character.codePointCount(charSequence, startIndex, endIndex)];
255 copyCodePointsAndReturnCodePointCount(codePoints, charSequence, startIndex, endIndex,
273 * @param startIndex the start index inside the string in java chars, inclusive.
279 @Nonnull final CharSequence charSequence, final int startIndex, final int endIndex,
282 for (int index = startIndex; index < endIndex;
247 toCodePointArray(@onnull final CharSequence charSequence, final int startIndex, final int endIndex) argument
278 copyCodePointsAndReturnCodePointCount(@onnull final int[] destination, @Nonnull final CharSequence charSequence, final int startIndex, final int endIndex, final boolean downCase) argument
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DSendersView.java220 int startIndex = sb.length();
225 startIndex, sb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
228 startIndex = sb.length();
230 sb.setSpan(span, startIndex, sb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
/packages/apps/UnifiedEmail/assets/
H A Dscript.js716 function replaceSuperCollapsedBlock(startIndex) {
719 block = document.querySelector(".mail-super-collapsed-block[index='" + startIndex + "']");
721 console.log("can't expand super collapsed block at index: " + startIndex);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DPagedView.java655 final int startIndex = isRtl ? childCount - 1 : 0;
658 int childLeft = getRelativeChildOffset(startIndex);
659 for (int i = startIndex; i != endIndex; i += delta) {
746 final int startIndex = isRtl ? getChildCount() - 1 : 0;
749 int offset = getRelativeChildOffset(startIndex);
750 for (int i = startIndex; i != endIndex; i += delta) {
1453 final int startIndex = isRtl ? childCount - 1 : 0;
1456 for (int i = startIndex; i != endIndex; i += delta) {
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DEvaluator.java818 int startIndex = Math.max(endIndex + deficit - maxDigs, 0);
819 truncated[0] = (startIndex > getMsdIndex());
820 String result = mResultString.substring(startIndex, endIndex);
/packages/inputmethods/LatinIME/native/jni/
H A Dcom_android_inputmethod_latin_BinaryDictionary.cpp457 jlong dict, jobjectArray inputEvents, jint startIndex) {
463 if (inputEventCount == 0 || startIndex >= inputEventCount) {
479 for (int i = startIndex; i < inputEventCount; ++i) {
456 latinime_BinaryDictionary_updateEntriesForInputEvents(JNIEnv *env, jclass clazz, jlong dict, jobjectArray inputEvents, jint startIndex) argument
/packages/apps/Calendar/src/com/android/calendar/
H A DDayView.java2319 int startIndex = -1;
2324 startIndex = 0;
2327 startIndex = todayIndex + 1;
2330 if (startIndex >= 0) {
2334 r.left = computeDayLeftPosition(startIndex) + 1;
2930 int startIndex = startDay - firstDay;
2942 event.left = computeDayLeftPosition(startIndex);
2951 incrementSkipCount(mSkippedAlldayEvents, startIndex, endIndex);
2955 incrementSkipCount(mSkippedAlldayEvents, startIndex, endIndex);
3001 private void incrementSkipCount(int[] counts, int startIndex, in argument
[all...]

Completed in 1068 milliseconds

12