Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/tools/metalava/src/main/java/com/android/tools/metalava/model/
DModifierList.kt253 val list = if (removeAbstract || removeFinal || addPublic) { in <lambda>() constant
280 list, in <lambda>()
307 val visibilityLevel = list.getVisibilityLevel() in <lambda>()
312 if (list.isDefault()) { in <lambda>()
316 … if (list.isStatic() && (compatibility.staticEnums || classItem == null || !classItem.isEnum())) { in <lambda>()
320 if (list.isFinal() && in <lambda>()
330 if (list.isSealed()) { in <lambda>()
334 if (list.isSuspend()) { in <lambda>()
338 if (list.isInline()) { in <lambda>()
342 if (list.isInfix()) { in <lambda>()
[all …]
DClassItem.kt633 val list = fields.toMutableList() in <lambda>() constant
634 list.sortWith(FieldItem.comparator) in <lambda>()
635 return list in <lambda>()
710 val list = ArrayList<ClassItem>() in <lambda>() constant
712 list.add(this) in <lambda>()
714 addInnerClasses(list, this) in <lambda>()
715 return list.asSequence() in <lambda>()
718 private fun addInnerClasses(list: MutableList<ClassItem>, cls: ClassItem) { in <lambda>()
720 list.add(innerClass) in <lambda>()
721 addInnerClasses(list, innerClass) in <lambda>()
DAnnotationItem.kt744 val list = mutableListOf<AnnotationAttribute>() // TODO: default size = 2 in createList() constant
755 addAttribute(list, source, begin, index) in createList()
767 addAttribute(list, source, begin, length) in createList()
770 return list in createList()
787 …private fun addAttribute(list: MutableList<AnnotationAttribute>, source: String, from: Int, to: In… in addAttribute()
806 list.add(DefaultAnnotationAttribute.create(name, value)) in addAttribute()
/tools/metalava/src/main/java/com/android/tools/metalava/
DApiAnalyzer.kt344 val list = interfaceNames[name] ?: run { in <lambda>() constant
345 val list = ArrayList<MethodItem>() in <lambda>() constant
346 interfaceNames[name] = list in <lambda>()
347 list in <lambda>()
349 list.add(method) in <lambda>()
361 val list = interfaceNames[name] ?: run { in <lambda>() constant
362 val list = ArrayList<MethodItem>() in <lambda>() constant
363 interfaceNames[name] = list in <lambda>()
364 list in <lambda>()
366 list.add(method) in <lambda>()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextTypeParameterList.kt49 val list = ArrayList<TypeParameterItem>(strings.size) in typeParameters() constant
50 strings.mapTo(list) { TextTypeParameterItem.create(codebase, owner, it) } in typeParameters()
51 typeParameters = list in typeParameters()
63 val list = mutableListOf<String>() in typeParameterStrings() constant
75 add(list, s, start, i + 1) in typeParameterStrings()
78 add(list, s, start, i) in typeParameterStrings()
79 return list in typeParameterStrings()
83 add(list, s, start, i) in typeParameterStrings()
93 return list in typeParameterStrings()
96 private fun add(list: MutableList<String>, s: String, from: Int, to: Int) { in add()
[all …]
DTextTypeParameterItem.kt105 val list = mutableListOf<String>() in bounds() constant
112 add(list, typeString, start, i) in bounds()
117 add(list, typeString, start, i) in bounds()
127 add(list, typeString, start, length) in bounds()
129 return list in bounds()
132 private fun add(list: MutableList<String>, s: String, from: Int, to: Int) { in add()
147 list.add(element) in add()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiBasedCodebase.kt348 var list = packageToClasses[packageName] in <lambda>() variable
349 if (list == null) { in <lambda>()
350 list = mutableListOf() in <lambda>()
351 packageToClasses[packageName] = list in <lambda>()
361 var list = packageToClasses[packageName] in <lambda>() variable
362 if (list == null) { in <lambda>()
363 list = mutableListOf(classItem) in <lambda>()
364 packageToClasses[packageName] = list in <lambda>()
366 list.add(classItem) in <lambda>()
418 var list = packageClasses[packageName] in <lambda>() variable
[all …]
DPsiClassItem.kt564 val list = mutableListOf<String>() in <lambda>() constant
569 list.add(name) in <lambda>()
575 return list.asReversed().asSequence().joinToString(separator = ".") { it } in <lambda>()
626 val list = mapTypeVariablesToSuperclass( in <lambda>() constant
630 if (list != null) { in <lambda>()
631 return list in <lambda>()
637 val list = mapTypeVariablesToSuperclass( in <lambda>() constant
641 if (list != null) { in <lambda>()
642 return list in <lambda>()
668 val list = mapTypeVariablesToSuperclass( in <lambda>() constant
[all …]
DPsiTypePrinter.kt98 list: List<PsiAnnotation>?, in <lambda>()
103 val nullable: Boolean? = getNullable(list, elementAnnotations) in <lambda>()
339 … val list = if (remaining != null) listOf(*remaining) else getAnnotations(reference) in <lambda>() constant
340 appendAnnotations(buffer, list, elementAnnotations) in <lambda>()
351 appendNullnessSuffix(list, buffer, elementAnnotations) in <lambda>()
372 …private fun getNullable(list: List<PsiAnnotation>?, elementAnnotations: List<AnnotationItem>?): Bo… in <lambda>()
383 list ?: return null in <lambda>()
385 for (annotation in list) { in <lambda>()
397 …private fun getNullable(list: Array<PsiAnnotation>?, elementAnnotations: List<AnnotationItem>?): B… in <lambda>()
408 list ?: return null in <lambda>()
[all …]
DPsiTypeItem.kt736 val list = mutableListOf<ClassItem>() in typeParameterClasses() constant
757 list, in typeParameterClasses()
770 list, codebase.findOrCreateClass(resolved) in typeParameterClasses()
782 list, in typeParameterClasses()
794 list, type.bound in typeParameterClasses()
800 list, type.extendsBound in typeParameterClasses()
806 list, type.superBound in typeParameterClasses()
817 return list in typeParameterClasses()
DPsiTypeParameterList.kt32 val list = ArrayList<String>(parameters.size) in typeParameterNames() constant
34 list.add(parameter.name ?: continue) in typeParameterNames()
36 return list in typeParameterNames()
41 val list = ArrayList<TypeParameterItem>(parameters.size) in typeParameters() constant
42 parameters.mapTo(list) { PsiTypeParameterItem.create(codebase, it) } in typeParameters()
43 return list in typeParameters()
DUAnnotationItem.kt88 val list = mutableListOf<AnnotationAttribute>() in <lambda>() constant
90 list.add( in <lambda>()
97 list in <lambda>()
125 val list = mutableListOf<Pair<String?, UExpression?>>() in <lambda>() constant
131 list.add(Pair(method.name, annotation.findAttributeValue(method.name))) in <lambda>()
135 list.add(Pair(attr.name, attr.expression)) in <lambda>()
138 return list in <lambda>()
DPsiAnnotationItem.kt89 val list = mutableListOf<AnnotationAttribute>() in <lambda>() constant
91 list.add( in <lambda>()
98 list in <lambda>()
140 val list = mutableListOf<Pair<String?, PsiAnnotationMemberValue?>>() in <lambda>() constant
146 list.add(Pair(method.name, annotation.findAttributeValue(method.name))) in <lambda>()
150 list.add(Pair(attr.name, attr.value)) in <lambda>()
153 return list in <lambda>()
/tools/acloud/
DREADME.md41 * [list](#list)
110 The full list of options are available via `--help`
114 #### **list**
123 > $ acloud list
125 * List -v will show more detail info on the list.
127 > $ acloud list -v
139 * Delete sole instance or prompt user with list of instances to delete.
160 * Reconnect sole instance or prompt user with list of instances to reconnect.
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DFileSystemLogSaverTest.java272 assertEquals(1, mReportDir.list().length); in testCreateReportDirectory_sharded()
273 assertEquals(BRANCH, mReportDir.list()[0]); in testCreateReportDirectory_sharded()
274 assertEquals(1, mReportDir.listFiles()[0].list().length); in testCreateReportDirectory_sharded()
275 assertEquals(BUILD_ID, mReportDir.listFiles()[0].list()[0]); in testCreateReportDirectory_sharded()
276 assertEquals(1, mReportDir.listFiles()[0].listFiles()[0].list().length); in testCreateReportDirectory_sharded()
277 assertEquals(TEST_TAG, mReportDir.listFiles()[0].listFiles()[0].list()[0]); in testCreateReportDirectory_sharded()
279 assertEquals(1, mReportDir.listFiles()[0].listFiles()[0].listFiles()[0].list().length); in testCreateReportDirectory_sharded()
281 mReportDir.listFiles()[0].listFiles()[0].listFiles()[0].list()[0].startsWith( in testCreateReportDirectory_sharded()
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/
DPsiTypePrinterTest.kt839 val list = mutableListOf<AnnotationItem>() in <lambda>() constant
841 list.add(codebase.createAnnotation(annotation)) in <lambda>()
843 mergeAnnotations = list in <lambda>()
846 val list = mutableListOf<AnnotationItem>() in <lambda>() constant
848 list.add(annotation) in <lambda>()
851 mergeAnnotations = list in <lambda>()
853 mergeAnnotations.addAll(list) in <lambda>()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGoogleBenchmarkTest.java258 String[] list = list_output.trim().split("\n"); in getTestsForFilters() local
259 if (noMatchesFound(list)) { in getTestsForFilters()
260 list = new String[0]; in getTestsForFilters()
262 return new LinkedHashSet<String>(Arrays.asList(list)); in getTestsForFilters()
266 private boolean noMatchesFound(String[] list) { in noMatchesFound() argument
267 if (list.length == 0) { in noMatchesFound()
274 return (list[0].indexOf(' ') >= 0); in noMatchesFound()
/tools/tradefederation/core/tests/src/com/android/tradefed/lite/
DDryRunnerTest.java39 RunListener list = Mockito.mock(RunListener.class); in testFakeExecution() local
41 notifier.addListener(list); in testFakeExecution()
50 Mockito.verify(list, Mockito.times(1)).testRunStarted((Description) Mockito.anyObject()); in testFakeExecution()
51 Mockito.verify(list, Mockito.times(desc.testCount())) in testFakeExecution()
53 Mockito.verify(list, Mockito.times(desc.testCount())) in testFakeExecution()
55 Mockito.verify(list, Mockito.times(1)).testRunFinished((Result) Mockito.anyObject()); in testFakeExecution()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DHostTestTest.java1660 List<IRemoteTest> list = (ArrayList<IRemoteTest>) mHostTest.split(1, mTestInfo); in testRun_junit_suite_split() local
1662 assertEquals(3, list.size()); in testRun_junit_suite_split()
1665 list.get(0).getClass().getName()); in testRun_junit_suite_split()
1668 list.get(1).getClass().getName()); in testRun_junit_suite_split()
1671 list.get(2).getClass().getName()); in testRun_junit_suite_split()
1693 ((IBuildReceiver)list.get(0)).setBuild(mMockBuildInfo); in testRun_junit_suite_split()
1694 ((IDeviceTest)list.get(0)).setDevice(mMockDevice); in testRun_junit_suite_split()
1695 list.get(0).run(mTestInfo, mListener); in testRun_junit_suite_split()
1719 List<IRemoteTest> list = in testRun_junit_suite_split_by_method() local
1721 assertEquals(expectedTestCaseClasses.length, list.size()); in testRun_junit_suite_split_by_method()
[all …]
DClangCodeCoverageListenerTest.java413 void checkListContainsSuffixes(List<String> list, List<String> suffixes) { in checkListContainsSuffixes() argument
416 for (String item : list) { in checkListContainsSuffixes()
424 fail("List " + list.toString() + " does not contain suffix '" + suffix + "'"); in checkListContainsSuffixes()
429 void checkListDoesNotContainSuffix(List<String> list, String suffix) { in checkListDoesNotContainSuffix() argument
430 for (String item : list) { in checkListDoesNotContainSuffix()
432 fail("List " + list.toString() + " should not contain suffix '" + suffix + "'"); in checkListDoesNotContainSuffix()
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraPerformanceTest.java81 private <E extends Number> double getAverage(List<E> list) { in getAverage() argument
83 int size = list.size(); in getAverage()
84 for (E num : list) { in getAverage()
557 List<Double> list = new ArrayList<>(); in parse() local
558 metricsData.put(kpiKey, list); in parse()
578 List<Double> list = new ArrayList<>(); in parse() local
579 metricsData.put(kpiKey, list); in parse()
/tools/test/connectivity/acts_tests/tests/google/bt/pts/
Dcmd_input.py413 completions = list(
425 completions = list(gatt_server_responses.keys())[:]
436 completions = list(gatt_server_responses.keys())[:]
447 completions = list(gatt_server_responses.keys())[:]
561 completions = list(options)[:]
570 completions = list(options)[:]
576 str_adv_list = list(map(str, self.pri_dut.ble.ADVERTISEMENT_LIST))
691 completions = list(options)[:]
697 completions = list(bt_scan_mode_types.keys())[:]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java365 assertTrue(dir.list().length == 0); in testPullDir_nothingToDo()
434 assertEquals(2, dir.list().length); in testPullDir()
435 assertTrue(Arrays.asList(dir.list()).contains("fakeFile")); in testPullDir()
436 assertTrue(Arrays.asList(dir.list()).contains("fakeDir")); in testPullDir()
516 assertEquals(2, dir.list().length); in testPullDir_pullFail()
517 assertTrue(Arrays.asList(dir.list()).contains("fakeFile")); in testPullDir_pullFail()
519 assertTrue(Arrays.asList(dir.list()).contains("fakeDir")); in testPullDir_pullFail()
521 assertEquals(0, new File(dir, "fakeDir").list().length); in testPullDir_pullFail()
544 assertTrue(dir.list().length == 0); in testPullDir_invalidPath()
1211 List<IFileEntry> list = new ArrayList<>(); in testGetBugreport_deviceUnavail_fallback() local
[all …]
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/extractors/
DSystraceExtractorTest.kt72 fun extract(list: Iterable<String>): List<DataSlice> { in <lambda>()
75 extractor.extract(makeStream(list.iterator())) { outputStream -> in <lambda>()
88 fun makeStream(list: Iterator<String>): StreamingReader { in <lambda>()
91 if (list.hasNext()) { in <lambda>()
92 return list.next().asSlice() in <lambda>()
/tools/acloud/internal/lib/
Dgcompute_client.py228 api = self.service.regions().list(project=self._project)
415 api_resource=self.service.disks().list,
619 api_resource=self.service.images().list,
1106 api = self.service.zones().list(project=self._project)
1141 api = self.service.regions().list(project=self._project)
1659 api = self.service.zones().list(project=self._project)
1685 list(filter(None, [ssh_key_item[_METADATA_KEY_VALUE], entry])))

12345678910>>...12