/platform_testing/libraries/system-helpers/commands-helper/src/android/system/helpers/ |
D | CommandsHelper.java | 76 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/ |
D | PermissionInstrumentation.java | 35 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/ |
D | FilesystemUtil.java | 41 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()
|
D | LogGenerator.java | 41 String command, in saveLog() argument 45 command, in saveLog()
|
D | ProcessStatusTracker.java | 231 public BufferedReader executeShellCommand (String command) { in executeShellCommand() argument 232 ParcelFileDescriptor stdout = getUiAutomation().executeShellCommand(command); in executeShellCommand()
|
D | AuptTestRunner.java | 696 for (String command : mFinishCommands) { 697 AuptTestRunner.this.getUiAutomation().executeShellCommand(command);
|
D | MemHealthRecord.java | 494 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/ |
D | ScreenRecorder.java | 54 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/ |
D | MetricUtility.java | 64 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/ |
D | JankCollectionHelper.java | 255 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/ |
D | PwrStatsUtilHelper.java | 102 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/ |
D | AppLinkTests.java | 259 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/ |
D | NotificationHelper.java | 104 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()
|
D | NotificationInteractionTests.java | 311 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/ |
D | LockscreenHelper.java | 217 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/ |
D | BaseMetricListener.java | 275 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/ |
D | README.md | 16 **Template command with stubbed out options.** 33 **Template command with stubbed out options.**
|
/platform_testing/libraries/system-helpers/permission-helper/src/android/system/helpers/ |
D | PermissionHelper.java | 347 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/ |
D | run_android_bridge_test.cmd | 6 REM It takes 1 command line argument.
|
/platform_testing/tests/health/scenarios/tests/ |
D | Android.bp | 15 // TODO(harrytczhang@): Refactor to share command with the similar genrule in samples. See
|
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/ |
D | SystemUiJankTests.java | 893 String command = String.format("%s %s %s", "input", "text", PIN); in testPinAppearance() local 894 mDevice.executeShellCommand(command); in testPinAppearance()
|