Home
last modified time | relevance | path

Searched refs:arrayMap (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/
DArrayMapWithHistoryTest.java43 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/
DArrayMapTests.java337 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/
DBatteryController.java1092 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/
DCollectionUtils.java462 ArrayMap<K, V> arrayMap = (ArrayMap<K, V>) cur; in forEach() local
464 action.accept(arrayMap.keyAt(i), arrayMap.valueAt(i)); in forEach()
DXmlUtils.java1137 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()