Home
last modified time | relevance | path

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

/platform_testing/libraries/system-helpers/commands-helper/src/android/system/helpers/
DCommandsHelper.java76 public String executeShellCommand(String command) { in executeShellCommand() argument
78 return UiDevice.getInstance(mInstrumentation).executeShellCommand(command); in executeShellCommand()
82 command, e.getMessage())); in executeShellCommand()
93 public List<String> executeShellCommandAndSplitOutput(String command, in executeShellCommandAndSplitOutput() argument
95 return Arrays.asList(executeShellCommand(command).split(separatorChars)); in executeShellCommandAndSplitOutput()
104 public static String execute(String command) { in execute() argument
105 return getInstance().executeShellCommand(command); in execute()
114 public static List<String> executeAndSplitLines(String command) { in executeAndSplitLines() argument
115 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/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/flicker/src/com/android/server/wm/flicker/monitor/
DScreenRecorder.java54 String command = in start() local
65 Runtime.getRuntime().exec(command); in start()
67 Log.e(TAG, "Error executing " + command, e); in start()
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DMetricUtility.java64 public static byte[] executeCommandBlocking(String command, Instrumentation instr) { in executeCommandBlocking() argument
66 .executeShellCommand(command)); in executeCommandBlocking()
77 Log.e(TAG, "Error executing: " + command, e); in executeCommandBlocking()
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DJankCollectionHelper.java255 String command = String.format(GFXINFO_COMMAND_RESET, "--"); in clearGfxInfo() local
256 String output = getDevice().executeShellCommand(command); in clearGfxInfo()
261 String command = String.format(GFXINFO_COMMAND_RESET, pkg); in clearGfxInfo() local
262 String output = getDevice().executeShellCommand(command); in clearGfxInfo()
282 String command = String.format(GFXINFO_COMMAND_GET, pkg); in getGfxInfoMetrics() local
283 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/tests/functional/applinktests/src/com/android/functional/applinktests/
DAppLinkTests.java259 private String executeShellCommand(String command) { in executeShellCommand() argument
260 if (command == null || command.isEmpty()) { in executeShellCommand()
263 ParcelFileDescriptor pfd = mUiAutomation.executeShellCommand(command); in executeShellCommand()
267 Log.d(TEST_TAG, String.format("Executing command: %s", 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.java217 String command = String.format(" %s %s %s", "input", "keyevent", "82"); in unlockScreen() local
218 mDevice.executeShellCommand(command); in unlockScreen()
222 command = String.format(" %s %s %s", "input", "text", pwd); in unlockScreen()
223 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/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
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
DSystemUiJankTests.java893 String command = String.format("%s %s %s", "input", "text", PIN); in testPinAppearance() local
894 mDevice.executeShellCommand(command); in testPinAppearance()