Home
last modified time | relevance | path

Searched refs:runShellCommand (Results 1 – 25 of 40) sorted by relevance

12

/cts/tests/tests/assist/src/android/assist/cts/
DDisableContextTest.java43 SystemUtil.runShellCommand(getInstrumentation(), in tearDown()
45 SystemUtil.runShellCommand(getInstrumentation(), in tearDown()
58 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
60 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
70 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
72 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
82 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
84 SystemUtil.runShellCommand(getInstrumentation(), in testContextAndScreenshotOff()
/cts/hostsidetests/theme/
Dandroid_device.py38 def runShellCommand(self, cmd): member in androidDevice
50 (output, err) = self.runShellCommand("getprop dev.bootcomplete")
72 return self.runShellCommand("am instrument -w --no-window-animation " + option)
75 (out, err) = self.runShellCommand("ps")
83 return int(self.runShellCommand("getprop ro.build.version.sdk")[0])
86 return self.runShellCommand("getprop ro.build.version.codename")[0].strip()
90 return int(self.runShellCommand("getprop qemu.sf.lcd_density")[0])
92 return int(self.runShellCommand("getprop ro.sf.lcd_density")[0])
95 return int(self.runShellCommand("getprop ro.build.version.sdk")[0])
98 return int(self.runShellCommand("dumpsys | grep SurfaceOrientation")[0].split()[1])
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAutofillRestrictionsTest.java86 runShellCommand("settings put secure --user %d %s %s default", mUserId, USER_SETUP_COMPLETE, in enableService()
90 runShellCommand("settings put secure %s %s default", AUTOFILL_SERVICE, SERVICE_NAME); in enableService()
92 runShellCommand("settings put --user %d secure %s %s default", in enableService()
100 runShellCommand("settings delete secure %s", AUTOFILL_SERVICE); in disableService()
102 runShellCommand("settings delete --user %d secure %s", mUserId, AUTOFILL_SERVICE); in disableService()
111 actual = runShellCommand("settings get secure %s", AUTOFILL_SERVICE); in waitForServiceSettingSaved()
113 actual = runShellCommand("settings get --user %d secure %s", mUserId, in waitForServiceSettingSaved()
DBaseDeviceAdminTest.java78 protected String runShellCommand(String template, Object...args) { in runShellCommand() method in BaseDeviceAdminTest
82 final String result = SystemUtil.runShellCommand(getInstrumentation(), command); in runShellCommand()
/cts/tests/app/src/android/app/cts/
DActivityManagerProcessStateTest.java90 String result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testUidImportanceListener()
106 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testUidImportanceListener()
234 String result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
268 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
272 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
276 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
295 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
308 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
323 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
338 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); in testBackgroundCheckService()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAutoFillServiceTestCase.java21 import static android.autofillservice.cts.Helper.runShellCommand;
73 runShellCommand("input keyevent KEYCODE_WAKEUP"); in removeLockScreen()
85 runShellCommand("settings delete secure %s", AUTOFILL_SERVICE); in resetSettings()
96 runShellCommand("settings delete secure %s", AUTOFILL_SERVICE); in disableService()
157 runShellCommand("settings put secure %s %s default", AUTOFILL_SERVICE, SERVICE_NAME); in enableService()
181 final String result = runShellCommand(command); in assertNoDanglingSessions()
189 runShellCommand("cmd autofill destroy sessions"); in destroyAllSessions()
205 final String service = runShellCommand("settings get secure %s", AUTOFILL_SERVICE); in isServiceEnabled()
210 final String actual = runShellCommand("settings get secure %s", AUTOFILL_SERVICE); in assertServiceStatus()
DHelper.java19 import static android.autofillservice.cts.Helper.runShellCommand;
151 static String runShellCommand(String template, Object...args) { in runShellCommand() method in Helper
156 .runShellCommand(InstrumentationRegistry.getInstrumentation(), command); in runShellCommand()
191 Log.i(TAG, "dumpsys autofill\n\n" + runShellCommand("dumpsys autofill")); in dumpAutofillService()
203 runShellCommand("settings put secure %s %s default", USER_SETUP_COMPLETE, newValue); in setUserComplete()
213 final String isIt = runShellCommand("settings get secure %s", USER_SETUP_COMPLETE); in isUserComplete()
617 runShellCommand(ACCELLEROMETER_CHANGE, 0); in disableAutoRotation()
625 runShellCommand(ACCELLEROMETER_CHANGE, 1); in allowAutoRotation()
635 runShellCommand(ORIENTATION_CHANGE, value); in setOrientation()
647 String[] allProcessDescs = runShellCommand("ps -eo PID,ARGS=CMD").split("\n"); in getOutOfProcessPid()
[all …]
DLoginActivityTest.java34 import static android.autofillservice.cts.Helper.runShellCommand;
605 runShellCommand("appops set " + getContext().getPackageName() in testAutoFillOneDatasetAndSaveHidingOverlays()
678 runShellCommand("appops set " + getContext().getPackageName() in testAutoFillOneDatasetAndSaveHidingOverlays()
1000 runShellCommand("input keyevent KEYCODE_A"); in filterText()
1004 runShellCommand("input keyevent KEYCODE_A"); in filterText()
1008 runShellCommand("input keyevent KEYCODE_DEL"); in filterText()
1012 runShellCommand("input keyevent KEYCODE_DEL"); in filterText()
1016 runShellCommand("input keyevent KEYCODE_A"); in filterText()
1017 runShellCommand("input keyevent KEYCODE_A"); in filterText()
1018 runShellCommand("input keyevent KEYCODE_A"); in filterText()
[all …]
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DBatteryConstraintTest.java56 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery on"); in setUp()
63 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery off"); in tearDown()
64 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery reset"); in tearDown()
69 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery set ac 1"); in setBatteryState()
71 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery unplug"); in setBatteryState()
73 int seq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState()
82 curSeq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState()
88 curCharging = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), in setBatteryState()
100 boolean curCharging = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), in verifyChargingState()
106 boolean curNotLow = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), in verifyBatteryNotLowState()
DConstraintTest.java94 SystemUtil.runShellCommand(getInstrumentation(), "cmd activity set-inactive " in injectInstrumentation()
117 SystemUtil.runShellCommand(getInstrumentation(), "cmd devicestoragemonitor reset"); in tearDown()
163 res = SystemUtil.runShellCommand(getInstrumentation(), in setStorageState()
166 res = SystemUtil.runShellCommand(getInstrumentation(), in setStorageState()
175 curSeq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), in setStorageState()
186 return SystemUtil.runShellCommand(getInstrumentation(), in getJobState()
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DSessionCommitBroadcastTest.java120 assertTrue(TextUtils.join(" ", runShellCommand("am start-user " + userId)) in testBroadcastReceivedForEnablingApp()
124 assertTrue(TextUtils.join(" ", runShellCommand( in testBroadcastReceivedForEnablingApp()
130 runShellCommand("cmd package install-existing --user " + in testBroadcastReceivedForEnablingApp()
143 for (String s : runShellCommand("cmd shortcut get-default-launcher")) { in getDefaultLauncher()
152 runShellCommand("cmd package set-home-activity --user " in setLauncher()
DBasePackageInstallTest.java217 runShellCommand("pm uninstall " + TEST_APP_PKG); in forceUninstall()
220 public ArrayList<String> runShellCommand(String command) throws Exception { in runShellCommand() method in BasePackageInstallTest
/cts/tests/tests/preference2/src/android/preference2/cts/
DTestUtils.java155 runShellCommand("am stack move-task " + id + " 3 true"); in enterMultiWindow()
165 runShellCommand("am stack move-task "+ id +" 1 true"); in leaveMultiWindow()
174 final String output = runShellCommand("am stack list"); in getActivityTaskId()
197 private String runShellCommand(String cmd) { in runShellCommand() method in TestUtils
199 return SystemUtil.runShellCommand(mInstrumentation, cmd); in runShellCommand()
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DSplitSystemUserTest.java31 String curUser = SystemUtil.runShellCommand(getInstrumentation(), "am get-current-user"); in testSplitSystemUserIsDisabled()
38 String splitEnabledStr = trim(SystemUtil.runShellCommand(getInstrumentation(), in testSplitSystemUserIsDisabled()
/cts/hostsidetests/content/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/
DCtsSyncAccountAccessSameCertTestCases.java141 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in allowSyncAdapterRunInBackgroundAndDataInBackground()
144 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in allowSyncAdapterRunInBackgroundAndDataInBackground()
150 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in disallowSyncAdapterRunInBackgroundAndDataInBackground()
153 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in disallowSyncAdapterRunInBackgroundAndDataInBackground()
/cts/hostsidetests/content/test-apps/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/
DCtsSyncAccountAccessOtherCertTestCases.java170 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in allowSyncAdapterRunInBackgroundAndDataInBackground()
173 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in allowSyncAdapterRunInBackgroundAndDataInBackground()
179 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in disallowSyncAdapterRunInBackgroundAndDataInBackground()
182 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in disallowSyncAdapterRunInBackgroundAndDataInBackground()
/cts/tests/tests/print/src/android/print/cts/
DBasePrintTest.java171 SystemUtil.runShellCommand(sInstrumentation, disableImeCommand); in disableImes()
178 SystemUtil.runShellCommand(sInstrumentation, enableImeCommand); in enableImes()
207 sWindowAnimationScaleBefore = Float.parseFloat(SystemUtil.runShellCommand( in setUpClass()
210 SystemUtil.runShellCommand(sInstrumentation, in setUpClass()
217 sTransitionAnimationScaleBefore = Float.parseFloat(SystemUtil.runShellCommand( in setUpClass()
220 SystemUtil.runShellCommand(sInstrumentation, in setUpClass()
227 sAnimatiorDurationScaleBefore = Float.parseFloat(SystemUtil.runShellCommand( in setUpClass()
230 SystemUtil.runShellCommand(sInstrumentation, in setUpClass()
264 SystemUtil.runShellCommand(sInstrumentation, "settings put secure " in setUp()
318 SystemUtil.runShellCommand(sInstrumentation, in tearDownClass()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DLocationUtils.java35 SystemUtil.runShellCommand(instrumentation, command.toString()); in registerMockLocationProvider()
DSystemUtil.java56 public static String runShellCommand(Instrumentation instrumentation, String cmd) in runShellCommand() method in SystemUtil
/cts/tests/tests/provider/src/android/provider/cts/
DSettingsTest.java238 SystemUtil.runShellCommand(getInstrumentation(), "settings put system " in testNoStaleValueModifiedFromOtherProcess()
259 SystemUtil.runShellCommand(getInstrumentation(), "settings put system " in testNoStaleValueModifiedFromMultipleProcesses()
294 SystemUtil.runShellCommand(getInstrumentation(), "settings put system " in testUriChangesUpdatingFromDifferentProcesses()
300 SystemUtil.runShellCommand(getInstrumentation(), "settings put system " in testUriChangesUpdatingFromDifferentProcesses()
/cts/hostsidetests/incident/apps/boundwidgetapp/src/android/appwidget/cts/
DAppWidgetTest.java121 private ArrayList<String> runShellCommand(String command) throws Exception { in runShellCommand() method in AppWidgetTest
167 runShellCommand(GRANT_BIND_APP_WIDGET_PERMISSION_COMMAND); in grantBindAppWidgetPermission()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DRequestPinAppWidgetTest.java137 for (String s : runShellCommand("cmd shortcut get-default-launcher")) { in getDefaultLauncher()
146 runShellCommand("cmd package set-home-activity --user " in setLauncher()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTestCase.java19 import static com.android.compatibility.common.util.SystemUtil.runShellCommand;
159 final String result = runShellCommand(getInstrumentation(), command).trim(); in executeShellCommand()
/cts/hostsidetests/os/test-apps/StaticSharedLibConsumerApp1/src/android/os/lib/consumer1/
DUseSharedLibraryTest.java60 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), "appops set " in testSharedLibrariesProperlyReported()
173 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), "appops set " in testSharedLibrariesProperlyReported()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableParameterizedTest.java88 sTransitionScaleBefore = Float.parseFloat(SystemUtil.runShellCommand( in setUpClass()
92 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in setUpClass()
103 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), in tearDownClass()

12