Home
last modified time | relevance | path

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

123

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DWspTypeDecoder.java224 public boolean decodeTextString(int startIndex) { in decodeTextString() argument
225 int index = startIndex; in decodeTextString()
229 mDataLength = index - startIndex + 1; in decodeTextString()
230 if (mWspData[startIndex] == 127) { in decodeTextString()
231 mStringValue = new String(mWspData, startIndex + 1, mDataLength - 2); in decodeTextString()
233 mStringValue = new String(mWspData, startIndex, mDataLength - 1); in decodeTextString()
247 public boolean decodeTokenText(int startIndex) { in decodeTokenText() argument
248 int index = startIndex; in decodeTokenText()
252 mDataLength = index - startIndex + 1; in decodeTokenText()
253 mStringValue = new String(mWspData, startIndex, mDataLength - 1); in decodeTokenText()
[all …]
DIntRangeManager.java214 for (int startIndex = 0; startIndex < len; startIndex++) { in enableRange()
215 IntRange range = mRanges.get(startIndex); in enableRange()
228 if ((startIndex + 1) < len) { in enableRange()
229 nextRange = mRanges.get(startIndex + 1); in enableRange()
266 mRanges.add(startIndex, new IntRange(startId, endId, client)); in enableRange()
283 for (int endIndex = startIndex+1; endIndex < len; endIndex++) { in enableRange()
298 int joinIndex = startIndex + 1; in enableRange()
323 int joinIndex = startIndex + 1; in enableRange()
348 int joinIndex = startIndex + 1; in enableRange()
370 int endIndex = startIndex; in enableRange()
[all …]
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/misc/
DFreePathInterpolator.java99 int startIndex = 0; in getInterpolation() local
104 return mY[startIndex]; in getInterpolation()
110 while (endIndex - startIndex > 1) { in getInterpolation()
111 int midIndex = (startIndex + endIndex) / 2; in getInterpolation()
115 startIndex = midIndex; in getInterpolation()
119 float xRange = mX[endIndex] - mX[startIndex]; in getInterpolation()
121 return mY[startIndex]; in getInterpolation()
124 float tInRange = t - mX[startIndex]; in getInterpolation()
127 float startY = mY[startIndex]; in getInterpolation()
138 int startIndex = 0; in getX() local
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DComprehensionTlv.java93 public static List<ComprehensionTlv> decodeMany(byte[] data, int startIndex) in decodeMany() argument
97 while (startIndex < endIndex) { in decodeMany()
98 ComprehensionTlv ctlv = ComprehensionTlv.decode(data, startIndex); in decodeMany()
101 startIndex = ctlv.mValueIndex + ctlv.mLength; in decodeMany()
119 public static ComprehensionTlv decode(byte[] data, int startIndex) in decode() argument
121 int curIndex = startIndex; in decode()
134 ", startIndex=" + startIndex + " curIndex=" + curIndex + in decode()
166 " startIndex=" + startIndex + " curIndex=" + curIndex + in decode()
177 " startIndex=" + startIndex + " curIndex=" + curIndex + in decode()
189 " startIndex=" + startIndex + " curIndex=" + curIndex + in decode()
[all …]
/frameworks/base/libs/hwui/
DInterpolator.cpp105 size_t startIndex = 0; in interpolate() local
108 while (endIndex > startIndex + 1) { in interpolate()
109 int midIndex = (startIndex + endIndex) / 2; in interpolate()
113 startIndex = midIndex; in interpolate()
117 float xRange = mX[endIndex] - mX[startIndex]; in interpolate()
119 return mY[startIndex]; in interpolate()
122 float tInRange = t - mX[startIndex]; in interpolate()
125 float startY = mY[startIndex]; in interpolate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPathInterpolatorBuilder.java127 int startIndex = 0; in getInterpolation() local
130 while (endIndex - startIndex > 1) { in getInterpolation()
131 int midIndex = (startIndex + endIndex) / 2; in getInterpolation()
135 startIndex = midIndex; in getInterpolation()
139 float xRange = mX[endIndex] - mX[startIndex]; in getInterpolation()
141 return mY[startIndex]; in getInterpolation()
144 float tInRange = t - mX[startIndex]; in getInterpolation()
147 float startY = mY[startIndex]; in getInterpolation()
/frameworks/base/core/tests/coretests/src/android/util/
DSparseLongArrayTest.java60 private void assertRemoved(int startIndex, int endIndex) { in assertRemoved() argument
62 if (i >= startIndex && i <= endIndex) { in assertRemoved()
147 final int startIndex = 101; in testRemoveAtRange_compareRemoveAt() local
149 mSparseLongArray.removeAtRange(startIndex, endIndex - startIndex + 1); in testRemoveAtRange_compareRemoveAt()
150 for (int i = endIndex; i >= startIndex; i--) { in testRemoveAtRange_compareRemoveAt()
153 assertEquals(TEST_SIZE - (endIndex - startIndex + 1), mSparseLongArray.size()); in testRemoveAtRange_compareRemoveAt()
154 assertRemoved(startIndex, endIndex); in testRemoveAtRange_compareRemoveAt()
/frameworks/base/core/java/android/view/textclassifier/
DTextSelection.java52 int startIndex, int endIndex, Map<String, Float> entityConfidence, String id, in TextSelection() argument
54 mStartIndex = startIndex; in TextSelection()
150 public Builder(@IntRange(from = 0) int startIndex, @IntRange(from = 0) int endIndex) { in Builder()
151 Preconditions.checkArgument(startIndex >= 0); in Builder()
152 Preconditions.checkArgument(endIndex > startIndex); in Builder()
153 mStartIndex = startIndex; in Builder()
221 int startIndex, in Request() argument
227 mStartIndex = startIndex; in Request()
347 @IntRange(from = 0) int startIndex, in Builder()
349 Utils.checkArgument(text, startIndex, endIndex); in Builder()
[all …]
DTextClassification.java561 int startIndex,
567 mStartIndex = startIndex;
686 @IntRange(from = 0) int startIndex,
688 Utils.checkArgument(text, startIndex, endIndex);
690 mStartIndex = startIndex;
761 final int startIndex = in.readInt();
771 final Request request = new Request(text, startIndex, endIndex,
/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.cpp76 int32_t startIndex) { in fillWrappingBuffer() argument
81 uint8_t *source = &mStorage[convertFramesToBytes(startIndex)]; in fillWrappingBuffer()
83 if ((startIndex + framesAvailable) > capacity) { in fillWrappingBuffer()
85 fifo_frames_t firstFrames = capacity - startIndex; in fillWrappingBuffer()
103 fifo_frames_t startIndex = mFifo->getReadIndex(); in getFullDataAvailable() local
104 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex); in getFullDataAvailable()
112 fifo_frames_t startIndex = mFifo->getWriteIndex(); in getEmptyRoomAvailable() local
113 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex); in getEmptyRoomAvailable()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassifierTest.java85 int startIndex = text.indexOf(selected); in testSuggestSelection() local
86 int endIndex = startIndex + selected.length(); in testSuggestSelection()
90 text, startIndex, endIndex) in testSuggestSelection()
106 int startIndex = text.indexOf(selected); in testSuggestSelection_url() local
107 int endIndex = startIndex + selected.length(); in testSuggestSelection_url()
111 text, startIndex, endIndex) in testSuggestSelection_url()
126 int startIndex = text.indexOf(selected); in testSmartSelection_withEmoji() local
127 int endIndex = startIndex + selected.length(); in testSmartSelection_withEmoji()
129 text, startIndex, endIndex) in testSmartSelection_withEmoji()
135 isTextSelection(startIndex, endIndex, NO_TYPE)); in testSmartSelection_withEmoji()
[all …]
DTextClassificationManagerTest.java84 int startIndex = text.indexOf(classifiedText); in testCannotResolveIntent() local
85 int endIndex = startIndex + classifiedText.length(); in testCannotResolveIntent()
87 text, startIndex, endIndex) in testCannotResolveIntent()
DTextSelectionTest.java45 final int startIndex = 13; in testParcel() local
48 final TextSelection reference = new TextSelection.Builder(startIndex, endIndex) in testParcel()
62 assertEquals(startIndex, result.getSelectionStartIndex()); in testParcel()
/frameworks/base/core/java/com/android/internal/alsa/
DLineTokenizer.java32 int nextToken(String line, int startIndex) { in nextToken() argument
34 int offset = startIndex; in nextToken()
45 int nextDelimiter(String line, int startIndex) { in nextDelimiter() argument
47 int offset = startIndex; in nextDelimiter()
/frameworks/base/core/java/android/view/animation/
DPathInterpolator.java212 int startIndex = 0; in getInterpolation() local
215 while (endIndex - startIndex > 1) { in getInterpolation()
216 int midIndex = (startIndex + endIndex) / 2; in getInterpolation()
220 startIndex = midIndex; in getInterpolation()
224 float xRange = mX[endIndex] - mX[startIndex]; in getInterpolation()
226 return mY[startIndex]; in getInterpolation()
229 float tInRange = t - mX[startIndex]; in getInterpolation()
232 float startY = mY[startIndex]; in getInterpolation()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewActions.java191 public static ViewAction longPressAndDragOnText(int startIndex, int endIndex) { in longPressAndDragOnText() argument
195 new TextCoordinates(startIndex), in longPressAndDragOnText()
213 public static ViewAction doubleTapAndDragOnText(int startIndex, int endIndex) { in doubleTapAndDragOnText() argument
217 new TextCoordinates(startIndex), in doubleTapAndDragOnText()
235 public static ViewAction mouseDragOnText(int startIndex, int endIndex) { in mouseDragOnText() argument
239 new TextCoordinates(startIndex), in mouseDragOnText()
257 public static ViewAction mouseDoubleClickAndDragOnText(int startIndex, int endIndex) { in mouseDoubleClickAndDragOnText() argument
261 new TextCoordinates(startIndex), in mouseDoubleClickAndDragOnText()
279 public static ViewAction mouseLongClickAndDragOnText(int startIndex, int endIndex) { in mouseLongClickAndDragOnText() argument
283 new TextCoordinates(startIndex), in mouseLongClickAndDragOnText()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DCallbackRegistry.java175 final int startIndex = (remainderIndex + 1) * Long.SIZE; in notifyRemainderLocked() local
176 final int endIndex = Math.min(mCallbacks.size(), startIndex + Long.SIZE); in notifyRemainderLocked()
178 notifyCallbacksLocked(sender, arg, arg2, startIndex, endIndex, bits); in notifyRemainderLocked()
199 private void notifyCallbacksLocked(T sender, int arg, A arg2, final int startIndex, in notifyCallbacksLocked() argument
202 for (int i = startIndex; i < endIndex; i++) { in notifyCallbacksLocked()
257 private void removeRemovedCallbacks(int startIndex, long removed) { in removeRemovedCallbacks() argument
259 final int endIndex = startIndex + Long.SIZE; in removeRemovedCallbacks()
262 for (int i = endIndex - 1; i >= startIndex; i--) { in removeRemovedCallbacks()
/frameworks/base/core/java/com/android/internal/os/
DKernelWakelockReader.java228 int startIndex; in parseProcWakelocks() local
234 startIndex = endIndex = i + 1; in parseProcWakelocks()
238 for (endIndex=startIndex; in parseProcWakelocks()
252 for (int j = startIndex; j < endIndex; j++) { in parseProcWakelocks()
255 boolean parsed = Process.parseProcLine(wlBuffer, startIndex, endIndex, in parseProcWakelocks()
289 new String(wlBuffer, startIndex, endIndex - startIndex)); in parseProcWakelocks()
294 startIndex = endIndex + 1; in parseProcWakelocks()
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DRawBatteryStats.java538 int startIndex, int endIndex) throws ParseException; in setArray() argument
543 int startIndex = Math.max(className.lastIndexOf('.'), className.lastIndexOf('$')); in toString() local
544 if (startIndex < 0) { in toString()
545 startIndex = 0; in toString()
547 startIndex++; in toString()
549 return className.substring(startIndex) + "(index=" + mIndex + " added=" + mAdded in toString()
576 int startIndex, int endIndex) throws ParseException { in setArray() argument
578 final int[] array = new int[endIndex-startIndex]; in setArray()
579 for (int i=startIndex; i<endIndex; i++) { in setArray()
580 final String value = values.get(startIndex+i); in setArray()
[all …]
/frameworks/av/media/libmedia/
DIMediaCodecList.cpp82 const char *type, bool encoder, size_t startIndex = 0) const in findCodecByType() argument
84 if (startIndex > INT32_MAX) { in findCodecByType()
92 data.writeInt32(startIndex); in findCodecByType()
165 size_t startIndex = static_cast<size_t>(data.readInt32()); in onTransact() local
166 ssize_t index = findCodecByType(type, isEncoder, startIndex); in onTransact()
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DReparenting.java48 private void setupButtons(int startIndex, ViewGroup parent) { in setupButtons() argument
49 for (int i = startIndex; i < (startIndex + 3); ++i) { in setupButtons()
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
DBackgroundDexOptServiceIntegrationTests.java172 int startIndex = line.indexOf(substr); in getCompilerFilter() local
173 if (startIndex < 0) { in getCompilerFilter()
176 startIndex += substr.length(); in getCompilerFilter()
177 int endIndex = line.indexOf(']', startIndex); in getCompilerFilter()
178 return line.substring(startIndex, endIndex); in getCompilerFilter()
/frameworks/av/media/libstagefright/
DMediaCodecList.cpp253 const char *type, bool encoder, size_t startIndex) const { in findCodecByType()
260 for (; startIndex < numCodecInfos; ++startIndex) { in findCodecByType()
261 const MediaCodecInfo &info = *mCodecInfos[startIndex]; in findCodecByType()
283 return startIndex; in findCodecByType()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DAnswerToReset.java90 byte[] originalData, int startIndex, int length) { in parseHistoricalBytes() argument
91 if (length <= 0 || startIndex + length > originalData.length) { in parseHistoricalBytes()
97 int index = startIndex + 1; in parseHistoricalBytes()
98 while (index < startIndex + length && index > 0) { in parseHistoricalBytes()
99 index = parseLtvNode(index, nodes, originalData, startIndex + length - 1); in parseHistoricalBytes()
105 System.arraycopy(originalData, startIndex, rawData, 0, length); in parseHistoricalBytes()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcutKeysLayout.java161 private void layoutChildrenOnRow(int startIndex, int endIndex, int fullRowWidth, int xPos, in layoutChildrenOnRow() argument
167 for (int j = startIndex; j < endIndex; ++j) { in layoutChildrenOnRow()
171 if (isRTL() && j == startIndex) { in layoutChildrenOnRow()

123