Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/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/core/java/com/android/internal/util/
DXmlUtils.java910 String[] name, ReadMapCallback callback, boolean arrayMap) in readThisListXml() argument
917 Object val = readThisValueXml(parser, name, callback, arrayMap); in readThisListXml()
975 ReadMapCallback callback, boolean arrayMap) in readThisSetXml() argument
982 Object val = readThisValueXml(parser, name, callback, arrayMap); in readThisSetXml()
1407 ReadMapCallback callback, boolean arrayMap) in readThisValueXml() argument
1473 res = arrayMap in readThisValueXml()
1481 res = readThisListXml(parser, "list", name, callback, arrayMap); in readThisValueXml()
1487 res = readThisSetXml(parser, "set", name, callback, arrayMap); in readThisValueXml()