Searched refs:arrayMap (Results 1 – 5 of 5) sorted by relevance
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/ |
H A D | ArrayMapWithHistoryTest.java | 43 ArrayMap<String, String> arrayMap = new ArrayMap<>(); in testValueHistoryBehavior() local 50 putAndCompareReturnValue(historyMap, arrayMap, "K1", "V1"); in testValueHistoryBehavior() 52 compareKeyAtAndValueAtForIndex(0, historyMap, arrayMap); in testValueHistoryBehavior() 60 compareKeyAtAndValueAtForIndex(0, historyMap, arrayMap); in testValueHistoryBehavior() 69 compareKeyAtAndValueAtForIndex(0, historyMap, arrayMap); in testValueHistoryBehavior() 78 ArrayMap<String, String> arrayMap = new ArrayMap<>(); in testMapBehavior() local 88 compareKeyAtAndValueAtForIndex(0, historyMap, arrayMap); in testMapBehavior() 97 compareKeyAtAndValueAtForIndex(0, historyMap, arrayMap); in testMapBehavior() 98 compareKeyAtAndValueAtForIndex(1, historyMap, arrayMap); in testMapBehavior() 116 ArrayMap<K, V> arrayMap, K key, V value) { in putAndCompareReturnValue() argument [all …]
|
/aosp14/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
H A D | ArrayMapTests.java | 351 oldArray = arrayMap.put(key, i); in run() 358 oldArray = arrayMap.remove(key); in run() 368 dump(hashMap, arrayMap); in run() 376 if (!validateArrayMap(arrayMap)) { in run() 377 dump(hashMap, arrayMap); in run() 380 if (!compareMaps(hashMap, arrayMap)) { in run() 381 dump(hashMap, arrayMap); in run() 390 arrayMap.put(new ControlledHash(50000), 100); in run() 398 if (arrayMap.containsKey(lookup)) { in run() 400 dump(hashMap, arrayMap); in run() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/input/ |
H A D | BatteryController.java | 1092 private static <K, V> boolean anyOf(ArrayMap<K, V> arrayMap, Predicate<V> test) { in anyOf() argument 1093 return findIf(arrayMap, test) != null; in anyOf() 1097 private static <K, V> V findIf(ArrayMap<K, V> arrayMap, Predicate<V> test) { in findIf() argument 1098 for (int i = 0; i < arrayMap.size(); i++) { in findIf() 1099 final V value = arrayMap.valueAt(i); in findIf()
|
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | CollectionUtils.java | 460 ArrayMap<K, V> arrayMap = (ArrayMap<K, V>) cur; in forEach() local 462 action.accept(arrayMap.keyAt(i), arrayMap.valueAt(i)); in forEach()
|
H A D | XmlUtils.java | 1136 String[] name, ReadMapCallback callback, boolean arrayMap) in readThisListXml() argument 1143 Object val = readThisValueXml(parser, name, callback, arrayMap); in readThisListXml() 1201 String[] name, ReadMapCallback callback, boolean arrayMap) in readThisSetXml() argument 1208 Object val = readThisValueXml(parser, name, callback, arrayMap); in readThisSetXml() 1554 ReadMapCallback callback, boolean arrayMap) in readThisValueXml() argument 1620 res = arrayMap in readThisValueXml() 1628 res = readThisListXml(parser, "list", name, callback, arrayMap); in readThisValueXml() 1634 res = readThisSetXml(parser, "set", name, callback, arrayMap); in readThisValueXml()
|