Home
last modified time | relevance | path

Searched refs:startPos (Results 1 – 13 of 13) 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/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/modules/DnsResolver/
DExperimentsTest.cpp90 size_t startPos = title.size(); in expectDumpOutput() local
98 size_t pos = dumpString.find(flagDump, startPos); in expectDumpOutput()
100 startPos = pos + flagDump.size(); in expectDumpOutput()
102 EXPECT_EQ(startPos + 1, dumpString.size()); in expectDumpOutput()
103 EXPECT_EQ(dumpString.substr(startPos), "\n"); in expectDumpOutput()
/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.java515 int startPos, endPos; in realTimeReorder() local
533 startPos = 0; in realTimeReorder()
536 startPos = pagePosE; in realTimeReorder()
551 startPos = maxItemsPerPage - 1; in realTimeReorder()
554 startPos = pagePosE; in realTimeReorder()
600 if ((endPos - startPos) * direction <= 0) { in realTimeReorder()
606 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.java441 int startPos = (int) (pos % CIRCULAR_BUFFER_SIZE); in readAt() local
443 int firstLength = (startPos > endPos ? CIRCULAR_BUFFER_SIZE : endPos) - startPos; in readAt()
444 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()