Home
last modified time | relevance | path

Searched refs:testResult (Results 1 – 24 of 24) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java326 final TestResult testResult = getResult(); in testStartNormal() local
337 final TestResult testResult = getResult(); in testStartNormal() local
349 final TestResult testResult = getResult(); in testStartNormal() local
429 final TestResult testResult = getResult(); in testStartExposed01() local
430 assertThat(testResult.getPackageName(), in testStartExposed01()
432 assertThat(testResult.getComponentName(), in testStartExposed01()
434 assertThat(testResult.getStatus(), in testStartExposed01()
436 assertThat(testResult.getEphemeralPackageInfoExposed(), in testStartExposed01()
438 assertThat(testResult.getException(), in testStartExposed01()
449 final TestResult testResult = getResult(); in testStartExposed02() local
[all …]
/cts/common/util/tests/src/com/android/compatibility/common/util/
DCaseResultTest.java50 ITestResult testResult = mResult.getOrCreateResult(METHOD_1); in testResultCreation() local
53 assertTrue("Expected test result", mResult.getResults().contains(testResult)); in testResultCreation()
56 assertEquals("Expected the same result", testResult, testResult2); in testResultCreation()
61 ITestResult testResult = mResult.getOrCreateResult(METHOD_1); in testResultReporting() local
62 testResult.failed(STACK_TRACE); in testResultReporting()
63 assertEquals("Expected status to be set", TestStatus.FAIL, testResult.getResultStatus()); in testResultReporting()
64 assertEquals("Expected message to be set", MESSAGE, testResult.getMessage()); in testResultReporting()
65 assertEquals("Expected stack to be set", STACK_TRACE, testResult.getStackTrace()); in testResultReporting()
66 testResult = mResult.getOrCreateResult(METHOD_2); in testResultReporting()
67 testResult.passed(null); in testResultReporting()
[all …]
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DClientTest.java298 final TestResult testResult = getResult(); in testStartNormal() local
299 assertThat(testResult.getPackageName(), in testStartNormal()
301 assertThat(testResult.getComponentName(), in testStartNormal()
303 assertThat(testResult.getException(), in testStartNormal()
312 final TestResult testResult = getResult(); in testStartNormal() local
313 assertThat(testResult.getPackageName(), in testStartNormal()
315 assertThat(testResult.getComponentName(), in testStartNormal()
317 assertThat(testResult.getException(), in testStartNormal()
327 final TestResult testResult = getResult(); in testStartNormal() local
328 assertThat(testResult.getPackageName(), in testStartNormal()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DSensorPowerTestActivity.java98 PowerTestHostLink.PowerTestResult testResult = mHostLink.run(); in testSensorsPower() local
103 testResult.passedCount, in testSensorsPower()
104 testResult.skippedCount, in testSensorsPower()
105 testResult.failedCount); in testSensorsPower()
106 Assert.assertEquals(testDetails.getSummary(), 0, testResult.failedCount); in testSensorsPower()
/cts/tests/tests/view/src/android/view/cts/surfacevalidator/
DCapturedActivity.java150 TestResult testResult = new TestResult(); in runTest() local
159 testResult.passFrames = 1000; in runTest()
160 testResult.failFrames = 0; in runTest()
161 return testResult; in runTest()
220 mSurfacePixelValidator.finish(testResult); in runTest()
227 testResult.passFrames = 0; in runTest()
228 testResult.failFrames = 1000; in runTest()
230 Log.d(TAG, "Test finished, passFrames " + testResult.passFrames in runTest()
231 + ", failFrames " + testResult.failFrames); in runTest()
232 return testResult; in runTest()
DSurfacePixelValidator.java143 public void finish(CapturedActivity.TestResult testResult) { in finish() argument
147 testResult.failFrames = mResultFailureFrames; in finish()
148 testResult.passFrames = mResultSuccessFrames; in finish()
151 testResult.failures.put(mFirstFailures.keyAt(i), mFirstFailures.valueAt(i)); in finish()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/base/
DGnssCtsTestSuite.java42 public void run(TestResult testResult) { in run() argument
43 mWrappedTestSuite.run(new GnssCtsTestResult(mContext, testResult)); in run()
62 public void runTest(Test test, TestResult testResult) { in runTest() argument
63 mWrappedTestSuite.runTest(test, testResult); in runTest()
DGnssCtsTestResult.java44 public GnssCtsTestResult(Context context, TestResult testResult) { in GnssCtsTestResult() argument
46 mWrappedTestResult = testResult; in GnssCtsTestResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DSensorCtsTestSuite.java42 public void run(TestResult testResult) { in run() argument
43 mWrappedTestSuite.run(new SensorCtsTestResult(mContext, testResult)); in run()
62 public void runTest(Test test, TestResult testResult) { in runTest() argument
63 mWrappedTestSuite.runTest(test, testResult); in runTest()
DSensorCtsTestResult.java46 public SensorCtsTestResult(Context context, TestResult testResult) { in SensorCtsTestResult() argument
48 mWrappedTestResult = testResult; in SensorCtsTestResult()
/cts/common/util/src/com/android/compatibility/common/util/
DChecksumReporter.java148 for (ITestResult testResult : caseResult.getResults()) { in addInvocation()
149 addTestResult(testResult, module, buildFingerprint); in addInvocation()
215 ITestResult testResult, IModuleResult moduleResult, String buildFingerprint) { in addTestResult() argument
217 String signature = generateTestResultSignature(testResult, moduleResult, buildFingerprint); in addTestResult()
223 ITestResult testResult, IModuleResult moduleResult, String buildFingerprint) { in containsTestResult() argument
225 String signature = generateTestResultSignature(testResult, moduleResult, buildFingerprint); in containsTestResult()
273 static String generateTestResultSignature(ITestResult testResult, IModuleResult module, in generateTestResultSignature() argument
276 String stacktrace = testResult.getStackTrace(); in generateTestResultSignature()
284 .append(testResult.getFullName()).append(SEPARATOR) in generateTestResultSignature()
285 .append(testResult.getResultStatus().getValue()).append(SEPARATOR) in generateTestResultSignature()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResult.java71 private static Intent createResult(Activity activity, int testResult, String testName, in createResult() argument
74 addResultData(data, testResult, testName, testDetails, reportLog); in createResult()
78 public static void addResultData(Intent intent, int testResult, String testName, in addResultData() argument
81 intent.putExtra(TEST_RESULT, testResult); in addResultData()
DTestListAdapter.java177 public void setTestResult(TestResult testResult) { in setTestResult() argument
178 new SetTestResultTask(testResult.getName(), testResult.getResult(), in setTestResult()
179 testResult.getDetails(), testResult.getReportLog()).execute(); in setTestResult()
244 int testResult = cursor.getInt(2); in getRefreshResults() local
247 results.put(testName, testResult); in getRefreshResults()
394 int testResult = getTestResult(position); in getView() local
399 switch (testResult) { in getView()
414 throw new IllegalArgumentException("Unknown test result: " + testResult); in getView()
DAbstractTestListActivity.java76 TestResult testResult = TestResult.fromActivityResult(resultCode, data); in handleLaunchTestResult() local
77 mAdapter.setTestResult(testResult); in handleLaunchTestResult()
DTestResultsReport.java151 private TestStatus getTestResultStatus(int testResult) { in getTestResultStatus() argument
152 switch (testResult) { in getTestResultStatus()
163 throw new IllegalArgumentException("Unknown test result: " + testResult); in getTestResultStatus()
DTestResultsProvider.java228 static void setTestResult(Context context, String testName, int testResult, in setTestResult() argument
231 values.put(TestResultsProvider.COLUMN_TEST_RESULT, testResult); in setTestResult()
/cts/tools/utils/
Drerun.py53 testResult = doc.getElementsByTagName("TestResult")[0]
54 packages = getChildrenWithTag(testResult, "TestPackage")
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/
DSubPlanHelper.java232 for (ITestResult testResult : caseResult.getResults()) { in createSubPlan()
233 if (!statusesToRun.contains(testResult.getResultStatus())) { in createSubPlan()
235 module.getName(), testResult.getFullName()); in createSubPlan()
244 for (ITestResult testResult : caseResult.getResults()) { in createSubPlan()
245 if (statusesToRun.contains(testResult.getResultStatus())) { in createSubPlan()
247 module.getName(), testResult.getFullName()); in createSubPlan()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
DCompatibilityHostTestBase.java179 TestResult testResult = testEntry.getValue(); in printTestResult() local
180 TestStatus testStatus = testResult.getStatus(); in printTestResult()
184 CLog.logAndDisplay(LogLevel.WARN, testResult.getStackTrace()); in printTestResult()
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java168 TestResult testResult = testEntry.getValue(); in printTestResult() local
170 final String message = "Test " + testEntry.getKey() + ": " + testResult.getStatus(); in printTestResult()
171 if (testResult.getStatus() == TestStatus.PASSED) { in printTestResult()
175 CLog.e(testResult.getStackTrace()); in printTestResult()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaPlayerStressTest.java168 boolean testResult = true; in doTestVideoPlayback()
185 testResult = false; in doTestVideoPlayback()
198 assertTrue("playback " + mediaName, testResult); in doTestVideoPlayback()
/cts/suite/cts/utils/
Dget_csv_report.py97 testResult = doc.getElementsByTagName("TestResult")[0]
98 buildInfos = testResult.getElementsByTagName("BuildInfo")
113 packages = getChildrenWithTag(testResult, "TestPackage")
/cts/tests/tests/media/libmediandkjni/
Dnative-mediadrm-jni.cpp245 jboolean testResult = JNI_FALSE; in Java_android_media_cts_NativeClearKeySystemTest__testPsshNative() local
257 testResult = JNI_TRUE; in Java_android_media_cts_NativeClearKeySystemTest__testPsshNative()
260 testResult = JNI_FALSE; in Java_android_media_cts_NativeClearKeySystemTest__testPsshNative()
265 return testResult; in Java_android_media_cts_NativeClearKeySystemTest__testPsshNative()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DPowerTestHostLink.java245 String testResult = request.substring(REQUEST_SET_TEST_RESULT.length()); in processClientRequest() local
246 response = handleSetTestResultCmd(testResult); in processClientRequest()