Home
last modified time | relevance | path

Searched refs:mKeys (Results 1 – 6 of 6) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DSparseLongArray.java29 private int[] mKeys; field in SparseLongArray
46 mKeys = new int[initialCapacity]; in SparseLongArray()
56 clone.mKeys = mKeys.clone(); in clone()
77 int i = binarySearch(mKeys, 0, mSize, key); in get()
90 int i = binarySearch(mKeys, 0, mSize, key); in delete()
101 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
112 int i = binarySearch(mKeys, 0, mSize, key); in put()
119 if (mSize >= mKeys.length) { in put()
124 System.arraycopy(mKeys, i, mKeys, i + 1, mSize - i); in put()
128 mKeys[i] = key; in put()
[all …]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DKeyboardView.java161 private Key[] mKeys; field in KeyboardView
466 if ((mRepeatKeyIndex != NOT_A_KEY) && (mRepeatKeyIndex < mKeys.length)) { in setKeyboard()
467 oldRepeatKeyCode = mKeys[mRepeatKeyIndex].codes[0]; in setKeyboard()
473 mKeys = keys.toArray(new Key[keys.size()]); in setKeyboard()
483 && (keyIndex < mKeys.length) in setKeyboard()
484 && (oldRepeatKeyCode == mKeys[keyIndex].codes[0])) { in setKeyboard()
645 final Key[] keys = mKeys; in computeProximityThreshold()
696 final Key[] keys = mKeys; in onBufferDraw()
800 final Key[] keys = mKeys; in getKeyIndices()
849 if (index != NOT_A_KEY && index < mKeys.length) { in detectAndSendKey()
[all …]
DKeyboard.java138 private List<Key> mKeys; field in Keyboard
542 mKeys = new ArrayList<Key>(); in Keyboard()
592 mKeys.add(key); in Keyboard()
606 return mKeys; in getKeys()
705 int[] indices = new int[mKeys.size()]; in computeNearestNeighbors()
711 for (int i = 0; i < mKeys.size(); i++) { in computeNearestNeighbors()
712 final Key key = mKeys.get(i); in computeNearestNeighbors()
785 mKeys.add(key); in loadKeyboard()
788 mShiftKeyIndex = mKeys.size()-1; in loadKeyboard()
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/
DSparseArray.java23 private final ArrayList<Integer> mKeys; field in SparseArray
31 mKeys = new ArrayList<>(initialCapacity); in SparseArray()
36 return mKeys.size(); in size()
40 mKeys.clear(); in clear()
45 final int index = Collections.binarySearch(mKeys, key); in put()
51 mKeys.add(insertIndex, key); in put()
60 final int index = Collections.binarySearch(mKeys, key); in get()
68 return mKeys.indexOf(key); in indexOfKey()
76 return mKeys.get(index); in keyAt()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherBackupHelper.java141 private final ArrayList<Key> mKeys; field in LauncherBackupHelper
155 mKeys = new ArrayList<Key>(); in LauncherBackupHelper()
199 mKeys.clear(); in performBackup()
214 for (Key key : mKeys) { in performBackup()
291 if (!mKeys.isEmpty()) { in restoreEntity()
293 Log.wtf(TAG, keyToBackupKey(mKeys.get(0)) + " received after " + JOURNAL_KEY); in restoreEntity()
310 mKeys.add(key); in restoreEntity()
330 mKeys.remove(key); in restoreEntity()
351 journal.key = mKeys.toArray(new BackupProtos.Key[mKeys.size()]); in getCurrentStateJournal()
404 mKeys.add(key); in backupFavorites()
[all …]
/packages/experimental/NotificationListenerSample/src/com/android/example/notificationlistener/
DNotificationListenerActivity.java157 private HashSet<String> mKeys; field in NotificationListenerActivity.StatusAdaptor
165 mKeys = new HashSet<String>(); in StatusAdaptor()
233 mKeys.clear(); in update()
235 mKeys.add(mNotifications.get(i).getKey()); in update()
237 mKeyToId.keySet().retainAll(mKeys); in update()