Searched defs:test (Results 76 - 100 of 135) sorted by relevance

123456

/frameworks/base/test-runner/src/android/test/suitebuilder/
H A DTestPredicates.java17 package android.test.suitebuilder;
19 import android.test.InstrumentationTestCase;
20 import android.test.PerformanceTestBase;
21 import android.test.suitebuilder.annotation.HasAnnotation;
22 import android.test.suitebuilder.annotation.Suppress;
23 import android.test.suitebuilder.annotation.LargeTest;
24 import android.test.suitebuilder.annotation.MediumTest;
25 import android.test.suitebuilder.annotation.SmallTest;
26 import android.test.suitebuilder.annotation.Smoke;
H A DTestMethod.java17 package android.test.suitebuilder;
27 * Represents a test to be run. Can be constructed without instantiating the TestCase or even
87 TestCase test = ((Constructor<? extends TestCase>) constructor).newInstance();
88 // JUnit will run just the one test if you call
90 test.setName(testName);
91 return test;
/frameworks/base/test-runner/tests/src/android/test/
H A DTestCaseUtilTest.java17 package android.test;
47 Test test = TestCaseUtil.createTestSuite(OneTestTestCase.class);
48 assertEquals(1, test.countTestCases());
52 Test test = TestCaseUtil.createTestSuite(TwoTestsInTestSuite.class);
53 assertEquals(2, test.countTestCases());
57 Test test = TestCaseUtil.createTestSuite(OneTestTestCaseWithSuite.class);
58 assertEquals(1, test.countTestCases());
H A DTestBrowserControllerImplTest.java17 package android.test;
56 // This allows the test to pass in multiple environments.
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/annotation/
H A DHasAnnotationTest.java17 package android.test.suitebuilder.annotation;
19 import android.test.suitebuilder.TestMethod;
H A DHasClassAnnotationTest.java17 package android.test.suitebuilder.annotation;
19 import android.test.suitebuilder.TestMethod;
H A DHasMethodAnnotationTest.java17 package android.test.suitebuilder.annotation;
19 import android.test.suitebuilder.TestMethod;
/frameworks/base/test-runner/src/android/test/
H A DTouchUtils.java17 package android.test;
38 * @param test The test case that is being run
40 * @deprecated {@link android.test.ActivityInstrumentationTestCase} is deprecated in favor of
41 * {@link android.test.ActivityInstrumentationTestCase2}, which provides more options for
42 * configuring the Activity under test
45 public static void dragQuarterScreenDown(ActivityInstrumentationTestCase test) { argument
46 dragQuarterScreenDown(test, test.getActivity());
51 * @param test Th
54 dragQuarterScreenDown(InstrumentationTestCase test, Activity activity) argument
75 dragQuarterScreenUp(ActivityInstrumentationTestCase test) argument
84 dragQuarterScreenUp(InstrumentationTestCase test, Activity activity) argument
108 scrollToBottom(ActivityInstrumentationTestCase test, ViewGroup v) argument
120 scrollToBottom(InstrumentationTestCase test, Activity activity, ViewGroup v) argument
149 scrollToTop(ActivityInstrumentationTestCase test, ViewGroup v) argument
161 scrollToTop(InstrumentationTestCase test, Activity activity, ViewGroup v) argument
188 dragViewToBottom(ActivityInstrumentationTestCase test, View v) argument
199 dragViewToBottom(InstrumentationTestCase test, Activity activity, View v) argument
215 dragViewToBottom(ActivityInstrumentationTestCase test, View v, int stepCount) argument
228 dragViewToBottom(InstrumentationTestCase test, Activity activity, View v, int stepCount) argument
251 tapView(InstrumentationTestCase test, View v) argument
291 touchAndCancelView(InstrumentationTestCase test, View v) argument
326 clickView(InstrumentationTestCase test, View v) argument
377 longClickView(ActivityInstrumentationTestCase test, View v) argument
387 longClickView(InstrumentationTestCase test, View v) argument
437 dragViewToTop(ActivityInstrumentationTestCase test, View v) argument
453 dragViewToTop(ActivityInstrumentationTestCase test, View v, int stepCount) argument
463 dragViewToTop(InstrumentationTestCase test, View v) argument
474 dragViewToTop(InstrumentationTestCase test, View v, int stepCount) argument
547 dragViewBy(ActivityInstrumentationTestCase test, View v, int gravity, int deltaX, int deltaY) argument
569 dragViewBy(InstrumentationTestCase test, View v, int gravity, int deltaX, int deltaY) argument
602 dragViewTo(ActivityInstrumentationTestCase test, View v, int gravity, int toX, int toY) argument
619 dragViewTo(InstrumentationTestCase test, View v, int gravity, int toX, int toY) argument
653 dragViewToX(ActivityInstrumentationTestCase test, View v, int gravity, int toX) argument
669 dragViewToX(InstrumentationTestCase test, View v, int gravity, int toX) argument
700 dragViewToY(ActivityInstrumentationTestCase test, View v, int gravity, int toY) argument
716 dragViewToY(InstrumentationTestCase test, View v, int gravity, int toY) argument
747 drag(ActivityInstrumentationTestCase test, float fromX, float toX, float fromY, float toY, int stepCount) argument
762 drag(InstrumentationTestCase test, float fromX, float toX, float fromY, float toY, int stepCount) argument
[all...]
H A DApplicationTestCase.java17 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 DProviderTestCase.java17 package android.test;
22 import android.test.mock.MockContext;
23 import android.test.mock.MockContentResolver;
27 * If you would like to test a single content provider with an
50 * The content provider that will be set up for use in each test method.
63 final String filenamePrefix = "test.";
88 final String filenamePrefix = "test.";
H A DTestBrowserActivity.java17 package android.test;
38 implements android.test.TestBrowserView, AdapterView.OnItemClickListener,
55 // Apk paths used to search for test classes when using TestSuiteBuilders.
100 // get test classes to browwes from subclass
H A DTestRunnerView.java17 package android.test;
H A DProviderTestCase2.java17 package android.test;
23 import android.test.mock.MockContext;
24 import android.test.mock.MockContentResolver;
31 * ContentProvider. It uses a {@link android.test.mock.MockContentResolver} to
34 * {@link android.test.IsolatedContext} to isolate the ContentProvider from the
69 * The content provider that will be set up for use in each test method.
82 final String filenamePrefix = "test.";
H A DServiceTestCase.java17 package android.test;
26 import android.test.mock.MockApplication;
32 * This test case provides a framework in which you can test Service classes in
40 * In order to support the lifecycle of a Service, this test case will make the
43 * <ul><li>The test case will not call onCreate() until your test calls
45 * to set up or adjust any additional framework or test logic before
47 * <li>When your test calls {@link #startService} or {@link #bindService}
48 * the test cas
[all...]
H A DTestBrowserControllerImpl.java17 package android.test;
51 // we browse nested test suites.
62 Test test = TestCaseUtil.getTestAtIndex(mTestSuite, position - 1);
63 if (TestSuite.class.isAssignableFrom(test.getClass())) {
64 TestSuite testSuite = (TestSuite) test;
68 } else if (TestCase.class.isAssignableFrom(test.getClass())) {
69 TestCase testCase = (TestCase) test;
H A DAndroidTestRunner.java17 package android.test;
59 public void setTest(Test test) { argument
60 setTest(test, test.getClass());
63 private void setTest(Test test, Class<? extends Test> testClass) { argument
64 mTestCases = (List<TestCase>) TestCaseUtil.getTests(test, true);
66 mTestClassName = TestCaseUtil.getTestName(test);
87 runFailed("Could not find test class. Class: " + testClassName);
98 runFailed("Could not access test class. Class: " + testClass.getName());
100 runFailed("Could not instantiate test clas
173 setContextIfAndroidTestCase(Test test, Context context, Context testContext) argument
184 setInstrumentationIfInstrumentationTestCase( Test test, Instrumentation instrumentation) argument
191 setPerformanceWriterIfPerformanceCollectorTestCase( Test test, PerformanceResultsWriter writer) argument
229 testFailed(int status, Test test, Throwable t) argument
[all...]
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
H A DTestSuiteBuilderTest.java17 package android.test.suitebuilder;
20 import static android.test.suitebuilder.ListTestCaseNames.getTestCaseNames;
21 import android.test.suitebuilder.examples.OuterTest;
22 import android.test.suitebuilder.examples.suppress.SuppressedTest;
23 import android.test.suitebuilder.examples.error.ErrorTest;
24 import android.test.suitebuilder.examples.error.FailingTest;
25 import android.test.suitebuilder.examples.nested.Level1Test;
26 import android.test.suitebuilder.examples.nested.nested.Level2Test;
27 import android.test.suitebuilder.examples.simple.SimpleTest;
28 import android.test
182 addError(Test test, Throwable t) argument
186 addFailure(Test test, AssertionFailedError t) argument
190 endTest(Test test) argument
193 startTest(Test test) argument
213 testName(Test test) argument
[all...]
H A DAssignableFromTest.java17 package android.test.suitebuilder;
H A DListTestCaseNames.java17 package android.test.suitebuilder;
32 for (Test test : tests) {
33 if (test instanceof TestCase) {
34 testCaseNames.add(((TestCase) test).getName());
35 } else if (test instanceof TestSuite) {
36 testCaseNames.addAll(getTestCaseNames((TestSuite) test));
43 * Returns a list of test class and method names for each TestCase in suite.
48 for (Test test : tests) {
49 if (test instanceof TestCase) {
50 String className = test
[all...]
/frameworks/base/opengl/tests/filter/
H A Dfilter.cpp22 const int test = atoi(argv[1]); local
111 switch(test)
/frameworks/base/core/java/android/test/
H A DAndroidTestCase.java17 package android.test;
59 * Test context can be used to access resources from the test's own package
60 * as opposed to the resources from the test target package. Access to the
146 * test case creates a non-static inner class (thus referencing the test case) and gives it to
H A DInstrumentationTestCase.java17 package android.test;
34 * A test case that has access to {@link Instrumentation}.
41 * Injects instrumentation into this test case. This method is
42 * called by the test runner during test setup.
51 * Injects instrumentation into this test case. This method is
52 * called by the test runner during test setup.
125 * Helper for running portions of a test on the UI thread.
127 * Note, in most cases it is simpler to annotate the test metho
[all...]
/frameworks/base/media/libstagefright/codecs/aacdec/
H A Dlong_term_prediction.cpp379 Int32 test; local
494 test = (Int32) weight * (*(pBuffer++));
495 *(pPredicted_samples++) = test;
496 max |= (test >> 31) ^ test;
526 test = (Int32) weight * (*(pBuffer++));
527 *(pPredicted_samples++) = test;
528 max |= (test >> 31) ^ test;
557 test
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/test/
H A DSimulatedRadioControl.java17 package com.android.internal.telephony.test;
/frameworks/base/tools/aidl/
H A Doptions_test.cpp57 test(const Answer& answer) function
140 /* argv */ { "test", "-i/moof", "-I/blah", "-Ibleh", "-imoo", "inputFileName.aidl_cpp", NULL, NULL },
152 /* argv */ { "test", "inputFileName.aidl_cpp", "-oh", "outputH", NULL, NULL, NULL, NULL },
164 /* argv */ { "test", "inputFileName.aidl_cpp", "-ocpp", "outputCPP", NULL, NULL, NULL, NULL },
176 /* argv */ { "test", "inputFileName.aidl_cpp", "-ojava", "outputJava", NULL, NULL, NULL, NULL },
188 /* argv */ { "test", "inputFileName.aidl_cpp", "-oh", "outputH", "-ocpp", "outputCPP", "-ojava", "outputJava" },
200 /* argv */ { "test", "inputFileName.aidl_cpp", "-oh", "outputH", "-oh", "outputH1", NULL, NULL },
212 /* argv */ { "test", "inputFileName.aidl_cpp", "-ocpp", "outputCPP", "-ocpp", "outputCPP1", NULL, NULL },
224 /* argv */ { "test", "inputFileName.aidl_cpp", "-ojava", "outputJava", "-ojava", "outputJava1", NULL, NULL },
256 matches[i] = test(g_test
[all...]

Completed in 308 milliseconds

123456