/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/ |
D | SystemServerFileDescriptorCheckerTest.java | 55 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testFailToGetPid() 56 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testFailToGetPid() 67 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testFailToGetFdCount() 68 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testFailToGetFdCount() 79 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testAcceptableFdCount() 80 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testAcceptableFdCount() 91 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testUnacceptableFdCount() 101 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testUserBuild() 102 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testUserBuild()
|
D | FilesystemRootCheckerTest.java | 47 CommandResult defaultResult = new CommandResult(CommandStatus.SUCCESS); in setup() 64 CommandResult findNoRootResult = new CommandResult(CommandStatus.SUCCESS); in testNoRootFiles() 69 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testNoRootFiles() 70 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testNoRootFiles() 78 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testRootFile() 86 CommandResult findRootFileResult = new CommandResult(CommandStatus.SUCCESS); in testRootFile() 99 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testRootDirectory() 107 CommandResult findRootDirectoryResult = new CommandResult(CommandStatus.SUCCESS); in testRootDirectory() 127 CommandResult findRootFileResult = new CommandResult(CommandStatus.SUCCESS); in testModuleStartWithRootFile()
|
D | UserCheckerTest.java | 51 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testNoWarningsIsSuccess() 55 assertEquals(CheckStatus.SUCCESS, checker.postExecutionCheck(postDevice).getStatus()); in testNoWarningsIsSuccess() 71 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testSwitchIsSuccess() 81 assertEquals(CheckStatus.SUCCESS, checker.postExecutionCheck(postDevice).getStatus()); in testSwitchIsSuccess() 100 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testCreateIsSuccess() 110 assertEquals(CheckStatus.SUCCESS, checker.postExecutionCheck(postDevice).getStatus()); in testCreateIsSuccess() 130 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testCreateCleanup() 142 assertEquals(CheckStatus.SUCCESS, checker.postExecutionCheck(postDevice).getStatus()); in testCreateCleanup() 162 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testCreateCleanup_cleanupFail() 195 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testAllErrorsIsFailed() [all …]
|
D | SystemServerStatusCheckerTest.java | 65 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessNotRestarted() 66 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessNotRestarted() 76 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessRestartedWithoutDeviceReboot() 89 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessRestartedWithAbnormalDeviceReboot() 104 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testFailToGetSystemServerProcess()
|
D | DeviceSettingCheckerTest.java | 67 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsUnchanged() 68 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSettingsUnchanged() 93 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsChanged() 118 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testIgnoredSettings() 119 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testIgnoredSettings() 141 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsMissedPostExecution() 167 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsNewPostExecution() 187 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSettingsNonePreExecution()
|
D | ShellStatusCheckerTest.java | 75 CheckStatus preState = CheckStatus.SUCCESS; in expectPreAndPost() 76 CheckStatus postState = CheckStatus.SUCCESS; in expectPreAndPost() 109 if (preState != CheckStatus.SUCCESS || !preRevertOk) { in expectPreAndPost() 119 if (postState != CheckStatus.SUCCESS || !postRevertOk) { in expectPreAndPost()
|
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/ |
D | SystemServerStatusChecker.java | 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() 78 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck() 84 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck() 88 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
|
D | SystemServerFileDescriptorChecker.java | 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() 70 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
|
D | ISystemStatusChecker.java | 50 return new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck() 64 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | FuseUtilTest.java | 51 haveFuseZipInstalledResult.setStatus(CommandStatus.SUCCESS); in testCanMountZip() 54 .thenReturn(new CommandResult(CommandStatus.SUCCESS)) in testCanMountZip() 68 noFuseZipInstalledResult.setStatus(CommandStatus.SUCCESS); in testCanMountZip_unsupported() 71 .thenReturn(new CommandResult(CommandStatus.SUCCESS)) in testCanMountZip_unsupported() 84 .thenReturn(new CommandResult(CommandStatus.SUCCESS)); in testMountZip() 102 .thenReturn(new CommandResult(CommandStatus.SUCCESS)); in testUnmountZip()
|
D | NativeCodeCoverageFlusherTest.java | 73 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testClearCoverageMeasurements_rmCommandCalled() 112 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testFlushCoverageAllProcesses_flushAllCommandCalled() 135 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testFlushCoverageSpecificProcesses_flushSpecificCommandCalled() 155 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testFlushNotHandled_flushNotCalled() 175 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testFlushStatusReadFailed_flushNotCalled() 194 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testFlushStatusReadEmpty_flushNotCalled() 212 CommandResult resultNotHandled = new CommandResult(CommandStatus.SUCCESS); in testFlushOnlySigCgt_flushSpecificProcesses() 216 CommandResult resultHandled = new CommandResult(CommandStatus.SUCCESS); in testFlushOnlySigCgt_flushSpecificProcesses() 220 CommandResult resultEmpty = new CommandResult(CommandStatus.SUCCESS); in testFlushOnlySigCgt_flushSpecificProcesses()
|
D | RunUtilFuncTest.java | 110 CommandStatus.SUCCESS.equals(result.getStatus())); in testRunTimedCmd_repeatedOutput() 124 assertTrue(CommandStatus.SUCCESS.equals(result.getStatus())); in testRunTimedCmd_noTimeout() 156 CommandStatus.SUCCESS, in testRunTimedCmd_largeOutput() 178 CommandStatus.SUCCESS, in testUnsetEnvVariable() 233 assertTrue(CommandStatus.SUCCESS.equals(result.getStatus())); in testRunTimedCmd_WithInputRedirect() 254 assertTrue(CommandStatus.SUCCESS.equals(result.getStatus())); in testRunTimedCmd_WithOutputRedirect()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/mobly/ |
D | MoblyBinaryHostTestTest.java | 141 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testRun_withPythonBinariesOption() 151 return new CommandResult(CommandStatus.SUCCESS); in testRun_withPythonBinariesOption() 182 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testRun_withParFileNameOption() 192 return new CommandResult(CommandStatus.SUCCESS); in testRun_withParFileNameOption() 228 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testRun_withStdLogOption() 241 return new CommandResult(CommandStatus.SUCCESS); in testRun_withStdLogOption() 256 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testRun_testResultIsMissing() 262 return new CommandResult(CommandStatus.SUCCESS); in testRun_testResultIsMissing() 278 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRun_shouldActivateVenvAndCleanUp_whenVenvIsSet() 288 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testRun_shouldActivateVenvAndCleanUp_whenVenvIsSet() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | FastbootDeviceFlasherTest.java | 165 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetImageVersion() 182 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetCurrentSlot_fastboot() 223 fastbootInValidResult.setStatus(CommandStatus.SUCCESS); in testRetryGetVersionCommand() 230 fastbootValidResult.setStatus(CommandStatus.SUCCESS); in testRetryGetVersionCommand() 324 fastbootOutput.setStatus(CommandStatus.SUCCESS); in testWipeCache_exists() 337 fastbootOutput.setStatus(CommandStatus.SUCCESS); in testWipeCache_exists() 374 fastbootOutput.setStatus(CommandStatus.SUCCESS); in testWipeCache_not_exists() 400 fastbootOutput.setStatus(CommandStatus.SUCCESS); in testWipeCache_not_exists_error() 420 result.setStatus(CommandStatus.SUCCESS); in doTestFlashWithWipe() 558 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testCheckAndFlashBootloader() [all …]
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | FuseUtil.java | 56 res.getStatus().equals(CommandStatus.SUCCESS) in canMountZip() 57 && res2.getStatus().equals(CommandStatus.SUCCESS) in canMountZip() 78 if (!res.getStatus().equals(CommandStatus.SUCCESS)) { in mountZip() 98 if (!res.getStatus().equals(CommandStatus.SUCCESS)) { in unmountZip()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | AndroidDebugBridgeWrapperTest.java | 58 res.setStatus(CommandStatus.SUCCESS); in testAdbVersionParsing() 70 res.setStatus(CommandStatus.SUCCESS); in testAdbVersionParsing_altFormat() 97 res.setStatus(CommandStatus.SUCCESS); in testAdbVersionParsing_partial() 109 res.setStatus(CommandStatus.SUCCESS); in testAdbVersionParsing_parseFail()
|
/tools/tradefederation/core/javatests/com/android/tradefed/monitoring/collector/ |
D | DeviceInternetAccessibilityResourceMetricCollectorTest.java | 95 createCommandResult(CommandStatus.SUCCESS, "ping: unknown host facebook.com"); 132 .thenReturn(createCommandResult(CommandStatus.SUCCESS, MOCK_SUCCESS_RESPONSE)); 138 .thenReturn(createCommandResult(CommandStatus.SUCCESS, MOCK_SUCCESS_RESPONSE6)); 163 .thenReturn(createCommandResult(CommandStatus.SUCCESS, MOCK_SUCCESS_RESPONSE)); 169 .thenReturn(createCommandResult(CommandStatus.SUCCESS, MOCK_SUCCESS_RESPONSE6));
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/ |
D | OxygenClientTest.java | 183 res.setStatus(CommandStatus.SUCCESS); in testLease() 194 assertEquals(res.getStatus(), CommandStatus.SUCCESS); in testLease() 239 res.setStatus(CommandStatus.SUCCESS); in testLeaseWithoutBuildId() 250 assertEquals(res.getStatus(), CommandStatus.SUCCESS); in testLeaseWithoutBuildId() 283 res.setStatus(CommandStatus.SUCCESS); in testLeaseMultipleDevice() 296 assertEquals(res.getStatus(), CommandStatus.SUCCESS); in testLeaseMultipleDevice() 325 res.setStatus(CommandStatus.SUCCESS); in testRelease() 412 res.setStatus(CommandStatus.SUCCESS); in testLeaseWithBootImageAndBootArtifact() 423 assertEquals(res.getStatus(), CommandStatus.SUCCESS); in testLeaseWithBootImageAndBootArtifact() 474 res.setStatus(CommandStatus.SUCCESS); in testLeaseWithBootloader() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | FastbootHelper.java | 67 if (CommandStatus.SUCCESS.equals(fastbootResult.getStatus())) { in isFastbootAvailable() 89 if (fastbootResult.getStatus().equals(CommandStatus.SUCCESS)) { in getDevices() 108 if (fastbootResult.getStatus().equals(CommandStatus.SUCCESS)) { in getBootloaderAndFastbootdDevices() 148 if (fastbootResult.getStatus().equals(CommandStatus.SUCCESS)) { in getBootloaderAndFastbootdTcpDevices() 192 if (fastbootResult.getStatus() != CommandStatus.SUCCESS) { in executeCommand()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/connection/ |
D | AdbTcpConnectionTest.java | 69 adbResult.setStatus(CommandStatus.SUCCESS); in testAdbConnect() 72 adbResultConfirmation.setStatus(CommandStatus.SUCCESS); in testAdbConnect() 94 adbResult.setStatus(CommandStatus.SUCCESS); in testAdbConnect_fails() 121 adbResult.setStatus(CommandStatus.SUCCESS); in testAdbConnect_fails_confirmation() 144 adbResult.setStatus(CommandStatus.SUCCESS); in testAdbDisconnect()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/suite/ |
D | FoldableModePreparer.java | 58 if (!CommandStatus.SUCCESS.equals(result.getStatus())) { in setUp() 66 if (!CommandStatus.SUCCESS.equals(result.getStatus())) { in setUp() 92 if (!CommandStatus.SUCCESS.equals(result.getStatus())) { in tearDown()
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/adb/ |
D | AdbStopServerPreparerTest.java | 108 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testSetup_tearDown() 129 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testSetup_fail_tearDown() 158 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testNoAdb() 194 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testAdbFromEnv() 215 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in mockTearDown()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | GcovKernelCodeCoverageCollector.java | 157 if (result.getStatus() != CommandStatus.SUCCESS) { in resetGcovCounts() 189 if (result.getStatus() != CommandStatus.SUCCESS) { in collectGcovDebugfsCoverage() 202 if (result.getStatus() != CommandStatus.SUCCESS) { in collectGcovDebugfsCoverage() 215 if (result.getStatus() != CommandStatus.SUCCESS) { in collectGcovDebugfsCoverage() 226 if (result.getStatus() != CommandStatus.SUCCESS) { in collectGcovDebugfsCoverage()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | DeviceWiper.java | 80 if (r.getStatus() != CommandStatus.SUCCESS) { in doFormat() 104 if (r.getStatus() != CommandStatus.SUCCESS) { in performFastbootOp() 119 if (r.getStatus() != CommandStatus.SUCCESS) { in doFactoryReset()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | GCSBucketUtil.java | 140 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in checkGSUtil() 186 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in copy() 286 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in makeBucket() 324 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in ls() 431 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in stat() 467 if (CommandStatus.SUCCESS.equals(res.getStatus())) { in md5Hash() 591 if (!force && !CommandStatus.SUCCESS.equals(res.getStatus())) { in remove() 650 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in removeBucket()
|