Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 50) sorted by relevance

12

/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DSystemPropsParserTest.java40 SystemPropsItem map = new SystemPropsParser().parse(inputBlock); in testSimpleParse() local
42 assertEquals(4, map.size()); in testSimpleParse()
43 assertEquals("m=y", map.get("dalvik.vm.dexopt-flags")); in testSimpleParse()
44 assertEquals("48m", map.get("dalvik.vm.heapgrowthlimit")); in testSimpleParse()
45 assertEquals("256m", map.get("dalvik.vm.heapsize")); in testSimpleParse()
46 assertEquals("android moto-ril-multimode 1.0", map.get("gsm.version.ril-impl")); in testSimpleParse()
60 SystemPropsItem map = new SystemPropsParser().parse(inputBlock); in testParseError() local
62 assertEquals(2, map.size()); in testParseError()
63 assertEquals("m=y", map.get("dalvik.vm.dexopt-flags")); in testParseError()
64 assertEquals("256m", map.get("dalvik.vm.heapsize")); in testParseError()
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraLatencyTest.java111 RegexTrie<String> map = t.mPatternMap; in testInfoSetup() local
112 map = t.mPatternMap; in testInfoSetup()
113 map.put("FirstCameraStartup", "^First Camera Startup: (\\d+)"); in testInfoSetup()
114 map.put("CameraStartup", "^Camera average startup time: (\\d+) ms"); in testInfoSetup()
120 RegexTrie<String> map = t.mPatternMap; in testInfoSetup() local
121 map = t.mPatternMap; in testInfoSetup()
122 map.put("FirstCameraStartup", "^First Camera Startup: (\\d+)"); in testInfoSetup()
123 map.put("CameraStartup", "^Camera average startup time: (\\d+) ms"); in testInfoSetup()
124 map.put("FirstVideoStartup", "^First Video Startup: (\\d+)"); in testInfoSetup()
125 map.put("VideoStartup", "^Video average startup time: (\\d+) ms"); in testInfoSetup()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DEmmaXmlReporterParserTest.java113 private void assertMapHasValue(Map<String, String> map, String expectedKey, in assertMapHasValue() argument
116 Assert.assertTrue(error, map.containsKey(expectedKey)); in assertMapHasValue()
117 String actualValue = map.get(expectedKey); in assertMapHasValue()
119 expectedKey, expectedValue, map.get(expectedKey)); in assertMapHasValue()
131 private void assertMapHasValueArray(Map<String, String[]> map, String expectedKey, in assertMapHasValueArray() argument
134 Assert.assertTrue(error, map.containsKey(expectedKey)); in assertMapHasValueArray()
135 String[] actualValue = map.get(expectedKey); in assertMapHasValueArray()
137 expectedKey, expectedValue, map.get(expectedKey)); in assertMapHasValueArray()
DRegexTrieTest.java263 HashMap<CompPattern, Integer> map = new HashMap<CompPattern, Integer>(); in testCompPattern_hashmap() local
272 map.put(cp1, STORED_VAL); in testCompPattern_hashmap()
273 assertTrue(map.containsKey(cp1)); in testCompPattern_hashmap()
274 assertTrue(map.containsKey(cp2)); in testCompPattern_hashmap()
275 assertFalse(map.containsKey(cpOther)); in testCompPattern_hashmap()
277 map.put(cpOther, STORED_VAL); in testCompPattern_hashmap()
278 assertEquals(map.size(), 2); in testCompPattern_hashmap()
279 assertTrue(map.containsKey(cp1)); in testCompPattern_hashmap()
280 assertTrue(map.containsKey(cp2)); in testCompPattern_hashmap()
281 assertTrue(map.containsKey(cpOther)); in testCompPattern_hashmap()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DFileUseMap.java63 private TreeSet<FileUseMapEntry<?>> map; field in FileUseMap
88 map = new TreeSet<>(FileUseMapEntry.COMPARE_BY_START); in FileUseMap()
103 map.add(entry); in internalAdd()
116 boolean wasRemoved = map.remove(entry); in internalRemove()
153 Preconditions.checkState(map.contains(entry), "!map.contains(entry)");
194 FileUseMapEntry container = map.floor(entry); in findContainer()
255 prevToMerge = map.floor(FileUseMapEntry.makeFree(start - 1, start)); in coalesce()
268 nextToMerge = map.ceiling(FileUseMapEntry.makeFree(end, end + 1)); in coalesce()
306 FileUseMapEntry<?> last = map.last(); in truncate()
337 FileUseMapEntry<?> last = map.last(); in usedSize()
[all …]
DZFile.java267 private final FileUseMap map; field in ZFile
465 map = new FileUseMap( in ZFile()
509 map.extend(Ints.checkedCast(rafSize)); in ZFile()
629 Verify.verify(end < map.size(), "end >= map.size()"); in readData()
631 FileUseMapEntry<?> found = map.at(start); in readData()
638 found = map.after(found); in readData()
673 FileUseMapEntry<StoredEntry> mapEntry = map.add(start, end, entry); in readData()
807 eocdEntry = map.add(eocdStart, eocdStart + eocd.getEocdSize(), eocd); in readEocd()
863 directoryEntry = map.add( in readCentralDirectory()
958 map.remove(mapEntry); in delete()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DMetricsXMLResultReporterTest.java74 Map<String, String> map = new HashMap<>(); in testRunMetrics() local
75 map.put("metric-1", "1.0"); in testRunMetrics()
83 mResultReporter.testEnded(testId, TfMetricProtoUtil.upgradeConvert(map)); in testRunMetrics()
84 mResultReporter.testRunEnded(3, TfMetricProtoUtil.upgradeConvert(map)); in testRunMetrics()
101 Map<String, String> map = new HashMap<>(); in testTestMetrics() local
102 map.put("metric-1", "1.0"); in testTestMetrics()
110 mResultReporter.testEnded(testId, TfMetricProtoUtil.upgradeConvert(map)); in testTestMetrics()
125 Map<String, String> map = new HashMap<>(); in testTestFailMetrics() local
126 map.put("metric-1", "1.0"); in testTestFailMetrics()
136 mResultReporter.testEnded(testId, TfMetricProtoUtil.upgradeConvert(map)); in testTestFailMetrics()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DBuildInfoAttributePreparerTest.java48 Map<String, String> map = build.getBuildAttributes(); in testSimple() local
49 assertTrue(map.containsKey("key")); in testSimple()
50 assertEquals("value", map.get("key")); in testSimple()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiCompilationUnit.kt104 val map: Multimap<String, Item> = ArrayListMultimap.create() in getImportStatements() constant
107 map.put(item.simpleName(), item) in getImportStatements()
109 map.put(item.name(), item) in getImportStatements()
124 for (name in map.keys()) { in getImportStatements()
134 val all = map.get(name) ?: continue in getImportStatements()
140 map.removeAll(name) in getImportStatements()
/tools/loganalysis/src/com/android/loganalysis/item/
DMemoryHealthItem.java86 private JSONObject mapToJson(Map<String, Map<String, Long>> map) { in mapToJson() argument
88 for (Map.Entry<String, Map<String, Long>> entry : map.entrySet()) { in mapToJson()
98 private JSONObject processToJson(Map<String, Long> map) { in processToJson() argument
100 for (Map.Entry<String, Long> entry : map.entrySet()) { in processToJson()
/tools/loganalysis/tests/src/com/android/loganalysis/util/
DRegexTrieTest.java263 HashMap<CompPattern, Integer> map = new HashMap<CompPattern, Integer>(); in testCompPattern_hashmap() local
272 map.put(cp1, STORED_VAL); in testCompPattern_hashmap()
273 assertTrue(map.containsKey(cp1)); in testCompPattern_hashmap()
274 assertTrue(map.containsKey(cp2)); in testCompPattern_hashmap()
275 assertFalse(map.containsKey(cpOther)); in testCompPattern_hashmap()
277 map.put(cpOther, STORED_VAL); in testCompPattern_hashmap()
278 assertEquals(map.size(), 2); in testCompPattern_hashmap()
279 assertTrue(map.containsKey(cp1)); in testCompPattern_hashmap()
280 assertTrue(map.containsKey(cp2)); in testCompPattern_hashmap()
281 assertTrue(map.containsKey(cpOther)); in testCompPattern_hashmap()
/tools/acloud/internal/proto/
Dinternal_config.proto27 // The map will be updated with values from user config.
28 map <string, string> metadata_variable = 4;
41 map <string, string> device_resolution_map = 2;
43 map <string, string> device_default_orientation_map = 3;
61 // A map from size_gb to the name of a precreated_data_image
62 map <int32, string> precreated_data_image = 11;
65 map <string, int32> valid_branch_and_min_build_id = 12;
81 map <string, string> no_project_access_msg_map = 15;
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DFileUseMapTest.java64 FileUseMap map = new FileUseMap(mapSize, 0); in addPerformanceTest() local
76 long start = map.locateFree(blockSize, rand.nextInt(MAX_RANDOM_ALIGNMENT), in addPerformanceTest()
81 map.extend(mapSize); in addPerformanceTest()
84 map.add(start, end, new Object()); in addPerformanceTest()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationFactoryTest.java114 final Map<String, String> map = new HashMap<String, String>(args.length / 2); in buildMap() local
116 map.put(args[i], args[i + 1]); in buildMap()
119 return map; in buildMap()
158 final Map<ConfigId, String> map = new HashMap<>(); in testConfigId_hashKey() local
167 map.put(config1a, "1a"); in testConfigId_hashKey()
168 assertEquals("1a", map.get(config1a)); in testConfigId_hashKey()
169 assertEquals("1a", map.get(config1b)); in testConfigId_hashKey()
171 map.put(config1b, "1b"); in testConfigId_hashKey()
172 assertEquals("1b", map.get(config1a)); in testConfigId_hashKey()
173 assertEquals("1b", map.get(config1b)); in testConfigId_hashKey()
[all …]
DConfigurationTest.java331 Map<String, Boolean> map = testConfigObject.getMap(); in testInjectMapOptionValue() local
332 assertEquals(1, map.size()); in testInjectMapOptionValue()
333 assertNotNull(map.get(key)); in testInjectMapOptionValue()
334 assertTrue(map.get(key).booleanValue()); in testInjectMapOptionValue()
382 Map<String, Boolean> map = testConfigObject.getMap(); in testInjectParsedMapOptionValue() local
383 assertEquals(1, map.size()); in testInjectParsedMapOptionValue()
384 assertNotNull(map.get(key)); in testInjectParsedMapOptionValue()
385 assertTrue(map.get(key)); in testInjectParsedMapOptionValue()
402 Map<String, Boolean> map = testConfigObject.getMap(); in testInjectOptionValues() local
403 assertEquals(1, map.size()); in testInjectOptionValues()
[all …]
/tools/dexter/slicer/export/slicer/
Dreader.h145 std::map<dex::u4, ir::TypeList*> type_lists_;
146 std::map<dex::u4, ir::Annotation*> annotations_;
147 std::map<dex::u4, ir::AnnotationSet*> annotation_sets_;
148 std::map<dex::u4, ir::AnnotationsDirectory*> annotations_directories_;
149 std::map<dex::u4, ir::EncodedArray*> encoded_arrays_;
Dbytecode_encoder.h81 std::map<dex::u4, const PackedSwitchPayload*> packed_switches_;
82 std::map<dex::u4, const SparseSwitchPayload*> sparse_switches_;
Ddex_ir.h391 std::map<dex::u4, Type*> types_map;
392 std::map<dex::u4, String*> strings_map;
393 std::map<dex::u4, Proto*> protos_map;
394 std::map<dex::u4, FieldDecl*> fields_map;
395 std::map<dex::u4, MethodDecl*> methods_map;
396 std::map<dex::u4, Class*> classes_map;
/tools/tradefederation/core/src/com/android/tradefed/util/proto/
DTfMetricProtoUtil.java37 public static Map<String, String> compatibleConvert(Map<String, Metric> map) { in compatibleConvert() argument
39 for (String key : map.keySet()) { in compatibleConvert()
40 Measurements measures = map.get(key).getMeasurements(); in compatibleConvert()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DTypeItem.kt86 val map = from.mapTypeVariables(to) in <lambda>() constant
87 if (!map.isEmpty()) { in <lambda>()
88 return convertType(map) in <lambda>()
DCodebase.kt168 val map = HashMap<String, String>(600) in getPermissionLevel() constant
174 map[permissionName] = protectionLevel in getPermissionLevel()
177 permissions = map in getPermissionLevel()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DFlashingResourcesParser.java301 private static MultiMap<String, String> getOrCreateEntry(AndroidInfo map, String key) { in getOrCreateEntry() argument
302 if (map.containsKey(key)) { in getOrCreateEntry()
303 return map.get(key); in getOrCreateEntry()
306 map.put(key, value); in getOrCreateEntry()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DGTestXmlResultParser.java187 Map<String, String> map = new HashMap<>(); in processTestResult() local
188 map.put("runtime", parsedResults.mTestRunTime); in processTestResult()
190 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(map)); in processTestResult()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DInvocationContextTest.java69 MultiMap<String, String> map = mContext.getAttributes(); in testGetAttributes() local
70 map.remove("TEST_KEY"); in testGetAttributes()
/tools/tradefederation/core/src/com/android/tradefed/config/
DOptionSetter.java464 Map map = (Map) field.get(optionSource); in setFieldValue() local
465 if (map == null) { in setFieldValue()
475 map.putAll((Map)value); in setFieldValue()
482 map.put(key, value); in setFieldValue()
486 MultiMap map = (MultiMap)field.get(optionSource); in setFieldValue() local
487 if (map == null) { in setFieldValue()
497 map.putAll((MultiMap)value); in setFieldValue()
504 map.put(key, value); in setFieldValue()
803 Map map = (Map)fieldValue; in getFieldValueAsString() local
804 if (map.isEmpty()) { in getFieldValueAsString()

12