Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DPointerTrackerQueue.java70 int newIndex = 0; in remove() local
74 if (newIndex != index) { in remove()
79 if (newIndex != index) { in remove()
81 expandableArray.set(newIndex, element); in remove()
83 newIndex++; in remove()
85 mArraySize = newIndex; in remove()
102 int newIndex, index; in releaseAllPointersOlderThan() local
103 for (newIndex = index = 0; index < arraySize; index++) { in releaseAllPointersOlderThan()
112 if (newIndex != index) { in releaseAllPointersOlderThan()
114 expandableArray.set(newIndex, element); in releaseAllPointersOlderThan()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DFocusLogic.java96 int newIndex = NOOP; in handleKeyEvent() local
99 newIndex = handleDpadHorizontal(iconIdx, cntX, cntY, map, -1 /*increment*/, isRtl); in handleKeyEvent()
100 if (!isRtl && newIndex == NOOP && pageIndex > 0) { in handleKeyEvent()
101 newIndex = PREVIOUS_PAGE_RIGHT_COLUMN; in handleKeyEvent()
102 } else if (isRtl && newIndex == NOOP && pageIndex < pageCount - 1) { in handleKeyEvent()
103 newIndex = NEXT_PAGE_RIGHT_COLUMN; in handleKeyEvent()
107 newIndex = handleDpadHorizontal(iconIdx, cntX, cntY, map, 1 /*increment*/, isRtl); in handleKeyEvent()
108 if (!isRtl && newIndex == NOOP && pageIndex < pageCount - 1) { in handleKeyEvent()
109 newIndex = NEXT_PAGE_LEFT_COLUMN; in handleKeyEvent()
110 } else if (isRtl && newIndex == NOOP && pageIndex > 0) { in handleKeyEvent()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewItemManager.java358 for (int newIndex = 0; newIndex < newItems.size(); ++newIndex) {
359 int oldIndex = oldItems.indexOf(newItems.get(newIndex));
360 if (oldIndex >= 0 && newIndex != oldIndex) {
361 PreviewItemDrawingParams p = params.get(newIndex);
362 updateTransitionParam(p, newItems.get(newIndex), oldIndex, newIndex, numItems);
385 int prevIndex, int newIndex, int numItems) {
389 newIndex, numItems, DROP_IN_ANIMATION_DURATION, null);
DFolderIcon.java367 int newIndex = mCurrentPreviewItems.indexOf(item); in onDrop() local
368 if (newIndex >= 0) { in onDrop()
371 index = newIndex; in onDrop()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
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()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
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()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
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()
/packages/apps/Camera2/src/com/android/camera/filmstrip/
DFilmstripController.java275 public void onDataFocusChanged(int prevIndex, int newIndex); in onDataFocusChanged() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java1031 int newIndex = (currIndex * ABS_VOL_BASE) / maxVolume; in getAbsVolume() local
1032 return newIndex; in getAbsVolume()
/packages/apps/Camera2/src/com/android/camera/
DCameraActivity.java753 public void onDataFocusChanged(final int prevIndex, final int newIndex) {
763 updateUiByData(newIndex);