Home
last modified time | relevance | path

Searched refs:iterator (Results 1 – 25 of 75) sorted by relevance

123

/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGoogleBenchmarkTest.java405 Iterator<String> iterator = filters.iterator(); in getFilterFlagForFilters() local
406 if (iterator.hasNext()) { in getFilterFlagForFilters()
407 filterFlag.append(String.format(" %s=%s", GBENCHMARK_FILTER_OPTION, iterator.next())); in getFilterFlagForFilters()
408 while (iterator.hasNext()) { in getFilterFlagForFilters()
409 filterFlag.append(String.format("\\|%s", iterator.next())); in getFilterFlagForFilters()
419 Iterator<String> iterator = fitlererTests.iterator(); in getFilterFlagForTests() local
420 if (iterator.hasNext()) { in getFilterFlagForTests()
422 filterFlag.append(String.format(" %s=^%s$", GBENCHMARK_FILTER_OPTION, iterator.next())); in getFilterFlagForTests()
423 while (iterator.hasNext()) { in getFilterFlagForTests()
424 filterFlag.append(String.format("\\|^%s$", iterator.next())); in getFilterFlagForTests()
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiClass.java165 for (Iterator<ApiElement> iterator = mInterfaces.iterator(); iterator.hasNext(); ) { in removeImplicitInterfaces()
166 ApiElement interfaceElement = iterator.next(); in removeImplicitInterfaces()
172 iterator.remove(); in removeImplicitInterfaces()
211 …for (Iterator<Map.Entry<String, ApiElement>> it = mMethods.entrySet().iterator(); it.hasNext(); ) { in removeOverridingMethods()
296 ListIterator<ApiElement> iterator = mSuperClasses.listIterator(); in removeHiddenSuperClasses() local
298 while (iterator.hasNext()) { in removeHiddenSuperClasses()
299 ApiElement next = iterator.next(); in removeHiddenSuperClasses()
304 iterator.remove(); in removeHiddenSuperClasses()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DModuleMergerTest.java73 assertFalse(ModuleMerger.arePartOfSameSuite((ITestSuite) res1.iterator().next(), suite2)); in testPartOfSameSuite_notSplittedYet2()
84 Iterator<IRemoteTest> ite = res1.iterator(); in testPartOfSameSuite_sameSuite()
101 (ITestSuite) res1.iterator().next(), (ITestSuite) res2.iterator().next())); in testPartOfSameSuite_notSameSuite()
130 ModuleMerger.mergeSplittedITestSuite((ITestSuite) res1.iterator().next(), suite2); in testMergeSplittedITestSuite_notSplittedYet2()
149 (ITestSuite) res1.iterator().next(), (ITestSuite) res2.iterator().next()); in testMergeSplittedITestSuite_splittedSuiteFromDifferentModules()
164 Iterator<IRemoteTest> ite = res1.iterator(); in testMergeSplittedITestSuite()
DITestSuiteIntegrationTest.java298 Iterator<TestRunResult> iterator = mListener.getMergedTestRunResults().iterator(); in testSimplePassRun_withLoggedFile() local
299 TestRunResult module1 = iterator.next(); in testSimplePassRun_withLoggedFile()
311 TestRunResult module2 = iterator.next(); in testSimplePassRun_withLoggedFile()
DSuiteModuleLoaderTest.java409 "NativeDnsAsyncTest#Async_Cancel", stubTest.getExcludeFilters().iterator().next()); in testFilterParameterized()
817 assertEquals("class#method", stubTest.getExcludeFilters().iterator().next()); in testLoadParameterizedMainlineModule_WithFilters()
851 assertEquals("test-annotation", stubTest.getExcludeAnnotations().iterator().next()); in testLoadParameterizedMainlineModule_WithModuleArgs()
/tools/tradefederation/core/src/com/android/tradefed/device/
DManagedDeviceList.java82 public Iterator<IManagedTestDevice> iterator() { in iterator() method in ManagedDeviceList
83 return getCopy().iterator(); in iterator()
177 Iterator<IManagedTestDevice> iterator = mList.iterator();
178 while (iterator.hasNext()) {
179 IManagedTestDevice d = iterator.next();
181 iterator.remove();
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DLongevityHostRunner.java118 Iterator<String> iterator = mKeyValueOptions.iterator(); in getOptions() local
119 while (iterator.hasNext()) { in getOptions()
120 String kvPair = iterator.next(); in getOptions()
125 iterator.remove(); in getOptions()
135 iterator.remove(); in getOptions()
/tools/metalava/src/main/java/com/android/tools/metalava/
DApiAnalyzer.kt444 val iterator = candidates.listIterator() in <lambda>() constant
445 while (iterator.hasNext()) { in <lambda>()
446 val inheritedMethod = iterator.next() in <lambda>()
448 iterator.remove() in <lambda>()
491 val iterator = candidates.listIterator() in <lambda>() constant
492 while (iterator.hasNext()) { in <lambda>()
493 val inheritedMethod = iterator.next() in <lambda>()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DBatchProcessor.kt103 fun<T, U, S> par_map(iterator: Iterator<T>, threadState: () -> S, chunkSize: Int = 50, in par_map()
110 while (iterator.hasNext()) { in par_map()
112 while (source.size < chunkSize && iterator.hasNext()) { in par_map()
113 source.add(iterator.next()) in par_map()
136 current = next.get().iterator() in par_map()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextPackageItem.kt41 val iterator = classes.listIterator() in pruneClassList() constant
42 while (iterator.hasNext()) { in pruneClassList()
43 val cls = iterator.next() in pruneClassList()
45 iterator.remove() in pruneClassList()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/mobly/
DMoblyYamlResultParserTest.java402 for (Iterator<Map.Entry<String, Object>> iterator = in buildTestRecordString()
403 buildTestRecordDocMap(detailMap).entrySet().iterator(); in buildTestRecordString()
404 iterator.hasNext(); ) { in buildTestRecordString()
405 Map.Entry<String, Object> entry = iterator.next(); in buildTestRecordString()
407 if (iterator.hasNext()) { in buildTestRecordString()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/extractors/
DZlibExtractor.kt24 import kotlin.sequences.iterator
49 private val sourceIterator = iterator { in <lambda>()
65 return@iterator in <lambda>()
70 if (closed) return@iterator in <lambda>()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DITestSuite.java1248 return hostAbis.iterator().next(); in getPrimaryAbi()
1391 Iterator<IRemoteTest> iterator = config.getTests().iterator(); in filterByRunnerType() local
1392 while (iterator.hasNext()) { in filterByRunnerType()
1393 IRemoteTest test = iterator.next(); in filterByRunnerType()
1398 iterator.remove(); in filterByRunnerType()
/tools/loganalysis/src/com/android/loganalysis/util/config/
DOptionSetter.java185 return mSourceFieldMap.values().iterator().next(); in getFirstField()
193 return mSourceFieldMap.keySet().iterator().next(); in getFirstObject()
197 public Iterator<Map.Entry<Object, Field>> iterator() { in iterator() method in OptionSetter.OptionFieldsForName
198 return mSourceFieldMap.entrySet().iterator(); in iterator()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DConditionPriorityBlockingQueueTest.java290 Thread iterator = new Thread() { in testModificationOnIterating() local
302 iterator.setName(getClass().getCanonicalName() + "#testModificationOnIterating"); in testModificationOnIterating()
303 iterator.start(); in testModificationOnIterating()
/tools/tradefederation/core/src/com/android/tradefed/config/
DOptionSetter.java288 return mSourceFieldMap.values().iterator().next(); in getFirstField()
296 return mSourceFieldMap.keySet().iterator().next(); in getFirstObject()
300 public Iterator<Map.Entry<Object, Field>> iterator() { in iterator() method in OptionSetter.OptionFieldsForName
301 return mSourceFieldMap.entrySet().iterator(); in iterator()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DTestsPoolPoller.java120 Iterator<ITokenRequest> itr = mTokenPool.iterator(); in poll()
152 IRemoteTest test = mGenericPool.iterator().next(); in poll()
166 ITokenRequest test = mRejectedToken.iterator().next(); in pollRejectedTokenModule()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DDynamicRemoteFileResolverTest.java166 File downloaded = downloadedFile.iterator().next(); in testResolveWithQuery()
217 File downloaded = downloadedFile.iterator().next(); in testResolve_remoteFileList()
220 Iterator<File> ite = object.remoteFileList.iterator(); in testResolve_remoteFileList()
430 File downloaded = downloadedFile.iterator().next(); in testResolve_withNoGlobalNameSpace()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatterTest.java299 TestRunResult result = reloaded.runResults.iterator().next(); in testAssumptionFailures_Ignore_Reporting()
402 TestRunResult result = holder.runResults.iterator().next(); in testMetricReporting()
540 TestRunResult result = holder.runResults.iterator().next(); in testMetricReporting_badKey()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DInvocationExecution.java408 ListIterator<IMultiTargetPreparer> iterator = in runMultiTargetPreparersTearDown() local
412 while (iterator.hasPrevious()) { in runMultiTargetPreparersTearDown()
413 IMultiTargetPreparer multipreparer = iterator.previous(); in runMultiTargetPreparersTearDown()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/io/
DStreamingLineReader.kt19 import kotlin.sequences.iterator
32 fun StreamingReader.iterLines() = iterator { in <lambda>()
DStreamingReader.kt19 import kotlin.sequences.iterator
59 return iterator { in iter()
/tools/tradefederation/core/src/com/android/tradefed/util/
DConditionPriorityBlockingQueue.java320 public Iterator<T> iterator() { in iterator() method in ConditionPriorityBlockingQueue
321 return getCopy().iterator(); in iterator()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DFatLfnDirectory.java313 public Iterator<FsDirectoryEntry> iterator() { in iterator() method in FatLfnDirectory
317 shortNameIndex.values().iterator(); in iterator()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandFileParserTest.java391 assertTrue(commandFile.getIncludedFiles().iterator().next().endsWith("somefile.txt")); in testMacroParserInclude()
545 assertTrue(commandFile.getIncludedFiles().iterator().next().endsWith(includeFileName)); in testMacroParserInclude_noParentDir()

123