Home
last modified time | relevance | path

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

1234

/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.java268 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/platform-compat/java/com/android/class2nonsdklist/
DClass2NonSdkList.java68 Map<Integer, String> map = new HashMap<>();
69 map.put(null, FLAG_UNSUPPORTED); in map.put()
70 map.put(0, FLAG_BLOCKED);
71 map.put(26, FLAG_MAX_TARGET_O);
72 map.put(28, FLAG_MAX_TARGET_P);
73 map.put(29, FLAG_MAX_TARGET_Q);
74 map.put(30, FLAG_MAX_TARGET_R);
75 map.put(10000, FLAG_UNSUPPORTED); // VMRuntime.SDK_VERSION_CUR_DEVELOPMENT
76 TARGET_SDK_TO_LIST_MAP = Collections.unmodifiableMap(map);
182 .map(s -> Splitter.on(",").splitToList(s)) in Class2NonSdkList()
[all …]
/tools/trebuchet/trebuchet/startup-summarizer/src/
DStartupSummarizer.kt195 …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/metalava/src/main/java/com/android/tools/metalava/
DBaseline.kt61 private val map = HashMap<Issues.Issue, MutableMap<String, String>>() in <lambda>() constant in com.android.tools.metalava.Baseline
89 val idMap: MutableMap<String, String>? = map[issue] ?: run { in <lambda>()
95 map[issue] = new in <lambda>()
224 val newIdMap = map[issue] ?: run { in <lambda>()
226 map[issue] = new in <lambda>()
236 if (map.isNotEmpty() || !options.deleteEmptyBaselines) { in <lambda>()
241 map.keys.asSequence().sortedBy { it.name }.forEach { issue -> in <lambda>()
242 val idMap = map[issue] in <lambda>()
267 map.keys.asSequence().forEach { issue -> in <lambda>()
268 val idMap = map[issue] in <lambda>()
DSignatureFileLoader.kt25 private val map = mutableMapOf<File, Codebase>() constant
31 return map[file] ?: run { in load()
33 map[file] = loaded in load()
DApiAnalyzer.kt212 .map { it.isPrivate } in <lambda>()
293 … interfaceTypes.asSequence().map { it.asClass() }.filterNotNull().toMutableList() in <lambda>()
411 val map = HashMap<String, MutableList<MethodItem>>() in <lambda>() constant
425 val list = map[name] ?: run { in <lambda>()
427 map[name] = newList in <lambda>()
441 val candidates = map[name] ?: continue in <lambda>()
453 map.values.forEach { methods -> in <lambda>()
476 map.values.flatten().forEach { in <lambda>()
/tools/acloud/internal/proto/
Dinternal_config.proto27 // 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/
DPsiClassItem.kt311 for (map in maps) { in <lambda>() variable
312 val value = map[variable] in <lambda>()
579 .map { in <lambda>()
697 val map = mapTypeVariablesToSuperclass(superType) in <lambda>() constant
698 return if (map != null) { in <lambda>()
699 mutableListOf(map) in <lambda>()
709 val map = mapTypeVariablesToSuperclass(superType) in <lambda>() constant
710 if (map != null) { in <lambda>()
711 list.add(map) in <lambda>()
724 val map = mutableMapOf<String, String>() in <lambda>() constant
[all …]
DPsiCompilationUnit.kt147 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()
DPsiBasedCodebase.kt153 classes = uFile?.classes?.map { it }?.toList() ?: emptyList() in <lambda>()
632 val map = HashMap<PsiMethod, PsiMethodItem>(40) in <lambda>() constant
633 registerMethods(cls.methods(), map) in <lambda>()
634 registerMethods(cls.constructors(), map) in <lambda>()
635 methodMap[cls] = map in <lambda>()
669 …private fun registerMethods(methods: List<MethodItem>, map: MutableMap<PsiMethod, PsiMethodItem>) { in <lambda>()
672 map[psiMethod] = method in <lambda>()
/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_;
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/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/security/fuzzing/orphans/libcppbor/
Dcppbor_fuzzer.cpp34 cppbor::Map map; in FuzzVectorParsing() local
35 map.add(key1, cppbor::Array().add(cppbor::Map().add(key2, contentsBytes))); in FuzzVectorParsing()
36 cppbor::parse(map.encode()); in FuzzVectorParsing()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DBatchProcessor.kt104 map: (S, T) -> U): Iterator<U> { in par_map()
118 future.complete(source.map { map(state, it) }) in par_map()
/tools/metalava/src/test/java/com/android/tools/metalava/
DFileReadSandboxTest.kt76 …root, goodFile, goodDir, goodDirFile, subDir, subSubDir, subSubDirGoodFile).map { it.absolutePath } in Test sandbox()
87 val fileSet = files.map { it.absolutePath }.toSet() in Test sandbox()
93 val fileSet = files.map { it.absolutePath }.toSet() in Test sandbox()
DDriverTest.kt83 .map { it.createFile(dir) } in <lambda>()
535 … sourceFiles.asSequence().map { File(project, it.targetPath).path }.toList().toTypedArray() in <lambda>()
540 .map { it.createFile(project) } in <lambda>()
541 .map { it.path } in <lambda>()
1372 … Files.asCharSource(validateNullabilityTxt, UTF_8).readLines().map(String::trim).toSet() in <lambda>()
1383 … val existing = stubsDir.walkTopDown().filter { it.isFile }.map { it.path }.joinToString("\n ") in <lambda>()
1416 …val generated = gatherSources(listOf(stubsDir)).asSequence().map { it.path }.toList().toTypedArray… in <lambda>()
1425 … gatherSources(listOf(extraAnnotationsDir)).asSequence().map { it.path }.toList().toTypedArray() in <lambda>()
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/
Dradvd.py176 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/dexter/dexter/
Dexperimental.cc457 static void PrintHistogram(const std::map<int, int> histogram, const char* name) { in PrintHistogram()
476 std::map<int, int> regs_histogram; in RegsHistogram()
477 std::map<int, int> param_histogram; in RegsHistogram()
478 std::map<int, int> extra_histogram; in RegsHistogram()
533 std::map<std::string, Experiment> experiments_registry = {
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DJavaStubWriter.kt192 val map = cls.mapTypeVariables(s) in <lambda>() constant
193 val replaced = superClass.convertTypeString(map) in <lambda>()
297 … val map = constructor?.containingClass()?.mapTypeVariables(it.containingClass()) in <lambda>() constant
298 val cast = map?.get(type.toTypeString(context = it)) ?: typeString in <lambda>()
/tools/trebuchet/trebuchet/startup-common/src/
DStartupCommon.kt115 map { it.slices }. in findProcess()
117 map { it.first().startTime }. in findProcess()
145 …val firstSliceTime = newProc.threads.map { it.slices.firstOrNull()?.startTime ?: Double.POSITIVE_I… in Model()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DTypeItem.kt104 val map = from.mapTypeVariables(to) in <lambda>() constant
105 if (map.isNotEmpty()) { in <lambda>()
106 return convertType(map) in <lambda>()
DCodebase.kt284 val map = HashMap<String, String>(600) in getPermissionLevel() constant
290 map[permissionName] = protectionLevel in getPermissionLevel()
293 permissions = map in getPermissionLevel()
/tools/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/
DGameCoreConfiguration.java46 .map(CertificationRequirements::getName) in validateConfiguration()
51 .map(ApkInfo::getName) in validateConfiguration()

1234