Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/view/inputmethod/
DSparseRectFArray.java41 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/base/core/java/android/util/
DSparseBooleanArray.java65 mKeys = EmptyArray.INT; in SparseBooleanArray()
68 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseBooleanArray()
69 mValues = new boolean[mKeys.length]; in SparseBooleanArray()
79 clone.mKeys = mKeys.clone(); in clone()
100 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
113 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
116 System.arraycopy(mKeys, i + 1, mKeys, i, mSize - (i + 1)); in delete()
128 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
139 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
146 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
[all …]
DLongSparseLongArray.java51 private long[] mKeys; field in LongSparseLongArray
73 mKeys = EmptyArray.LONG; in LongSparseLongArray()
76 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseLongArray()
77 mValues = new long[mKeys.length]; in LongSparseLongArray()
87 clone.mKeys = mKeys.clone(); in clone()
108 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
121 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
132 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
143 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
150 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
[all …]
DSparseIntArray.java51 private int[] mKeys; field in SparseIntArray
73 mKeys = EmptyArray.INT; in SparseIntArray()
76 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseIntArray()
77 mValues = new int[mKeys.length]; in SparseIntArray()
87 clone.mKeys = mKeys.clone(); in clone()
108 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
121 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
132 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
143 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
150 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
[all …]
DSparseLongArray.java46 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()
133 System.arraycopy(mKeys, index + size, mKeys, index, mSize - (index + size)); in removeAtRange()
142 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1)); in removeAt()
153 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
160 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key); in put()
[all …]
DLongSparseArray.java56 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()
168 long[] keys = mKeys; in gc()
197 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
205 mKeys[i] = key; in put()
210 if (mGarbage && mSize >= mKeys.length) { in put()
[all …]
DSparseArray.java61 private int[] mKeys; field in SparseArray
83 mKeys = EmptyArray.INT; in SparseArray()
87 mKeys = new int[mValues.length]; in SparseArray()
98 clone.mKeys = mKeys.clone(); in clone()
120 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in get()
133 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in delete()
148 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in removeReturnOld()
209 int[] keys = mKeys; in gc()
238 int i = ContainerHelpers.binarySearch(mKeys, mSize, key); in put()
246 mKeys[i] = key; in put()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DSparseWeakArray.java63 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/legacy/recents/src/com/android/systemui/recents/model/
DTaskKeyStrongCache.java37 for (int i = other.mKeys.size() - 1; i >= 0; i--) { in copyEntries()
38 TaskKey key = other.mKeys.valueAt(i); in copyEntries()
46 writer.print(" numEntries="); writer.print(mKeys.size()); in dump()
48 int keyCount = mKeys.size(); in dump()
50 writer.print(innerPrefix); writer.println(mKeys.get(mKeys.keyAt(i))); in dump()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DTaskKeyLruCache.java53 mEvictionCallback.onEntryEvicted(mKeys.get(taskId)); in TaskKeyLruCache()
55 mKeys.remove(taskId); in TaskKeyLruCache()
69 writer.print(" numEntries="); writer.print(mKeys.size()); in dump()
71 int keyCount = mKeys.size(); in dump()
73 writer.print(innerPrefix); writer.println(mKeys.get(mKeys.keyAt(i))); in dump()
DTaskKeyCache.java31 protected final SparseArray<TaskKey> mKeys = new SparseArray<>(); field in TaskKeyCache
46 TaskKey lastKey = mKeys.get(key.id); in getAndInvalidateIfModified()
67 mKeys.put(key.id, key); in put()
76 mKeys.remove(key.id); in remove()
82 mKeys.clear(); in evictAll()
/frameworks/base/core/java/android/os/health/
DHealthKeys.java86 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/tests/coretests/src/android/util/
DSparseLongArrayTest.java43 private int[] mKeys; field in SparseLongArrayTest
64 mSparseLongArray.get(mKeys[i], Long.MIN_VALUE)); in assertRemoved()
67 mSparseLongArray.get(mKeys[i])); in assertRemoved()
92 mKeys = generateRandomKeys(TEST_SIZE); in setUp()
96 mSparseLongArray.put(mKeys[i], mValues[i]); in setUp()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java131 private List<Key> mKeys; field in Keyboard
181 ArrayList<Key> mKeys = new ArrayList<Key>(); field in Keyboard.Row
553 mKeys = new ArrayList<Key>(); in Keyboard()
576 mKeys = new ArrayList<Key>(); in Keyboard()
626 mKeys.add(key); in Keyboard()
627 row.mKeys.add(key); in Keyboard()
641 int numKeys = row.mKeys.size(); in resize()
645 Key key = row.mKeys.get(keyIndex); in resize()
655 Key key = row.mKeys.get(keyIndex); in resize()
669 return mKeys; in getKeys()
[all …]
DKeyboardView.java168 private Key[] mKeys; field in KeyboardView
487 mKeys = keys.toArray(new Key[keys.size()]); in setKeyboard()
627 final Key[] keys = mKeys; in computeProximityThreshold()
685 final Key[] keys = mKeys; in onBufferDraw()
776 final Key[] keys = mKeys; in getKeyIndices()
827 if (index != NOT_A_KEY && index < mKeys.length) { in detectAndSendKey()
828 final Key key = mKeys[index]; in detectAndSendKey()
875 final Key[] keys = mKeys; in showPreview()
926 final Key[] keys = mKeys; in showKey()
927 if (keyIndex < 0 || keyIndex >= mKeys.length) return; in showKey()
[all …]
/frameworks/native/libs/input/
DKeyCharacterMap.cpp97 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/
DWallpaperBackupHelper.java52 private final String[] mKeys; field in WallpaperBackupHelper
66 mKeys = keys; in WallpaperBackupHelper()
89 if (isKeyInList(key, mKeys)) { in restoreEntity()
DBlobBackupHelper.java47 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()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiScoreCardTest.java68 final ArrayList<String> mKeys = new ArrayList<>(); field in WifiScoreCardTest
91 mKeys.clear(); in setUp()
399 mKeys.add(key);
410 assertEquals(1, mKeys.size());
438 mKeys.add(key);
451 assertTrue(mKeys.size() > 0);
454 String writtenHex = hexStringFromByteArray(mBlobs.get(mKeys.size() - 1));
461 final int beforeSize = mKeys.size();
463 assertEquals(beforeSize, mKeys.size());
/frameworks/base/services/core/java/com/android/server/accounts/
DTokenCache.java86 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/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationListenerServiceTest.java99 for (int i = 0; i < mKeys.length; i++) { in testRanking()
100 String key = mKeys[i]; in testRanking()
149 Ranking ranking = generateUpdate().getRankingMap().getRawRankingObject(mKeys[0]); in testRanking_parcel()
165 Ranking tweak = nru2.getRankingMap().getRawRankingObject(mKeys[0]); in testRankingUpdate_equals()
235 private String[] mKeys = new String[] { "key", "key1", "key2", "key3", "key4"}; field in NotificationListenerServiceTest
238 Ranking[] rankings = new Ranking[mKeys.length]; in generateUpdate()
239 for (int i = 0; i < mKeys.length; i++) { in generateUpdate()
240 final String key = mKeys[i]; in generateUpdate()
/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/base/media/java/android/media/
DMediaFormat.java1385 private Set<String> mKeys; field in MediaFormat.FilteredMappedKeySet
1397 mKeys = mMap.keySet(); in FilteredMappedKeySet()
1406 return keepKey(key) && mKeys.contains(key); in contains()
1415 if (keepKey(key) && mKeys.remove(key)) { in remove()
1432 mKeys.stream().filter(k -> keepKey(k)).collect(Collectors.toList()).iterator(); in KeyIterator()
1460 return (int)mKeys.stream().filter(k -> keepKey(k)).count(); in size()
/frameworks/base/core/java/android/hardware/camera2/
DCameraCharacteristics.java194 private List<CameraCharacteristics.Key<?>> mKeys; field in CameraCharacteristics
266 if (mKeys != null) { in getKeys()
267 return mKeys; in getKeys()
276 mKeys = Collections.unmodifiableList( in getKeys()
278 return mKeys; in getKeys()
/frameworks/native/include/input/
DKeyCharacterMap.h229 KeyedVector<int32_t, Key*> mKeys; variable

12