/aosp14/frameworks/base/libs/hwui/ |
H A D | Interpolator.cpp | 105 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 D | PathInterpolatorBuilder.java | 127 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 D | SparseLongArrayTest.java | 60 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 D | TextSelection.java | 53 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 D | TextClassification.java | 525 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 D | TextClassifier.java | 308 @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 D | RuleIndexingController.java | 111 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 D | RuleIndexRange.java | 30 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 D | LineTokenizer.java | 32 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 D | TextViewActions.java | 191 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 D | PathInterpolator.java | 214 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 D | CallbackRegistry.java | 175 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 D | RawBatteryStats.java | 544 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 D | KernelWakelockReader.java | 235 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 D | PinInputViewModel.kt | 108 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 D | Reparenting.java | 48 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 D | TextSelectionTest.java | 59 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 D | BackgroundDexOptServiceIntegrationTests.java | 177 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 D | SetAmplitudeVibratorStep.java | 173 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 D | ComposePrimitivesVibratorStep.java | 99 int startIndex, int limit) { in unrollPrimitiveSegments() argument 104 for (int i = startIndex; segments.size() < limit; i++) { in unrollPrimitiveSegments()
|
H A D | ComposePwleVibratorStep.java | 98 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 D | KeyboardShortcutKeysLayout.java | 161 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 D | EventList.java | 147 private boolean isDuplicate(Event event, int startIndex) { in isDuplicate() argument 149 int index = startIndex; in isDuplicate()
|
/aosp14/frameworks/base/libs/hwui/jni/ |
H A D | GIFMovie.cpp | 370 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 D | LocalEventLog.java | 160 mStartTime += getTimeDelta(mEntries[startIndex()]); in addLogEventInternal() 245 int startIndex() { in startIndex() method in LocalEventLog 253 return startIndex(); in incrementIndex()
|