Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 973) sorted by relevance

12345678910>>...39

/cts/tests/tests/hardware/src/android/hardware/cts/
DSensorFrequencyTests.java70 SensorFrequencyTests test = new SensorFrequencyTests(); in createMaxFrequencyTestCases() local
71 test.mSensorType = definition[0]; in createMaxFrequencyTestCases()
72 test.mReportLatencyInUs = definition[1]; in createMaxFrequencyTestCases()
73 test.mThresholdPercentageOfNs = definition[2]; in createMaxFrequencyTestCases()
74 test.setName("testMaxFrequency"); in createMaxFrequencyTestCases()
75 testSuite.addTest(test); in createMaxFrequencyTestCases()
119 SensorFrequencyTests test = new SensorFrequencyTests(); in createJitteringTestCases() local
120 test.mSensorType = definition[0]; in createJitteringTestCases()
121 test.mReportLatencyInUs = definition[1]; in createJitteringTestCases()
122 test.mThresholdPercentageOfNs = definition[2]; in createJitteringTestCases()
[all …]
DSensorMeasurementTests.java76 SensorMeasurementTests test = new SensorMeasurementTests(); in createEventNormTestCases() local
77 test.mSensorType = (Integer)definition[0]; in createEventNormTestCases()
78 test.mSamplingRateInUs = (Integer)definition[1]; in createEventNormTestCases()
79 test.mReferenceValue = (Float)definition[2]; in createEventNormTestCases()
80 test.mThreshold = (Float)definition[3]; in createEventNormTestCases()
81 test.setName("testEventNorm"); in createEventNormTestCases()
82 testSuite.addTest(test); in createEventNormTestCases()
130 SensorMeasurementTests test = new SensorMeasurementTests(); in createStandardDeviationTestCases() local
131 test.mSensorType = (Integer)definition[0]; in createStandardDeviationTestCases()
132 test.mSamplingRateInUs = (Integer)definition[1]; in createStandardDeviationTestCases()
[all …]
DSensorEventOrderingTests.java76 SensorEventOrderingTests test = new SensorEventOrderingTests(); in createEventOrderingTestCases() local
77 test.mSensorType = definition[0]; in createEventOrderingTestCases()
78 test.mSamplingRateInUs = definition[1]; in createEventOrderingTestCases()
79 test.mReportLatencyInUs = definition[2]; in createEventOrderingTestCases()
80 test.setName("testEventOrdering"); in createEventOrderingTestCases()
81 testSuite.addTest(test); in createEventOrderingTestCases()
DSensorIntegrationTests.java183 SensorIntegrationTests test = new SensorIntegrationTests(); in createStoppingTestCases() local
184 test.mSensorTypeTester = sensorTypeTester; in createStoppingTestCases()
185 test.mSensorTypeTestee = sensorTypeTestee; in createStoppingTestCases()
186 test.setName("testSensorStoppingInteraction"); in createStoppingTestCases()
187 testSuite.addTest(test); in createStoppingTestCases()
272 SensorIntegrationTests test = new SensorIntegrationTests(); in addTestToSuite() local
273 test.setName(testName); in addTestToSuite()
274 testSuite.addTest(test); in addTestToSuite()
/cts/tests/tests/text/src/android/text/format/cts/
DTimeTest.java23 import android.test.AndroidTestCase;
329 DateTest test = dayTests[index]; in testNormalize1() local
330 local.set(0, test.minute1, test.hour1, test.day1, test.month1, test.year1); in testNormalize1()
333 local.monthDay += test.offset; in testNormalize1()
335 if (local.year != test.year2 || local.month != test.month2 in testNormalize1()
336 || local.monthDay != test.day2 || local.hour != test.hour2 in testNormalize1()
337 || local.minute != test.minute2) { in testNormalize1()
339 test.year2, test.month2, test.day2, test.hour2, test.minute2); in testNormalize1()
347 local.set(0, test.minute1, test.hour1, test.day1, test.month1, test.year1); in testNormalize1()
350 local.monthDay += test.offset; in testNormalize1()
[all …]
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DResultFilter.java78 public void testStarted(TestIdentifier test) { in testStarted() argument
79 if (isKnownTest(test)) { in testStarted()
80 super.testStarted(test); in testStarted()
82 CLog.d("Skipping reporting unknown test %s", test); in testStarted()
90 public void testFailed(TestFailure status, TestIdentifier test, String trace) { in testFailed() argument
91 if (isKnownTest(test)) { in testFailed()
92 super.testFailed(status, test, trace); in testFailed()
100 public void testEnded(TestIdentifier test, Map<String, String> testMetrics) { in testEnded() argument
101 if (isKnownTest(test)) { in testEnded()
102 super.testEnded(test, testMetrics); in testEnded()
[all …]
DTestFilter.java59 public void addExcludedTest(TestIdentifier test) { in addExcludedTest() argument
60 mExcludedTests.add(test); in addExcludedTest()
101 for (TestIdentifier test : tests) { in filter()
102 if (mIncludedClass != null && !test.getClassName().equals(mIncludedClass)) { in filter()
106 if (mIncludedMethod != null && !test.getTestName().equals(mIncludedMethod)) { in filter()
110 if (mExcludedClasses.contains(test.getClassName())) { in filter()
114 if (mExcludedTests.contains(test)) { in filter()
118 filteredTests.add(test); in filter()
/cts/tests/core/runner/src/android/test/
DInstrumentationCtsTestRunner.java17 package android.test;
29 import android.test.suitebuilder.TestMethod;
30 import android.test.suitebuilder.annotation.HasAnnotation;
123 public void startTest(Test test) { in getAndroidTestRunner()
124 if (test.getClass() != lastClass) { in getAndroidTestRunner()
125 lastClass = test.getClass(); in getAndroidTestRunner()
126 printMemory(test.getClass()); in getAndroidTestRunner()
130 test.getClass().getClassLoader()); in getAndroidTestRunner()
136 public void endTest(Test test) { in getAndroidTestRunner()
137 if (test instanceof TestCase) { in getAndroidTestRunner()
[all …]
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
DTestCase.java115 Test test = new Test(); in parse() local
116 test.parse(parser); in parse()
117 mChildTestMap.put(test.getName(), test); in parse() local
139 for (Test test : mChildTestMap.values()) { in addTestsWithStatus()
140 if (resultFilter.equals(test.getResult())) { in addTestsWithStatus()
141 tests.add(new TestIdentifier(fullClassName, test.getName())); in addTestsWithStatus()
157 for (Test test : mChildTestMap.values()) { in countTests()
158 if (test.getResult().equals(status)) { in countTests()
/cts/suite/cts/utils/
Dget_csv_report.py65 for test in getChildrenWithTag(child, "Test"):
66 methodName = test.getAttribute("name")
71 result = str(test.getAttribute("result"))
75 sts = getChildrenWithTag(test, "Summary")
76 dts = getChildrenWithTag(test, "Details")
173 test = tests[i]
174 reportTests[test] = []
177 if deviceResults[j].getResults().has_key(test):
178 result = deviceResults[j].getResults()[test]
185 reportTests[test].append(values)
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DIntrinsicColorMatrix.java59 private void test(Element.DataType dtin, Element.DataType dtout, int subtest) { in test() method in IntrinsicColorMatrix
119 test(Element.DataType.UNSIGNED_8, Element.DataType.UNSIGNED_8, 0); in test_U8_U8_Ident()
123 test(Element.DataType.FLOAT_32, Element.DataType.FLOAT_32, 0); in test_F32_F32_Ident()
127 test(Element.DataType.UNSIGNED_8, Element.DataType.FLOAT_32, 0); in test_U8_F32_Ident()
131 test(Element.DataType.FLOAT_32, Element.DataType.UNSIGNED_8, 0); in test_F32_U8_Ident()
135 test(Element.DataType.UNSIGNED_8, Element.DataType.UNSIGNED_8, 2); in test_U8_U8_Rand()
139 test(Element.DataType.FLOAT_32, Element.DataType.FLOAT_32, 10); in test_F32_F32_Rand()
143 test(Element.DataType.UNSIGNED_8, Element.DataType.FLOAT_32, 10); in test_U8_F32_Rand()
147 test(Element.DataType.FLOAT_32, Element.DataType.UNSIGNED_8, 10); in test_F32_U8_Rand()
/cts/tools/tradefed-host/
DREADME5 generation test harness for CTS.
7 cts-tradefed is built on top of the Android Trade Federation test harness.
13 support running CTS in a continuous test environment.
14 - supports sharding a CTS test run across multiple devices in parallel
15 - automatically continue a CTS test run on another device if connection
38 To run a test plan on a single device:
52 To run a test package:
55 To run a test class:
56 'run cts --class <full test class name>'
58 To shard a plan test run on multiple devices
/cts/tests/tests/content/src/android/content/cts/
DSearchRecentSuggestionsProviderTest.java23 import android.test.AndroidTestCase;
24 import android.test.IsolatedContext;
25 import android.test.RenamingDelegatingContext;
26 import android.test.mock.MockContentResolver;
27 import android.test.mock.MockContext;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DP2pClientTestSuite.java50 for (ReqTestCase test: sTestSuite) { in getTestCase()
51 if (test.getTestId().equals(testId)) { in getTestCase()
52 return test; in getTestCase()
DGoNegReqTestSuite.java50 for (ReqTestCase test: sTestSuite) { in getTestCase()
51 if (test.getTestId().equals(testId)) { in getTestCase()
52 return test; in getTestCase()
/cts/tests/tests/permission/src/android/permission/cts/
DNoActivityRelatedPermissionTest.java24 import android.test.ActivityInstrumentationTestCase2;
25 import android.test.suitebuilder.annotation.MediumTest;
26 import android.test.suitebuilder.annotation.Suppress;
/cts/tests/tests/calendarcommon/src/android/calendarcommon2/cts/
DCalendarcommon2Test.java19 import android.test.InstrumentationCtsTestRunner;
20 import android.test.InstrumentationTestCase;
21 import android.test.suitebuilder.annotation.MediumTest;
/cts/tools/utils/
DCollectAllTests.java376 Class<? extends TestCase> test) { in addToTests() argument
377 Class testClass = test; in addToTests()
399 addToTests(expectations, testCases, test, testName); in addToTests()
407 Class<? extends TestCase> test, in addToTests() argument
410 String testClassName = test.getName(); in addToTests()
411 String knownFailure = getKnownFailure(test, testName); in addToTests()
413 if (isKnownFailure(test, testName)) { in addToTests()
414 System.out.println("ignoring known failure: " + test + "#" + testName); in addToTests()
416 } else if (isBrokenTest(test, testName)) { in addToTests()
417 System.out.println("ignoring broken test: " + test + "#" + testName); in addToTests()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super/d/
DT_invoke_super_4.java21 public native void test(); in test() method in T_invoke_super_4
24 test(); in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_virtual/d/
DT_invoke_virtual_4.java21 public native void test(); in test() method in T_invoke_virtual_4
24 test(); in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super_range/d/
DT_invoke_super_range_4.java21 public native void test(); in test() method in T_invoke_super_range_4
24 test(); in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_static/d/
DT_invoke_static_6.java21 public static native void test(); in test() method in T_invoke_static_6
24 test(); in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_virtual_range/d/
DT_invoke_virtual_range_4.java21 public native void test(); in test() method in T_invoke_virtual_range_4
24 test(); in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/return_wide/d/
DT_return_wide_3.java21 private synchronized long test() { in test() method in T_return_wide_3
26 test(); in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_static_range/d/
DT_invoke_static_range_6.java21 public static native void test(); in test() method in T_invoke_static_range_6
24 test(); in run()

12345678910>>...39