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/src/com/android/tradefed/util/ |
D | MultiMap.java | 184 Map<String, V> uniqueMap = new HashMap<String, V>(); in getUniqueMap() local 189 addUniqueEntry(uniqueMap, entry.getKey().toString(), value); in getUniqueMap() 192 addUniqueEntry(uniqueMap, String.format("%s%d", entry.getKey(), count), value); in getUniqueMap() 197 return uniqueMap; in getUniqueMap() 208 private String addUniqueEntry(Map<String, V> uniqueMap, String proposedKey, V value) { in addUniqueEntry() argument 210 if (uniqueMap.containsKey(proposedKey)) { in addUniqueEntry() 211 return addUniqueEntry(uniqueMap, String.format("%s%s", proposedKey, "X"), value); in addUniqueEntry() 213 uniqueMap.put(proposedKey, value); in addUniqueEntry()
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | ConfigurationFactory.java | 559 Map<String, String> uniqueMap = parserSettings.templateMap.getUniqueMap(); in internalCreateConfigurationFromArgs() local 560 ConfigurationDef configDef = getConfigurationDef(configName, false, uniqueMap); in internalCreateConfigurationFromArgs() 561 if (!uniqueMap.isEmpty()) { in internalCreateConfigurationFromArgs() 571 String.format("Unused template:map parameters: %s", uniqueMap.toString())); in internalCreateConfigurationFromArgs()
|