/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | MountServiceTests.java | 25 import android.test.AndroidTestCase; 26 import android.test.ComparisonFailure; 27 import android.test.suitebuilder.annotation.LargeTest;
|
H A D | NativeDaemonConnectorTest.java | 21 import android.test.AndroidTestCase; 22 import android.test.suitebuilder.annotation.MediumTest;
|
H A D | NetworkPolicyManagerServiceTest.java | 74 import android.test.AndroidTestCase; 75 import android.test.mock.MockPackageManager; 76 import android.test.suitebuilder.annotation.LargeTest; 77 import android.test.suitebuilder.annotation.Suppress; 585 // now change cycle to be on 15th, and test in early march, to verify we
|
H A D | NetworkStatsServiceTest.java | 67 import android.test.AndroidTestCase; 68 import android.test.suitebuilder.annotation.LargeTest; 69 import android.test.suitebuilder.annotation.Suppress; 322 // TODO: simulate reboot to test bucket resize 725 // test that we combined correctly 830 // also test pure-DEV and pure-XT ranges
|
H A D | ThrottleServiceTest.java | 42 import android.test.AndroidTestCase; 43 import android.test.suitebuilder.annotation.LargeTest; 44 import android.test.suitebuilder.annotation.Suppress; 234 // test is currently no-op, just exercises stats apis
|
/frameworks/base/services/tests/servicestests/src/com/android/server/location/ |
H A D | ComprehensiveCountryDetectorTest.java | 21 import android.test.AndroidTestCase;
|
H A D | LocationBasedCountryDetectorTest.java | 23 import android.test.AndroidTestCase; 234 // There is no way to stop the thread, let's test it could be stopped, after get country
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
H A D | NetworkStatsCollectionTest.java | 29 import android.test.AndroidTestCase; 30 import android.test.suitebuilder.annotation.MediumTest; 51 private static final String TEST_FILE = "test.bin";
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | PackageManagerSettingsTests.java | 38 import android.test.AndroidTestCase;
|
H A D | PackageVerificationStateTest.java | 22 import android.test.AndroidTestCase;
|
H A D | UserManagerTest.java | 27 import android.test.AndroidTestCase;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/ |
H A D | CertPinInstallReceiverTest.java | 21 import android.test.AndroidTestCase; 195 Log.e(TAG, "started test");
|
/frameworks/base/test-runner/src/android/test/ |
H A D | ActivityInstrumentationTestCase.java | 17 package android.test; 24 * This class provides functional testing of a single activity. The activity under test will 29 * <p>If you prefer an isolated unit test, see {@link android.test.ActivityUnitTestCase}. 32 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for 33 * configuring the Activity under test 46 * @param activityClass The activity to test. This must be a class in the instrumentation 57 * @param activityClass The activity to test. This must be a class in the instrumentation 87 // creates a non-static inner class (thus referencing the test case) and gives it to
|
H A D | ActivityInstrumentationTestCase2.java | 17 package android.test; 25 * This class provides functional testing of a single activity. The activity under test will 29 * <p>Other options supported by this test case include: 31 * <li>You can run any test method on the UI thread (see {@link android.test.UiThreadTest}).</li> 36 * <p>This class replaces {@link android.test.ActivityInstrumentationTestCase}, which is deprecated. 39 * <p>If you prefer an isolated unit test, see {@link android.test.ActivityUnitTestCase}. 57 * @param activityClass The activity to test. This must be a class in the instrumentation 70 * @param activityClass The activity to test [all...] |
H A D | ActivityTestCase.java | 17 package android.test; 25 * This is common code used to support Activity test cases. For more useful classes, please see 26 * {@link android.test.ActivityUnitTestCase} and 27 * {@link android.test.ActivityInstrumentationTestCase}. 32 * The activity that will be set up for use in each test method. 37 * @return Returns the activity under test. 44 * Set the activity under test. 45 * @param testActivity The activity under test 54 * test case creates a non-static inner class (thus referencing the test cas [all...] |
H A D | ActivityUnitTestCase.java | 17 package android.test; 27 import android.test.mock.MockApplication; 31 * This class provides isolated testing of a single activity. The activity under test will 36 * <p>If you prefer a functional test, see {@link android.test.ActivityInstrumentationTestCase}. 38 * <p>It must be noted that, as a true unit test, your Activity will not be running in the 55 * <p>The following methods may be called but will not do anything. For test purposes, you can use 63 * <p>The following methods may be called but will not do anything. For test purposes, you can use 103 * Start the activity under test, in the same way as if it was started by 109 * cycle methods, you must call them yourself from your test cas [all...] |
H A D | AndroidTestRunner.java | 17 package android.test; 60 public void setTest(Test test) { argument 61 setTest(test, test.getClass()); 64 private void setTest(Test test, Class<? extends Test> testClass) { argument 65 mTestCases = (List<TestCase>) TestCaseUtil.getTests(test, true); 67 mTestClassName = TestCaseUtil.getTestName(test); 88 runFailed("Could not find test class. Class: " + testClassName); 116 runFailed("Could not access test class. Class: " + testClass.getName()); 118 runFailed("Could not instantiate test clas 194 setContextIfAndroidTestCase(Test test, Context context, Context testContext) argument 205 setInstrumentationIfInstrumentationTestCase( Test test, Instrumentation instrumentation) argument 212 setPerformanceWriterIfPerformanceCollectorTestCase( Test test, PerformanceResultsWriter writer) argument 250 testFailed(int status, Test test, Throwable t) argument [all...] |
H A D | ApplicationTestCase.java | 17 package android.test; 26 * This test case provides a framework in which you can test Application classes in 34 * In order to support the lifecycle of a Application, this test case will make the 37 * <ul><li>The test case will not call onCreate() until your test calls 39 * to set up or adjust any additional framework or test logic before 41 * <li>After your test completes, the test case {@link #tearDown} method is 50 * dependencies, and thus perform a true unit test [all...] |
H A D | AssertionFailedError.java | 17 package android.test;
|
H A D | ClassPathPackageInfo.java | 17 package android.test;
|
H A D | ClassPathPackageInfoSource.java | 17 package android.test; 82 // Don't try to load classes that are generated. They usually aren't in test apks.
|
H A D | ComparisonFailure.java | 17 package android.test;
|
H A D | DatabaseTestUtils.java | 17 package android.test;
|
H A D | InstrumentationCoreTestRunner.java | 17 package android.test; 35 import android.test.suitebuilder.TestMethod; 36 import android.test.suitebuilder.annotation.HasAnnotation; 40 * This test runner extends the default InstrumentationTestRunner. It overrides 58 * True if (and only if) we are running in single-test mode (as opposed to 90 * The last test class we executed code from. 95 * The minimum time we expect a test to take. 100 * The start time of our current test in System.currentTimeMillis(). 104 public void startTest(Test test) { 105 if (test [all...] |
H A D | InstrumentationTestRunner.java | 17 package android.test; 30 import android.test.suitebuilder.TestMethod; 31 import android.test.suitebuilder.TestPredicates; 32 import android.test.suitebuilder.TestSuiteBuilder; 33 import android.test.suitebuilder.annotation.HasAnnotation; 34 import android.test.suitebuilder.annotation.LargeTest; 69 * <ul><li>{@link android.test.ActivityInstrumentationTestCase2}</li> 70 * <li>{@link android.test.ActivityUnitTestCase}</li> 71 * <li>{@link android.test.AndroidTestCase}</li> 72 * <li>{@link android.test 682 startTest(Test test) argument 690 addError(Test test, Throwable t) argument 697 addFailure(Test test, AssertionFailedError t) argument 704 endTest(Test test) argument 761 startTest(Test test) argument 833 addError(Test test, Throwable t) argument 845 addFailure(Test test, AssertionFailedError t) argument 857 endTest(Test test) argument [all...] |