Home
last modified time | relevance | path

Searched refs:mDistances (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java229 private int[] mDistances = new int[MAX_NEARBY_KEYS]; field in KeyboardView
770 java.util.Arrays.fill(mDistances, Integer.MAX_VALUE); in getKeyIndices()
794 for (int j = 0; j < mDistances.length; j++) { in getKeyIndices()
795 if (mDistances[j] > dist) { in getKeyIndices()
797 System.arraycopy(mDistances, j, mDistances, j + nCodes, in getKeyIndices()
798 mDistances.length - j - nCodes); in getKeyIndices()
803 mDistances[j + c] = dist; in getKeyIndices()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
DItemTouchHelper.java276 private List<Integer> mDistances; field in ItemTouchHelper
775 mDistances = new ArrayList<Integer>(); in findSwapTargets()
778 mDistances.clear(); in findSwapTargets()
808 if (dist > mDistances.get(j)) { in findSwapTargets()
815 mDistances.add(pos, dist); in findSwapTargets()
848 mDistances.clear(); in moveIfNecessary()