/platform_testing/libraries/system-helpers/commands-helper/src/android/system/helpers/ |
D | CommandsHelper.java | 78 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/ |
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/flicker/src/com/android/server/wm/flicker/dsl/ |
D | TestCommandsBuilder.kt | 54 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()
|
D | FlickerBuilder.kt | 232 fun transitions(command: Flicker.() -> Unit) { in transitions() 233 transitionCommands.add(command) in transitions()
|
/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/collectors-helper/statsd/src/com/android/helpers/ |
D | DeviceConfigHelper.java | 30 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/ |
D | MetricUtility.java | 82 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/ |
D | BackupUtils.java | 60 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()
|
D | LogcatInspector.java | 25 protected abstract InputStream executeShellCommand(String command) throws IOException; in executeShellCommand() argument
|
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/ |
D | JankCollectionHelper.java | 278 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/ |
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/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | PinnerHelper.java | 214 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/ |
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 | 216 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/ |
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/automotive-helpers/standard-app-helper/src/android/platform/helpers/ |
D | AbstractAutoStandardAppHelper.java | 111 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/ |
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
|