Home
last modified time | relevance | path

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

123

/aosp14/frameworks/base/libs/hwui/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A 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()
/aosp14/frameworks/base/core/tests/coretests/src/android/util/
H A 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()
/aosp14/frameworks/base/core/java/android/view/textclassifier/
H A DTextSelection.java53 int startIndex, int endIndex, Map<String, Float> entityConfidence, String id, in TextSelection() argument
56 mStartIndex = startIndex; in TextSelection()
178 Preconditions.checkArgument(startIndex >= 0); in Builder()
179 Preconditions.checkArgument(endIndex > startIndex); in Builder()
180 mStartIndex = startIndex; in Builder()
268 int startIndex, in Request() argument
275 mStartIndex = startIndex; in Request()
396 @IntRange(from = 0) int startIndex, in Builder()
398 Utils.checkArgument(text, startIndex, endIndex); in Builder()
400 mStartIndex = startIndex; in Builder()
[all …]
H A DTextClassification.java525 int startIndex,
531 mStartIndex = startIndex;
642 @IntRange(from = 0) int startIndex,
644 Utils.checkArgument(text, startIndex, endIndex);
646 mStartIndex = startIndex;
716 final int startIndex = in.readInt();
725 final Request request = new Request(text, startIndex, endIndex,
H A DTextClassifier.java308 @IntRange(from = 0) int startIndex, in classifyText()
312 text, startIndex, endIndex) in classifyText()
680 static void checkArgument(@NonNull CharSequence text, int startIndex, int endIndex) { in checkArgument() argument
682 Preconditions.checkArgument(startIndex >= 0); in checkArgument()
684 Preconditions.checkArgument(endIndex > startIndex); in checkArgument()
/aosp14/frameworks/base/services/core/java/com/android/server/integrity/parser/
H A DRuleIndexingController.java111 List<String> sortedKeyList, String key, int startIndex, int endIndex) { in searchKeysRangeContainingKey() argument
112 if (endIndex <= startIndex) { in searchKeysRangeContainingKey()
115 if (endIndex - startIndex == 1) { in searchKeysRangeContainingKey()
116 return Arrays.asList(sortedKeyList.get(startIndex), sortedKeyList.get(endIndex)); in searchKeysRangeContainingKey()
119 int midKeyIndex = startIndex + ((endIndex - startIndex) / 2); in searchKeysRangeContainingKey()
125 return searchKeysRangeContainingKey(sortedKeyList, key, startIndex, midKeyIndex); in searchKeysRangeContainingKey()
H A DRuleIndexRange.java30 public RuleIndexRange(int startIndex, int endIndex) { in RuleIndexRange() argument
31 this.mStartIndex = startIndex; in RuleIndexRange()
/aosp14/frameworks/base/core/java/com/android/internal/alsa/
H A 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()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DTextViewActions.java191 public static ViewAction longPressAndDragOnText(int startIndex, int endIndex) { in longPressAndDragOnText() argument
195 new TextCoordinates(startIndex), in longPressAndDragOnText()
293 public static ViewAction doubleTapAndDragOnText(int startIndex, int endIndex) { in doubleTapAndDragOnText() argument
297 new TextCoordinates(startIndex), in doubleTapAndDragOnText()
315 public static ViewAction mouseDragOnText(int startIndex, int endIndex) { in mouseDragOnText() argument
319 new TextCoordinates(startIndex), in mouseDragOnText()
341 new TextCoordinates(startIndex), in mouseDoubleClickAndDragOnText()
363 new TextCoordinates(startIndex), in mouseLongClickAndDragOnText()
385 new TextCoordinates(startIndex), in mouseTripleClickAndDragOnText()
451 public static ViewAction dragOnText(int startIndex, int endIndex) { in dragOnText() argument
[all …]
/aosp14/frameworks/base/core/java/android/view/animation/
H A DPathInterpolator.java214 int startIndex = 0; in getInterpolation() local
217 while (endIndex - startIndex > 1) { in getInterpolation()
218 int midIndex = (startIndex + endIndex) / 2; in getInterpolation()
222 startIndex = midIndex; in getInterpolation()
226 float xRange = mX[endIndex] - mX[startIndex]; in getInterpolation()
228 return mY[startIndex]; in getInterpolation()
231 float tInRange = t - mX[startIndex]; in getInterpolation()
234 float startY = mY[startIndex]; in getInterpolation()
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A 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()
/aosp14/frameworks/base/tools/powermodel/src/com/android/powermodel/
H A DRawBatteryStats.java544 if (startIndex < 0) { in toString()
545 startIndex = 0; in toString()
547 startIndex++; in toString()
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()
619 for (int i=0; i<(endIndex-startIndex); i++) { in setArray()
657 for (int i=0; i<(endIndex-startIndex); i++) { in setArray()
658 array[i] = values.get(startIndex+1); in setArray()
733 endIndex-startIndex); in setArray()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/
H A DKernelWakelockReader.java235 int startIndex; in parseProcWakelocks() local
241 startIndex = endIndex = i + 1; in parseProcWakelocks()
245 for (endIndex=startIndex; in parseProcWakelocks()
259 for (int j = startIndex; j < endIndex; j++) { in parseProcWakelocks()
262 boolean parsed = Process.parseProcLine(wlBuffer, startIndex, endIndex, in parseProcWakelocks()
296 new String(wlBuffer, startIndex, endIndex - startIndex)); in parseProcWakelocks()
301 startIndex = endIndex + 1; in parseProcWakelocks()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/
H A DPinInputViewModel.kt108 val startIndex = input.indexOf(clearAllMarker) + 1 regex
109 if (startIndex == 0 || startIndex == input.size) return emptyList()
111 return input.subList(startIndex, input.size).takeWhile { it is Digit }.map { it as Digit }
/aosp14/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DReparenting.java48 private void setupButtons(int startIndex, ViewGroup parent) { in setupButtons() argument
49 for (int i = startIndex; i < (startIndex + 3); ++i) { in setupButtons()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
H A DTextSelectionTest.java59 final int startIndex = 13; in testParcel() local
62 final TextSelection reference = new TextSelection.Builder(startIndex, endIndex) in testParcel()
76 assertEquals(startIndex, result.getSelectionStartIndex()); in testParcel()
126 final int startIndex = 13; in testToBuilder() local
137 final TextSelection textSelection = new TextSelection.Builder(startIndex, endIndex) in testToBuilder()
/aosp14/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
H A DBackgroundDexOptServiceIntegrationTests.java177 int startIndex = line.indexOf(substr); in getCompilerFilter() local
178 if (startIndex < 0) { in getCompilerFilter()
181 startIndex += substr.length(); in getCompilerFilter()
182 int endIndex = line.indexOf(']', startIndex); in getCompilerFilter()
183 return line.substring(startIndex, endIndex); in getCompilerFilter()
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DSetAmplitudeVibratorStep.java173 private long getVibratorOnDuration(VibrationEffect.Composed effect, int startIndex) { in getVibratorOnDuration() argument
177 int i = startIndex; in getVibratorOnDuration()
192 if (i == startIndex) { in getVibratorOnDuration()
H A DComposePrimitivesVibratorStep.java99 int startIndex, int limit) { in unrollPrimitiveSegments() argument
104 for (int i = startIndex; segments.size() < limit; i++) { in unrollPrimitiveSegments()
H A DComposePwleVibratorStep.java98 private List<RampSegment> unrollRampSegments(VibrationEffect.Composed effect, int startIndex, in unrollRampSegments() argument
109 for (int i = startIndex; segments.size() <= limit; i++) { in unrollRampSegments()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A 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()
/aosp14/frameworks/base/services/people/java/com/android/server/people/data/
H A DEventList.java147 private boolean isDuplicate(Event event, int startIndex) { in isDuplicate() argument
149 int index = startIndex; in isDuplicate()
/aosp14/frameworks/base/libs/hwui/jni/
H A DGIFMovie.cpp370 int startIndex = fLastDrawIndex + 1; in onGetBitmap() local
374 startIndex = 0; in onGetBitmap()
384 } else if (startIndex > fCurrIndex) { in onGetBitmap()
386 startIndex = 0; in onGetBitmap()
405 for (int i = startIndex; i <= lastIndex; i++) { in onGetBitmap()
/aosp14/frameworks/base/services/core/java/com/android/server/location/eventlog/
H A DLocalEventLog.java160 mStartTime += getTimeDelta(mEntries[startIndex()]); in addLogEventInternal()
245 int startIndex() { in startIndex() method in LocalEventLog
253 return startIndex(); in incrementIndex()

123