Home
last modified time | relevance | path

Searched refs:executeShellCommand (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/tests/RollbackTest/StagedRollbackTest/src/com/android/tests/rollback/host/
DStagedRollbackTest.java57 getDevice().executeShellCommand("svc wifi disable"); in setUp()
58 getDevice().executeShellCommand("svc data disable"); in setUp()
64 getDevice().executeShellCommand("svc wifi enable"); in tearDown()
65 getDevice().executeShellCommand("svc data enable"); in tearDown()
130 getDevice().executeShellCommand("device_config put rollback " in testNetworkFailedRollback()
133 getDevice().executeShellCommand("pm install -r --staged --enable-rollback " in testNetworkFailedRollback()
168 getDevice().executeShellCommand("device_config put rollback " in testNetworkPassedDoesNotRollback()
171 getDevice().executeShellCommand("pm install -r --staged --enable-rollback " in testNetworkPassedDoesNotRollback()
184 getDevice().executeShellCommand("svc wifi enable"); in testNetworkPassedDoesNotRollback()
185 getDevice().executeShellCommand("svc data enable"); in testNetworkPassedDoesNotRollback()
[all …]
/frameworks/base/tests/BootImageProfileTest/src/com/android/bootimageprofile/
DBootImageProfileTest.java50 return mTestDevice.executeShellCommand("getprop dalvik.vm." + property).trim(); in getProperty()
56 return mTestDevice.executeShellCommand( in setProperty()
59 return mTestDevice.executeShellCommand( in setProperty()
75 String pid = mTestDevice.executeShellCommand("pidof " + pkg).trim(); in forceSaveProfile()
80 String res = mTestDevice.executeShellCommand("kill -s SIGUSR1 " + pid).trim(); in forceSaveProfile()
108 res = mTestDevice.executeShellCommand("stop"); in testSystemServerProfile()
110 res = mTestDevice.executeShellCommand("start"); in testSystemServerProfile()
129 res = mTestDevice.executeShellCommand("truncate -s 0 " + SYSTEM_SERVER_PROFILE).trim(); in testSystemServerProfile()
136 String s = mTestDevice.executeShellCommand( in testSystemServerProfile()
151 res = mTestDevice.executeShellCommand("profman --dump-only --profile-file=" in testSystemServerProfile()
[all …]
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DDeviceConfigServiceTest.java72 executeShellCommand("device_config put " + sNamespace + " " + sKey + " " + sValue); in testPut()
73 executeShellCommand("device_config put " + newNamespace + " " + sKey + " " + newValue); in testPut()
87 executeShellCommand("device_config put " + sKey + " " + sValue); in testPut_invalidArgs()
93 executeShellCommand( in testPut_invalidArgs()
112 executeShellCommand("device_config delete " + sNamespace + " " + sKey); in testDelete()
131 executeShellCommand("device_config delete " + sKey); in testDelete_invalidArgs()
137 executeShellCommand("device_config delete " + sNamespace + " " + sKey + " extra_arg"); in testDelete_invalidArgs()
148 executeShellCommand( in testReset()
151 executeShellCommand( in testReset()
157 executeShellCommand("device_config reset untrusted_defaults " + sNamespace); in testReset()
[all …]
DBaseSettingsProviderTest.java195 executeShellCommand("settings reset global " + modeString); in resetSettingsViaShell()
199 executeShellCommand("settings reset secure " + modeString); in resetSettingsViaShell()
216 executeShellCommand("settings reset global " + packageName + " " in resetToDefaultsViaShell()
221 executeShellCommand("settings reset secure " + packageName + " " in resetToDefaultsViaShell()
226 executeShellCommand("settings reset system " + packageName + " " in resetToDefaultsViaShell()
285 executeShellCommand("settings put global " + name + " " in setSettingViaShell()
292 executeShellCommand("settings put secure " + name + " " in setSettingViaShell()
298 executeShellCommand("settings put system " + name + " " in setSettingViaShell()
353 protected static void executeShellCommand(String command) throws IOException { in executeShellCommand() method in BaseSettingsProviderTest
355 .getUiAutomation().executeShellCommand(command).getFileDescriptor()); in executeShellCommand()
DInstallNonMarketAppsDeprecationTest.java81 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in getSecureSettingForUserViaShell()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsUserLifecycleTests.java123 final String dumpsys = executeShellCommand("dumpsys batterystats --checkin"); in getNumberOfUidsInBatteryStats()
143 executeShellCommand("dumpsys battery unplug"); in batteryOnScreenOff()
144 executeShellCommand("dumpsys batterystats enable pretend-screen-off"); in batteryOnScreenOff()
148 executeShellCommand("dumpsys battery reset"); in batteryOffScreenOn()
149 executeShellCommand("dumpsys batterystats disable pretend-screen-off"); in batteryOffScreenOn()
152 private String executeShellCommand(String cmd) throws Exception { in executeShellCommand() method in BatteryStatsUserLifecycleTests
154 InstrumentationRegistry.getInstrumentation()).executeShellCommand(cmd); in executeShellCommand()
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/
DLocalOverlayManager.java41 if (executeShellCommand("cmd overlay list").contains(pattern)) { in setEnabledAndWait()
57 executeShellCommand("cmd overlay " + (enable ? "enable " : "disable ") + packageName); in setEnabledAndWait()
61 private static String executeShellCommand(final String command) in executeShellCommand() method in LocalOverlayManager
65 final ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(command); in executeShellCommand()
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java58 mUiDevice.executeShellCommand("cmd thermalservice override-status 0"); in setUp()
66 mUiDevice.executeShellCommand("cmd thermalservice reset"); in tearDown()
184 mUiDevice.executeShellCommand("cmd thermalservice override-status " in testGetThermalStatus()
204 mUiDevice.executeShellCommand("cmd thermalservice override-status " in testThermalStatusCallback()
218 mUiDevice.executeShellCommand("cmd thermalservice override-status " in testThermalStatusCallback()
235 mUiDevice.executeShellCommand("cmd thermalservice override-status " in testThermalStatusCallback()
/frameworks/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/
DCujs.java38 mDevice.executeShellCommand("kill -10 " + pid); in run()
44 mDevice.executeShellCommand(command); in run()
DDevice.java36 public String executeShellCommand(String command) throws TestException { in executeShellCommand() method in Device
38 return mDevice.executeShellCommand(command); in executeShellCommand()
DMetrics.java85 String showmap = mDevice.executeShellCommand("showmap " + pid); in sample()
113 String debuggerd = mDevice.executeShellCommand("debuggerd -j " + pid); in sample()
/frameworks/base/tests/RollbackTest/MultiUserRollbackTest/src/com/android/tests/rollback/host/
DMultiUserRollbackTest.java45 getDevice().executeShellCommand("pm uninstall com.android.cts.install.lib.testapp.A"); in tearDown()
68 getDevice().executeShellCommand("pm rollback-app com.android.cts.install.lib.testapp.A"); in testMultipleUsers()
108 String userState = getDevice().executeShellCommand("am get-started-user-state " in switchToUser()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java328 getInstrumentation().getUiAutomation().executeShellCommand( in testMeasureStartUpTime()
508 executeShellCommand(String.format(COMPILE_CMD, compilerFilter, appPkgName)); in compileApp()
545 executeShellCommand(String.format(IORAP_COMPILE_CMD, appPkgName)); in compileAppForIorap()
606 executeShellCommand(IORAP_DUMPSYS_CMD); in logDumpsysIorapd()
625 executeShellCommand(IORAP_DUMPSYS_CMD); in waitForIorapCompiled()
763 .executeShellCommand(DROP_CACHE_SCRIPT)); in dropCache()
771 executeShellCommand("whoami"); in checkIfRoot()
784 .executeShellCommand("stop iorapd"); in stopIorapd()
793 .executeShellCommand("start iorapd"); in startIorapd()
830 .executeShellCommand(String.format(IORAP_MAINTENANCE_CMD, packageName)); in purgeIorapPackage()
[all …]
/frameworks/base/core/tests/overlaytests/host/src/com/android/server/om/hosttest/
DInstallOverlayTests.java169 assertFalse(getDevice().executeShellCommand("cat /data/system/overlays.xml") in changesPersistedWhenUninstallingDisabledOverlay()
172 assertTrue(getDevice().executeShellCommand("cat /data/system/overlays.xml") in changesPersistedWhenUninstallingDisabledOverlay()
176 assertFalse(getDevice().executeShellCommand("cat /data/system/overlays.xml") in changesPersistedWhenUninstallingDisabledOverlay()
233 return getDevice().executeShellCommand(cmd); in shell()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DUiBot.java174 mDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP"); in turnScreenOn()
175 mDevice.executeShellCommand("wm dismiss-keyguard"); in turnScreenOn()
/frameworks/base/core/java/android/app/
DIUiAutomationConnection.aidl47 void executeShellCommand(String command, in ParcelFileDescriptor sink, in executeShellCommand() method
DUiAutomation.java1105 public ParcelFileDescriptor executeShellCommand(String command) { in executeShellCommand() method in UiAutomation
1120 mUiAutomationConnection.executeShellCommand(command, sink, null); in executeShellCommand()
1170 mUiAutomationConnection.executeShellCommand(command, sink_read, source_write); in executeShellCommandRw()
/frameworks/base/tests/NativeProcessesMemoryTest/src/com/android/tests/nativeprocesses/
DNativeProcessesMemoryTest.java147 String memInfo = getDevice().executeShellCommand(DUMPSYS_MEMINFO_OOM_CMD); in collectNativeProcesses()
182 String showmap = getDevice().executeShellCommand("showmap " + pid); in snapMemoryUsage()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DShellHelper.java49 ParcelFileDescriptor pfd = automan.executeShellCommand(command); in runShellCommandRaw()
/frameworks/base/tests/ActivityManagerPerfTests/utils/src/com/android/frameworks/perftests/am/util/
DUtils.java42 InstrumentationRegistry.getInstrumentation()).executeShellCommand(cmd); in runShellCommand()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DATraceRunner.java70 mInstrumentation.getUiAutomation().executeShellCommand(cmd); in doInBackground()
/frameworks/base/tests/AppLaunchWear/src/com/android/tests/applaunch/
DAppLaunch.java275 getInstrumentation().getUiAutomation().executeShellCommand( in testMeasureStartUpTime()
376 executeShellCommand(String.format(COMPILE_CMD, compilerFilter, appPkgName)); in compileApp()
445 .executeShellCommand(DROP_CACHE_SCRIPT)); in dropCache()
738 .executeShellCommand("input keyevent 3"); in run()
764 .executeShellCommand(launchCmd); in run()
/frameworks/base/tools/preload-check/src/com/android/preload/check/
DPreloadCheck.java117 String res = mTestDevice.executeShellCommand(sb.toString()); in run()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DConfigParserTest.java135 uiDevice.executeShellCommand(CLEAR_DEVICE_CONFIG_KEY_CMD + " " + key); in clearDeviceConfig()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSysuiTestCase.java97 .executeShellCommand(command); in runShellCommand()

12