Home
last modified time | relevance | path

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

12

/frameworks/base/tests/RollbackTest/StagedRollbackTest/src/com/android/tests/rollback/host/
DStagedRollbackTest.java51 getDevice().executeShellCommand("svc wifi disable"); in setUp()
52 getDevice().executeShellCommand("svc data disable"); in setUp()
58 getDevice().executeShellCommand("svc wifi enable"); in tearDown()
59 getDevice().executeShellCommand("svc data enable"); in tearDown()
94 getDevice().executeShellCommand("device_config put rollback " in testNetworkFailedRollback()
97 getDevice().executeShellCommand("pm install -r --staged --enable-rollback " in testNetworkFailedRollback()
140 getDevice().executeShellCommand("device_config put rollback " in testNetworkPassedDoesNotRollback()
143 getDevice().executeShellCommand("pm install -r --staged --enable-rollback " in testNetworkPassedDoesNotRollback()
156 getDevice().executeShellCommand("svc wifi enable"); in testNetworkPassedDoesNotRollback()
157 getDevice().executeShellCommand("svc data enable"); in testNetworkPassedDoesNotRollback()
/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/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/ActivityManagerPerfTests/utils/src/com/android/frameworks/perftests/am/util/
DUtils.java42 InstrumentationRegistry.getInstrumentation()).executeShellCommand(cmd); in runShellCommand()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DShellHelper.java49 ParcelFileDescriptor pfd = automan.executeShellCommand(command); in runShellCommandRaw()
/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/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/core/tests/coretests/src/android/view/textclassifier/
DConfigParserTest.java135 uiDevice.executeShellCommand(CLEAR_DEVICE_CONFIG_KEY_CMD + " " + key); in clearDeviceConfig()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java284 getInstrumentation().getUiAutomation().executeShellCommand( in testMeasureStartUpTime()
427 executeShellCommand(String.format(COMPILE_CMD, compilerFilter, appPkgName)); in compileApp()
496 .executeShellCommand(DROP_CACHE_SCRIPT)); in dropCache()
681 .executeShellCommand(DROP_CACHE_SCRIPT)); in cleanUpAfterCycle()
840 .executeShellCommand(launchCmd); in run()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSysuiTestCase.java97 .executeShellCommand(command); in runShellCommand()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSuspendPackagesTest.java494 final String result = mUiDevice.executeShellCommand("dpm set-profile-owner --user cur " in setProfileOwner()
500 final String result = mUiDevice.executeShellCommand("dpm set-device-owner --user cur " in setDeviceOwner()
507 mUiDevice.executeShellCommand("dpm remove-active-admin --user cur " in removeProfileOrDeviceOwner()
/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
DBackgroundDexOptServiceIntegrationTests.java147 .executeShellCommand(cmd); in runShellCommand()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseGeneralTest.java1223 String output = executeShellCommand("dumpsys dbinfo " + getContext().getPackageName()); in testCloseIdleConnection()
1229 output = executeShellCommand("dumpsys dbinfo " + getContext().getPackageName()); in testCloseIdleConnection()
1243 private String executeShellCommand(String cmd) throws Exception { in executeShellCommand() method in DatabaseGeneralTest
1245 InstrumentationRegistry.getInstrumentation()).executeShellCommand(cmd); in executeShellCommand()

12