Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 26) sorted by relevance

12

/platform_testing/libraries/system-helpers/commands-helper/src/android/system/helpers/
DCommandsHelper.java78 public String executeShellCommand(String command) { in executeShellCommand() argument
80 return UiDevice.getInstance(mInstrumentation).executeShellCommand(command); in executeShellCommand()
84 command, e.getMessage())); in executeShellCommand()
95 public List<String> executeShellCommandAndSplitOutput(String command, in executeShellCommandAndSplitOutput() argument
97 return Arrays.asList(executeShellCommand(command).split(separatorChars)); in executeShellCommandAndSplitOutput()
106 public static String execute(String command) { in execute() argument
107 return getInstance().executeShellCommand(command); in execute()
116 public static List<String> executeAndSplitLines(String command) { in executeAndSplitLines() argument
117 return getInstance().executeShellCommandAndSplitOutput(command, LINE_SEPARATORS); in executeAndSplitLines()
/platform_testing/utils/permissions/src/com/android/permissionutils/
DPermissionInstrumentation.java35 String command = arguments.getString(PARAM_COMMAND); in onCreate() local
36 if (command == null) { in onCreate()
39 if (COMMAND_DUMP.equals(command)) { in onCreate()
41 } else if (COMMAND_GRANTALL.equals(command)) { in onCreate()
45 String.format("unrecognized command \"%s\"", command)); in onCreate()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/dsl/
DTestCommandsBuilder.kt54 fun test(command: Flicker.() -> Unit) { in test()
55 testCommands.add(command) in test()
71 fun eachRun(command: Flicker.() -> Unit) { in eachRun()
72 runCommands.add(command) in eachRun()
DFlickerBuilder.kt232 fun transitions(command: Flicker.() -> Unit) { in transitions()
233 transitionCommands.add(command) in transitions()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DFilesystemUtil.java41 public static void saveProcessOutput(Instrumentation instr, String command, File file) in saveProcessOutput() argument
44 command, file.getAbsolutePath())); in saveProcessOutput()
47 saveProcessOutput(instr, command, out); in saveProcessOutput()
52 public static void saveProcessOutput(Instrumentation instr, String command, OutputStream out) in saveProcessOutput() argument
56 ParcelFileDescriptor pfd = instr.getUiAutomation().executeShellCommand(command); in saveProcessOutput()
61 Process process = Runtime.getRuntime().exec(command); in saveProcessOutput()
68 throw new IOException("Thread interrupted waiting for command: " + command); in saveProcessOutput()
73 throw new IOException("Failed to save output of command: " + command); in saveProcessOutput()
DLogGenerator.java41 String command, in saveLog() argument
45 command, in saveLog()
DProcessStatusTracker.java231 public BufferedReader executeShellCommand (String command) { in executeShellCommand() argument
232 ParcelFileDescriptor stdout = getUiAutomation().executeShellCommand(command); in executeShellCommand()
DAuptTestRunner.java696 for (String command : mFinishCommands) {
697 AuptTestRunner.this.getUiAutomation().executeShellCommand(command);
DMemHealthRecord.java494 public static String getProcessOutput(Instrumentation instr, String command) in getProcessOutput() argument
497 FilesystemUtil.saveProcessOutput(instr, command, baos); in getProcessOutput()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DDeviceConfigHelper.java30 String command = String.format("device_config put %s %s %s", namespace, setting, value); in setConfigValue() local
31 return device.executeShellCommand(command); in setConfigValue()
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DMetricUtility.java82 public static byte[] executeCommandBlocking(String command, Instrumentation instr) { in executeCommandBlocking() argument
84 .executeShellCommand(command)); in executeCommandBlocking()
95 Log.e(TAG, "Error executing: " + command, e); in executeCommandBlocking()
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DBackupUtils.java60 protected abstract InputStream executeShellCommand(String command) throws IOException; in executeShellCommand() argument
62 public void executeShellCommandSync(String command) throws IOException { in executeShellCommandSync() argument
63 StreamUtil.drainAndClose(new InputStreamReader(executeShellCommand(command))); in executeShellCommandSync()
66 public String getShellCommandOutput(String command) throws IOException { in getShellCommandOutput() argument
67 return StreamUtil.readInputStream(executeShellCommand(command)); in getShellCommandOutput()
262 public String executeShellCommandAndReturnOutput(String command) throws IOException { in executeShellCommandAndReturnOutput() argument
263 InputStream in = executeShellCommand(command); in executeShellCommandAndReturnOutput()
DLogcatInspector.java25 protected abstract InputStream executeShellCommand(String command) throws IOException; in executeShellCommand() argument
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DJankCollectionHelper.java278 String command = String.format(GFXINFO_COMMAND_RESET, "--"); in clearGfxInfo() local
279 String output = getDevice().executeShellCommand(command); in clearGfxInfo()
284 String command = String.format(GFXINFO_COMMAND_RESET, pkg); in clearGfxInfo() local
285 String output = getDevice().executeShellCommand(command); in clearGfxInfo()
305 String command = String.format(GFXINFO_COMMAND_GET, pkg); in getGfxInfoMetrics() local
306 String output = getDevice().executeShellCommand(command); in getGfxInfoMetrics()
/platform_testing/libraries/collectors-helper/power/src/com/android/helpers/
DPwrStatsUtilHelper.java102 protected String executeShellCommand(String command) throws IOException { in executeShellCommand() argument
107 Log.i(LOG_TAG, "Running '" + command + "'"); in executeShellCommand()
108 return mDevice.executeShellCommand(command); in executeShellCommand()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DPinnerHelper.java214 public String executeShellCommand(String command) throws IOException { in executeShellCommand() argument
216 .executeShellCommand(command); in executeShellCommand()
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
DNotificationHelper.java104 String command = String.format(" %s %s %s %s %s", "settings", "put", "secure", in enableNotificationViaAdb() local
107 executeAdbCommand(command); in enableNotificationViaAdb()
110 public void executeAdbCommand(String command) { in executeAdbCommand() argument
111 Log.i(LOG_TAG, String.format("executing - %s", command)); in executeAdbCommand()
112 mInst.getUiAutomation().executeShellCommand(command); in executeAdbCommand()
DNotificationInteractionTests.java311 final String command = MessageFormat.format(APPOPS_SET_SHELL_COMMAND, in setAppOpsMode() local
313 mDevice.executeShellCommand(command); in setAppOpsMode()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DLockscreenHelper.java216 String command = String.format(" %s %s %s", "input", "keyevent", "82"); in unlockScreen() local
217 mDevice.executeShellCommand(command); in unlockScreen()
221 command = String.format(" %s %s %s", "input", "text", pwd); in unlockScreen()
222 mDevice.executeShellCommand(command); in unlockScreen()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DBaseMetricListener.java275 public byte[] executeCommandBlocking(String command) { in executeCommandBlocking() argument
278 getInstrumentation().getUiAutomation().executeShellCommand(command)); in executeCommandBlocking()
288 Log.e(getTag(), "Error executing: " + command, e); in executeCommandBlocking()
/platform_testing/libraries/automotive-helpers/standard-app-helper/src/android/platform/helpers/
DAbstractAutoStandardAppHelper.java111 protected String executeShellCommand(String command) { in executeShellCommand() argument
113 return mDevice.executeShellCommand(command); in executeShellCommand()
120 command, e.getMessage())); in executeShellCommand()
/platform_testing/libraries/health/runners/longevity/
DREADME.md16 **Template command with stubbed out options.**
33 **Template command with stubbed out options.**
/platform_testing/libraries/system-helpers/permission-helper/src/android/system/helpers/
DPermissionHelper.java347 String command = String.format("pm %s %s %s", permissionOp.toString().toLowerCase(), in grantOrRevokePermissionViaAdb() local
349 Log.d(TEST_TAG, String.format("executing - %s", command)); in grantOrRevokePermissionViaAdb()
350 mUiAutomation.executeShellCommand(command); in grantOrRevokePermissionViaAdb()
/platform_testing/emu_test/
Drun_android_bridge_test.cmd6 REM It takes 1 command line argument.
/platform_testing/tests/health/scenarios/tests/
DAndroid.bp15 // TODO(harrytczhang@): Refactor to share command with the similar genrule in samples. See

12