Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/
DUserCheckerTest.java28 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
53 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testNoWarningsIsSuccess()
57 assertEquals(CheckStatus.SUCCESS, checker.postExecutionCheck(postDevice).getStatus()); in testNoWarningsIsSuccess()
73 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testSwitchIsSuccess()
83 assertEquals(CheckStatus.SUCCESS, checker.postExecutionCheck(postDevice).getStatus()); in testSwitchIsSuccess()
102 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testCreateIsSuccess()
112 assertEquals(CheckStatus.SUCCESS, checker.postExecutionCheck(postDevice).getStatus()); in testCreateIsSuccess()
132 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testCreateCleanup()
144 assertEquals(CheckStatus.SUCCESS, checker.postExecutionCheck(postDevice).getStatus()); in testCreateCleanup()
164 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testCreateCleanup_cleanupFail()
[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 …]
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 …]
DSystemServerStatusCheckerTest.java23 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
61 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessNotRestarted()
62 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessNotRestarted()
73 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessRestartedWithoutDeviceReboot()
75 assertEquals(CheckStatus.FAILED, result.getStatus()); in testSystemServerProcessRestartedWithoutDeviceReboot()
88 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessRestartedWithAbnormalDeviceReboot()
90 assertEquals(CheckStatus.FAILED, result.getStatus()); in testSystemServerProcessRestartedWithAbnormalDeviceReboot()
104 assertEquals(CheckStatus.FAILED, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testFailToGetSystemServerProcess()
105 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testFailToGetSystemServerProcess()
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()
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()
DDeviceStorageStatusCheckerTest.java22 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
55 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testEnoughDeviceStorage()
67 assertEquals(CheckStatus.FAILED, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testInEnoughDeviceStorageOn1Partition()
80 assertEquals(CheckStatus.FAILED, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testNotEnoughDeviceStorageWithGivenStorageParameter()
93 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testEnoughDeviceStorageWithGivenStorageParameter()
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()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DSystemServerStatusChecker.java23 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
49 return new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
55 return new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
58 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
65 result.setStatus(CheckStatus.FAILED); in preExecutionCheck()
78 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
84 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
88 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
92 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in postExecutionCheck()
98 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in postExecutionCheck()
DSystemServerFileDescriptorChecker.java22 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()
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()
DUserChecker.java28 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
72 return new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
93 return new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
157 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
172 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in statusFail()
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()
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()
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()
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()
DDeviceStorageStatusChecker.java27 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
60 return new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
62 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in preExecutionCheck()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteTest.java69 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
442 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun()
444 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun()
469 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_whiteListPreparer()
471 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_whiteListPreparer()
489 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in testRun_failedSystemChecker()
547 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_failedSystemChecker_reportFailure()
550 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in testRun_failedSystemChecker_reportFailure()
586 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_failedSystemChecker_reportFailure_bugreport()
594 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in testRun_failedSystemChecker_reportFailure_bugreport()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DITestSuite.java57 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus;
823 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in runPreModuleCheck()
831 if (!CheckStatus.SUCCESS.equals(result.getStatus())) { in runPreModuleCheck()
871 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.FAILED); in runPostModuleCheck()
879 if (!CheckStatus.SUCCESS.equals(result.getStatus())) { in runPostModuleCheck()

12