Home
last modified time | relevance | path

Searched refs:newIndex (Results 1 – 25 of 44) sorted by relevance

12

/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DPointerTrackerQueue.java70 int newIndex = 0; in remove() local
79 if (newIndex != index) { in remove()
83 newIndex++; in remove()
85 mArraySize = newIndex; in remove()
102 int newIndex, index; in releaseAllPointersOlderThan() local
112 if (newIndex != index) { in releaseAllPointersOlderThan()
116 newIndex++; in releaseAllPointersOlderThan()
133 newIndex++; in releaseAllPointersOlderThan()
135 mArraySize = newIndex; in releaseAllPointersOlderThan()
171 newIndex++; in releaseAllPointersExcept()
[all …]
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
H A DStackAnimationController.java782 for (int newIndex = 0; newIndex < bubbleViews.size(); newIndex++) { in animateReorder()
783 View view = bubbleViews.get(newIndex); in animateReorder()
784 updateBadgesAndZOrder(view, newIndex); in animateReorder()
788 for (int newIndex = 0; newIndex < bubbleViews.size(); newIndex++) { in animateReorder()
789 View view = bubbleViews.get(newIndex); in animateReorder()
797 if (newIndex == oldIndex) { in animateSwap()
799 updateBadgesAndZOrder(view, newIndex); in animateSwap()
800 if (newIndex == 0) { in animateSwap()
801 animateInBubble(view, newIndex); in animateSwap()
807 if (newIndex == 0) { in animateSwap()
[all …]
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/folder/
H A DPreviewItemManager.java387 for (int newIndex = 0; newIndex < newItems.size(); ++newIndex) {
388 int oldIndex = oldItems.indexOf(newItems.get(newIndex));
389 if (oldIndex >= 0 && newIndex != oldIndex) {
390 PreviewItemDrawingParams p = params.get(newIndex);
391 updateTransitionParam(p, newItems.get(newIndex), oldIndex, newIndex, numItems);
414 int prevIndex, int newIndex, int numItems) {
418 newIndex, numItems, DROP_IN_ANIMATION_DURATION, null);
H A DFolderIcon.java368 int newIndex = mCurrentPreviewItems.indexOf(item); in onDrop() local
369 if (newIndex >= 0) { in onDrop()
372 index = newIndex; in onDrop()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DHeadsUpTouchHelper.java100 final int newIndex = event.getPointerId(0) != upPointer ? 0 : 1; in onInterceptTouchEvent() local
101 mTrackingPointer = event.getPointerId(newIndex); in onInterceptTouchEvent()
102 mInitialTouchX = event.getX(newIndex); in onInterceptTouchEvent()
103 mInitialTouchY = event.getY(newIndex); in onInterceptTouchEvent()
H A DPanelViewController.java1205 final int newIndex = event.getPointerId(0) != upPointer ? 0 : 1; in onInterceptTouchEvent() local
1206 mTrackingPointer = event.getPointerId(newIndex); in onInterceptTouchEvent()
1207 mInitialTouchX = event.getX(newIndex); in onInterceptTouchEvent()
1208 mInitialTouchY = event.getY(newIndex); in onInterceptTouchEvent()
1319 final int newIndex = event.getPointerId(0) != upPointer ? 0 : 1; in onTouch() local
1320 final float newY = event.getY(newIndex); in onTouch()
1321 final float newX = event.getX(newIndex); in onTouch()
1322 mTrackingPointer = event.getPointerId(newIndex); in onTouch()
/aosp12/frameworks/base/services/core/java/com/android/server/utils/
H A DWatchedSparseBooleanMatrix.java374 int newIndex = nextFree(); in indexOfKey() local
376 mMap = GrowingArrayUtils.insert(mMap, mSize, i, newIndex); in indexOfKey()
381 int offset = newIndex / PACKING; in indexOfKey()
382 int mask = ~(1 << (newIndex % PACKING)); in indexOfKey()
383 Arrays.fill(mValues, newIndex * valueRow, (newIndex + 1) * valueRow, 0); in indexOfKey()
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DFusionDictionary.java517 int newIndex = index; in findWordInTree() local
518 while (newIndex < codePoints.length && newIndex - index < currentPtNode.mChars.length) { in findWordInTree()
519 if (currentPtNode.mChars[newIndex - index] != codePoints[newIndex]) return null; in findWordInTree()
520 newIndex++; in findWordInTree()
522 index = newIndex; in findWordInTree()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DWordComposer.java183 final int newIndex = size(); in applyProcessedEvent() local
191 if (newIndex < MAX_WORD_LENGTH) { in applyProcessedEvent()
197 mInputPointers.addPointerAt(newIndex, keyX, keyY, 0, 0); in applyProcessedEvent()
200 if (0 == newIndex) { in applyProcessedEvent()
/aosp12/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayDeviceConfig.java615 int newIndex = 0; in constrainNitsAndBacklightArrays() local
617 newIndex = i - newStart; in constrainNitsAndBacklightArrays()
623 if (newIndex == 0) { in constrainNitsAndBacklightArrays()
633 newBacklight[newIndex] = newBacklightVal; in constrainNitsAndBacklightArrays()
634 newNits[newIndex] = newNitsVal; in constrainNitsAndBacklightArrays()
636 mBacklight = Arrays.copyOf(newBacklight, newIndex + 1); in constrainNitsAndBacklightArrays()
637 mNits = Arrays.copyOf(newNits, newIndex + 1); in constrainNitsAndBacklightArrays()
/aosp12/frameworks/base/core/java/android/hardware/hdmi/
H A DHdmiControlServiceWrapper.java177 public void setSystemAudioVolume(int oldIndex, int newIndex, int maxIndex) {
178 HdmiControlServiceWrapper.this.setSystemAudioVolume(oldIndex, newIndex, maxIndex);
442 public void setSystemAudioVolume(int oldIndex, int newIndex, int maxIndex) {} in setSystemAudioVolume() argument
H A DHdmiTvClient.java193 public void setSystemAudioVolume(int oldIndex, int newIndex, int maxIndex) {
195 mService.setSystemAudioVolume(oldIndex, newIndex, maxIndex);
H A DIHdmiControlService.aidl69 void setSystemAudioVolume(int oldIndex, int newIndex, int maxIndex); in setSystemAudioVolume() argument
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
H A DEventIndexTest.java122 EventIndex newIndex = new EventIndex(mEventIndex); in testCopyConstructor() local
123 List<Range<Long>> newSlots = newIndex.getActiveTimeSlots(); in testCopyConstructor()
/aosp12/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
H A DFlingUpDownTouchHandler.java261 int newIndex = event.getPointerId(0) != upPointer ? 0 : 1; in onTouch() local
262 float newY = event.getY(newIndex); in onTouch()
263 trackingPointer = event.getPointerId(newIndex); in onTouch()
/aosp12/packages/apps/Camera2/src/com/android/camera/filmstrip/
H A DFilmstripController.java275 public void onDataFocusChanged(int prevIndex, int newIndex); in onDataFocusChanged() argument
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
H A DMediaCarouselScrollHandler.kt470 private fun onMediaScrollingChanged(newIndex: Int, scrollInAmount: Int) {
474 if (newIndex != visibleMediaIndex || wasScrolledIn != nowScrolledIn) {
476 visibleMediaIndex = newIndex
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/animation/
H A DPhysicsAnimationLayoutTestCase.java283 void onChildReordered(View child, int oldIndex, int newIndex) { in onChildReordered() argument
285 () -> mWrappedController.onChildReordered(child, oldIndex, newIndex)); in onChildReordered()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
H A DNotificationListContainer.java53 void changeViewPosition(ExpandableView child, int newIndex); in changeViewPosition() argument
H A DNotificationChildrenContainer.java273 int newIndex = childIndex < 0 ? mAttachedChildren.size() : childIndex; in addNotification()
274 mAttachedChildren.add(newIndex, row); in addNotification()
280 mDividers.add(newIndex, divider); in addNotification()
/aosp12/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberUtils.java662 forwardIndexA = cccA.newIndex; in compareStrictly()
663 forwardIndexB = cccB.newIndex; in compareStrictly()
670 forwardIndexA = cccA.newIndex; in compareStrictly()
679 forwardIndexB = cccB.newIndex; in compareStrictly()
3036 public final int newIndex; field in PhoneNumberUtils.CountryCallingCodeAndNewIndex
3037 public CountryCallingCodeAndNewIndex(int countryCode, int newIndex) { in CountryCallingCodeAndNewIndex() argument
3039 this.newIndex = newIndex; in CountryCallingCodeAndNewIndex()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DNotificationViewHierarchyManagerTest.java276 public void changeViewPosition(ExpandableView child, int newIndex) { in changeViewPosition() argument
278 mRows.add(newIndex, child); in changeViewPosition()
/aosp12/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/
H A DHdmiAudioSystemClientTest.java274 public void setSystemAudioVolume(final int oldIndex, final int newIndex, in setSystemAudioVolume() argument
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
H A DNotificationSectionsManagerTest.java709 int newIndex = invocation.getArgument(1); in setupMockStack()
711 children.add(newIndex, child); in setupMockStack()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DBubbleData.java590 int newIndex = Math.min(indexToRemove, mBubbles.size() - 1); in doRemove() local
591 BubbleViewProvider newSelected = mBubbles.get(newIndex); in doRemove()

12