Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/util/
DSparseIntArray.java43 private int[] mKeys; field in SparseIntArray
63 mKeys = ContainerHelpers.EMPTY_INTS; in SparseIntArray()
67 mKeys = new int[initialCapacity]; in SparseIntArray()
78 clone.mKeys = mKeys.clone(); in clone()
99 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
112 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
123 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
134 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
141 if (mSize >= mKeys.length) { in put()
148 System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length); in put()
[all …]
DSparseBooleanArray.java60 mKeys = ContainerHelpers.EMPTY_INTS; in SparseBooleanArray()
64 mKeys = new int[initialCapacity]; in SparseBooleanArray()
75 clone.mKeys = mKeys.clone(); in clone()
96 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
109 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
112 System.arraycopy(mKeys, i + 1, mKeys, i, mSize - (i + 1)); in delete()
124 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
131 if (mSize >= mKeys.length) { in put()
138 System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length); in put()
141 mKeys = nkeys; in put()
[all …]
DSparseLongArray.java43 private int[] mKeys; field in SparseLongArray
63 mKeys = ContainerHelpers.EMPTY_INTS; in SparseLongArray()
67 mKeys = new int[initialCapacity]; in SparseLongArray()
78 clone.mKeys = mKeys.clone(); in clone()
99 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
112 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
123 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
134 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
141 if (mSize >= mKeys.length) { in put()
146 System.arraycopy(mKeys, i, mKeys, i + 1, mSize - i); in put()
[all …]
DLongSparseLongArray.java47 private long[] mKeys; field in LongSparseLongArray
67 mKeys = ContainerHelpers.EMPTY_LONGS; in LongSparseLongArray()
71 mKeys = new long[initialCapacity]; in LongSparseLongArray()
82 clone.mKeys = mKeys.clone(); in clone()
103 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
116 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
127 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
138 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
145 if (mSize >= mKeys.length) { in put()
150 System.arraycopy(mKeys, i, mKeys, i + 1, mSize - i); in put()
[all …]
DLongSparseArray.java53 private long[] mKeys; field in LongSparseArray
73 mKeys = ContainerHelpers.EMPTY_LONGS; in LongSparseArray()
77 mKeys = new long[initialCapacity]; in LongSparseArray()
89 clone.mKeys = mKeys.clone(); in clone()
111 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
124 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
156 long[] keys = mKeys; in gc()
185 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
193 mKeys[i] = key; in put()
198 if (mGarbage && mSize >= mKeys.length) { in put()
[all …]
DSparseArray.java53 private int[] mKeys; field in SparseArray
73 mKeys = ContainerHelpers.EMPTY_INTS; in SparseArray()
77 mKeys = new int[initialCapacity]; in SparseArray()
89 clone.mKeys = mKeys.clone(); in clone()
111 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
124 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
169 int[] keys = mKeys; in gc()
198 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
206 mKeys[i] = key; in put()
211 if (mGarbage && mSize >= mKeys.length) { in put()
[all …]
/frameworks/support/v4/java/android/support/v4/util/
DLongSparseArray.java47 private long[] mKeys; field in LongSparseArray
67 mKeys = ContainerHelpers.EMPTY_LONGS; in LongSparseArray()
71 mKeys = new long[initialCapacity]; in LongSparseArray()
83 clone.mKeys = mKeys.clone(); in clone()
105 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
118 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
150 long[] keys = mKeys; in gc()
179 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
187 mKeys[i] = key; in put()
192 if (mGarbage && mSize >= mKeys.length) { in put()
[all …]
DSparseArrayCompat.java27 private int[] mKeys; field in SparseArrayCompat
47 mKeys = ContainerHelpers.EMPTY_INTS; in SparseArrayCompat()
51 mKeys = new int[initialCapacity]; in SparseArrayCompat()
63 clone.mKeys = mKeys.clone(); in clone()
85 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
98 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
143 int[] keys = mKeys; in gc()
172 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
180 mKeys[i] = key; in put()
185 if (mGarbage && mSize >= mKeys.length) { in put()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DSparseWeakArray.java63 mKeys = new int[initialCapacity]; in SparseWeakArray()
81 int i = binarySearch(mKeys, 0, mSize, key); in get()
94 int i = binarySearch(mKeys, 0, mSize, key); in delete()
124 int[] keys = mKeys; in gc()
146 if (newSize < mKeys.length) { in gc()
150 System.arraycopy(mKeys, 0, nkeys, 0, newSize); in gc()
153 mKeys = nkeys; in gc()
164 int i = binarySearch(mKeys, 0, mSize, key); in put()
172 mKeys[i] = key; in put()
177 if (mSize >= mKeys.length && (mGarbage || hasReclaimedRefs())) { in put()
[all …]
/frameworks/native/libs/input/
DKeyCharacterMap.cpp96 for (size_t i = 0; i < other.mKeys.size(); i++) { in KeyCharacterMap()
97 mKeys.add(other.mKeys.keyAt(i), new Key(*other.mKeys.valueAt(i))); in KeyCharacterMap()
102 for (size_t i = 0; i < mKeys.size(); i++) { in ~KeyCharacterMap()
103 Key* key = mKeys.editValueAt(i); in ~KeyCharacterMap()
174 for (size_t i = 0; i < overlay->mKeys.size(); i++) { in combine()
175 int32_t keyCode = overlay->mKeys.keyAt(i); in combine()
176 Key* key = overlay->mKeys.valueAt(i); in combine()
177 ssize_t oldIndex = map->mKeys.indexOfKey(keyCode); in combine()
179 delete map->mKeys.valueAt(oldIndex); in combine()
180 map->mKeys.editValueAt(oldIndex) = new Key(*key); in combine()
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java121 private List<Key> mKeys; field in Keyboard
170 ArrayList<Key> mKeys = new ArrayList<Key>(); field in Keyboard.Row
530 mKeys = new ArrayList<Key>(); in Keyboard()
553 mKeys = new ArrayList<Key>(); in Keyboard()
603 mKeys.add(key); in Keyboard()
604 row.mKeys.add(key); in Keyboard()
617 int numKeys = row.mKeys.size(); in resize()
621 Key key = row.mKeys.get(keyIndex); in resize()
631 Key key = row.mKeys.get(keyIndex); in resize()
645 return mKeys; in getKeys()
[all …]
DKeyboardView.java160 private Key[] mKeys; field in KeyboardView
466 mKeys = keys.toArray(new Key[keys.size()]); in setKeyboard()
606 final Key[] keys = mKeys; in computeProximityThreshold()
662 final Key[] keys = mKeys; in onBufferDraw()
753 final Key[] keys = mKeys; in getKeyIndices()
804 if (index != NOT_A_KEY && index < mKeys.length) { in detectAndSendKey()
805 final Key key = mKeys[index]; in detectAndSendKey()
852 final Key[] keys = mKeys; in showPreview()
902 final Key[] keys = mKeys; in showKey()
903 if (keyIndex < 0 || keyIndex >= mKeys.length) return; in showKey()
[all …]
/frameworks/base/core/java/android/app/backup/
DWallpaperBackupHelper.java65 String[] mKeys; field in WallpaperBackupHelper
81 mKeys = keys; in WallpaperBackupHelper()
109 performBackup_checked(oldState, data, newState, mFiles, mKeys); in performBackup()
119 if (isKeyInList(key, mKeys)) { in restoreEntity()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DTestService.java1133 String[] mKeys; field in TestService.GenericMapOp
1142 mKeys = new String[mSize]; in onInit()
1151 mKeys[i] = builder.toString(); in onInit()
1169 map.put(mKeys[i], mValues[i]); in onRun()
1183 map.put(mKeys[i], mValues[i]); in onRun()
1197 map.put(mKeys[i], mValues[i]); in onRun()
1211 map.put(mKeys[i], mValues[i]); in onRun()
1225 map.put(mKeys[i], mValues[i]); in onRun()
1239 map.put(mKeys[i], mValues[i]); in onRun()
1272 mHashMap.put(mKeys[i], mValues[i]); in onInit()
[all …]
/frameworks/native/include/input/
DKeyCharacterMap.h216 KeyedVector<int32_t, Key*> mKeys; variable