Searched refs:uniqueMap (Results 1 – 3 of 3) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | MultiMapTest.java | 36 Map<String, String> uniqueMap = multiMap.getUniqueMap(); in testGetUniqueMap() local 37 assertEquals(4, uniqueMap.size()); in testGetUniqueMap() 40 assertTrue(checkKeyForValue(uniqueMap, "value1")); in testGetUniqueMap() 41 assertTrue(checkKeyForValue(uniqueMap, "value2")); in testGetUniqueMap() 42 assertTrue(checkKeyForValue(uniqueMap, "collisionKeyvalue")); in testGetUniqueMap() 44 assertEquals("value", uniqueMap.get("uniquekey")); in testGetUniqueMap() 55 private boolean checkKeyForValue(Map<String, String> uniqueMap, String value) { in checkKeyForValue() argument 56 for (Map.Entry<String, String> entry : uniqueMap.entrySet()) { in checkKeyForValue()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | MultiMap.java | 160 Map<String, V> uniqueMap = new HashMap<String, V>(); in getUniqueMap() local 165 addUniqueEntry(uniqueMap, entry.getKey().toString(), value); in getUniqueMap() 168 addUniqueEntry(uniqueMap, String.format("%s%d", entry.getKey(), count), value); in getUniqueMap() 173 return uniqueMap; in getUniqueMap() 184 private String addUniqueEntry(Map<String, V> uniqueMap, String proposedKey, V value) { in addUniqueEntry() argument 186 if (uniqueMap.containsKey(proposedKey)) { in addUniqueEntry() 187 return addUniqueEntry(uniqueMap, String.format("%s%s", proposedKey, "X"), value); in addUniqueEntry() 189 uniqueMap.put(proposedKey, value); in addUniqueEntry()
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | ConfigurationFactory.java | 557 Map<String, String> uniqueMap = parserSettings.templateMap.getUniqueMap(); in internalCreateConfigurationFromArgs() local 558 ConfigurationDef configDef = getConfigurationDef(configName, false, uniqueMap); in internalCreateConfigurationFromArgs() 559 if (!uniqueMap.isEmpty()) { in internalCreateConfigurationFromArgs() 569 String.format("Unused template:map parameters: %s", uniqueMap.toString())); in internalCreateConfigurationFromArgs()
|