Home
last modified time | relevance | path

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

12

/development/gsi/gsi_util/gsi_util/utils/
Dadb_utils.py25 command = ['adb']
27 command += ['-s', serial_num]
28 command += ['root']
31 run_command(command, raise_on_error=False, read_stdout=True, log_stderr=True)
35 command = ['adb']
37 command += ['-s', serial_num]
38 command += ['pull', remote_filename, local_filename]
42 command, raise_on_error=False, read_stdout=True)
Dcmd_utils.py32 def _update_command_for_local(command, kwargs): argument
37 prog = command[0]
41 command[0] = local_prog
44 def run_command(command, read_stdout=False, read_stderr=False, argument
72 _update_command_for_local(command, kwargs)
76 command = ['sudo', 'sh', '-c', command]
78 command = ['sudo'] + command
89 proc = subprocess.Popen(command, **kwargs)
96 command_in_log = command
98 command_in_log = ' '.join(arg for arg in command)
[all …]
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceNetwork.java104 MonkeyCommandReturn translateCommand(List<String> command, CommandQueue queue); in translateCommand() argument
113 public MonkeyCommandReturn translateCommand(List<String> command, in translateCommand() argument
115 if (command.size() > 1) { in translateCommand()
116 String direction = command.get(1); in translateCommand()
137 public MonkeyCommandReturn translateCommand(List<String> command, in translateCommand() argument
139 if (command.size() == 4) { in translateCommand()
140 String actionName = command.get(1); in translateCommand()
144 x = Integer.parseInt(command.get(2)); in translateCommand()
145 y = Integer.parseInt(command.get(3)); in translateCommand()
181 public MonkeyCommandReturn translateCommand(List<String> command, in translateCommand() argument
[all …]
DMonkeySourceNetworkViews.java162 public MonkeyCommandReturn translateCommand(List<String> command, in translateCommand() argument
198 public MonkeyCommandReturn translateCommand(List<String> command, in translateCommand() argument
200 if (command.size() > 2) { in translateCommand()
201 String idType = command.get(1); in translateCommand()
207 node = getNodeByViewId(command.get(2)); in translateCommand()
208 viewQuery = command.get(3); in translateCommand()
209 args = command.subList(4, command.size()); in translateCommand()
215 node = getNodeByAccessibilityIds(command.get(2), command.get(3)); in translateCommand()
216 viewQuery = command.get(4); in translateCommand()
217 args = command.subList(5, command.size()); in translateCommand()
[all …]
/development/python-packages/fastboot/
Ddevice.py136 command = [self.path, 'flashall']
138 command.extend(['--slot', slot])
140 command.append("--skip-secondary")
142 command.append('-w')
143 func(command, stderr=subprocess.STDOUT)
155 command = [self.path, 'flash', partition]
157 command.append(img)
159 command.extend(['--slot', slot])
161 command.append("--skip-secondary")
162 func(command, stderr=subprocess.STDOUT)
[all …]
/development/scripts/
Dbattery_simulator.py35 def echo_run(command): argument
36 print("\x1b[36m[Running: %s]\x1b[0m" % command)
37 os.system(command)
/development/samples/USB/AdbTest/src/com/android/adb/
DAdbMessage.java51 public void set(int command, int arg0, int arg1, byte[] data) { in set() argument
52 mMessageBuffer.putInt(0, command); in set()
57 mMessageBuffer.putInt(20, command ^ 0xFFFFFFFF); in set()
63 public void set(int command, int arg0, int arg1) { in set() argument
64 set(command, arg0, arg1, (byte[])null); in set()
66 public void set(int command, int arg0, int arg1, String data) { in set() argument
69 set(command, arg0, arg1, data.getBytes()); in set()
/development/gsi/gsi_util/
Dgsi_util.py37 def _get_module_name(command): argument
38 return 'gsi_util.commands.' + command
55 for command in self._COMMANDS:
56 module_name = self._get_module_name(command)
/development/tools/repo_diff/service/repodiff/tools/
Dclear_service_account_keys.py7 def run_command(command): argument
8 return_code, output = commands.getstatusoutput(command)
10 raise ValueError("Failed to execute command: %s" % command)
Dupgrade_db.py22 def run_command(command): argument
23 exit_code, output = commands.getstatusoutput(command)
26 raise ValueError("Error running command: %s" % command)
/development/tools/bugreport/src/com/android/bugreport/bugreport/
DBugreportParser.java75 public void parse(String section, String command, Lines<? extends Line> lines); in parse() argument
113 String command = null; in parse() local
121 parseSection(section, lines.copy(pos, lines.pos-1), command, durationMs); in parse()
147 command = (m.groupCount() > 1) ? command = m.group(2) : null; in parse()
158 private void parseSection(String section, Lines<? extends Line> lines, String command, in parseSection() argument
165 parser.parse(section, command, lines); in parseSection()
190 public void parse(String section, String command, Lines<? extends Line> lines) {
211 public void parse(String section, String command, Lines<? extends Line> lines) {
/development/vndk/tools/sourcedr/ninja/tests/testdata/
Drule.ninja2 command = gcc -c -o $outs $ins
5 command = gcc -o $outs $ins
Dbad_after_good.ninja2 command = gcc -c -o $in $out
Ddefault.ninja2 command = gcc -c -o $outs $ins
/development/cmds/monkey/
DREADME.NETWORK.txt28 respond to every command with a line starting with OK for commands
49 This command injects KeyEvent's into the input system. The keycode
63 This command injects a MotionEvent into the input system that
73 This command injects a MotionEvent into the input system that
84 This command will wake the device up from sleep and allow user input.
87 The tap command is a shortcut for the touch command. It will
92 The press command is a shortcut for the key command. The keycode
93 paramter works just like the key command and will automatically send
98 This command will simulate a user typing the given string on the
103 This command lists all the vars that the monkey knows about. They are
[all …]
/development/vndk/tools/header-checker/
DREADME.md8 for shared libraries. The third command compares the ABI dumps with the
21 The `-I` command line option controls the scope of ABIs that must be dumped.
37 For more command line options, run `header-abi-dumper --help`.
55 For more command line options, run `header-abi-linker --help`.
70 For more command line options, run `header-abi-diff --help`.
88 For example, the command below creates reference ABI dumps for all VNDK shared
95 To create reference ABI dumps for a specific library, run the command below:
113 For more command line options, run `utils/create_reference_dumps.py --help`.
/development/samples/JetBoy/
DJETBOY_content_README.txt5 1. Open a command prompt and go to the directory where the JetCreator tool is located.
9 3. Select the IMPORT command and import JETBOY.zip.
11 4. After importing the first time, you can use the OPEN command to open the .jtc file in the folder…
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/
DDumpActivity.java495 final String command = getCommandLine(); in doStartCommand() local
496 if (command.length() > 0) { in doStartCommand()
497 startCommand(command); in doStartCommand()
501 private void startCommand(String command) { in startCommand() argument
504 mCommandHistory.add(command); in startCommand()
506 (mRunningTask = new Dumper(command)).execute(); in startCommand()
511 final String command; field in DumpActivity.Dumper
514 public Dumper(String command) { in Dumper() argument
515 this.command = command; in Dumper()
527 buildCommandLine(command), in doInBackground()
[all …]
/development/tools/winscope/adb_proxy/
Dwinscope_proxy.py239 command = ['adb'] + (['-s', device] if device else []) + params.split(' ')
241 log.debug("Call: " + ' '.join(command))
242 … return subprocess.check_output(command, stderr=subprocess.STDOUT, input=stdin).decode('utf-8')
244 log.debug('Error executing adb command: {}\n{}'.format(' '.join(command), repr(ex)))
245 raise AdbError('Error executing adb command: {}\n{}'.format(' '.join(command), repr(ex)))
247 …log.debug('Error executing adb command: {}\n{}'.format(' '.join(command), ex.output.decode("utf-8"…
331 def __init__(self, device_id, command): argument
333 self.trace_command = command
439 command = StartTrace.TRACE_COMMAND.format(
443 TRACE_THREADS[device_id] = TraceThread(device_id, command.encode('utf-8'))
[all …]
/development/tools/repo_diff/
Dgit_commits_not_upstreamed.py31 command = ['git']
32 command.extend(args)
34 return subprocess.check_output(command, stderr=devull)
Drepo_diff_android.py88 command = "repo sync --jobs=24 --current-branch --quiet"
89 command += " --no-tags --no-clone-bundle"
91 command += " --force-broken"
92 subprocess.check_output(command, cwd=workspace, shell=True)
/development/samples/browseable/CardReader/src/com.example.android.cardreader/
DLoyaltyCardReader.java78 byte[] command = BuildSelectApdu(SAMPLE_LOYALTY_CARD_AID); in onTagDiscovered()
80 Log.i(TAG, "Sending: " + ByteArrayToHexString(command)); in onTagDiscovered()
81 byte[] result = isoDep.transceive(command); in onTagDiscovered()
/development/samples/devbytes/telephony/SmsSampleProject/
Dgradlew.bat27 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
49 @rem Get command-line arguments, handling Windowz variants
55 @rem Slurp the command line arguments.
70 @rem Setup the command line
/development/tools/checkcolor/
Dgradlew.bat27 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
49 @rem Get command-line arguments, handling Windowz variants
55 @rem Slurp the command line arguments.
70 @rem Setup the command line
/development/samples/training/testingfun/
Dgradlew.bat27 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
49 @rem Get command-line arguments, handling Windowz variants
55 @rem Slurp the command line arguments.
70 @rem Setup the command line

12