/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | ZFile.java | 268 private final FileUseMap map; field in ZFile 466 map = new FileUseMap( in ZFile() 510 map.extend(Ints.checkedCast(rafSize)); in ZFile() 630 Verify.verify(end < map.size(), "end >= map.size()"); in readData() 632 FileUseMapEntry<?> found = map.at(start); in readData() 639 found = map.after(found); in readData() 674 FileUseMapEntry<StoredEntry> mapEntry = map.add(start, end, entry); in readData() 808 eocdEntry = map.add(eocdStart, eocdStart + eocd.getEocdSize(), eocd); in readEocd() 864 directoryEntry = map.add( in readCentralDirectory() 959 map.remove(mapEntry); in delete() [all …]
|
D | FileUseMap.java | 63 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 …]
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraLatencyTest.java | 111 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 …]
|
D | AudioLoopbackTest.java | 812 final Map<LogFileType, LogFileData> map = getLogFileDataKeyMap(); in getDeviceFilename() local 813 if (map.containsKey(key)) { in getDeviceFilename() 814 final LogFileData data = map.get(key); in getDeviceFilename() 821 final Map<LogFileType, LogFileData> map = getLogFileDataKeyMap(); in uploadLog() local 822 if (!map.containsKey(key)) { in uploadLog() 826 final LogFileData logInfo = map.get(key); in uploadLog()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationFactoryTest.java | 162 final Map<String, String> map = new HashMap<String, String>(args.length / 2); in buildMap() local 164 map.put(args[i], args[i + 1]); in buildMap() 167 return map; in buildMap() 206 final Map<ConfigId, String> map = new HashMap<>(); in testConfigId_hashKey() local 215 map.put(config1a, "1a"); in testConfigId_hashKey() 216 assertEquals("1a", map.get(config1a)); in testConfigId_hashKey() 217 assertEquals("1a", map.get(config1b)); in testConfigId_hashKey() 219 map.put(config1b, "1b"); in testConfigId_hashKey() 220 assertEquals("1b", map.get(config1a)); in testConfigId_hashKey() 221 assertEquals("1b", map.get(config1b)); in testConfigId_hashKey() [all …]
|
D | ConfigurationTest.java | 358 Map<String, Boolean> map = testConfigObject.getMap(); in testInjectMapOptionValue() local 359 assertEquals(1, map.size()); in testInjectMapOptionValue() 360 assertNotNull(map.get(key)); in testInjectMapOptionValue() 361 assertTrue(map.get(key).booleanValue()); in testInjectMapOptionValue() 409 Map<String, Boolean> map = testConfigObject.getMap(); in testInjectParsedMapOptionValue() local 410 assertEquals(1, map.size()); in testInjectParsedMapOptionValue() 411 assertNotNull(map.get(key)); in testInjectParsedMapOptionValue() 412 assertTrue(map.get(key)); in testInjectParsedMapOptionValue() 429 Map<String, Boolean> map = testConfigObject.getMap(); in testInjectOptionValues() local 430 assertEquals(1, map.size()); in testInjectOptionValues() [all …]
|
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
D | SystemPropsParserTest.java | 40 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/trebuchet/trebuchet/startup-summarizer/src/ |
D | StartupSummarizer.kt | 195 …erage, startupTimeStandardDeviation) = averageAndStandardDeviation(records.map {it.endTime - it.st… in printSampleSetPlainText() 196 …, timeToFirstSliceStandardDeviation) = averageAndStandardDeviation(records.map {it.firstSliceTime … in printSampleSetPlainText() 197 …differentiatedTimeStandardDeviation) = averageAndStandardDeviation(records.map {it.undifferentiate… in printSampleSetPlainText() 207 …val (rfdTimeAverage, rfdTimeStandardDeviation) = averageAndStandardDeviation(records.map { it.repo… in printSampleSetPlainText() 216 …ge, schedStateTimeStandardDeviation) = averageAndStandardDeviation(records.map {it.schedTimings.ge… in printSampleSetPlainText() 258 printSliceTimings(records.map {it.topLevelSliceInfo}, false) in printSampleSetPlainText() 261 printSliceTimings(records.map {it.nonNestedSliceInfo}, true) in printSampleSetPlainText() 264 printSliceTimings(records.map {it.undifferentiatedSliceInfo}, true) in printSampleSetPlainText() 305 …erage, startupTimeStandardDeviation) = averageAndStandardDeviation(records.map {it.endTime - it.st… in printSampleSetCSV() 308 …, timeToFirstSliceStandardDeviation) = averageAndStandardDeviation(records.map {it.firstSliceTime … in printSampleSetCSV() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | MetricsXMLResultReporterTest.java | 74 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()
|
D | LegacySubprocessResultsReporterTest.java | 107 Map<String, String> map = new HashMap<>(); in testPrintEvent_legacyMethodCalls() local 108 map.put("key1", "value1"); in testPrintEvent_legacyMethodCalls() 109 map.put("key2", "value2"); in testPrintEvent_legacyMethodCalls() 112 mMockListener.testRunEnded(50, TfMetricProtoUtil.upgradeConvert(map)); in testPrintEvent_legacyMethodCalls() 115 mReporter.testRunEnded(50, map); in testPrintEvent_legacyMethodCalls()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiClassItem.kt | 308 for (map in maps) { in <lambda>() variable 309 val value = map[variable] in <lambda>() 543 .map { in <lambda>() 661 val map = mapTypeVariablesToSuperclass(superType) in <lambda>() constant 662 return if (map != null) { in <lambda>() 663 mutableListOf(map) in <lambda>() 673 val map = mapTypeVariablesToSuperclass(superType) in <lambda>() constant 674 if (map != null) { in <lambda>() 675 list.add(map) in <lambda>() 688 val map = mutableMapOf<String, String>() in <lambda>() constant [all …]
|
D | PsiCompilationUnit.kt | 147 val map: Multimap<String, Item> = ArrayListMultimap.create() in getImportStatements() constant 150 map.put(item.simpleName(), item) in getImportStatements() 152 map.put(item.name(), item) in getImportStatements() 180 for (name in map.keys()) { in getImportStatements() 190 val all = map.get(name) ?: continue in getImportStatements() 196 map.removeAll(name) in getImportStatements()
|
D | PsiBasedCodebase.kt | 154 classes = uFile?.classes?.map { it }?.toList() ?: emptyList() in <lambda>() 633 val map = HashMap<PsiMethod, PsiMethodItem>(40) in <lambda>() constant 634 registerMethods(cls.methods(), map) in <lambda>() 635 registerMethods(cls.constructors(), map) in <lambda>() 636 methodMap[cls] = map in <lambda>() 670 …private fun registerMethods(methods: List<MethodItem>, map: MutableMap<PsiMethod, PsiMethodItem>) { in <lambda>() 673 map[psiMethod] = method in <lambda>()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | Baseline.kt | 61 private val map = HashMap<Issues.Issue, MutableMap<String, String>>() in <lambda>() constant 89 val idMap: MutableMap<String, String>? = map[issue] ?: run { in <lambda>() 95 map[issue] = new in <lambda>() 226 val newIdMap = map[issue] ?: run { in <lambda>() 228 map[issue] = new in <lambda>() 238 if (map.isNotEmpty() || !options.deleteEmptyBaselines) { in <lambda>() 243 map.keys.asSequence().sortedBy { it.name }.forEach { issue -> in <lambda>() 244 val idMap = map[issue] in <lambda>() 269 map.keys.asSequence().forEach { issue -> in <lambda>() 270 val idMap = map[issue] in <lambda>()
|
D | ApiAnalyzer.kt | 214 .map { it.isPrivate } in <lambda>() 295 … interfaceTypes.asSequence().map { it.asClass() }.filterNotNull().toMutableList() in <lambda>() 413 val map = HashMap<String, MutableList<MethodItem>>() in <lambda>() constant 427 val list = map[name] ?: run { in <lambda>() 429 map[name] = newList in <lambda>() 443 val candidates = map[name] ?: continue in <lambda>() 455 map.values.forEach { methods -> in <lambda>() 478 map.values.flatten().forEach { in <lambda>()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | RegexTrieTest.java | 263 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/loganalysis/tests/src/com/android/loganalysis/util/ |
D | RegexTrieTest.java | 263 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/ |
D | internal_config.proto | 27 // The map will be updated with values from user config. 28 map <string, string> metadata_variable = 4; 59 map <string, string> device_resolution_map = 2; 61 map <string, string> device_default_orientation_map = 3; 79 // A map from size_gb to the name of a precreated_data_image 80 map <int32, string> precreated_data_image = 11; 83 map <string, int32> valid_branch_and_min_build_id = 12; 100 map <string, string> no_project_access_msg_map = 15; 110 map <string, string> common_hw_property_map = 18;
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | OptionSetter.java | 478 Map map = (Map) field.get(optionSource); in setFieldValue() local 479 if (map == null) { in setFieldValue() 489 map.putAll((Map)value); in setFieldValue() 496 map.put(key, value); in setFieldValue() 500 MultiMap map = (MultiMap)field.get(optionSource); in setFieldValue() local 501 if (map == null) { in setFieldValue() 511 map.putAll((MultiMap)value); in setFieldValue() 518 map.put(key, value); in setFieldValue() 828 Map map = (Map)fieldValue; in getFieldValueAsString() local 829 if (map.isEmpty()) { in getFieldValueAsString()
|
/tools/loganalysis/src/com/android/loganalysis/util/config/ |
D | OptionSetter.java | 291 Map map = (Map)field.get(optionSource); in setFieldValue() local 292 if (map == null) { in setFieldValue() 299 map.putAll((Map)value); in setFieldValue() 385 Map map = (Map)field.get(optionSource); in setOptionMapValue() local 386 if (map == null) { in setOptionMapValue() 392 map.put(pair.mKey, pair.mValue); in setOptionMapValue() 613 Map map = (Map)fieldValue; in getFieldValueAsString() local 614 if (map.isEmpty()) { in getFieldValueAsString()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | MultiMap.java | 43 public MultiMap(MultiMap<K, V> map) { in MultiMap() argument 45 for (K key : map.keySet()) { in MultiMap() 46 List<V> value = map.get(key); in MultiMap() 51 public MultiMap(Map<K, V> map) { in MultiMap() argument 53 for (K key : map.keySet()) { in MultiMap() 54 put(key, map.get(key)); in MultiMap()
|
/tools/dexter/slicer/export/slicer/ |
D | dex_ir.h | 391 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;
|
D | reader.h | 145 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_;
|
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/ |
D | AggregatePostProcessor.java | 81 metrics.stream().map(Metric::getMeasurements).collect(Collectors.toList()); in processTestMetricsAndLogs() 85 .map(Measurements::getSingleString) in processTestMetricsAndLogs() 86 .map( in processTestMetricsAndLogs() 97 .map(String::trim) in processTestMetricsAndLogs() 158 values.stream().map(Double::parseDouble).collect(Collectors.toList());
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | RuntimeRestartCollector.java | 196 .map(d -> d.getElapsedTimestampNanos()) in onTestRunEnd() 237 .map(t -> String.valueOf(t)) in addStatsdStatsBasedMetrics() 247 .map(t -> timestampToHoursMinutesSeconds(t)) in addStatsdStatsBasedMetrics() 265 .map(t -> String.valueOf(t)) in addAtomBasedMetrics() 275 .map(t -> nanosToHoursMinutesSeconds(t)) in addAtomBasedMetrics()
|