/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 | DefaultTestsZipInstallerTest.java | 123 when(mMockDevice.executeShellCommand("stop")).thenReturn(""); in testCantTouchFilesystem() 124 when(mMockDevice.executeShellCommand("stop installd")).thenReturn(""); in testCantTouchFilesystem() 153 when(mMockDevice.executeShellCommand("stop")).thenReturn(""); in testPushTestsZipOntoData() 154 when(mMockDevice.executeShellCommand("stop installd")).thenReturn(""); in testPushTestsZipOntoData() 167 when(mMockDevice.executeShellCommand( in testPushTestsZipOntoData() 170 when(mMockDevice.executeShellCommand( in testPushTestsZipOntoData() 194 when(mMockDevice.executeShellCommand("stop")).thenReturn(""); in testPushTestsZipOntoData_retry() 195 when(mMockDevice.executeShellCommand("stop installd")).thenReturn(""); in testPushTestsZipOntoData_retry()
|
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/baseline/ |
D | LockSettingsBaselineSetterTest.java | 69 when(mMockDevice.executeShellCommand(GET_LOCK_SCREEN_COMMAND)).thenReturn("true"); in setBaseline_lockScreenOff_skipRemovingPasswords() 71 verify(mMockDevice).executeShellCommand(GET_LOCK_SCREEN_COMMAND); in setBaseline_lockScreenOff_skipRemovingPasswords() 72 verify(mMockDevice, never()).executeShellCommand(LOCK_SCREEN_OFF_COMMAND); in setBaseline_lockScreenOff_skipRemovingPasswords() 73 verify(mMockDevice, never()).executeShellCommand(String.format(CLEAR_PWD_COMMAND, "0000")); in setBaseline_lockScreenOff_skipRemovingPasswords() 74 verify(mMockDevice, never()).executeShellCommand(String.format(CLEAR_PWD_COMMAND, "1234")); in setBaseline_lockScreenOff_skipRemovingPasswords() 80 when(mMockDevice.executeShellCommand(GET_LOCK_SCREEN_COMMAND)).thenReturn("false", "true"); in setBaseline_setSucceeds_passwordsRemoved() 82 verify(mMockDevice, times(2)).executeShellCommand(GET_LOCK_SCREEN_COMMAND); in setBaseline_setSucceeds_passwordsRemoved() 83 verify(mMockDevice).executeShellCommand(LOCK_SCREEN_OFF_COMMAND); in setBaseline_setSucceeds_passwordsRemoved() 84 verify(mMockDevice).executeShellCommand(String.format(CLEAR_PWD_COMMAND, "0000")); in setBaseline_setSucceeds_passwordsRemoved() 85 verify(mMockDevice).executeShellCommand(String.format(CLEAR_PWD_COMMAND, "1234")); in setBaseline_setSucceeds_passwordsRemoved() [all …]
|
/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/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/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/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()
|
D | EnforcedSeLinuxCheckerTest.java | 50 doReturn("Enforcing").when(mMockDevice).executeShellCommand("getenforce"); in testEnforced() 61 doReturn("Permissive").when(mMockDevice).executeShellCommand("getenforce"); in testPermissive() 72 doReturn("Permissive").when(mMockDevice).executeShellCommand("getenforce"); in testEnforced_failed() 77 verify(mMockDevice).executeShellCommand("su root setenforce 1"); in testEnforced_failed()
|
/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() 515 public String executeShellCommand(String command) in testPullDir() 587 public String executeShellCommand(String command) in testPullDir_pullFail() 661 public String executeShellCommand(String command) in testPullDir_invalidPath() 1212 public String executeShellCommand(String name) in testGetDeviceDate() 1226 public String executeShellCommand(String name) in testGetDeviceDate_wrongformat() 1734 public String executeShellCommand(String command) in testUnlockDevice() 1769 public String executeShellCommand(String command) in testUnlockDevice_garbageOutput() [all …]
|
/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/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/src/com/android/tradefed/suite/checker/baseline/ |
D | LockSettingsBaselineSetter.java | 48 if ("true".equals(mDevice.executeShellCommand(GET_LOCK_SCREEN_COMMAND).trim())) { in setBaseline() 53 mDevice.executeShellCommand(command); in setBaseline() 56 mDevice.executeShellCommand(LOCK_SCREEN_OFF_COMMAND); in setBaseline() 57 return "true".equals(mDevice.executeShellCommand(GET_LOCK_SCREEN_COMMAND).trim()); in setBaseline()
|
/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 …]
|