Lines Matching refs:positions
58 /** Maps Model ID to cursor positions, for looking up items by Model ID. */
138 int[] positions = new int[mCursorCount];
162 positions[pos] = pos;
195 binarySort(displayNames, isDirs, positions, mIds);
199 binarySort(longValues, isDirs, positions, mIds);
203 // Populate the positions.
206 mPositions.put(mIds[i], positions[i]);
217 * @param positions Cursor positions to be sorted.
220 private static void binarySort(String[] sortKey, boolean[] isDirs, int[] positions, String[] ids) {
221 final int count = positions.length;
223 final int pivotPosition = positions[start];
257 positions[left + 2] = positions[left + 1];
262 positions[left + 1] = positions[left];
268 System.arraycopy(positions, left, positions, left + 1, n);
274 positions[left] = pivotPosition;
289 * @param positions Cursor positions to be sorted.
293 long[] sortKey, boolean[] isDirs, int[] positions, String[] ids) {
294 final int count = positions.length;
296 final int pivotPosition = positions[start];
340 positions[left + 2] = positions[left + 1];
345 positions[left + 1] = positions[left];
351 System.arraycopy(positions, left, positions, left + 1, n);
357 positions[left] = pivotPosition;