Home
last modified time | relevance | path

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

/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/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DGeeTestResultParser.java484 TestResult testResult = getCurrentTestResult(); in processTestStartedTag() local
485 testResult.mTestClass = parsedResults.mTestClassName; in processTestStartedTag()
486 testResult.mTestName = parsedResults.mTestName; in processTestStartedTag()
488 TestIdentifier testId = new TestIdentifier(mFakePackagePrefix + testResult.mTestClass, in processTestStartedTag()
489 testResult.mTestName); in processTestStartedTag()
507 TestResult testResult = getCurrentTestResult(); in doTestEnded() local
508 TestIdentifier testId = new TestIdentifier(mFakePackagePrefix + testResult.mTestClass, in doTestEnded()
509 testResult.mTestName); in doTestEnded()
520 testResult.mRunTime = new Long(parsedResults.mTestRunTime); in doTestEnded()
530 if (!testResult.isComplete()) { in doTestEnded()
[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/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/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 String getTestResultString(int testResult) { in getTestResultString() argument
152 switch (testResult) { in getTestResultString()
163 throw new IllegalArgumentException("Unknown test result: " + testResult); in getTestResultString()
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/tests/tests/mediastress/src/android/mediastress/cts/
DMediaPlayerStressTest.java116 boolean testResult = true; in doTestVideoPlayback()
133 testResult = false; in doTestVideoPlayback()
146 assertTrue("playback " + mediaName, testResult); in doTestVideoPlayback()
/cts/tools/utils/
Drerun.py53 testResult = doc.getElementsByTagName("TestResult")[0]
54 packages = getChildrenWithTag(testResult, "TestPackage")
/cts/suite/cts/utils/
Dget_csv_report.py97 testResult = doc.getElementsByTagName("TestResult")[0]
98 buildInfos = testResult.getElementsByTagName("BuildInfo")
113 packages = getChildrenWithTag(testResult, "TestPackage")
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java284 TestResult testResult = testEntry.getValue(); in printTestResult() local
285 CLog.d("Test " + testEntry.getKey() + ": " + testResult.getStatus()); in printTestResult()
286 if (testResult.getStatus() != TestStatus.PASSED) { in printTestResult()
287 CLog.d(testResult.getStackTrace()); in printTestResult()
/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()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
DCompatibilityTest.java560 for (ITestResult testResult : testResultList.getResults(TestStatus.PASS)) { in setupFilters()
563 module.getAbi(), module.getName(), testResult.getFullName()); in setupFilters()