Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
DResizableIntArrayTests.java254 final int startPos = 0; in testAppend() local
255 dst.append(src, startPos, 0 /* length */); in testAppend()
258 assertIntArrayEquals("values after append zero", dstCopy.getPrimitiveArray(), startPos, in testAppend()
259 dst.getPrimitiveArray(), startPos, dstLength); in testAppend()
261 dst.append(src, startPos, srcLength); in testAppend()
266 assertIntArrayEquals("original values after append", dstCopy.getPrimitiveArray(), startPos, in testAppend()
267 dst.getPrimitiveArray(), startPos, dstLength); in testAppend()
268 assertIntArrayEquals("appended values after append", src.getPrimitiveArray(), startPos, in testAppend()
271 dst.append(src, startPos, srcLength); in testAppend()
277 dstCopy.getPrimitiveArray(), startPos, dst.getPrimitiveArray(), startPos, in testAppend()
[all …]
DInputPointersTests.java193 final int startPos = 0; in testAppend() local
195 startPos, 0 /* length */); in testAppend()
198 dstCopy.getXCoordinates(), startPos, dst.getXCoordinates(), startPos, dstLength); in testAppend()
200 dstCopy.getYCoordinates(), startPos, dst.getYCoordinates(), startPos, dstLength); in testAppend()
202 dstCopy.getPointerIds(), startPos, dst.getPointerIds(), startPos, dstLength); in testAppend()
204 dstCopy.getTimes(), startPos, dst.getTimes(), startPos, dstLength); in testAppend()
207 startPos, srcLength); in testAppend()
212 dstCopy.getXCoordinates(), startPos, dst.getXCoordinates(), startPos, dstLength); in testAppend()
214 dstCopy.getYCoordinates(), startPos, dst.getYCoordinates(), startPos, dstLength); in testAppend()
216 dstCopy.getPointerIds(), startPos, dst.getPointerIds(), startPos, dstLength); in testAppend()
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlParser.java701 int startPos = pos; in scanTag() local
733 X.assertTrue(pos > startPos); in scanTag()
751 X.assertTrue(pos > startPos); in scanTag()
845 private void addStartTag(HTML.Element element, final int startPos,
849 X.assertTrue(startPos < startAttributesPos);
854 String beforeAttrs = html.substring(startPos, startAttributesPos);
867 X.assertTrue(html.charAt(startPos) == '<');
869 String tagName = html.substring(startPos + 1, startAttributesPos);
911 private void addEndTag(HTML.Element element, final int startPos,
914 X.assertTrue(html.charAt(startPos) == '<');
[all …]
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DResizableIntArray.java118 public void append(@Nonnull final ResizableIntArray src, final int startPos, final int length) { in append() argument
125 System.arraycopy(src.mArray, startPos, mArray, currentLength, length); in append()
129 public void fill(final int value, final int startPos, final int length) { in fill() argument
130 if (startPos < 0 || length < 0) { in fill()
131 throw new IllegalArgumentException("startPos=" + startPos + "; length=" + length); in fill()
133 final int endPos = startPos + length; in fill()
135 Arrays.fill(mArray, startPos, endPos, value); in fill()
DInputPointers.java101 @Nonnull final ResizableIntArray yCoordinates, final int startPos, final int length) { in append() argument
105 mXCoordinates.append(xCoordinates, startPos, length); in append()
106 mYCoordinates.append(yCoordinates, startPos, length); in append()
108 mTimes.append(times, startPos, length); in append()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduParser.java844 int startPos = pduDataStream.available(); in parseParts() local
845 if (startPos <= 0) { in parseParts()
873 int partHeaderLen = headerLength - (startPos - endPos); in parseParts()
1360 int startPos = pduDataStream.available(); in parseContentTypeParams() local
1406 lastLen = length - (startPos - tempPos); in parseContentTypeParams()
1430 lastLen = length - (startPos - tempPos); in parseContentTypeParams()
1474 lastLen = length - (startPos - tempPos); in parseContentTypeParams()
1493 lastLen = length - (startPos - tempPos); in parseContentTypeParams()
1540 int startPos = pduDataStream.available(); in parseContentType() local
1564 int parameterLen = length - (startPos - endPos); in parseContentType()
[all …]
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduParser.java878 int startPos = pduDataStream.available(); in parseParts() local
879 if (startPos <= 0) { in parseParts()
907 int partHeaderLen = headerLength - (startPos - endPos); in parseParts()
1397 int startPos = pduDataStream.available(); in parseContentTypeParams() local
1443 lastLen = length - (startPos - tempPos); in parseContentTypeParams()
1467 lastLen = length - (startPos - tempPos); in parseContentTypeParams()
1511 lastLen = length - (startPos - tempPos); in parseContentTypeParams()
1530 lastLen = length - (startPos - tempPos); in parseContentTypeParams()
1577 int startPos = pduDataStream.available(); in parseContentType() local
1601 int parameterLen = length - (startPos - endPos); in parseContentType()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPagedView.java576 int startPos, endPos; in realTimeReorder() local
594 startPos = 0; in realTimeReorder()
597 startPos = pagePosE; in realTimeReorder()
612 startPos = mMaxItemsPerPage - 1; in realTimeReorder()
615 startPos = pagePosE; in realTimeReorder()
661 if ((endPos - startPos) * direction <= 0) { in realTimeReorder()
667 for (int i = startPos; i != endPos; i += direction) { in realTimeReorder()
/packages/apps/TV/tuner/src/com/android/tv/tuner/ts/
DTsParser.java129 int startPos = 0; in handleData() local
132 startPos = (data[0] & 0xff) + 1; in handleData()
139 startPos = 1; in handleData()
144 if (startPos >= data.length) { in handleData()
148 mPacket.append(data, startPos, data.length - startPos); in handleData()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputLogicTests.java672 final int startPos) { in typeOrGestureWordAndPutCursorInside() argument
673 final int END_OF_WORD = startPos + word.length(); in typeOrGestureWordAndPutCursorInside()
674 final int NEW_CURSOR_POSITION = startPos + word.length() / 2; in typeOrGestureWordAndPutCursorInside()
687 private void typeWordAndPutCursorInside(final String word, final int startPos) { in typeWordAndPutCursorInside() argument
688 typeOrGestureWordAndPutCursorInside(false /* gesture */, word, startPos); in typeWordAndPutCursorInside()
691 private void gestureWordAndPutCursorInside(final String word, final int startPos) { in gestureWordAndPutCursorInside() argument
692 typeOrGestureWordAndPutCursorInside(true /* gesture */, word, startPos); in gestureWordAndPutCursorInside()
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/
DTunerTsStreamer.java416 int startPos = (int) (pos % CIRCULAR_BUFFER_SIZE); in readAt() local
418 int firstLength = (startPos > endPos ? CIRCULAR_BUFFER_SIZE : endPos) - startPos; in readAt()
419 System.arraycopy(mCircularBuffer, startPos, buffer, offset, firstLength); in readAt()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp111 const int startPos = pos; in getCodePointsAndProbabilityAndReturnCodePointCount() local
122 if (ptNodePos == startPos) { in getCodePointsAndProbabilityAndReturnCodePointCount()
179 lastCandidatePtNodePos = startPos; in getCodePointsAndProbabilityAndReturnCodePointCount()
251 if (hasChildren) lastCandidatePtNodePos = startPos; in getCodePointsAndProbabilityAndReturnCodePointCount()
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
DSettingsDialog.java78 int startPos = intent.getIntExtra(EXTRA_START_POS, -1); in onCreate() local
80 Log.d(TAG, "startPos=" + startPos); in onCreate()
126 mPanelList.setSelectedPosition(startPos + 1); in onCreate()
/packages/apps/UnifiedEmail/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/apps/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java2939 int startPos = -1;
2942 return startPos;
2953 startPos = bodyLength - printableLength;
2957 startPos = bodyLength - signatureLength;
2959 return startPos;