/cts/tests/tests/assist/src/android/assist/cts/ |
DisableContextTest.java | 43 SystemUtil.runShellCommand(getInstrumentation(), 45 SystemUtil.runShellCommand(getInstrumentation(), 58 SystemUtil.runShellCommand(getInstrumentation(), 60 SystemUtil.runShellCommand(getInstrumentation(), 70 SystemUtil.runShellCommand(getInstrumentation(), 72 SystemUtil.runShellCommand(getInstrumentation(), 82 SystemUtil.runShellCommand(getInstrumentation(), 84 SystemUtil.runShellCommand(getInstrumentation(),
|
/cts/hostsidetests/theme/ |
android_device.py | 38 def runShellCommand(self, cmd): 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] [all...] |
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
AutofillRestrictionsTest.java | 86 runShellCommand("settings put secure --user %d %s %s default", mUserId, USER_SETUP_COMPLETE, 90 runShellCommand("settings put secure %s %s default", AUTOFILL_SERVICE, SERVICE_NAME); 92 runShellCommand("settings put --user %d secure %s %s default", 100 runShellCommand("settings delete secure %s", AUTOFILL_SERVICE); 102 runShellCommand("settings delete --user %d secure %s", mUserId, AUTOFILL_SERVICE); 111 actual = runShellCommand("settings get secure %s", AUTOFILL_SERVICE); 113 actual = runShellCommand("settings get --user %d secure %s", mUserId,
|
BaseDeviceAdminTest.java | 78 protected String runShellCommand(String template, Object...args) { 80 Log.d(mTag, "runShellCommand(): " + command); 82 final String result = SystemUtil.runShellCommand(getInstrumentation(), command);
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
AutoFillServiceTestCase.java | 21 import static android.autofillservice.cts.Helper.runShellCommand; 73 runShellCommand("input keyevent KEYCODE_WAKEUP"); 85 runShellCommand("settings delete secure %s", AUTOFILL_SERVICE); 96 runShellCommand("settings delete secure %s", AUTOFILL_SERVICE); 157 runShellCommand("settings put secure %s %s default", AUTOFILL_SERVICE, SERVICE_NAME); 181 final String result = runShellCommand(command); 189 runShellCommand("cmd autofill destroy sessions"); 205 final String service = runShellCommand("settings get secure %s", AUTOFILL_SERVICE); 210 final String actual = runShellCommand("settings get secure %s", AUTOFILL_SERVICE);
|
Helper.java | 19 import static android.autofillservice.cts.Helper.runShellCommand; 151 static String runShellCommand(String template, Object...args) { 153 Log.d(TAG, "runShellCommand(): " + command); 156 .runShellCommand(InstrumentationRegistry.getInstrumentation(), command); 191 Log.i(TAG, "dumpsys autofill\n\n" + runShellCommand("dumpsys autofill")); 203 runShellCommand("settings put secure %s %s default", USER_SETUP_COMPLETE, newValue); 213 final String isIt = runShellCommand("settings get secure %s", USER_SETUP_COMPLETE); 617 runShellCommand(ACCELLEROMETER_CHANGE, 0); 625 runShellCommand(ACCELLEROMETER_CHANGE, 1); 635 runShellCommand(ORIENTATION_CHANGE, value) [all...] |
/cts/tests/tests/multiuser/src/android/multiuser/cts/ |
SplitSystemUserTest.java | 31 String curUser = SystemUtil.runShellCommand(getInstrumentation(), "am get-current-user"); 38 String splitEnabledStr = trim(SystemUtil.runShellCommand(getInstrumentation(),
|
/cts/tests/app/src/android/app/cts/ |
ActivityManagerProcessStateTest.java | 90 String result = SystemUtil.runShellCommand(getInstrumentation(), cmd); 106 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); 110 Log.d("XXXX", SystemUtil.runShellCommand(getInstrumentation(), "dumpsys package " 234 String result = SystemUtil.runShellCommand(getInstrumentation(), cmd); 238 Log.d("XXXX", SystemUtil.runShellCommand(getInstrumentation(), "dumpsys package " 268 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); 272 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); 276 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); 295 result = SystemUtil.runShellCommand(getInstrumentation(), cmd); 308 result = SystemUtil.runShellCommand(getInstrumentation(), cmd) [all...] |
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
BatteryConstraintTest.java | 56 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery on"); 63 SystemUtil.runShellCommand(getInstrumentation(), "cmd jobscheduler monitor-battery off"); 64 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery reset"); 69 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery set ac 1"); 71 SystemUtil.runShellCommand(getInstrumentation(), "cmd battery unplug"); 73 int seq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), 82 curSeq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), 88 curCharging = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), 100 boolean curCharging = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation(), 106 boolean curNotLow = Boolean.parseBoolean(SystemUtil.runShellCommand(getInstrumentation() [all...] |
ConstraintTest.java | 94 SystemUtil.runShellCommand(getInstrumentation(), "cmd activity set-inactive " 117 SystemUtil.runShellCommand(getInstrumentation(), "cmd devicestoragemonitor reset"); 163 res = SystemUtil.runShellCommand(getInstrumentation(), 166 res = SystemUtil.runShellCommand(getInstrumentation(), 175 curSeq = Integer.parseInt(SystemUtil.runShellCommand(getInstrumentation(), 186 return SystemUtil.runShellCommand(getInstrumentation(),
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
LocationUtils.java | 35 SystemUtil.runShellCommand(instrumentation, command.toString());
|
SystemUtil.java | 56 public static String runShellCommand(Instrumentation instrumentation, String cmd)
|
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/ |
SessionCommitBroadcastTest.java | 120 assertTrue(TextUtils.join(" ", runShellCommand("am start-user " + userId)) 124 assertTrue(TextUtils.join(" ", runShellCommand( 130 runShellCommand("cmd package install-existing --user " + 143 for (String s : runShellCommand("cmd shortcut get-default-launcher")) { 152 runShellCommand("cmd package set-home-activity --user "
|
/cts/hostsidetests/content/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/ |
CtsSyncAccountAccessSameCertTestCases.java | 141 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), 144 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), 150 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), 153 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(),
|
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/ |
WorkflowTest.java | 112 private static String runShellCommand(String cmd) throws IOException { 130 sWindowAnimationScaleBefore = Float.parseFloat(runShellCommand( 133 runShellCommand("settings put global window_animation_scale 0"); 138 sTransitionAnimationScaleBefore = Float.parseFloat(runShellCommand( 141 runShellCommand("settings put global transition_animation_scale 0"); 146 sAnimatiorDurationScaleBefore = Float.parseFloat(runShellCommand( 149 runShellCommand("settings put global animator_duration_scale 0"); 158 runShellCommand( 162 runShellCommand( 167 runShellCommand( [all...] |
/cts/tests/tests/preference2/src/android/preference2/cts/ |
TestUtils.java | 155 runShellCommand("am stack move-task " + id + " 3 true"); 165 runShellCommand("am stack move-task "+ id +" 1 true"); 174 final String output = runShellCommand("am stack list"); 197 private String runShellCommand(String cmd) { 199 return SystemUtil.runShellCommand(mInstrumentation, cmd);
|
/cts/hostsidetests/content/test-apps/CtsSyncAccountAccessOtherCertTests/src/com/android/cts/content/ |
CtsSyncAccountAccessOtherCertTestCases.java | 170 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), 173 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), 179 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), 182 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(),
|
/cts/tests/tests/print/src/android/print/cts/ |
BasePrintTest.java | 171 SystemUtil.runShellCommand(sInstrumentation, disableImeCommand); 178 SystemUtil.runShellCommand(sInstrumentation, enableImeCommand); 207 sWindowAnimationScaleBefore = Float.parseFloat(SystemUtil.runShellCommand( 210 SystemUtil.runShellCommand(sInstrumentation, 217 sTransitionAnimationScaleBefore = Float.parseFloat(SystemUtil.runShellCommand( 220 SystemUtil.runShellCommand(sInstrumentation, 227 sAnimatiorDurationScaleBefore = Float.parseFloat(SystemUtil.runShellCommand( 230 SystemUtil.runShellCommand(sInstrumentation, 264 SystemUtil.runShellCommand(sInstrumentation, "settings put secure " 318 SystemUtil.runShellCommand(sInstrumentation [all...] |
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
DocumentsClientTestCase.java | 19 import static com.android.compatibility.common.util.SystemUtil.runShellCommand; 159 final String result = runShellCommand(getInstrumentation(), command).trim();
|
/cts/hostsidetests/incident/apps/boundwidgetapp/src/android/appwidget/cts/ |
AppWidgetTest.java | 121 private ArrayList<String> runShellCommand(String command) throws Exception { 167 runShellCommand(GRANT_BIND_APP_WIDGET_PERMISSION_COMMAND);
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
RequestPinAppWidgetTest.java | 137 for (String s : runShellCommand("cmd shortcut get-default-launcher")) { 146 runShellCommand("cmd package set-home-activity --user "
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/ |
LauncherInstrumentationTestCase.java | 122 runShellCommand("appwidget grantbind --package " + mTargetPackage); 132 runShellCommand("cmd package set-home-activity " + 136 protected void runShellCommand(String command) throws IOException {
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
ServiceProcessController.java | 61 String result = SystemUtil.runShellCommand(mInstrumentation, cmd); 65 Log.d("XXXX", SystemUtil.runShellCommand(getInstrumentation(), "dumpsys package "
|
/cts/tests/tests/provider/src/android/provider/cts/ |
SettingsTest.java | 238 SystemUtil.runShellCommand(getInstrumentation(), "settings put system " 259 SystemUtil.runShellCommand(getInstrumentation(), "settings put system " 294 SystemUtil.runShellCommand(getInstrumentation(), "settings put system " 300 SystemUtil.runShellCommand(getInstrumentation(), "settings put system "
|
/cts/hostsidetests/os/test-apps/StaticSharedLibConsumerApp1/src/android/os/lib/consumer1/ |
UseSharedLibraryTest.java | 60 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), "appops set " 173 SystemUtil.runShellCommand(InstrumentationRegistry.getInstrumentation(), "appops set "
|