Home | History | Annotate | Download | only in devicepolicy

Lines Matching refs:command

77      * command output from the device. At any time, if the shell command does not output anything
193 protected void executeShellCommand(final String command) throws Exception {
194 CLog.d("Starting command " + command);
195 String commandOutput = getDevice().executeShellCommand(command);
196 CLog.d("Output for command " + command + ": " + commandOutput);
225 String command = "pm list users";
226 String commandOutput = getDevice().executeShellCommand(command);
227 CLog.i("Output for command " + command + ": " + commandOutput);
272 CLog.d("starting command \"" + stopUserCommand);
273 CLog.d("Output for command " + stopUserCommand + ": "
279 CLog.d("starting command \"" + stopUserCommand + "\" and waiting.");
280 CLog.d("Output for command " + stopUserCommand + ": "
287 // we allow 8min for the command to complete and 4min for the command to start to
483 String command = "pm list features";
484 String commandOutput = getDevice().executeShellCommand(command);
485 CLog.i("Output for command " + command + ": " + commandOutput);
490 // Each line in the output of the command has the format "feature:{FEATURE_VALUE}".
517 String command ="pm create-user " + (guest ? "--guest " : "")
519 CLog.d("Starting command " + command);
520 String commandOutput = getDevice().executeShellCommand(command);
521 CLog.d("Output for command " + command + ": " + commandOutput);
557 String command = "pm create-user --profileOf " + parentUserId + " --managed "
559 CLog.d("Starting command " + command);
560 String commandOutput = getDevice().executeShellCommand(command);
561 CLog.d("Output for command " + command + ": " + commandOutput);
591 String command = "dpm set-profile-owner --user " + userId + " '" + componentName + "'";
592 String commandOutput = getDevice().executeShellCommand(command);
597 CLog.d("Output for command " + command + ": " + commandOutput);
599 CLog.d("Command Failed " + command);
626 String command = "dpm set-active-admin --user " + userId + " '" + componentName + "'";
627 String commandOutput = getDevice().executeShellCommand(command);
634 CLog.d("Output for command " + commandOutput
650 String command = "dpm set-device-owner --user " + userId + " '" + componentName + "'";
651 String commandOutput = getDevice().executeShellCommand(command);
656 CLog.d("Output for command " + command + ": " + commandOutput);
658 CLog.d("Command Failed " + command);
675 String command = "settings --user " + userId + " get " + namespace + " " + name;
676 String commandOutput = getDevice().executeShellCommand(command);
677 CLog.d("Output for command " + command + ": " + commandOutput);
683 String command = "settings --user " + userId + " put " + namespace + " " + name
685 String commandOutput = getDevice().executeShellCommand(command);
686 CLog.d("Output for command " + command + ": " + commandOutput);
691 String command = "dpm remove-active-admin --user " + userId + " '" + componentName + "'";
692 String commandOutput = getDevice().executeShellCommand(command);
693 CLog.d("Output for command " + command + ": " + commandOutput);
699 String command = "dumpsys device_policy";
700 String commandOutput = getDevice().executeShellCommand(command);
734 * Runs pm enable command to enable a package or component. Returns the command result.
738 String command = "pm enable --user " + userId + " " + packageOrComponent;
739 String result = getDevice().executeShellCommand(command);
740 CLog.d("Output for command " + command + ": " + result);
745 * Runs pm disable command to disable a package or component. Returns the command result.
749 String command = "pm disable --user " + userId + " " + packageOrComponent;
750 String result = getDevice().executeShellCommand(command);
751 CLog.d("Output for command " + command + ": " + result);
786 * @return The output of the command
809 * @param command command to pass to SetPolicyActivity
813 * @return The output of the command
816 protected String changePolicy(String command, String extras, int userId, String packageName)
820 + " --es extra-command " + command
824 CLog.d("Output for command " + adbCommand + ": " + commandOutput);
831 protected void changePolicyOrFail(String command, String extras, int userId,
833 String commandOutput = changePolicy(command, extras, userId, packageName);
834 assertTrue("Command was expected to succeed " + commandOutput,
893 String command = "am start -W --user " + userId + " " + packageName + "/" + activityName;
894 getDevice().executeShellCommand(command);