| /tools/tradefederation/core/javatests/com/android/tradefed/util/ |
| D | JavaCodeCoverageFlusherTest.java | 71 doReturn(PS_OUTPUT).when(mMockDevice).executeShellCommand("ps -e"); in testResetAll_calledForAllProcesses() 74 .executeShellCommand("pm list packages -a"); in testResetAll_calledForAllProcesses() 82 .executeShellCommand( in testResetAll_calledForAllProcesses() 86 .executeShellCommand( in testResetAll_calledForAllProcesses() 90 .executeShellCommand( in testResetAll_calledForAllProcesses() 93 verify(mMockDevice).executeShellCommand("cmd coverage reset"); in testResetAll_calledForAllProcesses() 101 doReturn(PS_OUTPUT).when(mMockDevice).executeShellCommand("ps -e"); in testResetSpecific_calledForSpecificProcesses() 104 .executeShellCommand("pm list packages -a"); in testResetSpecific_calledForSpecificProcesses() 110 .executeShellCommand( in testResetSpecific_calledForSpecificProcesses() 113 verify(mMockDevice).executeShellCommand("cmd coverage reset"); in testResetSpecific_calledForSpecificProcesses() [all …]
|
| D | NativeCodeCoverageFlusherTest.java | 63 doReturn(PS_OUTPUT).when(mMockDevice).executeShellCommand("ps -e"); in setUp() 84 verify(mMockDevice).executeShellCommand("find /data/misc/trace -name '*.profraw' -delete"); in testClearCoverageMeasurements_rmCommandCalled() 85 verify(mMockDevice).executeShellCommand("find /data/local/tmp -name '*.profraw' -delete"); in testClearCoverageMeasurements_rmCommandCalled() 86 verify(mMockDevice).executeShellCommand("find /data/misc/trace -name '*.gcda' -delete"); in testClearCoverageMeasurements_rmCommandCalled() 87 verify(mMockDevice).executeShellCommand("find /data/local/tmp -name '*.gcda' -delete"); in testClearCoverageMeasurements_rmCommandCalled() 104 verify(mMockDevice, never()).executeShellCommand(anyString()); in testNoAdbRootClearCoverageMeasurements_noOp() 123 verify(mMockDevice).executeShellCommand("kill -37 123 234 456"); in testFlushCoverageAllProcesses_flushAllCommandCalled() 146 verify(mMockDevice).executeShellCommand("kill -37 123 234"); in testFlushCoverageSpecificProcesses_flushSpecificCommandCalled() 166 verify(mMockDevice, never()).executeShellCommand("kill -37 123"); in testFlushNotHandled_flushNotCalled() 185 verify(mMockDevice, never()).executeShellCommand("kill -37 123"); in testFlushStatusReadFailed_flushNotCalled() [all …]
|
| D | AppVersionFetcherTest.java | 50 when(mMockDevice.executeShellCommand(VERSION_CODE_CMD)) in testFetchVersionCode_valid() 60 when(mMockDevice.executeShellCommand(VERSION_NAME_CMD)) in testFetchVersionName_valid() 70 when(mMockDevice.executeShellCommand(VERSION_CODE_CMD)) in testFetchVersionCode_validMultipleLines() 82 when(mMockDevice.executeShellCommand(VERSION_NAME_CMD)) in testFetchVersionName_validMultipleLines() 92 when(mMockDevice.executeShellCommand(VERSION_CODE_CMD)).thenReturn("invalid response"); in testFetchVersionCode_invalidResponse() 103 when(mMockDevice.executeShellCommand(VERSION_NAME_CMD)).thenReturn("invalid response"); in testFetchVersionName_invalidResponse()
|
| D | BluetoothUtilsTest.java | 87 when(mMockDevice.executeShellCommand(Mockito.anyString())).thenReturn(""); in testEnableBtsnoopLogging() 96 when(mMockDevice.executeShellCommand(Mockito.anyString())).thenReturn(""); in testEnableBtsnoopLoggingFailed() 107 when(mMockDevice.executeShellCommand(Mockito.anyString())).thenReturn(""); in testDisableBtsnoopLogging() 116 when(mMockDevice.executeShellCommand(Mockito.anyString())).thenReturn(""); in testDisableBtsnoopLoggingFailed() 125 when(mMockDevice.executeShellCommand(Mockito.anyString())) in testGetBtSnoopLogFilePath() 134 when(mMockDevice.executeShellCommand(Mockito.anyString())) in testGetBtSnoopLogFilePathFailed()
|
| /tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
| D | StopServicesSetupTest.java | 66 when(mMockDevice.executeShellCommand("stop")).thenReturn(null); in testNoop() 69 verify(mMockDevice).executeShellCommand("stop"); in testNoop() 88 when(mMockDevice.executeShellCommand("stop")).thenReturn(null); in testStopServices() 89 when(mMockDevice.executeShellCommand("stop service1")).thenReturn(null); in testStopServices() 90 when(mMockDevice.executeShellCommand("stop service2")).thenReturn(null); in testStopServices() 95 inOrder.verify(mMockDevice).executeShellCommand("stop"); in testStopServices() 96 inOrder.verify(mMockDevice).executeShellCommand("stop service1"); in testStopServices() 97 inOrder.verify(mMockDevice).executeShellCommand("stop service2"); in testStopServices() 107 when(mMockDevice.executeShellCommand("start")).thenReturn(null); in testTearDown() 109 when(mMockDevice.executeShellCommand("start service1")).thenReturn(null); in testTearDown() [all …]
|
| D | RunOnWorkProfileTargetPreparerTest.java | 101 when(mTestInfo.getDevice().executeShellCommand("dumpsys device_policy")).thenReturn(""); in setUp() 108 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)) in setUp_createsAndStartsWorkProfile() 113 verify(mTestInfo.getDevice()).executeShellCommand(expectedCreateUserCommand); in setUp_createsAndStartsWorkProfile() 122 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)) in setUp_oldVersion_createsAndStartsWorkProfileWithoutWait() 128 verify(mTestInfo.getDevice()).executeShellCommand(expectedCreateUserCommand); in setUp_oldVersion_createsAndStartsWorkProfileWithoutWait() 138 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)) in setup_hasDeviceOwner_removesDeviceOwner() 140 when(mTestInfo.getDevice().executeShellCommand("dumpsys device_policy")) in setup_hasDeviceOwner_removesDeviceOwner() 142 when(mTestInfo.getDevice().executeShellCommand(expectedRemoveDeviceOwnerCommand)) in setup_hasDeviceOwner_removesDeviceOwner() 147 verify(mTestInfo.getDevice()).executeShellCommand(expectedRemoveDeviceOwnerCommand); in setup_hasDeviceOwner_removesDeviceOwner() 156 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)) in setup_hasDeviceOwner_errorWhenRemovingDeviceOwner_throwsException() [all …]
|
| D | RunOnPrivateProfileTargetPreparerTest.java | 106 when(mTestInfo.getDevice().executeShellCommand(DUMPSYS_USER_COMMAND)).thenReturn( in setUp_doesNotSupportPrivateUser_doesNotChangeTestUser() 115 when(mTestInfo.getDevice().executeShellCommand(DUMPSYS_USER_COMMAND)).thenReturn( in setUp_doesNotSupportPrivateUser_doesNotCreateUser() 118 verify(mTestInfo.getDevice(), never()).executeShellCommand( in setUp_doesNotSupportPrivateUser_doesNotCreateUser() 124 when(mTestInfo.getDevice().executeShellCommand(DUMPSYS_USER_COMMAND)).thenReturn( in setUp_privateUserType_createsPrivateProfileAndStartsUser() 127 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)).thenReturn( in setUp_privateUserType_createsPrivateProfileAndStartsUser() 132 verify(mTestInfo.getDevice()).executeShellCommand(expectedCreateUserCommand); in setUp_privateUserType_createsPrivateProfileAndStartsUser() 148 when(mTestInfo.getDevice().executeShellCommand(DUMPSYS_USER_COMMAND)).thenReturn( in setUp_profileAlreadyExists_doesNotCreateProfile() 152 verify(mTestInfo.getDevice(), never()).executeShellCommand( in setUp_profileAlreadyExists_doesNotCreateProfile() 158 when(mTestInfo.getDevice().executeShellCommand(DUMPSYS_USER_COMMAND)).thenReturn( in setUp_nonZeroCurrentUser_createsProfileForCorrectUser() 164 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)) in setUp_nonZeroCurrentUser_createsProfileForCorrectUser() [all …]
|
| D | CompileBootImageWithSpeedTargetPreparerTest.java | 62 verify(mMockDevice, times(1)).executeShellCommand("stop"); in testSpeed() 63 verify(mMockDevice, times(1)).executeShellCommand("setprop dev.bootcomplete 0"); in testSpeed() 65 .executeShellCommand(mBootImagePreparer.COMPILE_BOOT_IMAGE_SPEED_CMD); in testSpeed() 66 verify(mMockDevice, times(1)).executeShellCommand("start"); in testSpeed() 75 verify(mMockDevice, times(1)).executeShellCommand("stop"); in testSpeedProfile() 76 verify(mMockDevice, times(1)).executeShellCommand("setprop dev.bootcomplete 0"); in testSpeedProfile() 78 .executeShellCommand(mBootImagePreparer.COMPILE_BOOT_IMAGE_SPEED_PROFILE_CMD); in testSpeedProfile() 79 verify(mMockDevice, times(1)).executeShellCommand("start"); in testSpeedProfile()
|
| D | RestartSystemServerTargetPreparerTest.java | 62 when(mMockDevice.executeShellCommand("setprop dev.bootcomplete 0")).thenReturn(null); in testSetUp_bootComplete() 63 when(mMockDevice.executeShellCommand(RestartSystemServerTargetPreparer.KILL_SERVER_COMMAND)) in testSetUp_bootComplete() 70 .executeShellCommand(RestartSystemServerTargetPreparer.KILL_SERVER_COMMAND); in testSetUp_bootComplete() 76 when(mMockDevice.executeShellCommand("setprop dev.bootcomplete 0")).thenReturn(null); in testSetUp_bootNotComplete() 77 when(mMockDevice.executeShellCommand(RestartSystemServerTargetPreparer.KILL_SERVER_COMMAND)) in testSetUp_bootNotComplete() 86 .executeShellCommand(RestartSystemServerTargetPreparer.KILL_SERVER_COMMAND); in testSetUp_bootNotComplete() 96 when(mMockDevice.executeShellCommand("setprop dev.bootcomplete 0")).thenReturn(null); in testTearDown_restart() 97 when(mMockDevice.executeShellCommand(RestartSystemServerTargetPreparer.KILL_SERVER_COMMAND)) in testTearDown_restart() 104 .executeShellCommand(RestartSystemServerTargetPreparer.KILL_SERVER_COMMAND); in testTearDown_restart()
|
| D | RunOnCloneProfileTargetPreparerTest.java | 106 when(mTestInfo.getDevice().executeShellCommand(DUMPSYS_USER_COMMAND)) in setUp() 130 when(mTestInfo.getDevice().executeShellCommand(DUMPSYS_USER_COMMAND)) in setUp_deviceDoesNotSupportCloneUser_doesNotChangeTestUser() 140 when(mTestInfo.getDevice().executeShellCommand(DUMPSYS_USER_COMMAND)) in setUp_deviceDoesNotSupportCloneUser_setsArgumentToSkipTests() 151 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)) in setUp_cloneUserType_createsCloneProfileAndStartsUser() 156 verify(mTestInfo.getDevice()).executeShellCommand(expectedCreateUserCommand); in setUp_cloneUserType_createsCloneProfileAndStartsUser() 175 verify(mTestInfo.getDevice(), never()).executeShellCommand(contains("pm create-user")); in setUp_profileAlreadyExists_doesNotCreateProfile() 184 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)) in setUp_nonZeroCurrentUser_createsProfileForCorrectUser() 189 verify(mTestInfo.getDevice()).executeShellCommand(expectedCreateUserCommand); in setUp_nonZeroCurrentUser_createsProfileForCorrectUser() 212 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)) in setUp_setsRunTestsAsUser() 224 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)) in setUp_installsPackagesInProfileUser() [all …]
|
| D | DeviceSetupFuncTest.java | 71 getDevice().executeShellCommand("setprop ro.audio.silent 0"); in testSetup() 73 assertTrue(getDevice().executeShellCommand("getprop ro.audio.silent").contains("1")); in testSetup() 74 assertTrue(getDevice().executeShellCommand("getprop ro.monkey").contains("1")); in testSetup() 75 assertTrue(getDevice().executeShellCommand("getprop ro.test_harness").contains("1")); in testSetup() 77 assertTrue(getDevice().executeShellCommand("id").contains("root")); in testSetup()
|
| D | InstallKernelModulePreparerTest.java | 121 when(mMockDevice.executeShellCommand(matches(LIST_MODULE_COMMAND))) in testSetup() 149 when(mMockDevice.executeShellCommand(matches(LIST_MODULE_COMMAND))) in testSetupWithPreExistingDependentModule() 176 when(mMockDevice.executeShellCommand(matches(LIST_MODULE_COMMAND))) in testSetupWithDifferentArgs() 199 when(mMockDevice.executeShellCommand(matches(LIST_MODULE_COMMAND))) in testSetupWithTwoModules() 224 when(mMockDevice.executeShellCommand(matches(LIST_MODULE_COMMAND))) in testInstallFailureThrow() 248 when(mMockDevice.executeShellCommand(matches(LIST_MODULE_COMMAND))) in testTearDown() 265 when(mMockDevice.executeShellCommand(matches(LIST_MODULE_COMMAND))) in testTearDownTwoModules() 267 when(mMockDevice.executeShellCommand(matches("rmmod kunit_test"))).thenReturn(""); in testTearDownTwoModules() 268 when(mMockDevice.executeShellCommand(matches("rmmod kunit"))).thenReturn(""); in testTearDownTwoModules()
|
| D | DefaultTestsZipInstallerTest.java | 110 when(mMockDevice.executeShellCommand("stop")).thenReturn(""); in testCantTouchFilesystem() 111 when(mMockDevice.executeShellCommand("stop installd")).thenReturn(""); in testCantTouchFilesystem() 140 when(mMockDevice.executeShellCommand("stop")).thenReturn(""); in testPushTestsZipOntoData() 141 when(mMockDevice.executeShellCommand("stop installd")).thenReturn(""); in testPushTestsZipOntoData() 154 when(mMockDevice.executeShellCommand( in testPushTestsZipOntoData() 179 when(mMockDevice.executeShellCommand("stop")).thenReturn(""); in testPushTestsZipOntoData_retry() 180 when(mMockDevice.executeShellCommand("stop installd")).thenReturn(""); in testPushTestsZipOntoData_retry()
|
| /tools/tradefederation/core/javatests/com/android/tradefed/util/sl4a/ |
| D | Sl4aClientTest.java | 80 when(mMockDevice.executeShellCommand(Sl4aClient.IS_SL4A_RUNNING_CMD)) in testIsSl4ARunning() 84 when(mMockDevice.executeShellCommand(Sl4aClient.IS_SL4A_RUNNING_CMD_OLD)) in testIsSl4ARunning() 95 when(mMockDevice.executeShellCommand(Sl4aClient.IS_SL4A_RUNNING_CMD)).thenReturn(""); in testIsSl4ARunning_notRunning() 96 when(mMockDevice.executeShellCommand(Sl4aClient.IS_SL4A_RUNNING_CMD_OLD)).thenReturn(""); in testIsSl4ARunning_notRunning() 105 when(mMockDevice.executeShellCommand(cmd)).thenReturn(""); in testStartSl4A_notRunning() 106 when(mMockDevice.executeShellCommand(Sl4aClient.IS_SL4A_RUNNING_CMD)).thenReturn(""); in testStartSl4A_notRunning() 107 when(mMockDevice.executeShellCommand(Sl4aClient.IS_SL4A_RUNNING_CMD_OLD)).thenReturn(""); in testStartSl4A_notRunning() 122 when(mMockDevice.executeShellCommand(cmd)).thenReturn(""); in setupStartExpectation() 123 when(mMockDevice.executeShellCommand(Sl4aClient.IS_SL4A_RUNNING_CMD)) in setupStartExpectation() 127 when(mMockDevice.executeShellCommand(Sl4aClient.IS_SL4A_RUNNING_CMD_OLD)) in setupStartExpectation() [all …]
|
| /tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
| D | BluetoothHciSnoopLogCollector.java | 84 executeShellCommand( in onTestStart() 106 executeShellCommand( in onTestEnd() 163 executeShellCommand(device, "mkdir -p " + getReportingDir()); in createReportingDirectory() 169 executeShellCommand(device, "rm -rf " + getReportingDir()); in deleteReportingDirectory() 196 executeShellCommand(device, "cmd bluetooth_manager disable"); in disableBluetoothService() 197 executeShellCommand(device, "cmd bluetooth_manager wait-for-state:STATE_OFF"); in disableBluetoothService() 201 executeShellCommand(device, "cmd bluetooth_manager enable"); in enableBluetoothService() 202 executeShellCommand(device, "cmd bluetooth_manager wait-for-state:STATE_ON"); in enableBluetoothService() 211 protected void executeShellCommand(ITestDevice device, String command) in executeShellCommand() method in BluetoothHciSnoopLogCollector
|
| /tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
| D | CompileBootImageWithSpeedTargetPreparer.java | 53 device.executeShellCommand("stop"); in setUp() 54 device.executeShellCommand("setprop dev.bootcomplete 0"); in setUp() 56 device.executeShellCommand(COMPILE_BOOT_IMAGE_SPEED_CMD); in setUp() 58 device.executeShellCommand(COMPILE_BOOT_IMAGE_SPEED_PROFILE_CMD); in setUp() 60 device.executeShellCommand("start"); in setUp()
|
| D | StopServicesSetup.java | 40 device.executeShellCommand("stop"); in setUp() 44 device.executeShellCommand(String.format("stop %s", service)); in setUp() 54 device.executeShellCommand("start"); in tearDown() 59 device.executeShellCommand(String.format("start %s", service)); in tearDown()
|
| /tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/ |
| D | SystemServerFileDescriptorCheckerTest.java | 52 when(mMockDevice.executeShellCommand(Mockito.eq("pidof system_server"))) in testFailToGetPid() 62 when(mMockDevice.executeShellCommand(Mockito.eq("pidof system_server"))) in testFailToGetFdCount() 64 when(mMockDevice.executeShellCommand(Mockito.eq("su root ls /proc/1024/fd | wc -w"))) in testFailToGetFdCount() 74 when(mMockDevice.executeShellCommand(Mockito.eq("pidof system_server"))) in testAcceptableFdCount() 76 when(mMockDevice.executeShellCommand(Mockito.eq("su root ls /proc/914/fd | wc -w"))) in testAcceptableFdCount() 86 when(mMockDevice.executeShellCommand(Mockito.eq("pidof system_server"))) in testUnacceptableFdCount() 88 when(mMockDevice.executeShellCommand(Mockito.eq("su root ls /proc/914/fd | wc -w"))) in testUnacceptableFdCount()
|
| /tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
| D | GTestTest.java | 141 when(mMockITestDevice.executeShellCommand(findCmd)).thenReturn(findCmdOut); in testRun_noExecutableFile() 163 when(mMockITestDevice.executeShellCommand(findCmd)).thenReturn(findCmdOut); in testRun() 168 .executeShellCommand( in testRun() 175 .executeShellCommand( in testRun() 202 when(mMockITestDevice.executeShellCommand(findCmd)).thenReturn(findCmdOut); in testRunFilterAbiPath() 207 .executeShellCommand( in testRunFilterAbiPath() 229 when(mMockITestDevice.executeShellCommand(findCmd)).thenReturn(findCmdOut); in testRun_moduleName() 233 .executeShellCommand( in testRun_moduleName() 256 when(mMockITestDevice.executeShellCommand(findCmd)).thenReturn(findCmdOut); in doTestFilter() 261 .executeShellCommand( in doTestFilter() [all …]
|
| /tools/tradefederation/core/javatests/com/android/tradefed/device/ |
| D | WifiHelperTest.java | 52 when(mMockDevice.executeShellCommand(WifiHelper.CHECK_PACKAGE_CMD)) in setUp() 122 verify(mMockDevice, times(1)).executeShellCommand(WifiHelper.CHECK_PACKAGE_CMD); in testWaitForIp_failThenPass() 142 verify(mMockDevice, times(1)).executeShellCommand(WifiHelper.CHECK_PACKAGE_CMD); in testStartMonitor() 159 verify(mMockDevice, times(1)).executeShellCommand(WifiHelper.CHECK_PACKAGE_CMD); in testStopMonitor() 171 verify(mMockDevice, times(1)).executeShellCommand(WifiHelper.CHECK_PACKAGE_CMD); in testStopMonitor_nullResult() 177 when(mMockDevice.executeShellCommand(WifiHelper.CHECK_PACKAGE_CMD)) in testEnsureDeviceSetup_alternateVersionPattern() 188 when(mMockDevice.executeShellCommand(WifiHelper.CHECK_PACKAGE_CMD)) in testEnsureDeviceSetup_lowerVersion() 199 when(mMockDevice.executeShellCommand(WifiHelper.CHECK_PACKAGE_CMD)) in testEnsureDeviceSetup_alternateWifiUtilAPKPath() 211 when(mMockDevice.executeShellCommand(WifiHelper.CHECK_PACKAGE_CMD)) in testEnsureDeviceSetup_deleteAPK() 228 verify(mMockDevice, times(1)).executeShellCommand(WifiHelper.CHECK_PACKAGE_CMD); in testCleanPackage()
|
| D | NativeDeviceTest.java | 365 public String executeShellCommand(String cmd) in testPushDir_childDir() 395 public String executeShellCommand(String cmd) in testPushDir_childDir_filtered() 467 public String executeShellCommand(String command) in testPullDir_nothingToDo() 521 public String executeShellCommand(String command) in testPullDir() 599 public String executeShellCommand(String command) in testPullDir_pullFail() 679 public String executeShellCommand(String command) in testPullDir_invalidPath() 1389 public String executeShellCommand(String name) in testGetDeviceDate() 1403 public String executeShellCommand(String name) in testGetDeviceDate_wrongformat() 1911 public String executeShellCommand(String command) in testUnlockDevice() 1946 public String executeShellCommand(String command) in testUnlockDevice_garbageOutput() [all …]
|
| /tools/tradefederation/contrib/src/com/android/performance/tests/ |
| D | HermeticMemoryTest.java | 107 String preMemInfo = mTestDevice.executeShellCommand(PROC_MEMINFO); in run() 121 mTestDevice.executeShellCommand(DROP_CACHE); in run() 127 mTestDevice.executeShellCommand(String.format(AM_START, mComponentName)); in run() 129 mTestDevice.executeShellCommand( in run() 134 String postMemInfo = mTestDevice.executeShellCommand(PROC_MEMINFO); in run() 137 mTestDevice.executeShellCommand(String.format("%s %d", DUMPSYS_MEMINFO, processId)); in run() 138 String mapsInfo = mTestDevice.executeShellCommand(String.format(MAPS_INFO, processId)); in run() 139 String sMapsInfo = mTestDevice.executeShellCommand(String.format(SMAPS_INFO, processId)); in run() 140 String statusInfo = mTestDevice.executeShellCommand(String.format(STATUS_INFO, processId)); in run() 268 String memInfo = mTestDevice.executeShellCommand(PROC_MEMINFO); in calculateFreeMem() [all …]
|
| D | EmmcPerformanceTest.java | 273 output = mTestDevice.executeShellCommand(command).split("\n"); in runDdIteration() 304 output = mTestDevice.executeShellCommand(command); in runRandomIteration() 346 mTestDevice.executeShellCommand("echo 3 > /proc/sys/vm/drop_caches"); in dropCache() 368 mTestDevice.executeShellCommand("umount /sdcard"); in setUp() 369 mTestDevice.executeShellCommand("umount /data"); in setUp() 370 mTestDevice.executeShellCommand("umount /cache"); in setUp() 372 mTestDevice.executeShellCommand( in setUp() 374 mTestDevice.executeShellCommand( in setUp() 394 String output = mTestDevice.executeShellCommand("vdc dump | grep cache"); in discoverCacheInfo() 413 String output = mTestDevice.executeShellCommand("df cache"); in discoverCacheInfo() [all …]
|
| /tools/tradefederation/core/src/com/android/tradefed/util/ |
| D | JavaCodeCoverageFlusher.java | 62 List<ProcessInfo> processes = PsParser.getProcesses(mDevice.executeShellCommand("ps -e")); in getAllProcessNames() 75 String pmListPackages = mDevice.executeShellCommand("pm list packages -a"); in getAllPackages() 112 mDevice.executeShellCommand(String.format(COVERAGE_RESET_FORMAT, processName)); in resetCoverage() 117 mDevice.executeShellCommand("cmd coverage reset"); in resetCoverage() 143 mDevice.executeShellCommand( in forceCoverageFlush() 150 mDevice.executeShellCommand("cmd coverage dump /data/misc/trace/system_server.ec"); in forceCoverageFlush()
|
| /tools/tradefederation/core/javatests/com/android/tradefed/result/ |
| D | DeviceFileReporterTest.java | 93 when(mDevice.executeShellCommand(Mockito.eq("ls /data/tombstones/*"))).thenReturn(result); in testSimple() 117 when(mDevice.executeShellCommand(Mockito.eq("ls /data/tombstones/*"))).thenReturn(result); in testTrim() 142 when(mDevice.executeShellCommand(Mockito.eq("ls /data/tombstones/*"))).thenReturn(result); in testLine_containingSpace() 186 when(mDevice.executeShellCommand((String) Mockito.any())).thenReturn(result); in testLineEnding_LF() 218 when(mDevice.executeShellCommand((String) Mockito.any())).thenReturn(result); in testLineEnding_CRLF() 273 when(mDevice.executeShellCommand((String) Mockito.any())).thenReturn(result1, result2); in testRepeat_skip() 328 when(mDevice.executeShellCommand((String) Mockito.any())).thenReturn(result1); in testRepeat_noSkip() 333 when(mDevice.executeShellCommand((String) Mockito.any())).thenReturn(result2); in testRepeat_noSkip() 370 when(mDevice.executeShellCommand((String) Mockito.any())).thenReturn(result); in testNoExist() 374 verify(mDevice).executeShellCommand((String) Mockito.any()); in testNoExist() [all …]
|