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

1234

/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DFreePathInterpolator.java99 int startIndex = 0;
104 return mY[startIndex];
110 while (endIndex - startIndex > 1) {
111 int midIndex = (startIndex + endIndex) / 2;
115 startIndex = midIndex;
119 float xRange = mX[endIndex] - mX[startIndex];
121 return mY[startIndex];
124 float tInRange = t - mX[startIndex];
127 float startY = mY[startIndex];
138 int startIndex
[all...]
/frameworks/base/core/java/com/android/internal/alsa/
H A DLineTokenizer.java32 int nextToken(String line, int startIndex) { argument
34 int offset = startIndex;
45 int nextDelimiter(String line, int startIndex) { argument
47 int offset = startIndex;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DComprehensionTlv.java84 * @param startIndex Index in data at which to start parsing
88 public static List<ComprehensionTlv> decodeMany(byte[] data, int startIndex) argument
92 while (startIndex < endIndex) {
93 ComprehensionTlv ctlv = ComprehensionTlv.decode(data, startIndex);
96 startIndex = ctlv.mValueIndex + ctlv.mLength;
110 * @param startIndex Index in data at which to start parsing
114 public static ComprehensionTlv decode(byte[] data, int startIndex) argument
116 int curIndex = startIndex;
129 ", startIndex=" + startIndex
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DWspTypeDecoder.java213 * @param startIndex The starting position of the "Text-string" in this pdu
219 public boolean decodeTextString(int startIndex) { argument
220 int index = startIndex;
224 mDataLength = index - startIndex + 1;
225 if (mWspData[startIndex] == 127) {
226 mStringValue = new String(mWspData, startIndex + 1, mDataLength - 2);
228 mStringValue = new String(mWspData, startIndex, mDataLength - 1);
236 * @param startIndex The starting position of the "Token-text" in this pdu
242 public boolean decodeTokenText(int startIndex) { argument
243 int index = startIndex;
262 decodeShortInteger(int startIndex) argument
280 decodeLongInteger(int startIndex) argument
303 decodeIntegerValue(int startIndex) argument
319 decodeUintvarInteger(int startIndex) argument
344 decodeValueLength(int startIndex) argument
368 decodeExtensionMedia(int startIndex) argument
394 decodeConstrainedEncoding(int startIndex) argument
415 decodeContentType(int startIndex) argument
466 readContentParameters(int startIndex, int leftToRead, int accumulator) argument
536 decodeNoValue(int startIndex) argument
568 decodeContentLength(int startIndex) argument
581 decodeContentLocation(int startIndex) argument
595 decodeXWapApplicationId(int startIndex) argument
612 seekXWapApplicationId(int startIndex, int endIndex) argument
676 decodeXWapContentURI(int startIndex) argument
689 decodeXWapInitiatorURI(int startIndex) argument
[all...]
H A DIntRangeManager.java206 for (int startIndex = 0; startIndex < len; startIndex++) {
207 IntRange range = mRanges.get(startIndex);
220 if ((startIndex + 1) < len) {
221 nextRange = mRanges.get(startIndex + 1);
258 mRanges.add(startIndex, new IntRange(startId, endId, client));
275 for (int endIndex = startIndex+1; endIndex < len; endIndex++) {
287 // of the next range to join is always startIndex+1.
290 int joinIndex = startIndex
[all...]
/frameworks/support/compat/src/main/java/androidx/core/view/animation/
H A DPathInterpolatorApi14.java73 int startIndex = 0;
75 while (endIndex - startIndex > 1) {
76 int midIndex = (startIndex + endIndex) / 2;
80 startIndex = midIndex;
84 final float xRange = mX[endIndex] - mX[startIndex];
86 return mY[startIndex];
89 final float tInRange = t - mX[startIndex];
92 final float startY = mY[startIndex];
/frameworks/base/core/tests/coretests/src/android/util/
H A DSparseLongArrayTest.java59 private void assertRemoved(int startIndex, int endIndex) { argument
61 if (i >= startIndex && i <= endIndex) {
146 final int startIndex = 101;
148 mSparseLongArray.removeAtRange(startIndex, endIndex - startIndex + 1);
149 for (int i = endIndex; i >= startIndex; i--) {
152 assertEquals(TEST_SIZE - (endIndex - startIndex + 1), mSparseLongArray.size());
153 assertRemoved(startIndex, endIndex);
/frameworks/base/libs/hwui/
H A DInterpolator.cpp105 size_t startIndex = 0; local
108 while (endIndex > startIndex + 1) {
109 int midIndex = (startIndex + endIndex) / 2;
113 startIndex = midIndex;
117 float xRange = mX[endIndex] - mX[startIndex];
119 return mY[startIndex];
122 float tInRange = t - mX[startIndex];
125 float startY = mY[startIndex];
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DPathInterpolatorBuilder.java127 int startIndex = 0;
130 while (endIndex - startIndex > 1) {
131 int midIndex = (startIndex + endIndex) / 2;
135 startIndex = midIndex;
139 float xRange = mX[endIndex] - mX[startIndex];
141 return mY[startIndex];
144 float tInRange = t - mX[startIndex];
147 float startY = mY[startIndex];
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
H A DTextClassificationManagerTest.java82 int startIndex = text.indexOf(selected);
83 int endIndex = startIndex + selected.length();
87 text, startIndex, endIndex)
103 int startIndex = text.indexOf(selected);
104 int endIndex = startIndex + selected.length();
108 text, startIndex, endIndex)
123 int startIndex = text.indexOf(selected);
124 int endIndex = startIndex + selected.length();
126 text, startIndex, endIndex)
132 isTextSelection(startIndex, endInde
373 isTextSelection( final int startIndex, final int endIndex, final String type) argument
[all...]
H A DTextSelectionTest.java37 final int startIndex = 13;
40 final TextSelection reference = new TextSelection.Builder(startIndex, endIndex)
53 assertEquals(startIndex, result.getSelectionStartIndex());
/frameworks/base/core/java/android/view/textclassifier/
H A DTextSelection.java46 int startIndex, int endIndex, Map<String, Float> entityConfidence, String id) {
47 mStartIndex = startIndex;
110 "TextSelection {id=%s, startIndex=%d, endIndex=%d, entities=%s}",
127 * @param startIndex the start index of the text selection.
128 * @param endIndex the end index of the text selection. Must be greater than startIndex
130 public Builder(@IntRange(from = 0) int startIndex, @IntRange(from = 0) int endIndex) { argument
131 Preconditions.checkArgument(startIndex >= 0);
132 Preconditions.checkArgument(endIndex > startIndex);
133 mStartIndex = startIndex;
185 int startIndex,
45 TextSelection( int startIndex, int endIndex, Map<String, Float> entityConfidence, String id) argument
183 Request( CharSequence text, int startIndex, int endIndex, LocaleList defaultLocales, boolean darkLaunchAllowed) argument
258 Builder( @onNull CharSequence text, @IntRange(from = 0) int startIndex, @IntRange(from = 0) int endIndex) argument
[all...]
/frameworks/support/textclassifier/src/main/java/androidx/textclassifier/
H A DTextSelection.java46 int startIndex, int endIndex, @NonNull Map<String, Float> entityConfidence,
48 mStartIndex = startIndex;
112 "TextSelection {startIndex=%d, endIndex=%d, entities=%s, signature=%s}",
162 * @param startIndex the start index of the text selection.
163 * @param endIndex the end index of the text selection. Must be greater than startIndex
165 public Builder(@IntRange(from = 0) int startIndex, @IntRange(from = 0) int endIndex) { argument
166 Preconditions.checkArgument(startIndex >= 0);
167 Preconditions.checkArgument(endIndex > startIndex);
168 mStartIndex = startIndex;
45 TextSelection( int startIndex, int endIndex, @NonNull Map<String, Float> entityConfidence, @NonNull String signature) argument
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DReparenting.java48 private void setupButtons(int startIndex, ViewGroup parent) { argument
49 for (int i = startIndex; i < (startIndex + 3); ++i) {
/frameworks/av/media/libaaudio/src/fifo/
H A DFifoBuffer.cpp86 int32_t startIndex) {
90 uint8_t *source = &mStorage[convertFramesToBytes(startIndex)];
92 if ((startIndex + framesAvailable) > mFrameCapacity) {
94 fifo_frames_t firstFrames = mFrameCapacity - startIndex;
111 fifo_frames_t startIndex = mFifo->getReadIndex(); local
112 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex);
119 fifo_frames_t startIndex = mFifo->getWriteIndex(); local
120 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex);
84 fillWrappingBuffer(WrappingBuffer *wrappingBuffer, int32_t framesAvailable, int32_t startIndex) argument
/frameworks/base/core/java/android/view/animation/
H A DPathInterpolator.java212 int startIndex = 0;
215 while (endIndex - startIndex > 1) {
216 int midIndex = (startIndex + endIndex) / 2;
220 startIndex = midIndex;
224 float xRange = mX[endIndex] - mX[startIndex];
226 return mY[startIndex];
229 float tInRange = t - mX[startIndex];
232 float startY = mY[startIndex];
/frameworks/base/core/java/com/android/internal/os/
H A DKernelWakelockReader.java128 int startIndex;
134 startIndex = endIndex = i + 1;
139 for (endIndex=startIndex;
153 for (int j = startIndex; j < endIndex; j++) {
156 boolean parsed = Process.parseProcLine(wlBuffer, startIndex, endIndex,
190 new String(wlBuffer, startIndex, endIndex - startIndex));
195 startIndex = endIndex + 1;
/frameworks/base/core/java/com/android/internal/util/
H A DCallbackRegistry.java175 final int startIndex = (remainderIndex + 1) * Long.SIZE;
176 final int endIndex = Math.min(mCallbacks.size(), startIndex + Long.SIZE);
178 notifyCallbacksLocked(sender, arg, arg2, startIndex, endIndex, bits);
183 * Notify callbacks from startIndex to endIndex, using bits as the bit status
185 * mFirst64Removed. bits set to 0 indicates that all callbacks from startIndex to
194 * @param startIndex The index into the mCallbacks to start notifying.
199 private void notifyCallbacksLocked(T sender, int arg, A arg2, final int startIndex, argument
202 for (int i = startIndex; i < endIndex; i++) {
251 * Removes callbacks from startIndex to startIndex
257 removeRemovedCallbacks(int startIndex, long removed) argument
[all...]
/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/
H A DCallbackRegistry.java172 final int startIndex = (remainderIndex + 1) * Long.SIZE;
173 final int endIndex = Math.min(mCallbacks.size(), startIndex + Long.SIZE);
175 notifyCallbacks(sender, arg, arg2, startIndex, endIndex, bits);
180 * Notify callbacks from startIndex to endIndex, using bits as the bit status
182 * mFirst64Removed. bits set to 0 indicates that all callbacks from startIndex to
191 * @param startIndex The index into the mCallbacks to start notifying.
196 private void notifyCallbacks(T sender, int arg, A arg2, final int startIndex, argument
199 for (int i = startIndex; i < endIndex; i++) {
251 * Removes callbacks from startIndex to startIndex
258 removeRemovedCallbacks(int startIndex, long removed) argument
[all...]
/frameworks/support/graphics/drawable/animated/src/main/java/androidx/vectordrawable/graphics/drawable/
H A DPathInterpolatorCompat.java201 int startIndex = 0;
204 while (endIndex - startIndex > 1) {
205 int midIndex = (startIndex + endIndex) / 2;
209 startIndex = midIndex;
213 float xRange = mX[endIndex] - mX[startIndex];
215 return mY[startIndex];
218 float tInRange = t - mX[startIndex];
221 float startY = mY[startIndex];
/frameworks/av/media/libmedia/
H A DIMediaCodecList.cpp82 const char *type, bool encoder, size_t startIndex = 0) const
84 if (startIndex > INT32_MAX) {
92 data.writeInt32(startIndex);
165 size_t startIndex = static_cast<size_t>(data.readInt32()); local
166 ssize_t index = findCodecByType(type, isEncoder, startIndex);
/frameworks/support/paging/common/src/main/java/androidx/paging/
H A DPositionalDataSource.java525 int startIndex = currentEndIndex + 1;
527 PageResult.APPEND, startIndex, pageSize, mainThreadExecutor, receiver);
535 int startIndex = currentBeginIndex - 1;
536 if (startIndex < 0) {
539 PageResult.PREPEND, startIndex, 0, mainThreadExecutor, receiver);
541 int loadSize = Math.min(pageSize, startIndex + 1);
542 startIndex = startIndex - loadSize + 1;
544 PageResult.PREPEND, startIndex, loadSize, mainThreadExecutor, receiver);
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DTextViewActions.java179 * Returns an action that long presses then drags on text from startIndex to endIndex on the
187 * @param startIndex The index of the TextView's text to start a drag from
190 public static ViewAction longPressAndDragOnText(int startIndex, int endIndex) { argument
194 new TextCoordinates(startIndex),
201 * Returns an action that double taps then drags on text from startIndex to endIndex on the
209 * @param startIndex The index of the TextView's text to start a drag from
212 public static ViewAction doubleTapAndDragOnText(int startIndex, int endIndex) { argument
216 new TextCoordinates(startIndex),
223 * Returns an action that click then drags by mouse on text from startIndex to endIndex on the
231 * @param startIndex Th
234 mouseDragOnText(int startIndex, int endIndex) argument
256 mouseDoubleClickAndDragOnText(int startIndex, int endIndex) argument
278 mouseLongClickAndDragOnText(int startIndex, int endIndex) argument
300 mouseTripleClickAndDragOnText(int startIndex, int endIndex) argument
[all...]
/frameworks/support/textclassifier/src/androidTest/java/androidx/textclassifier/
H A DTextSelectionTest.java36 final int startIndex = 13;
39 final TextSelection reference = new TextSelection.Builder(startIndex, endIndex)
51 assertEquals(startIndex, result.getSelectionStartIndex());
/frameworks/av/include/media/
H A DIMediaCodecList.h41 const char *type, bool encoder, size_t startIndex = 0) const = 0;

Completed in 476 milliseconds

1234