/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestGrouping.java | 22 import junit.framework.TestCase; 49 private final SortedSet<Class<? extends TestCase>> testCaseClasses; 51 static final Comparator<Class<? extends TestCase>> SORT_BY_SIMPLE_NAME 54 static final Comparator<Class<? extends TestCase>> SORT_BY_FULLY_QUALIFIED_NAME 59 TestGrouping(Comparator<Class<? extends TestCase>> comparator, ClassLoader classLoader) { in TestGrouping() 60 testCaseClasses = new TreeSet<Class<? extends TestCase>>(comparator); in TestGrouping() 70 for (Class<? extends TestCase> testCase : testCaseClasses) { in getTests() 78 private List<Method> getTestMethods(Class<? extends TestCase> testCaseClass) { in getTestMethods() 110 List<Class<? extends TestCase>> addedClasses = testCaseClassesInPackage(packageName); in addPackagesRecursive() 131 private List<Class<? extends TestCase>> testCaseClassesInPackage(String packageName) { in testCaseClassesInPackage() [all …]
|
D | TestMethod.java | 19 import junit.framework.TestCase; 38 private final Class<? extends TestCase> enclosingClass; 40 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) { in TestMethod() 44 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { in TestMethod() 50 public TestMethod(TestCase testCase) { in TestMethod() 71 public Class<? extends TestCase> getEnclosingClass() { in getEnclosingClass() 75 public TestCase createTest() in createTest() 81 private TestCase instantiateTest(Class testCaseClass, String testName) in instantiateTest() 91 TestCase test = ((Constructor<? extends TestCase>) constructor).newInstance(); in instantiateTest() 97 return ((Constructor<? extends TestCase>) constructor) in instantiateTest()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/kotlin/ |
D | PackageManagerExtComponentEnabledTest.kt | 37 internal class PackageManagerExtComponentEnabledTest(private val testCase: TestCase) : 61 internal data class TestCase( class in com.android.systemui.util.kotlin.PackageManagerExtComponentEnabledTest 87 @Parameters(name = "{0}") @JvmStatic fun data(): Collection<TestCase> = testData 91 TestCase( 96 TestCase( 101 TestCase( 106 TestCase( 112 TestCase( 121 TestCase( 126 TestCase( [all …]
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | ExportTestProvider.java | 32 import junit.framework.TestCase; 100 TestCase.assertTrue(uri != null); in queryEntities() 101 TestCase.assertTrue(ContentResolver.SCHEME_CONTENT.equals(uri.getScheme())); in queryEntities() 103 TestCase.assertTrue(RawContacts.CONTENT_URI.getAuthority().equals(authority)); in queryEntities() 104 TestCase.assertTrue((Data.CONTACT_ID + "=?").equals(selection)); in queryEntities() 105 TestCase.assertEquals(1, selectionArgs.length); in queryEntities() 107 TestCase.assertTrue(id >= 0); in queryEntities() 108 TestCase.assertTrue(id < mContactEntryList.size()); in queryEntities() 116 TestCase.assertTrue(VCardVerifier.CONTACTS_TEST_CONTENT_URI.equals(uri)); 118 TestCase.assertNull(selection); [all …]
|
D | LineVerifierElem.java | 23 import junit.framework.TestCase; 58 TestCase.fail("Multiple \"BEGIN:VCARD\" line found"); in verify() 65 TestCase.fail("Multiple \"END:VCARD\" line found"); in verify() 74 TestCase.fail("Multiple VERSION line + found"); in verify() 82 TestCase.fail("Property other than BEGIN came before BEGIN property: " + line); in verify() 84 TestCase.fail("Property other than END came after END property: " + line); in verify() 91 TestCase.fail("Unexpected line: " + line); in verify() 102 TestCase.fail("Expected line(s) not found:" + buffer.toString()); in verify()
|
D | ImportTestProvider.java | 27 import junit.framework.TestCase; 62 TestCase.fail("There is no operation."); in applyBatch() 83 TestCase.assertNull(actualContentValues.get(RawContacts.ACCOUNT_NAME)); in applyBatch() 84 TestCase.assertNull(actualContentValues.get(RawContacts.ACCOUNT_TYPE)); in applyBatch() 88 TestCase.fail("Unregistered MimeType " + mimeType); in applyBatch() 118 TestCase.fail("ContentValues for MimeType " + mimeType in applyBatch() 130 TestCase.assertTrue(contentValuesCollection.remove(expectedContentValues)); in applyBatch() 145 TestCase.fail(builder.toString()); in applyBatch() 148 TestCase.fail("Unexpected Uri has come: " + uri); in applyBatch() 170 TestCase.fail(failMsg); in verify() [all …]
|
/frameworks/base/test-runner/tests/src/android/test/ |
D | AndroidTestRunnerTest.java | 25 import junit.framework.TestCase; 37 public class AndroidTestRunnerTest extends TestCase { 53 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testLoadNoTestCases() 63 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testSetTestSuiteWithOneTestCase() 107 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testRunTestWithAndroidTestCaseInSuite() 108 for (TestCase testCase : testCases) { in testRunTestWithAndroidTestCaseInSuite() 123 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testRunTestWithAndroidTestCaseInNestedSuite() 124 for (TestCase testCase : testCases) { in testRunTestWithAndroidTestCaseInNestedSuite() 142 List<TestCase> testCases = mAndroidTestRunner.getTestCases(); in testSetTestClassWithTestSuiteProvider() 144 for (TestCase testCase : testCases) { in testSetTestClassWithTestSuiteProvider() [all …]
|
D | TestCaseUtilTest.java | 22 import junit.framework.TestCase; 27 public class TestCaseUtilTest extends TestCase { 48 TestCase testCase = new OneTestTestCaseWithSuite(); in testGetTests_ForTestCaseWithSuiteMethod() 77 public static class OneTestTestCase extends TestCase { 82 public static class OneTestTestCaseWithSuite extends TestCase { 84 TestCase testCase = new OneTestTestCase(); in suite()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ChooserActivityWorkProfileTest.java | 30 import static com.android.internal.app.ChooserActivityWorkProfileTest.TestCase.ExpectedBlocker.NO_B… 31 import static com.android.internal.app.ChooserActivityWorkProfileTest.TestCase.ExpectedBlocker.PERS… 32 import static com.android.internal.app.ChooserActivityWorkProfileTest.TestCase.ExpectedBlocker.PERS… 33 import static com.android.internal.app.ChooserActivityWorkProfileTest.TestCase.ExpectedBlocker.WORK… 34 import static com.android.internal.app.ChooserActivityWorkProfileTest.TestCase.ExpectedBlocker.WORK… 35 import static com.android.internal.app.ChooserActivityWorkProfileTest.TestCase.Tab.PERSONAL; 36 import static com.android.internal.app.ChooserActivityWorkProfileTest.TestCase.Tab.WORK; 52 import com.android.internal.app.ChooserActivityWorkProfileTest.TestCase.Tab; 81 private final TestCase mTestCase; 83 public ChooserActivityWorkProfileTest(TestCase testCase) { in ChooserActivityWorkProfileTest() [all …]
|
D | ResolverActivityWorkProfileTest.java | 30 import static com.android.internal.app.ResolverActivityWorkProfileTest.TestCase.ExpectedBlocker.NO_… 31 import static com.android.internal.app.ResolverActivityWorkProfileTest.TestCase.ExpectedBlocker.PER… 32 import static com.android.internal.app.ResolverActivityWorkProfileTest.TestCase.ExpectedBlocker.WOR… 33 import static com.android.internal.app.ResolverActivityWorkProfileTest.TestCase.Tab.PERSONAL; 34 import static com.android.internal.app.ResolverActivityWorkProfileTest.TestCase.Tab.WORK; 52 import com.android.internal.app.ResolverActivityWorkProfileTest.TestCase.Tab; 80 private final TestCase mTestCase; 82 public ResolverActivityWorkProfileTest(TestCase testCase) { in ResolverActivityWorkProfileTest() 116 new TestCase( in tests() 123 new TestCase( in tests() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/ui/viewmodel/ |
D | WifiViewModelIconParameterizedTest.kt | 65 internal class WifiViewModelIconParameterizedTest(private val testCase: TestCase) : in <lambda>() 177 internal data class TestCase( in <lambda>() class in com.android.systemui.statusbar.pipeline.wifi.ui.viewmodel.WifiViewModelIconParameterizedTest 200 @Parameters(name = "{0}") @JvmStatic fun data(): Collection<TestCase> = testData in <lambda>() 202 private val testData: List<TestCase> = in <lambda>() 205 TestCase( in <lambda>() 211 TestCase( in <lambda>() 216 TestCase( in <lambda>() 221 TestCase( in <lambda>() 228 TestCase( in <lambda>() 234 TestCase( in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/ |
D | FloatingRotationButtonPositionCalculatorTest.kt | 19 private val testCase: TestCase, 32 internal class TestCase( class in com.android.systemui.navigationbar.gestural.FloatingRotationButtonPositionCalculatorTest 68 fun getParams(): Collection<TestCase> = 71 TestCase( 82 TestCase( 93 TestCase( 104 TestCase( 115 TestCase( 126 TestCase( 137 TestCase( [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/ui/model/ |
D | SignalIconModelParameterizedTest.kt | 31 internal class SignalIconModelParameterizedTest(private val testCase: TestCase) : SysuiTestCase() { 54 internal data class TestCase( class in com.android.systemui.statusbar.pipeline.mobile.ui.model.SignalIconModelParameterizedTest 79 private fun testData(): Collection<TestCase> = in toSignalIconModel() 81 TestCase( in toSignalIconModel() 88 TestCase( in toSignalIconModel() 95 TestCase( in toSignalIconModel() 102 TestCase( in toSignalIconModel() 109 TestCase( in toSignalIconModel()
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/ |
D | AssignableFromTest.java | 19 import junit.framework.TestCase; 23 public class AssignableFromTest extends TestCase { 52 private TestMethod testMethodFor(Class<? extends TestCase> aClass) in testMethodFor() 58 private class Animal extends TestCase { 76 private class Pencil extends TestCase implements WritingInstrument { 81 private class Pen extends TestCase implements WritingInstrument {
|
D | TestPredicatesTest.java | 20 import junit.framework.TestCase; 28 public class TestPredicatesTest extends TestCase { 44 private boolean hasExampleAnnotation(Class<? extends TestCase> aClass, String methodName) in hasExampleAnnotation() 57 static class ClassWithAnnotation extends TestCase { 67 static class ClassWithoutAnnotation extends TestCase {
|
D | ListTestCaseNames.java | 20 import junit.framework.TestCase; 33 if (test instanceof TestCase) { in getTestCaseNames() 34 testCaseNames.add(((TestCase) test).getName()); in getTestCaseNames() 49 if (test instanceof TestCase) { in getTestNames() 51 String testName = ((TestCase) test).getName(); in getTestNames()
|
/frameworks/base/test-runner/src/android/test/ |
D | AndroidTestRunner.java | 24 import junit.framework.TestCase; 45 private List<TestCase> mTestCases; 57 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); in setTestClassName() 71 mTestCases = (List<TestCase>) TestCaseUtil.getTests(test, true); in setTest() 99 private TestCase buildSingleTestMethod(Class testClass, String testMethodName) { in buildSingleTestMethod() 115 private TestCase newSingleTestMethod(Class testClass, String testMethodName, in newSingleTestMethod() 118 TestCase testCase = (TestCase) constructor.newInstance(args); in newSingleTestMethod() 135 return testMethodName != null && TestCase.class.isAssignableFrom(testClass); in shouldRunSingleTestMethod() 168 public List<TestCase> getTestCases() { in getTestCases() 192 for (TestCase testCase : mTestCases) { in runTest()
|
D | TestCaseUtil.java | 21 import junit.framework.TestCase; 58 if (test instanceof TestCase && in getTests() 59 ((TestCase)test).getName() == null) { in getTests() 114 if (test instanceof TestCase) { in getTestName() 115 TestCase testCase = (TestCase) test; in getTestName()
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/ |
D | TestCaseCollector.java | 19 import junit.framework.TestCase; 34 private List<TestCase> mTestCases; 39 mTestCases = new ArrayList<TestCase>(); in TestCaseCollector() 101 public List<TestCase> getTestCases() { in getTestCases() 110 TestCase testCase = (TestCase) clazz.newInstance(); in addSingleTestMethod()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/udfps/ |
D | EllipseOverlapDetectorTest.kt | 32 class EllipseOverlapDetectorTest(val testCase: TestCase) : SysuiTestCase() { in <lambda>() 52 data class TestCase( in <lambda>() class in com.android.systemui.biometrics.udfps.EllipseOverlapDetectorTest 63 fun data(): List<TestCase> = in <lambda>() 120 ): List<EllipseOverlapDetectorTest.TestCase> { in genPositiveTestCases() 123 EllipseOverlapDetectorTest.TestCase(x, y, minor, major, expected) in genPositiveTestCases() 134 ): List<EllipseOverlapDetectorTest.TestCase> { in genNegativeTestCase() 136 outerYs.map { y -> EllipseOverlapDetectorTest.TestCase(x, y, minor, major, expected) } in genNegativeTestCase()
|
D | NormalizedTouchDataTest.kt | 15 class NormalizedTouchDataTest(val testCase: TestCase) : SysuiTestCase() { in <lambda>() 25 data class TestCase(val x: Int, val y: Int, val expected: Boolean) in <lambda>() dataClass 30 fun data(): List<TestCase> = in <lambda>() 74 ): List<NormalizedTouchDataTest.TestCase> { in genTestCases() 75 return xs.flatMap { x -> ys.map { y -> NormalizedTouchDataTest.TestCase(x, y, expected) } } in genTestCases() 88 ): List<NormalizedTouchDataTest.TestCase> { in genPositiveTestCases()
|
D | BoundingBoxOverlapDetectorTest.kt | 31 class BoundingBoxOverlapDetectorTest(val testCase: TestCase) : SysuiTestCase() { in <lambda>() 42 data class TestCase(val x: Int, val y: Int, val expected: Boolean) in <lambda>() dataClass 47 fun data(): List<TestCase> = in <lambda>() 94 ): List<BoundingBoxOverlapDetectorTest.TestCase> { in genTestCases() 96 ys.map { y -> BoundingBoxOverlapDetectorTest.TestCase(x, y, expected) } in genTestCases() 110 ): List<BoundingBoxOverlapDetectorTest.TestCase> { in genPositiveTestCases()
|
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/ |
D | SmokeTestRunner.java | 25 import junit.framework.TestCase; 50 final TestCase setupTest = new ProcessErrorsTest() { in getAllTests() 59 final TestCase postBootTest = new ProcessErrorsTest() { in getAllTests() 69 final TestCase appTest = new ProcessErrorsTest() { in getAllTests() 88 final TestCase asyncErrorTest = new ProcessErrorsTest() { in getAllTests()
|
/frameworks/base/test-junit/src/junit/framework/ |
D | TestSuite.java | 62 if (test instanceof TestCase) in createTest() 63 ((TestCase) test).setName(name); in createTest() 94 return new TestCase("warning") { in warning() 161 public TestSuite(Class<? extends TestCase> theClass, String name) { 183 if (TestCase.class.isAssignableFrom(each)) 184 return new TestSuite(each.asSubclass(TestCase.class)); 193 public TestSuite(Class<? extends TestCase>[] classes, String name) { 208 public void addTestSuite(Class<? extends TestCase> testClass) {
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
D | VCardTestUtilsTests.java | 25 import junit.framework.TestCase; 50 TestCase.fail("Test case that should fail actually succeeded."); in testShouldFailAtPropertyNodeVerification() 71 TestCase.fail("Test case that should fail actually succeeded."); in testShouldFailAtContentValueVerification() 94 TestCase.fail("Test case that should fail actually succeeded."); in testShouldFailAtLineVerification()
|