Home
last modified time | relevance | path

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

123

/cts/tests/tests/text/src/android/text/cts/
DTextUtils_SimpleStringSplitterTest.java56 Iterator<String> iterator = simpleStringSplitter.iterator(); in testIterator() local
57 assertNotNull(iterator); in testIterator()
58 assertFalse(iterator.hasNext()); in testIterator()
61 iterator = simpleStringSplitter.iterator(); in testIterator()
62 assertNotNull(iterator); in testIterator()
63 assertTrue(iterator.hasNext()); in testIterator()
64 assertEquals("hello", iterator.next()); in testIterator()
65 assertTrue(iterator.hasNext()); in testIterator()
66 assertEquals("world", iterator.next()); in testIterator()
67 assertFalse(iterator.hasNext()); in testIterator()
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/
DTestPackageXmlParserTest.java116 Iterator<TestIdentifier> iterator = def.getTests().iterator(); in testParse_hostTest() local
118 TestIdentifier firstTest = iterator.next(); in testParse_hostTest()
122 TestIdentifier secondTest = iterator.next(); in testParse_hostTest()
126 TestIdentifier thirdTest = iterator.next(); in testParse_hostTest()
130 assertFalse(iterator.hasNext()); in testParse_hostTest()
140 Iterator<TestIdentifier> iterator = def.getTests().iterator(); in testParse_hostTest_noKnownFailures() local
142 TestIdentifier firstTest = iterator.next(); in testParse_hostTest_noKnownFailures()
146 TestIdentifier thirdTest = iterator.next(); in testParse_hostTest_noKnownFailures()
150 assertFalse(iterator.hasNext()); in testParse_hostTest_noKnownFailures()
204 final Iterator<Map<String, String>> iterator = targetInstances.iterator(); in testParse_instancedMultiple() local
[all …]
DTestFilterTest.java62 Iterator<TestIdentifier> iter = filteredList.iterator(); in testFilter_excludeTest()
74 assertEquals(TEST3, filteredList.iterator().next()); in testFilter_excludeClass()
84 Iterator<TestIdentifier> iter = filteredList.iterator(); in testFilter_includeClass()
96 Iterator<TestIdentifier> iter = filteredList.iterator(); in testFilter_includeTest()
107 assertEquals(TEST3, filteredList.iterator().next()); in testFilter_includeClasses()
118 Iterator<TestIdentifier> iter = filteredList.iterator(); in testFilter_includeTests()
163 Iterator<TestIdentifier> iter = filteredList.iterator(); in testFilter_includeClassAndExcludeTest()
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/
DTestResultsTest.java67 TestPackageResult pkg = parser.getPackages().iterator().next(); in testParse_package()
94 TestPackageResult pkg = parser.getPackages().iterator().next(); in testParse_test()
95 TestSuite comSuite = pkg.getTestSuites().iterator().next(); in testParse_test()
97 TestSuite exampleSuite = comSuite.getTestSuites().iterator().next(); in testParse_test()
99 TestCase exampleCase = exampleSuite.getTestCases().iterator().next(); in testParse_test()
101 Test exampleTest = exampleCase.getTests().iterator().next(); in testParse_test()
DTestPackageResultTest.java44 assertEquals(includedTest, tests.iterator().next()); in testGetTestsWithStatus()
/cts/tests/tests/location/src/android/location/cts/
DGpsSatelliteTest.java38 Iterator<GpsSatellite> iterator = gpsStatus.getSatellites().iterator(); in setUp() local
39 if (iterator.hasNext()) { in setUp()
40 mGpsSatellite = iterator.next(); in setUp()
DGpsStatusTest.java46 Iterator<GpsSatellite> iterator = satellites.iterator(); in testGetSatellites() local
49 while (iterator.hasNext()) { in testGetSatellites()
/cts/tests/tests/drm/src/android/drm/cts/
DDrmInfoRequestTest.java71 Iterator<String> keys = attributes.keySet().iterator(); in testPutAndGetKeys()
91 Iterator<Object> iterator = request.iterator(); in testPutAndGetKeys() local
93 while (iterator.hasNext()) { in testPutAndGetKeys()
94 Object o = iterator.next(); in testPutAndGetKeys()
DDrmInfoTest.java81 Iterator<String> keys = attributes.keySet().iterator(); in testPutAndGetKeys()
101 Iterator<Object> iterator = info.iterator(); in testPutAndGetKeys() local
103 while (iterator.hasNext()) { in testPutAndGetKeys()
104 Object o = iterator.next(); in testPutAndGetKeys()
/cts/suite/audio_quality/lib/src/task/
DTaskSequential.cpp56 std::list<TaskGeneric*>::iterator i = getChildren().begin(); in run()
57 std::list<TaskGeneric*>::iterator end = getChildren().end(); in run()
94 std::list<TaskAsync*>::iterator it; in queueAsyncTask()
105 std::list<TaskAsync*>::iterator i = mAsyncTasks.begin(); in runAsyncTasksQueued()
106 std::list<TaskAsync*>::iterator end = mAsyncTasks.end(); in runAsyncTasksQueued()
DTaskSave.cpp85 std::list<TaskCase::BufferPair>::iterator it = buffersp->begin(); in handleFile()
86 std::list<TaskCase::BufferPair>::iterator end = buffersp->end(); in handleFile()
123 std::list<TaskCase::ValuePair>::iterator it = values->begin(); in handleReport()
124 std::list<TaskCase::ValuePair>::iterator end = values->end(); in handleReport()
DTaskGeneric.cpp50 std::list<TaskGeneric*>::iterator i = mChildren.begin(); in forEachChild()
51 std::list<TaskGeneric*>::iterator end = mChildren.end(); in forEachChild()
127 std::set<android::String8, android::String8>::iterator it = mAllowedStringAttributes.find(key); in addStringAttribute()
DTaskCase.cpp71 typename std::map<android::String8, T>::iterator it; in registerGeneric()
86 typename std::map<android::String8, T>::iterator it; in findGeneric()
99 typename std::map<android::String8, T>::iterator it; in updateGeneric()
118 typename std::map<android::String8, T>::iterator it; in findAllGeneric()
315 std::list<TaskGeneric*>::iterator i = getChildren().begin(); in run()
316 std::list<TaskGeneric*>::iterator end = getChildren().end(); in run()
/cts/tools/signature-tools/test/signature/comparator/
DMethodCompareTests.java64 …sDefinitionDelta classDelta = delta.getPackageDeltas().iterator().next().getClassDeltas().iterator in compareMissingMethod()
66 assertEquals(DeltaType.REMOVED, classDelta.getMethodDeltas().iterator().next().getType()); in compareMissingMethod()
84 …sDefinitionDelta classDelta = delta.getPackageDeltas().iterator().next().getClassDeltas().iterator in compareAddedMethod()
86 assertEquals(DeltaType.ADDED, classDelta.getMethodDeltas().iterator().next().getType()); in compareAddedMethod()
105 …sDefinitionDelta classDelta = delta.getPackageDeltas().iterator().next().getClassDeltas().iterator in compareChangedMethod()
107 assertEquals(DeltaType.CHANGED, classDelta.getMethodDeltas().iterator().next().getType()); in compareChangedMethod()
126 …sDefinitionDelta classDelta = delta.getPackageDeltas().iterator().next().getClassDeltas().iterator in compareAddedParameterMethod()
DPackageCompareTest.java74 IPackageDelta packageDelta = apiDelta.getPackageDeltas().iterator().next(); in compareRemovedPackagePackageTest1()
92 IPackageDelta packageDelta = apiDelta.getPackageDeltas().iterator().next(); in compareAddedPackagePackageTest1()
/cts/tools/signature-tools/test/signature/converter/
DConvertAnnotationTest.java66 IAnnotationField field = annotationFields.iterator().next(); in convertAnnotationDefinition1()
72 IAnnotation annotation = annotations.iterator().next(); in convertAnnotationDefinition1()
96 IAnnotation annotation = annotations.iterator().next(); in convertAnnotationDefinition2()
143 IAnnotationField annotationField = annotationFields.iterator().next(); in testAnnotationDefaultsInt1()
168 IAnnotationField field = annotationFields.iterator().next(); in testAnnotationDefaultsInt2()
192 IAnnotationField field = annotationFields.iterator().next(); in testAnnotationDefaultsInt3()
227 IAnnotationField annotationField = annotationFields.iterator().next(); in testAnnotationDefaultsDouble1()
253 IAnnotationField field = annotationFields.iterator().next(); in testAnnotationDefaultsDouble2()
277 IAnnotationField field = annotationFields.iterator().next(); in testAnnotationDefaultsDouble3()
317 IAnnotationField field = annotationFields.iterator().next(); in testAnnotationDefaultsEnum1()
[all …]
DConvertClassTest.java120 IAnnotation annotation = sigClass.getAnnotations().iterator().next(); in convertAnnotationTest()
139 IField field = sigClass.getFields().iterator().next(); in convertAnnotationOnFieldTest()
142 IAnnotation annotation = field.getAnnotations().iterator().next(); in convertAnnotationOnFieldTest()
247 …IClassDefinition clonable = ((IClassReference) sigClass.getInterfaces().iterator().next()).getClas… in convertClassImplementsInterface0()
271 IClassReference interfaze = (IClassReference) sigClass.getInterfaces().iterator().next(); in convertClassImplementsInterface1()
295 … IParameterizedType interfaze = (IParameterizedType) sigClass.getInterfaces().iterator().next(); in convertClassImplementsGenericInterface0()
335 … IParameterizedType interfaze = (IParameterizedType) sigClass.getInterfaces().iterator().next(); in convertGenericClassImplementsGenericInterface()
359 IConstructor constructor = sigClass.getConstructors().iterator().next(); in convertConstructor0()
370 IConstructor constructor = sigClass.getConstructors().iterator().next(); in convertConstructor1a()
381 IConstructor constructor = sigClass.getConstructors().iterator().next(); in convertConstructor1b()
[all …]
/cts/tools/signature-tools/test/signature/comparator/util/
DAbstractComparatorTest.java47 return apiDelta.getPackageDeltas().iterator().next(); in getSinglePackageDelta()
53 return packageDelta.getClassDeltas().iterator().next(); in getSingleClassDelta()
/cts/common/host-side/native-scanner/tests/src/com/android/compatibility/common/scanner/
DNativeScannerTest.java36 Iterator<String> it = names.iterator(); in testSingleTestNamesCase()
50 Iterator<String> it = names.iterator(); in testMultipleTestNamesCase()
/cts/tools/cts-native-scanner/tests/src/com/android/cts/nativescanner/
DTestScannerTest.java40 Iterator it = names.iterator(); in testSingleTestNamesCase()
55 Iterator it = names.iterator(); in testMultipleTestNamesCase()
/cts/tests/tests/graphics/src/android/graphics/cts/
DDashPathEffectTest.java61 PatternIterator iterator = new PatternIterator(PATTERN, OFFSET); in testDashPathEffect() local
66 if (iterator.next()) { in testDashPathEffect()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java124 Iterator<ResolveInfo> infoIterator = resolves.iterator(); in checkActivityInfoName()
138 Iterator<ResolveInfo> infoIterator = resolves.iterator(); in checkServiceInfoName()
161 Iterator<ProviderInfo> infoIterator = providers.iterator(); in checkProviderInfoName()
176 Iterator<InstrumentationInfo> infoIterator = instrumentations.iterator(); in checkInstrumentationInfoName()
281 Iterator<PermissionGroupInfo> infoIterator = permissionGroups.iterator(); in checkPermissionGroupInfoName()
348 Iterator<ComponentName> nameIterator = componentNames.iterator(); in checkComponentName()
362 Iterator<IntentFilter> filterIterator = intentFilters.iterator(); in checkIntentFilterAction()
/cts/tools/signature-tools/src/signature/io/html/
DExecutableMemberComparator.java62 Iterator<IParameter> aIt = a.iterator(); in compareParameterLists()
63 Iterator<IParameter> bIt = b.iterator(); in compareParameterLists()
/cts/tests/tests/animation/src/android/animation/cts/
DLayoutAnimationTest.java147 Iterator<Float> iterator = alphaList.iterator(); in testAnimationWithAnimator() local
149 while(iterator.hasNext()){ in testAnimationWithAnimator()
150 float alphaValue = iterator.next(); in testAnimationWithAnimator()
/cts/tools/signature-tools/src/signature/compare/model/subst/
DViewpointAdapter.java54 .iterator(); in createTypeMapping()
56 .iterator(); in createTypeMapping()

123