Home
last modified time | relevance | path

Searched refs:testId (Results 1 – 25 of 32) sorted by relevance

12

/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResult.java48 public static void setPassedResult(Activity activity, String testId, String testDetails) { in setPassedResult() argument
49 setPassedResult(activity, testId, testDetails, null /*reportLog*/); in setPassedResult()
53 public static void setPassedResult(Activity activity, String testId, String testDetails, in setPassedResult() argument
55 activity.setResult(Activity.RESULT_OK, createResult(activity, TEST_RESULT_PASSED, testId, in setPassedResult()
60 public static void setFailedResult(Activity activity, String testId, String testDetails) { in setFailedResult() argument
61 setFailedResult(activity, testId, testDetails, null /*reportLog*/); in setFailedResult()
65 public static void setFailedResult(Activity activity, String testId, String testDetails, in setFailedResult() argument
67 activity.setResult(Activity.RESULT_OK, createResult(activity, TEST_RESULT_FAILED, testId, in setFailedResult()
DDialogTestListActivity.java226 public DialogTestListItem(Context context, int nameResId, String testId) { in DialogTestListItem() argument
227 super(context.getString(nameResId), testId, null, null, null, null); in DialogTestListItem() local
230 public DialogTestListItem(Context context, int nameResId, String testId, in DialogTestListItem() argument
232 super(context.getString(nameResId), testId, testIntent, null, null, null); in DialogTestListItem() local
263 public DialogTestListItemWithIcon(Context context, int nameResId, String testId, in DialogTestListItemWithIcon() argument
265 super(context, nameResId, testId, testInstructionResId, testIntent); in DialogTestListItemWithIcon()
DIntentDrivenTestActivity.java121 public TestInfo(String testId, int title, int infoText, ButtonInfo... buttons) { in TestInfo() argument
130 mTestId = testId; in TestInfo()
221 Intent[] createIntents(String testId, int buttonText); in createIntents() argument
DPassFailButtons.java401 protected static void setTestResultAndFinish(android.app.Activity activity, String testId, in setTestResultAndFinish() argument
412 setTestResultAndFinishHelper(activity, testId, testDetails, passed, reportLog); in setTestResultAndFinish()
416 protected static void setTestResultAndFinishHelper(android.app.Activity activity, String testId, in setTestResultAndFinishHelper() argument
419 TestResult.setPassedResult(activity, testId, testDetails, reportLog); in setTestResultAndFinishHelper()
421 TestResult.setFailedResult(activity, testId, testDetails, reportLog); in setTestResultAndFinishHelper()
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/
DCtsXmlResultReporterTest.java142 final TestIdentifier testId = new TestIdentifier("com.foo.FooTest", "testFoo"); in testSinglePass() local
146 mResultReporter.testStarted(testId); in testSinglePass()
147 mResultReporter.testEnded(testId, emptyMap); in testSinglePass()
165 "<Test name=\"%s\" result=\"pass\"", testId.getTestName()); in testSinglePass()
175 final TestIdentifier testId = new TestIdentifier("FooTest", "testFoo"); in testSingleFail() local
180 mResultReporter.testStarted(testId); in testSingleFail()
181 mResultReporter.testFailed(testId, trace); in testSingleFail()
182 mResultReporter.testEnded(testId, emptyMap); in testSingleFail()
207 final TestIdentifier testId = new TestIdentifier("FooTest", "testFoo"); in testIncludeTestLogTags() local
216 mResultReporter.testStarted(testId); in testIncludeTestLogTags()
[all …]
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DGeeTestResultParser.java415 String[] testId = identifier.split("\\."); in parseTestIdentifier() local
416 if (testId.length < 2) { in parseTestIdentifier()
421 returnInfo.mTestClassName = testId[0]; in parseTestIdentifier()
422 returnInfo.mTestName = testId[1]; in parseTestIdentifier()
488 TestIdentifier testId = new TestIdentifier(mFakePackagePrefix + testResult.mTestClass, in processTestStartedTag() local
492 listener.testStarted(testId); in processTestStartedTag()
508 TestIdentifier testId = new TestIdentifier(mFakePackagePrefix + testResult.mTestClass, in doTestEnded() local
552 listener.testFailed(testId, mCurrentTestResult.getTrace()); in doTestEnded()
557 listener.testFailed(testId, mCurrentTestResult.getTrace()); in doTestEnded()
564 listener.testEnded(testId, emptyMap); in doTestEnded()
[all …]
DSingleJUnitTestResultParser.java39 …public SingleJUnitTestResultParser(TestIdentifier testId, Collection<ITestRunListener> listeners) { in SingleJUnitTestResultParser() argument
40 mTestId = testId; in SingleJUnitTestResultParser()
44 public SingleJUnitTestResultParser(TestIdentifier testId, ITestRunListener listener) { in SingleJUnitTestResultParser() argument
45 mTestId = testId; in SingleJUnitTestResultParser()
DDeqpTestRunner.java271 private void forwardFinalizedPendingResult(TestIdentifier testId) { in forwardFinalizedPendingResult() argument
272 if (mRemainingTests.contains(testId)) { in forwardFinalizedPendingResult()
273 final PendingResult result = mPendingResults.get(testId); in forwardFinalizedPendingResult()
275 mPendingResults.remove(testId); in forwardFinalizedPendingResult()
276 mRemainingTests.remove(testId); in forwardFinalizedPendingResult()
279 mSink.testStarted(testId); in forwardFinalizedPendingResult()
288 mSink.testLog(testId.getClassName() + "." + testId.getTestName() + "@" in forwardFinalizedPendingResult()
309 mSink.testFailed(testId, errorLog.toString()); in forwardFinalizedPendingResult()
313 mSink.testEnded(testId, emptyMap); in forwardFinalizedPendingResult()
315 CLog.w("Finalization for non-pending case %s", testId); in forwardFinalizedPendingResult()
[all …]
DJUnitDeviceTest.java127 for (TestIdentifier testId : mTests) { in run()
129 testId, listener); in run()
133 testId.getClassName(), testId.getTestName()); in run()
136 listener.testStarted(testId); in run()
DTestNGDeviceTest.java123 for (TestIdentifier testId : mTests) { in run()
125 testId, listener); in run()
129 testId.getClassName(), testId.getTestName()); in run()
132 listener.testStarted(testId); in run()
DJarHostTest.java192 for (TestIdentifier testId : mTests) { in run()
193 Test junitTest = loadTest(testId.getClassName(), testId.getTestName()); in run()
195 runTest(testId, junitTest, junitResult); in run()
203 … private void runTest(TestIdentifier testId, final Test junitTest, final TestResult junitResult) { in runTest() argument
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DRsPackColorTo8888Test.java35 public void forEach(int testId, Allocation mIn, Allocation mOut) throws RSRuntimeException { in forEach() argument
36 switch (testId) { in forEach()
68 private void float3input(long seed, int testId) { in float3input() argument
77 forEach(testId, mAllocationIn, mAllocationOut); in float3input()
95 private void float4input(long seed, int testId) { in float4input() argument
104 forEach(testId, mAllocationIn, mAllocationOut); in float4input()
DGetElementAt.java36 public void forEach(int testId, Allocation mOut) throws RSRuntimeException { in forEach() argument
37 switch (testId) { in forEach()
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/
DTestPackageXmlParserTest.java197 final TestIdentifier testId = in testParse_instancedMultiple() local
200 def.getTestInstanceArguments().get(testId); in testParse_instancedMultiple()
221 final TestIdentifier testId = in testParse_instancedSingle() local
224 def.getTestInstanceArguments().get(testId); in testParse_instancedSingle()
242 final TestIdentifier testId = in testParse_instancedEmptys() local
245 def.getTestInstanceArguments().get(testId); in testParse_instancedEmptys()
265 final TestIdentifier testId = in testParse_instancedNoInstances() local
268 def.getTestInstanceArguments().get(testId); in testParse_instancedNoInstances()
DDeqpTestRunnerTest.java122 final TestIdentifier testId = new TestIdentifier("dEQP-GLES" in testGlesVersion() local
169 tests.add(testId); in testGlesVersion()
172 instance.put(testId, DEFAULT_INSTANCE_ARGS); in testGlesVersion()
215 mockListener.testStarted(EasyMock.eq(testId)); in testGlesVersion()
218 mockListener.testEnded(EasyMock.eq(testId), EasyMock.<Map<String, String>>notNull()); in testGlesVersion()
281 final TestIdentifier testId = new TestIdentifier("dEQP-GLES3.info", "version"); in testResultCode() local
319 tests.add(testId); in testResultCode()
322 instance.put(testId, DEFAULT_INSTANCE_ARGS); in testResultCode()
353 mockListener.testStarted(EasyMock.eq(testId)); in testResultCode()
357 mockListener.testFailed(testId, in testResultCode()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DPolicyTransparencyTestListActivity.java128 String testId = (mIsDeviceOwner ? "DO_" : "PO_") + title; in addTestsToAdapter() local
129 intent.putExtra(PolicyTransparencyTestActivity.EXTRA_TEST_ID, testId); in addTestsToAdapter()
130 adapter.add(TestListItem.newTest(title, testId, intent, null)); in addTestsToAdapter()
140 String testId = (mIsDeviceOwner ? "DO_" : "PO_") + title; in addTestsToAdapter() local
142 intent.putExtra(PolicyTransparencyTestActivity.EXTRA_TEST_ID, testId); in addTestsToAdapter()
143 adapter.add(TestListItem.newTest(title, testId, intent, null)); in addTestsToAdapter()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
DTestPackageResult.java123 public Test insertTest(TestIdentifier testId) { in insertTest() argument
124 return findTest(testId, true); in insertTest()
127 private Test findTest(TestIdentifier testId, boolean insertIfMissing) { in findTest() argument
129 Collections.addAll(classNameSegments, testId.getClassName().split("\\.")); in findTest()
132 testId.getClassName()); in findTest()
137 …return mSuiteRoot.findTest(classNameSegments, testCaseName, testId.getTestName(), insertIfMissing); in findTest()
146 public Test findTest(TestIdentifier testId) { in findTest() argument
147 return findTest(testId, false); in findTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/
DGoNegRequesterTestActivity.java30 protected ReqTestCase getTestCase(Context context, String testId) { in getTestCase() argument
31 return GoNegReqTestSuite.getTestCase(context, testId); in getTestCase()
DP2pClientTestActivity.java30 protected ReqTestCase getTestCase(Context context, String testId) { in getTestCase() argument
31 return P2pClientTestSuite.getTestCase(context, testId); in getTestCase()
DServiceRequesterTestActivity.java30 protected ReqTestCase getTestCase(Context context, String testId) { in getTestCase() argument
31 return ServReqTestSuite.getTestCase(context, testId); in getTestCase()
DRequesterTestActivity.java102 protected abstract ReqTestCase getTestCase(Context context, String testId); in getTestCase() argument
115 String testId = (String) getIntent().getSerializableExtra( in onCreate() local
117 mTestCase = getTestCase(this, testId); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DGoNegReqTestSuite.java47 String testId) { in getTestCase() argument
51 if (test.getTestId().equals(testId)) { in getTestCase()
DP2pClientTestSuite.java47 String testId) { in getTestCase() argument
51 if (test.getTestId().equals(testId)) { in getTestCase()
DServReqTestSuite.java33 String testId) { in getTestCase() argument
37 if (test.getTestId().equals(testId)) { in getTestCase()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/deskclock/
DDeskClockTestsActivity.java170 public Intent[] createIntents(String testId, int buttonText) { in createIntents() argument
171 if (testId.equals(START_ALARM_TEST)) { in createIntents()
185 throw new IllegalArgumentException("Unknown test: " + testId); in createIntents()

12