/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/ |
D | ArrayMapWithHistoryTest.java | 43 ArrayMap<String, String> arrayMap = new ArrayMap<>(); in testValueHistoryBehavior() local 45 compareGetAndSizeForKeys(historyMap, arrayMap, entry("K1", null)); in testValueHistoryBehavior() 50 putAndCompareReturnValue(historyMap, arrayMap, "K1", "V1"); in testValueHistoryBehavior() 51 compareGetAndSizeForKeys(historyMap, arrayMap, entry("K1", "V1")); in testValueHistoryBehavior() 52 compareKeyAtAndValueAtForIndex(0, historyMap, arrayMap); in testValueHistoryBehavior() 58 putAndCompareReturnValue(historyMap, arrayMap, "K1", "V2"); in testValueHistoryBehavior() 59 compareGetAndSizeForKeys(historyMap, arrayMap, entry("K1", "V2")); in testValueHistoryBehavior() 60 compareKeyAtAndValueAtForIndex(0, historyMap, arrayMap); in testValueHistoryBehavior() 67 putAndCompareReturnValue(historyMap, arrayMap, "K1", "V3"); in testValueHistoryBehavior() 68 compareGetAndSizeForKeys(historyMap, arrayMap, entry("K1", "V3")); in testValueHistoryBehavior() [all …]
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ArrayMapTests.java | 337 ArrayMap<ControlledHash, Integer> arrayMap = new ArrayMap<ControlledHash, Integer>(); in run() local 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() 392 Iterator<ControlledHash> it = arrayMap.keySet().iterator(); in run() [all …]
|
/frameworks/base/services/core/java/com/android/server/input/ |
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()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | CollectionUtils.java | 462 ArrayMap<K, V> arrayMap = (ArrayMap<K, V>) cur; in forEach() local 464 action.accept(arrayMap.keyAt(i), arrayMap.valueAt(i)); in forEach()
|
D | XmlUtils.java | 1137 String[] name, ReadMapCallback callback, boolean arrayMap) in readThisListXml() argument 1144 Object val = readThisValueXml(parser, name, callback, arrayMap); in readThisListXml() 1202 String[] name, ReadMapCallback callback, boolean arrayMap) in readThisSetXml() argument 1209 Object val = readThisValueXml(parser, name, callback, arrayMap); in readThisSetXml() 1555 ReadMapCallback callback, boolean arrayMap) in readThisValueXml() argument 1621 res = arrayMap in readThisValueXml() 1629 res = readThisListXml(parser, "list", name, callback, arrayMap); in readThisValueXml() 1635 res = readThisSetXml(parser, "set", name, callback, arrayMap); in readThisValueXml()
|