/frameworks/base/core/java/android/util/ |
D | SparseBooleanArray.java | 63 mKeys = EmptyArray.INT; in SparseBooleanArray() 66 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseBooleanArray() 67 mValues = new boolean[mKeys.length]; in SparseBooleanArray() 77 clone.mKeys = mKeys.clone(); in clone() 98 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get() 111 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete() 114 System.arraycopy(mKeys, i + 1, mKeys, i, mSize - (i + 1)); in delete() 122 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt() 133 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put() 140 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put() [all …]
|
D | SparseIntArray.java | 48 private int[] mKeys; field in SparseIntArray 68 mKeys = EmptyArray.INT; in SparseIntArray() 71 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseIntArray() 72 mValues = new int[mKeys.length]; in SparseIntArray() 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 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put() [all …]
|
D | LongSparseLongArray.java | 48 private long[] mKeys; field in LongSparseLongArray 68 mKeys = EmptyArray.LONG; in LongSparseLongArray() 71 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseLongArray() 72 mValues = new long[mKeys.length]; 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 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put() [all …]
|
D | SparseLongArray.java | 46 private int[] mKeys; field in SparseLongArray 66 mKeys = EmptyArray.INT; in SparseLongArray() 70 mKeys = new int[mValues.length]; in SparseLongArray() 80 clone.mKeys = mKeys.clone(); in clone() 101 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get() 114 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete() 125 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt() 136 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put() 143 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put() 168 return mKeys[index]; in keyAt() [all …]
|
D | LongSparseArray.java | 56 private long[] mKeys; field in LongSparseArray 76 mKeys = EmptyArray.LONG; in LongSparseArray() 79 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseArray() 91 clone.mKeys = mKeys.clone(); in clone() 113 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get() 126 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete() 158 long[] keys = mKeys; in gc() 187 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put() 195 mKeys[i] = key; in put() 200 if (mGarbage && mSize >= mKeys.length) { in put() [all …]
|
D | SparseArray.java | 56 private int[] mKeys; field in SparseArray 76 mKeys = EmptyArray.INT; in SparseArray() 80 mKeys = new int[mValues.length]; in SparseArray() 91 clone.mKeys = mKeys.clone(); in clone() 113 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get() 126 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete() 141 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in removeReturnOld() 195 int[] keys = mKeys; in gc() 224 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put() 232 mKeys[i] = key; in put() [all …]
|
/frameworks/support/compat/java/android/support/v4/util/ |
D | LongSparseArray.java | 47 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 …]
|
D | SparseArrayCompat.java | 27 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/core/java/android/view/inputmethod/ |
D | SparseRectFArray.java | 41 private final int[] mKeys; field in SparseRectFArray 59 mKeys = source.createIntArray(); in SparseRectFArray() 72 dest.writeIntArray(mKeys); in writeToParcel() 80 if (mKeys == null || mKeys.length == 0) { in hashCode() 83 int hash = mKeys.length; in hashCode() 107 return Arrays.equals(mKeys, that.mKeys) && Arrays.equals(mCoordinates, that.mCoordinates) in equals() 113 if (mKeys == null || mCoordinates == null || mFlagsArray == null) { in toString() 118 for (int i = 0; i < mKeys.length; i++) { in toString() 123 sb.append(mKeys[i]); in toString() 152 if (mKeys[mCount - 1] >= key) { in checkIndex() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | PositionMap.java | 29 private int[] mKeys; field in PositionMap 49 mKeys = ContainerHelpers.EMPTY_INTS; in PositionMap() 53 mKeys = new int[initialCapacity]; in PositionMap() 65 clone.mKeys = mKeys.clone(); in clone() 87 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get() 100 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete() 153 int[] keys = mKeys; in gc() 182 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put() 190 mKeys[i] = key; in put() 195 if (mGarbage && mSize >= mKeys.length) { in put() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | SparseWeakArray.java | 63 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in SparseWeakArray() 64 mValues = new WeakReference[mKeys.length]; in SparseWeakArray() 81 int i = binarySearch(mKeys, 0, mSize, key); in get() 94 int i = binarySearch(mKeys, 0, mSize, key); in delete() 124 long[] keys = mKeys; in gc() 152 int i = binarySearch(mKeys, 0, mSize, key); in put() 160 mKeys[i] = key; in put() 165 if (mSize >= mKeys.length && (mGarbage || hasReclaimedRefs())) { in put() 169 i = ~binarySearch(mKeys, 0, mSize, key); in put() 172 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
D | TaskKeyLruCache.java | 42 private final SparseArray<Task.TaskKey> mKeys = new SparseArray<>(); field in TaskKeyLruCache 57 mEvictionCallback.onEntryEvicted(mKeys.get(taskId)); in TaskKeyLruCache() 59 mKeys.remove(taskId); in TaskKeyLruCache() 77 Task.TaskKey lastKey = mKeys.get(key.id); in getAndInvalidateIfModified() 98 mKeys.put(key.id, key); in put() 106 mKeys.remove(key.id); in remove() 112 mKeys.clear(); in evictAll() 124 writer.print(" numEntries="); writer.print(mKeys.size()); in dump() 126 int keyCount = mKeys.size(); in dump() 128 writer.print(innerPrefix); writer.println(mKeys.get(mKeys.keyAt(i))); in dump()
|
/frameworks/base/core/java/android/service/notification/ |
D | NotificationRankingUpdate.java | 27 private final String[] mKeys; field in NotificationRankingUpdate 38 mKeys = keys; in NotificationRankingUpdate() 48 mKeys = in.readStringArray(); in NotificationRankingUpdate() 52 mImportance = new int[mKeys.length]; in NotificationRankingUpdate() 65 out.writeStringArray(mKeys); in writeToParcel() 86 return mKeys; in getOrderedKeys()
|
/frameworks/base/core/java/android/os/health/ |
D | HealthKeys.java | 86 private final int[][] mKeys = new int[TYPE_COUNT][]; field in HealthKeys.Constants 103 final SortedIntArray[] keys = new SortedIntArray[mKeys.length]; in Constants() 127 mKeys[i] = keys[i].getArray(); in Constants() 149 return mKeys[type].length; in getSize() 163 final int index = Arrays.binarySearch(mKeys[type], key); in getIndex() 176 return mKeys[type]; in getKeys()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | Keyboard.java | 122 private List<Key> mKeys; field in Keyboard 171 ArrayList<Key> mKeys = new ArrayList<Key>(); field in Keyboard.Row 543 mKeys = new ArrayList<Key>(); in Keyboard() 566 mKeys = new ArrayList<Key>(); in Keyboard() 616 mKeys.add(key); in Keyboard() 617 row.mKeys.add(key); in Keyboard() 630 int numKeys = row.mKeys.size(); in resize() 634 Key key = row.mKeys.get(keyIndex); in resize() 644 Key key = row.mKeys.get(keyIndex); in resize() 658 return mKeys; in getKeys() [all …]
|
D | KeyboardView.java | 161 private Key[] mKeys; field in KeyboardView 479 mKeys = keys.toArray(new Key[keys.size()]); in setKeyboard() 619 final Key[] keys = mKeys; in computeProximityThreshold() 675 final Key[] keys = mKeys; in onBufferDraw() 766 final Key[] keys = mKeys; in getKeyIndices() 817 if (index != NOT_A_KEY && index < mKeys.length) { in detectAndSendKey() 818 final Key key = mKeys[index]; in detectAndSendKey() 865 final Key[] keys = mKeys; in showPreview() 915 final Key[] keys = mKeys; in showKey() 916 if (keyIndex < 0 || keyIndex >= mKeys.length) return; in showKey() [all …]
|
/frameworks/native/libs/input/ |
D | KeyCharacterMap.cpp | 97 for (size_t i = 0; i < other.mKeys.size(); i++) { in KeyCharacterMap() 98 mKeys.add(other.mKeys.keyAt(i), new Key(*other.mKeys.valueAt(i))); in KeyCharacterMap() 103 for (size_t i = 0; i < mKeys.size(); i++) { in ~KeyCharacterMap() 104 Key* key = mKeys.editValueAt(i); in ~KeyCharacterMap() 175 for (size_t i = 0; i < overlay->mKeys.size(); i++) { in combine() 176 int32_t keyCode = overlay->mKeys.keyAt(i); in combine() 177 Key* key = overlay->mKeys.valueAt(i); in combine() 178 ssize_t oldIndex = map->mKeys.indexOfKey(keyCode); in combine() 180 delete map->mKeys.valueAt(oldIndex); in combine() 181 map->mKeys.editValueAt(oldIndex) = new Key(*key); in combine() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | BlobBackupHelper.java | 47 private final String[] mKeys; field in BlobBackupHelper 51 mKeys = keys; in BlobBackupHelper() 249 for (String key : mKeys) { in performBackup() 291 for (which = 0; which < mKeys.length; which++) { in restoreEntity() 292 if (key.equals(mKeys[which])) { in restoreEntity() 296 if (which >= mKeys.length) { in restoreEntity()
|
D | WallpaperBackupHelper.java | 85 String[] mKeys; field in WallpaperBackupHelper 101 mKeys = keys; in WallpaperBackupHelper() 129 performBackup_checked(oldState, data, newState, mFiles, mKeys); in performBackup() 140 if (isKeyInList(key, mKeys)) { in restoreEntity()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | TokenCache.java | 86 private final List<Key> mKeys; field in TokenCache.TokenLruCache.Evictor 89 mKeys = new ArrayList<>(); in Evictor() 93 mKeys.add(k); in add() 97 for (Key k : mKeys) { in evict()
|
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
D | TestService.java | 1133 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/base/core/java/android/hardware/camera2/ |
D | CameraCharacteristics.java | 152 private List<CameraCharacteristics.Key<?>> mKeys; field in CameraCharacteristics 219 if (mKeys != null) { in getKeys() 220 return mKeys; in getKeys() 229 mKeys = Collections.unmodifiableList( in getKeys() 231 return mKeys; in getKeys()
|
/frameworks/native/include/input/ |
D | KeyCharacterMap.h | 227 KeyedVector<int32_t, Key*> mKeys; variable
|