Searched defs:test (Results 51 - 75 of 135) sorted by relevance

123456

/frameworks/base/test-runner/src/android/test/suitebuilder/annotation/
H A DHasClassAnnotation.java17 package android.test.suitebuilder.annotation;
21 import android.test.suitebuilder.TestMethod;
25 * A predicate that checks to see if a {@link android.test.suitebuilder.TestMethod} has a specific annotation on the
H A DHasMethodAnnotation.java17 package android.test.suitebuilder.annotation;
20 import android.test.suitebuilder.TestMethod;
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/examples/
H A DOuterTest.java17 package android.test.suitebuilder.examples;
19 import android.test.suitebuilder.TestSuiteBuilder;
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/examples/error/
H A DErrorTest.java17 package android.test.suitebuilder.examples.error;
H A DFailingTest.java17 package android.test.suitebuilder.examples.error;
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/examples/nested/nested/
H A DLevel2Test.java17 package android.test.suitebuilder.examples.nested.nested;
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/examples/simple/
H A DSimpleTest.java17 package android.test.suitebuilder.examples.simple;
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/examples/suppress/
H A DPartiallySuppressedTest.java17 package android.test.suitebuilder.examples.suppress;
19 import android.test.suitebuilder.annotation.Suppress;
/frameworks/base/test-runner/src/android/test/
H A DTestPrinter.java17 package android.test;
28 * Prints the test progress to stdout. Android includes a default
29 * implementation and calls these methods to print out test progress; you
31 * See the full {@link android.test} package description for information about
32 * getting test results.
88 private void failed(Test test, Throwable t) { argument
89 mFailedTests.add(test.toString());
90 failed(test.toString(), t);
93 public void addError(Test test, Throwable t) { argument
94 failed(test,
97 addFailure(Test test, junit.framework.AssertionFailedError t) argument
101 endTest(Test test) argument
109 startTest(Test test) argument
[all...]
H A DTestRecorder.java17 package android.test;
23 import android.test.TestRunner.IntermediateTime;
95 // try to update the row first in case we've ran this test before.
152 * Reports a test case failure.
154 * @param className Name of the class/test.
165 public void addError(Test test, Throwable t) { argument
166 mFailedTests.add(test.toString());
167 failed(test.toString(), t);
170 public void addFailure(Test test, junit.framework.AssertionFailedError t) { argument
171 mFailedTests.add(test
175 endTest(Test test) argument
183 startTest(Test test) argument
[all...]
H A DViewAsserts.java17 package android.test;
276 * Assert that the <code>test</code> view is horizontally center aligned
280 * @param test The view that should be center aligned with the reference view
282 static public void assertHorizontalCenterAligned(View reference, View test) { argument
287 test.getLocationOnScreen(xy);
290 int center = (reference.getMeasuredWidth() - test.getMeasuredWidth()) / 2;
297 * Assert that the <code>test</code> view is vertically center aligned
301 * @param test The view that should be center aligned with the reference view
303 static public void assertVerticalCenterAligned(View reference, View test) { argument
308 test
[all...]
H A DActivityInstrumentationTestCase.java17 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 DActivityInstrumentationTestCase2.java17 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}.
51 * @param activityClass The activity to test. This must be a class in the instrumentation
64 * @param activityClass The activity to test
[all...]
H A DClassPathPackageInfo.java17 package android.test;
H A DSingleLaunchActivityTestCase.java17 package android.test;
24 * If you would like to test a single activity with an
25 * {@link android.test.InstrumentationTestCase}, this provides some of the boiler plate to
45 * @param activityClass The activity to test.
54 * The activity that will be set up for use in each test method.
65 // If it is the first test case, launch the activity.
76 // If it is the last test case, call finish on the activity.
H A DSyncBaseInstrumentation.java17 package android.test;
27 * If you would like to test sync a single provider with an
62 // Finish test if time to sync has exceeded max time.
H A DTestBrowserController.java17 package android.test;
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
H A DInstrumentationTestSuiteBuilderTest.java17 package android.test.suitebuilder;
19 import static android.test.suitebuilder.ListTestCaseNames.getTestCaseNames;
20 import android.test.suitebuilder.examples.OuterTest;
21 import android.test.suitebuilder.examples.instrumentation.InstrumentationTest;
80 public void addError(Test test, Throwable t) { argument
81 errors.add(testName(test));
84 public void addFailure(Test test, AssertionFailedError t) { argument
85 failures.add(testName(test));
88 public void endTest(Test test) { argument
91 public void startTest(Test test) { argument
111 testName(Test test) argument
[all...]
H A DUnitTestSuiteBuilderTest.java17 package android.test.suitebuilder;
19 import android.test.suitebuilder.examples.instrumentation.InstrumentationTest;
73 public void addError(Test test, Throwable t) { argument
74 errors.add(testName(test));
77 public void addFailure(Test test, AssertionFailedError t) { argument
78 failures.add(testName(test));
81 public void endTest(Test test) { argument
84 public void startTest(Test test) { argument
85 testsSeen.add(testName(test));
104 private String testName(Test test) { argument
[all...]
/frameworks/base/core/java/android/debug/
H A DJNITest.java20 * Simple JNI verification test.
27 public int test(int intArg, double doubleArg, String stringArg) { method in class:JNITest
/frameworks/base/core/java/android/test/
H A DPerformanceTestCase.java17 package android.test;
20 * More complex interface performance for test cases.
22 * If you want your test to be used as a performance test, you must
42 * if you use it, you will probably want to ensure your test is only
43 * executed once by returning 1. Otherwise, return 0 to allow the test
49 * duration of the test whose performance should actually be measured.
59 * This method is used to determine what modes this test case can run in.
61 * @return true if this test case can only be run in performance mode.
/frameworks/base/core/tests/coretests/src/android/util/
H A DTouchModeFlexibleAsserts.java21 import android.test.InstrumentationTestCase;
22 import android.test.TouchUtils;
36 public static void assertInTouchModeAfterClick(InstrumentationTestCase test, View viewToTouch) { argument
40 TouchUtils.clickView(test, viewToTouch);
48 public static void assertInTouchModeAfterTap(InstrumentationTestCase test, View viewToTouch) { argument
52 TouchUtils.tapView(test, viewToTouch);
60 public static void assertNotInTouchModeAfterKey(InstrumentationTestCase test, int keyCode, View checkForTouchMode) { argument
61 test.sendKeys(keyCode);
/frameworks/base/opengl/tests/testPauseResume/src/com/android/test/
H A DTestActivity.java17 package com.android.test;
H A DTestView.java17 package com.android.test;
/frameworks/base/test-runner/src/android/test/mock/
H A DMockContentResolver.java17 package android.test.mock;
31 * A mock {@link android.content.ContentResolver} class that isolates the test code from the real
35 * <p>This only isolates the test code in ways that have proven useful so far. More should be

Completed in 410 milliseconds

123456