/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/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 | 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 | 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 | 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 | 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()
|
/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 …]
|
D | RunCommandTargetPreparerTest.java | 87 res.setStatus(CommandStatus.SUCCESS); in testSetUp() 108 res.setStatus(CommandStatus.SUCCESS); in testSetUp_withTimeout() 144 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testTearDown() 161 res.setStatus(CommandStatus.SUCCESS); in testTeardown_withTimeout() 184 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testTeardown_withTestUserToken() 201 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testTeardown_withTestUserToken_propertyNotSet() 376 res.setStatus(CommandStatus.SUCCESS); in testCmd_withTestUserToken_propertyNotSet() 397 res.setStatus(CommandStatus.SUCCESS); in testCmd_withTestUserToken()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
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 | 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 | 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/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()
|
/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/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/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/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()
|
D | WifiHelper.java | 217 if (!CommandStatus.SUCCESS.equals(result.getStatus())) { in enableWifi() 232 if (!CommandStatus.SUCCESS.equals(enableOutput.getStatus())) { in enableWifiV2() 445 if (CommandStatus.SUCCESS.equals(statusOutput.getStatus()) in isWifiEnabledV2() 526 if (CommandStatus.SUCCESS.equals(statusOutput.getStatus())) { in getWifiInfoV2() 549 if (CommandStatus.SUCCESS.equals(statusOutput.getStatus()) in checkConnectivityV2() 565 return WifiConnectionResult.SUCCESS == connectToNetwork(ssid, psk, urlToCheck, false); in connectToNetwork() 592 return WifiConnectionResult.SUCCESS; in connectToNetwork() 635 if (CommandStatus.SUCCESS.equals(connectOutput.getStatus()) in connectToNetworkV2() 639 return WifiConnectionResult.SUCCESS; in connectToNetworkV2() 658 if (!CommandStatus.SUCCESS.equals(listOutput.getStatus())) { in getScanResults()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTestTest.java | 137 res.setStatus(CommandStatus.SUCCESS); in testRun() 193 res.setStatus(CommandStatus.SUCCESS); in testRun_failWithIncludeFilters() 241 res.setStatus(CommandStatus.SUCCESS); in testRun_withIncludeFilters() 310 res.setStatus(CommandStatus.SUCCESS); in testRun_withExcludeFilters() 382 res.setStatus(CommandStatus.SUCCESS); in testRun_withAdbPath() 440 res.setStatus(CommandStatus.SUCCESS); in testRun_withSharedLibInHostTestsDir() 504 res.setStatus(CommandStatus.SUCCESS); in testRun_withSharedLib() 666 newCommandResult(CommandStatus.SUCCESS, "NOT TEST OUTPUT"), in testRun_useTestOutputFileOptionSet_parsesSubprocessOutputFile() 680 newCommandResult(CommandStatus.SUCCESS, "NOT TEST OUTPUT"), in testRun_useTestOutputFileOptionSet_parsesUnitTestOutputFile() 701 newCommandResult(CommandStatus.SUCCESS, errorOutput), in testRun_useTestOutputFileOptionSet_logsErrorOutput() [all …]
|
/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()
|
/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()
|
D | TestDeviceTest.java | 238 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in executeShellV2Command() 264 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in executeShellV2Command() 382 adbResult.setStatus(CommandStatus.SUCCESS); in testDisableAdbRoot_unroot() 401 adbResult.setStatus(CommandStatus.SUCCESS); in setEnableAdbRootExpectations() 437 CommandResult adbBadResult = new CommandResult(CommandStatus.SUCCESS); in testEnableAdbRoot_rootRetry() 440 CommandResult adbResult = new CommandResult(CommandStatus.SUCCESS); in testEnableAdbRoot_rootRetry() 477 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetProductType_fastboot() 503 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetProductType_fastbootNonalpha() 529 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetProductType_fastbootFail() 1237 return new CommandResult(CommandStatus.SUCCESS); in testExecuteFastbootCommand_state() [all …]
|
/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/javatests/com/android/tradefed/testtype/ |
D | GoogleBenchmarkResultParserTest.java | 99 cmd_result.setStatus(CommandStatus.SUCCESS); in testParseSimpleFile() 155 cmd_result.setStatus(CommandStatus.SUCCESS); in testParseSimpleFile_twoTests() 181 cmd_result.setStatus(CommandStatus.SUCCESS); in testParse_contextError() 196 cmd_result.setStatus(CommandStatus.SUCCESS); in testParse_noBenchmarkResults() 213 cmd_result.setStatus(CommandStatus.SUCCESS); in testParse_benchmarkError() 253 cmd_result.setStatus(CommandStatus.SUCCESS); in testParseSimpleFile_withWarning() 280 cmd_result.setStatus(CommandStatus.SUCCESS); in testParse_ignore() 312 cmd_result.setStatus(CommandStatus.SUCCESS); in testParse_aborted()
|
/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()
|