Home
last modified time | relevance | path

Searched refs:startPos (Results 1 – 12 of 12) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DResizableIntArrayTests.java257 final int startPos = srcLen / 3; in testFill() local
259 final int endPos = startPos + length; in testFill()
260 assertTrue(startPos >= 1); in testFill()
269 src.fill(value, startPos, -1); in testFill()
275 src.fill(value, startPos, length); in testFill()
280 if (i >= startPos && i < endPos) { in testFill()
287 final int length2 = srcLen * 2 - startPos; in testFill()
288 final int largeEnd = startPos + length2; in testFill()
291 src.fill(value2, startPos, length2); in testFill()
296 if (i >= startPos && i < largeEnd) { in testFill()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DInputPointers.java76 void append(InputPointers src, int startPos, int length) { in append() argument
80 mXCoordinates.append(src.mXCoordinates, startPos, length); in append()
81 mYCoordinates.append(src.mYCoordinates, startPos, length); in append()
82 mPointerIds.append(src.mPointerIds, startPos, length); in append()
83 mTimes.append(src.mTimes, startPos, length); in append()
97 ResizableIntArray yCoordinates, int startPos, int length) { in append() argument
101 mXCoordinates.append(xCoordinates, startPos, length); in append()
102 mYCoordinates.append(yCoordinates, startPos, length); in append()
104 mTimes.append(times, startPos, length); in append()
DResizableIntArray.java112 public void append(final ResizableIntArray src, final int startPos, final int length) { in append() argument
119 System.arraycopy(src.mArray, startPos, mArray, currentLength, length); in append()
123 public void fill(final int value, final int startPos, final int length) { in fill() argument
124 if (startPos < 0 || length < 0) { in fill()
125 throw new IllegalArgumentException("startPos=" + startPos + "; length=" + length); in fill()
127 final int endPos = startPos + length; in fill()
129 Arrays.fill(mArray, startPos, endPos, value); in fill()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java1910 int startPos = 0; in findNanpPhoneNumbers() local
1920 while (startPos < endPos) { in findNanpPhoneNumbers()
1922 while (Character.isWhitespace(text.charAt(startPos)) && startPos < endPos) { in findNanpPhoneNumbers()
1923 startPos++; in findNanpPhoneNumbers()
1925 if (startPos == endPos) { in findNanpPhoneNumbers()
1930 int matchEnd = findNanpMatchEnd(text, startPos); in findNanpPhoneNumbers()
1931 if (matchEnd > startPos) { in findNanpPhoneNumbers()
1932 list.add(startPos); in findNanpPhoneNumbers()
1934 startPos = matchEnd; // skip past match in findNanpPhoneNumbers()
1937 while (!Character.isWhitespace(text.charAt(startPos)) && startPos < endPos) { in findNanpPhoneNumbers()
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DSearchActivity.java103 int startPos = 0; in onLayout() local
109 startPos = m.start(); in onLayout()
122 snippetString = mFullText.substring(startPos, startPos + searchStringLength); in onLayout()
135 int newstart = Math.max(0, startPos - offset); in onLayout()
136 int newend = Math.min(bodyLength, startPos + searchStringLength + offset); in onLayout()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DMoreSuggestions.java103 private boolean fitInWidth(final int startPos, final int endPos, final int width) { in fitInWidth() argument
104 for (int pos = startPos; pos < endPos; pos++) { in fitInWidth()
111 private int calcurateMaxRowWidth(final int startPos, final int endPos) { in calcurateMaxRowWidth() argument
113 int pos = startPos; in calcurateMaxRowWidth()
/packages/apps/Browser/src/com/android/browser/
DTitleBar.java189 float startPos = (-getEmbeddedHeight() + visibleHeight); in show() local
191 startPos = Math.max(startPos, getTranslationY()); in show()
195 startPos, 0); in show()
/packages/inputmethods/LatinIME/native/jni/src/
Dunigram_dictionary.cpp693 const uint8_t *const root, const int startPos, const int *const inWord, in testCharGroupForContinuedLikeness() argument
697 int pos = startPos; in testCharGroupForContinuedLikeness()
754 int startPos = 0; in getMostProbableWordLikeInner() local
755 stackChildCount[0] = BinaryFormat::getGroupCountAndForwardPointer(root, &startPos); in getMostProbableWordLikeInner()
757 stackSiblingPos[0] = startPos; in getMostProbableWordLikeInner()
Dbinary_format.h569 const int startPos = pos; in getWordAtAddress() local
572 if (address == startPos) { in getWordAtAddress()
617 lastCandidateGroupPos = startPos; in getWordAtAddress()
667 if (hasChildren) lastCandidateGroupPos = startPos; in getWordAtAddress()
Dunigram_dictionary.h106 const bool hasAutoCorrectionCandidate, const int startPos, const int startWordIndex,
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DTextUtilities.java344 /*package*/ static int findTagEnd(String htmlText, String tag, int startPos) { in findTagEnd() argument
350 for (int i = startPos; i < length; i++) { in findTagEnd()
361 return htmlText.indexOf("/" + tag, startPos); in findTagEnd()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DPinyinIME.java699 int startPos = 0; in tryInputRawUnicode() local
703 startPos = 2; in tryInputRawUnicode()
706 digitStr = digitStr.substring(startPos); in tryInputRawUnicode()