Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/
DSystemServerStatusCheckerTest.java23 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
57 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testPidRemainUnchanged()
58 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testPidRemainUnchanged()
71 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testPidChanged()
73 assertEquals(CheckStatus.FAILED, result.getStatus()); in testPidChanged()
91 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testPidChanged_tfReboot()
93 assertEquals(CheckStatus.FAILED, result.getStatus()); in testPidChanged_tfReboot()
104 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testFailToGetPid()
105 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testFailToGetPid()
118 assertEquals(CheckStatus.FAILED, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testPid_null()
[all …]
DSystemServerFileDescriptorCheckerTest.java22 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
50 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testFailToGetPid()
51 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testFailToGetPid()
66 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testFailToGetFdCount()
67 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testFailToGetFdCount()
82 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testAcceptableFdCount()
83 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testAcceptableFdCount()
98 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testUnacceptableFdCount()
100 assertEquals(CheckStatus.FAILED, postResult.getStatus()); in testUnacceptableFdCount()
110 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testUserBuild()
[all …]
DDeviceSettingCheckerTest.java22 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
68 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsUnchanged()
69 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSettingsUnchanged()
95 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsChanged()
96 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSettingsChanged()
123 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testIgnoredSettings()
124 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testIgnoredSettings()
148 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsMissedPostExecution()
149 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSettingsMissedPostExecution()
176 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsNewPostExecution()
[all …]
DShellStatusCheckerTest.java25 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
72 CheckStatus preState = CheckStatus.SUCCESS; in expectPreAndPost()
73 CheckStatus postState = CheckStatus.SUCCESS; in expectPreAndPost()
77 preState = CheckStatus.FAILED; in expectPreAndPost()
87 postState = CheckStatus.FAILED; in expectPreAndPost()
101 if (preState != CheckStatus.SUCCESS || !preRevertOk) { in expectPreAndPost()
111 if (postState != CheckStatus.SUCCESS || !postRevertOk) { in expectPreAndPost()
DUserCheckerTest.java29 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
52 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testNoWarningsIsSuccess()
59 assertEquals(CheckStatus.SUCCESS, checker.postExecutionCheck(postDevice).getStatus()); in testNoWarningsIsSuccess()
72 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testAllErrorsIsFailed()
80 assertEquals(CheckStatus.FAILED, checker.postExecutionCheck(postDevice).getStatus()); in testAllErrorsIsFailed()
103 assertEquals(CheckStatus.SUCCESS, result.getStatus()); in testSwitchToExistingOrCreateUserType()
123 assertEquals(CheckStatus.FAILED, result.getStatus()); in testSwitchToSecondaryUserCreateNewFail()
DTimeStatusCheckerTest.java22 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
51 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckTimeDiff_small()
66 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckTimeDiff_large()
86 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckTimeDiff_multiFailure()
87 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckTimeDiff_multiFailure()
DEnforcedSeLinuxCheckerTest.java24 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
53 assertEquals(CheckStatus.SUCCESS, result.getStatus()); in testEnforced()
64 assertEquals(CheckStatus.SUCCESS, result.getStatus()); in testPermissive()
75 assertEquals(CheckStatus.FAILED, result.getStatus()); in testEnforced_failed()
DKeyguardStatusCheckerTest.java22 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
56 assertEquals(CheckStatus.SUCCESS, mKsc.postExecutionCheck(mMockDevice).getStatus()); in testPostExecutionCheck()
70 assertEquals(CheckStatus.FAILED, mKsc.postExecutionCheck(mMockDevice).getStatus()); in testPostExecutionCheck_showingAfter()
82 assertEquals(CheckStatus.SUCCESS, mKsc.postExecutionCheck(mMockDevice).getStatus()); in testPostExecutionCheck_notSupported()
DLeakedThreadStatusCheckerTest.java24 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
50 assertEquals(CheckStatus.SUCCESS, result.getStatus()); in testNoLeakedThread()
65 assertEquals(CheckStatus.FAILED, result.getStatus()); in testLeakedThread()
84 assertEquals(CheckStatus.SUCCESS, result.getStatus()); in testLeakedThread_background()
DActivityStatusCheckerTest.java25 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
58 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckerLauncherHomeScreen()
75 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckerOtherActivity()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DSystemServerFileDescriptorChecker.java21 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
40 return new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
49 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
54 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
60 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
64 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in postExecutionCheck()
70 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
DStatusCheckerResult.java21 public enum CheckStatus { enum in StatusCheckerResult
28 private CheckStatus mCheckStatus = CheckStatus.FAILED;
40 public StatusCheckerResult(CheckStatus status) { in StatusCheckerResult()
45 public CheckStatus getStatus() { in getStatus()
50 public void setStatus(CheckStatus status) { in setStatus()
DSystemServerStatusChecker.java22 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
39 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
43 result.setStatus(CheckStatus.FAILED); in preExecutionCheck()
66 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
73 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
80 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in postExecutionCheck()
DShellStatusChecker.java23 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
54 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
60 result.setStatus(CheckStatus.FAILED); in preExecutionCheck()
82 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
88 result.setStatus(CheckStatus.FAILED); in postExecutionCheck()
DEnforcedSeLinuxChecker.java21 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
38 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
40 result.setStatus(CheckStatus.FAILED); in postExecutionCheck()
44 result.setStatus(CheckStatus.FAILED); in postExecutionCheck()
DTimeStatusChecker.java22 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
52 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
54 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in postExecutionCheck()
60 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
DDeviceSettingChecker.java22 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
87 return new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
89 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in preExecutionCheck()
147 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
149 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in postExecutionCheck()
DUserChecker.java27 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
65 return new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
67 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in preExecutionCheck()
109 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in postExecutionCheck()
113 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
DISystemStatusChecker.java20 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
50 return new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
64 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
DKeyguardStatusChecker.java22 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
35 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
57 result.setStatus(CheckStatus.FAILED); in postExecutionCheck()
DLeakedThreadStatusChecker.java22 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
41 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
62 result.setStatus(CheckStatus.FAILED); in postExecutionCheck()
DActivityStatusChecker.java25 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
47 result.setStatus(CheckStatus.SUCCESS); in isFrontActivityLauncher()
57 result.setStatus(CheckStatus.FAILED); in isFrontActivityLauncher()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteTest.java56 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
409 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun()
411 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun()
436 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_whiteListPreparer()
438 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_whiteListPreparer()
456 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in testRun_failedSystemChecker()
512 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_failedSystemChecker_reportFailure()
515 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in testRun_failedSystemChecker_reportFailure()
551 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_failedSystemChecker_reportFailure_bugreport()
559 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in testRun_failedSystemChecker_reportFailure_bugreport()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DITestSuite.java48 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
721 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in runPreModuleCheck()
729 if (!CheckStatus.SUCCESS.equals(result.getStatus())) { in runPreModuleCheck()
769 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in runPostModuleCheck()
777 if (!CheckStatus.SUCCESS.equals(result.getStatus())) { in runPostModuleCheck()