Searched defs:test (Results 1 - 25 of 508) sorted by path

1234567891011>>

/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp262 // test.
556 printf(" * Cannot perform seek test with this componentRole (%s)\n",
565 printf(" * Unable to open test content for type '%s', "
566 "skipping test of componentRole %s\n",
722 status_t Harness::test( function in class:android::Harness
755 err = test(componentName, componentRole);
774 "and role, tool will test all available OMX components "
827 printf("To reproduce the conditions for this test, launch "
838 if (h->test(argv[0], argv[1]) == OK) {
/frameworks/av/services/audioflinger/tests/
H A Dresampler_tests.cpp59 void buffercmp(const void *reference, const void *test, argument
64 (const char*)test + i * outputFrameSize, outputFrameSize);
112 /* this test will fail - API interface issue: reset() does not clear internal buffers */
122 // set up the test run
127 void* test = malloc(outputSize); local
131 resample(channels, test, outputFrames, outIncr, &provider, resampler);
134 buffercmp(reference, test, outputFrameSize, outputFrames);
137 free(test);
229 /* Buffer increment test
232 * buffer at a time, and a test outpu
[all...]
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
H A DUiAutomatorTestRunner.java28 import android.test.RepetitiveTest;
101 * Called after all test classes are in place, ready to test
150 // add test listeners
243 private static final String REPORT_KEY_NAME_TEST = "test";
273 * send a status for the start of a each test, so long tests can be seen
277 public void startTest(Test test) { argument
278 String testClass = test.getClass().getName();
279 String testName = ((TestCase) test).getName();
295 testMethod = test
315 addError(Test test, Throwable t) argument
327 addFailure(Test test, AssertionFailedError t) argument
339 endTest(Test test) argument
[all...]
/frameworks/base/core/java/android/provider/
H A DDocumentsProvider.java1030 public static boolean mimeTypeMatches(String filter, String test) { argument
1031 if (test == null) {
1035 } else if (filter.equals(test)) {
1038 return filter.regionMatches(0, test, 0, filter.indexOf('/'));
/frameworks/base/core/java/android/test/
H A DAndroidTestCase.java17 package android.test;
23 import android.test.suitebuilder.annotation.Suppress;
34 * <a href="{@docRoot}reference/android/support/test/InstrumentationRegistry.html">
69 * Test context can be used to access resources from the test's own package
70 * as opposed to the resources from the test target package. Access to the
157 * test case creates a non-static inner class (thus referencing the test case) and gives it to
H A DFlakyTest.java17 package android.test;
25 * This annotation can be used on an {@link android.test.InstrumentationTestCase}'s
26 * test methods. When the annotation is present, the test method is re-executed if
27 * the test fails. The total number of executions is specified by the tolerance and
31 * <a href="{@docRoot}reference/android/support/test/filters/FlakyTest.html">
40 * Indicates how many times a test can run and fail before being reported
41 * as a failed test. If the tolerance factor is less than 1, the test runs
H A DInstrumentationTestCase.java17 package android.test;
34 * A test case that has access to {@link Instrumentation}.
37 * <a href="{@docRoot}reference/android/support/test/InstrumentationRegistry.html">
47 * Injects instrumentation into this test case. This method is
48 * called by the test runner during test setup.
57 * Injects instrumentation into this test case. This method is
58 * called by the test runner during test setup.
131 * Helper for running portions of a test o
[all...]
H A DInstrumentationTestSuite.java17 package android.test;
30 * <a href="{@docRoot}reference/android/support/test/InstrumentationRegistry.html">
41 * test before running it.
54 * @param theClass Inspected for methods starting with 'test'
55 * @param instr The instrumentation to inject into each test before
71 public void runTest(Test test, TestResult result) { argument
73 if (test instanceof InstrumentationTestCase) {
74 ((InstrumentationTestCase) test).injectInstrumentation(mInstrumentation);
77 // run the test as usual
78 super.runTest(test, resul
[all...]
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
43 * if you use it, you will probably want to ensure your test is only
44 * executed once by returning 1. Otherwise, return 0 to allow the test
50 * duration of the test whose performance should actually be measured.
60 * This method is used to determine what modes this test case can run in.
62 * @return true if this test case can only be run in performance mode.
H A DRepetitiveTest.java17 package android.test;
25 * This annotation can be used on an {@link android.test.InstrumentationTestCase}'s test methods.
26 * When the annotation is present, the test method is executed the number of times specified by
35 * Indicates the number of times a test case should be run.
H A DUiThreadTest.java17 package android.test;
25 * This annotation can be used on an {@link InstrumentationTestCase}'s test methods.
26 * When the annotation is present, the test method is executed on the application's
31 * <a href="{@docRoot}reference/android/support/test/annotation/UiThreadTest.html">
/frameworks/base/core/java/android/test/suitebuilder/annotation/
H A DLargeTest.java17 package android.test.suitebuilder.annotation;
25 * Marks a test that should run as part of the large tests.
28 * <a href="{@docRoot}reference/android/support/test/filters/LargeTest.html">
H A DMediumTest.java17 package android.test.suitebuilder.annotation;
25 * Marks a test that should run as part of the medium tests.
28 * <a href="{@docRoot}reference/android/support/test/filters/MediumTest.html">
H A DSmallTest.java17 package android.test.suitebuilder.annotation;
25 * Marks a test that should run as part of the small tests.
28 * <a href="{@docRoot}reference/android/support/test/filters/SmallTest.html">
H A DSmoke.java17 package android.test.suitebuilder.annotation;
25 * Marks a test that should run as part of the smoke tests.
26 * The <code>android.test.suitebuilder.SmokeTestSuiteBuilder</code>
29 * @see android.test.suitebuilder.SmokeTestSuiteBuilder
H A DSuppress.java17 package android.test.suitebuilder.annotation;
25 * Use this annotation on test classes or test methods that should not be included in a test
27 * the annotation appears only on a test method then only that method will be excluded.
30 * <a href="{@docRoot}reference/android/support/test/filters/Suppress.html">
/frameworks/base/core/tests/coretests/src/android/text/
H A DTextUtilsTest.java21 import android.test.MoreAsserts;
23 import android.test.suitebuilder.annotation.LargeTest;
24 import android.test.suitebuilder.annotation.SmallTest;
79 "test", "emergency", "system");
80 assertEquals("This is a test of the emergency broadcast system.",
357 TextUtils.writeToParcel("test", p, 0);
360 assertEquals("conversion to/from parcel failed", "test", text);
379 TextUtils.writeToParcel(new SpannableString("test"), p, 0);
382 assertEquals("conversion to/from parcel failed", "test", text.toString());
390 TextUtils.writeToParcel("test",
479 public void test() { method in class:TextUtilsTest.MockSpanned
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DKeyUtils.java21 import android.test.ActivityInstrumentationTestCase;
22 import android.test.InstrumentationTestCase;
43 * @param test The test case that is being run.
45 public static void tapMenuKey(ActivityInstrumentationTestCase test) { argument
46 final Instrumentation inst = test.getInstrumentation();
55 * @param test The test case that is being run.
58 public static void chordMenuKey(ActivityInstrumentationTestCase test, char shortcutKey) { argument
59 final Instrumentation inst = test
77 longClick(ActivityInstrumentationTestCase test) argument
[all...]
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/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/
H A DServicesTests.java17 package com.android.framework.multidexlegacytestservices.test;
20 import android.test.InstrumentationTestCase;
27 com.android.framework.multidexlegacytestservices.test/android.test.InstrumentationTestRunner
/frameworks/base/core/tests/utillib/src/android/test/
H A DBandwidthTest.java17 package android.test;
23 * This annotation can be used on an {@link junit.framework.TestCase}'s test methods. When the
24 * annotation is present, the test method is profiled for bandwidth metrics and the results
26 * which is equivalent to tagging all test methods with this annotation.
H A DBandwidthTestCase.java16 package android.test;
28 * A bandwidth test case that collects bandwidth statistics for tests that are
29 * annotated with {@link BandwidthTest} otherwise the test is executed
92 * If bandwidth profiling fails for whatever reason the test
133 // Report current iteration number, if test is repetitive
/frameworks/base/libs/androidfw/tests/
H A DConfigLocale_test.cpp179 ResTable_config test; local
180 test.setBcp47Locale("en-US");
181 EXPECT_EQ('e', test.language[0]);
182 EXPECT_EQ('n', test.language[1]);
183 EXPECT_EQ('U', test.country[0]);
184 EXPECT_EQ('S', test.country[1]);
185 EXPECT_TRUE(test.localeScriptWasComputed);
186 EXPECT_EQ(0, memcmp("Latn", test.localeScript, 4));
187 EXPECT_EQ(0, test.localeVariant[0]);
189 test
[all...]
/frameworks/base/libs/hwui/tests/common/
H A DTestContext.cpp21 namespace test { namespace in namespace:android::uirenderer
92 } // namespace test
H A DTestContext.h30 namespace test { namespace in namespace:android::uirenderer
33 #define dp(x) ((x) * android::uirenderer::test::gDisplay.density)
53 } // namespace test

Completed in 449 milliseconds

1234567891011>>