/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/ |
D | UserCheckerTest.java | 28 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 …]
|
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 | 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 | SystemServerStatusCheckerTest.java | 23 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()
|
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 | 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 | DeviceStorageStatusCheckerTest.java | 22 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()
|
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()
|
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/ |
D | SystemServerStatusChecker.java | 23 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()
|
D | SystemServerFileDescriptorChecker.java | 22 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 | 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 | UserChecker.java | 28 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()
|
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 | 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 | 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 | 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()
|
D | DeviceStorageStatusChecker.java | 27 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/ |
D | ITestSuiteTest.java | 69 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/ |
D | ITestSuite.java | 57 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()
|