Searched refs:uniqueMap (Results 1 – 3 of 3) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | MultiMapTest.java | 41 Map<String, String> uniqueMap = multiMap.getUniqueMap(); in testGetUniqueMap() local 42 assertEquals(4, uniqueMap.size()); in testGetUniqueMap() 45 assertTrue(checkKeyForValue(uniqueMap, "value1")); in testGetUniqueMap() 46 assertTrue(checkKeyForValue(uniqueMap, "value2")); in testGetUniqueMap() 47 assertTrue(checkKeyForValue(uniqueMap, "collisionKeyvalue")); in testGetUniqueMap() 49 assertEquals("value", uniqueMap.get("uniquekey")); in testGetUniqueMap() 60 private boolean checkKeyForValue(Map<String, String> uniqueMap, String value) { in checkKeyForValue() argument 61 for (Map.Entry<String, String> entry : uniqueMap.entrySet()) { in checkKeyForValue()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | MultiMap.java | 191 Map<String, V> uniqueMap = new HashMap<String, V>(); in getUniqueMap() local 196 addUniqueEntry(uniqueMap, entry.getKey().toString(), value); in getUniqueMap() 199 addUniqueEntry(uniqueMap, String.format("%s%d", entry.getKey(), count), value); in getUniqueMap() 204 return uniqueMap; in getUniqueMap() 215 private String addUniqueEntry(Map<String, V> uniqueMap, String proposedKey, V value) { in addUniqueEntry() argument 217 if (uniqueMap.containsKey(proposedKey)) { in addUniqueEntry() 218 return addUniqueEntry(uniqueMap, String.format("%s%s", proposedKey, "X"), value); in addUniqueEntry() 220 uniqueMap.put(proposedKey, value); in addUniqueEntry()
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | ConfigurationFactory.java | 598 Map<String, String> uniqueMap = in internalCreateConfigurationFromArgs() local 600 ConfigurationDef configDef = getConfigurationDef(configName, false, uniqueMap); in internalCreateConfigurationFromArgs() 601 if (!uniqueMap.isEmpty()) { in internalCreateConfigurationFromArgs() 611 String.format("Unused template:map parameters: %s", uniqueMap.toString())); in internalCreateConfigurationFromArgs()
|