/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 …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
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 …]
|
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 …]
|
/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/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/metalava/src/main/java/com/android/tools/metalava/ |
D | SignatureFileLoader.kt | 25 private val map = mutableMapOf<File, Codebase>() constant 31 return map[file] ?: run { in load() 33 map[file] = loaded in load()
|
/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/loganalysis/src/com/android/loganalysis/item/ |
D | MemoryHealthItem.java | 86 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/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | FileUseMapTest.java | 64 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/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/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiCompilationUnit.kt | 125 val map: Multimap<String, Item> = ArrayListMultimap.create() in getImportStatements() constant 128 map.put(item.simpleName(), item) in getImportStatements() 130 map.put(item.name(), item) in getImportStatements() 158 for (name in map.keys()) { in getImportStatements() 168 val all = map.get(name) ?: continue in getImportStatements() 174 map.removeAll(name) in getImportStatements()
|
/tools/dexter/slicer/export/slicer/ |
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_;
|
D | bytecode_encoder.h | 81 std::map<dex::u4, const PackedSwitchPayload*> packed_switches_; 82 std::map<dex::u4, const SparseSwitchPayload*> sparse_switches_;
|
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;
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationFactoryTest.java | 161 final Map<String, String> map = new HashMap<String, String>(args.length / 2); in buildMap() local 163 map.put(args[i], args[i + 1]); in buildMap() 166 return map; in buildMap() 205 final Map<ConfigId, String> map = new HashMap<>(); in testConfigId_hashKey() local 214 map.put(config1a, "1a"); in testConfigId_hashKey() 215 assertEquals("1a", map.get(config1a)); in testConfigId_hashKey() 216 assertEquals("1a", map.get(config1b)); in testConfigId_hashKey() 218 map.put(config1b, "1b"); in testConfigId_hashKey() 219 assertEquals("1b", map.get(config1a)); in testConfigId_hashKey() 220 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/tradefederation/core/test_result_interfaces/com/android/tradefed/util/proto/ |
D | TfMetricProtoUtil.java | 37 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/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/ |
D | GameCoreConfiguration.java | 46 .map(CertificationRequirements::getName) in validateConfiguration() 51 .map(ApkInfo::getName) in validateConfiguration()
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | FileReadSandboxTest.kt | 76 …root, goodFile, goodDir, goodDirFile, subDir, subSubDir, subSubDirGoodFile).map { it.absolutePath } in Test sandbox() 88 val fileSet = files.map { it.absolutePath }.toSet() in Test sandbox() 94 val fileSet = files.map { it.absolutePath }.toSet() in Test sandbox()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/ |
D | BatchProcessor.kt | 104 map: (S, T) -> U): Iterator<U> { in par_map() 118 future.complete(source.map { map(state, it) }) in par_map()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/error/ |
D | ErrorIdentifierTest.java | 41 List<String> names = errors.stream().map(e -> e.name()).collect(Collectors.toList()); in testUniqueErrors() 53 errors.stream().map(e -> Long.toString(e.code())).collect(Collectors.toList()); in testUniqueErrors()
|
/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()
|
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/ |
D | radvd.py | 176 lines.append('\t\t%s;' % ' '.join(map(str, prefix_option))) 187 lines.append('\t\t%s;' % ' '.join(map(str, route_option))) 193 lines.append('\t\t%s;' % ' '.join(map(str, rdnss_option)))
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | FlashingResourcesParser.java | 318 private static MultiMap<String, String> getOrCreateEntry(AndroidInfo map, String key) { in getOrCreateEntry() argument 319 if (map.containsKey(key)) { in getOrCreateEntry() 320 return map.get(key); in getOrCreateEntry() 323 map.put(key, value); in getOrCreateEntry()
|