/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/ |
D | SystemServerStatusCheckerTest.java | 23 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 …]
|
D | SystemServerFileDescriptorCheckerTest.java | 22 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 …]
|
D | DeviceSettingCheckerTest.java | 22 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 …]
|
D | ShellStatusCheckerTest.java | 25 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()
|
D | UserCheckerTest.java | 29 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()
|
D | TimeStatusCheckerTest.java | 22 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()
|
D | EnforcedSeLinuxCheckerTest.java | 24 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()
|
D | KeyguardStatusCheckerTest.java | 22 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()
|
D | LeakedThreadStatusCheckerTest.java | 24 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()
|
D | ActivityStatusCheckerTest.java | 25 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/ |
D | SystemServerFileDescriptorChecker.java | 21 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()
|
D | StatusCheckerResult.java | 21 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()
|
D | SystemServerStatusChecker.java | 22 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()
|
D | ShellStatusChecker.java | 23 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()
|
D | EnforcedSeLinuxChecker.java | 21 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()
|
D | TimeStatusChecker.java | 22 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()
|
D | DeviceSettingChecker.java | 22 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()
|
D | UserChecker.java | 27 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()
|
D | ISystemStatusChecker.java | 20 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus; 50 return new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck() 64 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
|
D | KeyguardStatusChecker.java | 22 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus; 35 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck() 57 result.setStatus(CheckStatus.FAILED); in postExecutionCheck()
|
D | LeakedThreadStatusChecker.java | 22 import com.android.tradefed.suite.checker.StatusCheckerResult.CheckStatus; 41 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck() 62 result.setStatus(CheckStatus.FAILED); in postExecutionCheck()
|
D | ActivityStatusChecker.java | 25 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/ |
D | ITestSuiteTest.java | 56 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/ |
D | ITestSuite.java | 48 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()
|