Home
last modified time | relevance | path

Searched refs:output (Results 1 – 25 of 94) sorted by relevance

1234

/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DSimpleWebServer.java121 PrintStream output = null; in handle() local
138 output = new PrintStream(socket.getOutputStream()); in handle()
142 writeServerError(output); in handle()
147 writeServerError(output); in handle()
152 output.println("HTTP/1.0 200 OK"); in handle()
153 output.println("Content-Type: " + detectMimeType(route)); in handle()
154 output.println("Content-Length: " + bytes.length); in handle()
155 output.println(); in handle()
156 output.write(bytes); in handle()
157 output.flush(); in handle()
[all …]
/development/testrunner/
Dadb_interface.py156 output = self.SendShellCommand("ls %s" % src)
159 if error in output:
165 output = self.SendCommand("root")
166 if "adbd is already running as root" in output:
168 elif "restarting adbd as root" in output:
174 logger.Log("Unrecognized output from adb root: %s" % output)
362 output = self.SendShellCommand(command)
363 return output.startswith("instrumentation:")
425 output = self.SendShellCommand(command, retry_count=1)
426 if ((not invert and expected in output)
[all …]
Drun_command.py107 output = pipe.communicate(input=stdin_input)[0]
108 if output is not None and len(output) > 0:
109 so.append(output)
143 output = "".join(so)
145 raise errors.AbortError(msg=output)
Dcreate_test.py111 output = string.Template(TestsConsts.TEST_MANIFEST_TEMPLATE).substitute(mapping)
119 tests_manifest.write(output)
161 output = string.Template(TestsConsts.TEST_MK_TEMPLATE).substitute(mapping)
169 tests_mk.write(output)
Druntest.py329 output = run_command.RunCommand(cmd, return_output=True, timeout_time=600)
337 output = run_command.RunCommand(cmd, return_output=True, timeout_time=600)
339 logger.SilentLog(output)
342 self._DoInstall(output, test_requires_permissions, filter_re=filter_re)
410 output = run_command.RunCommand(cmd, return_output=True)
411 logger.SilentLog(output)
413 self._DoInstall(output, test_requires_permissions)
470 output = self._adb.SendShellCommand("cat /data/local.prop")
471 if not self._DALVIK_VERIFIER_OFF_PROP in output:
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DNode.java219 StringBuilder output = new StringBuilder("Node "); in toString() local
220 if (isCurrent()) output.append("current "); in toString()
221 if (isNew()) output.append("new "); in toString()
222 if (isModified()) output.append("modified "); in toString()
223 output.append("<<"); in toString()
224 if (mIsTaskNode) output.append("taskId=").append(mTaskId); in toString()
225 else output.append(mName.toShortString()); in toString()
227 output.append("intent:("); in toString()
229 output.append(flag.replace(FlagUtils.INTENT_FLAG_PREFIX, "")).append(','); in toString()
231 output.append(")"); in toString()
[all …]
DAMControl.java52 StringBuilder output = new StringBuilder(); in execCmd() local
63 output.append(line).append('\n'); in execCmd()
70 output.append(line).append('\n'); in execCmd()
76 lineCount, cmd.split(" ")[0], output.toString())); in execCmd()
79 if (BuildConfig.DEBUG) Log.e(TAG, output.append(e.getMessage()).toString()); in execCmd()
82 return output.toString(); in execCmd()
/development/python-packages/gdbrunner/
D__init__.py115 output, _ = device.shell([ps_script])
116 return parse_ps_output(output)
119 def parse_ps_output(output): argument
121 output = adb.split_lines(output.replace("\r", ""))
122 columns = output.pop(0).split()
127 while output:
128 columns = output.pop().split()
286 output, _ = device.shell(cmd)
287 return adb.split_lines(output)[0]
335 output = subprocess.check_output(args, universal_newlines=True)
[all …]
/development/scripts/
Dcompare-installed-size.py80 output = open("module_%d.csv" % idx, 'w')
83 output.write("%s, %d\n" % (key, bin_sizes[idx][key]))
84 output.close()
98 output = open("comparison.csv", 'w')
100 output.write("%s, %s, %s, %s, %d\n" %
104 output.close()
Ddisassemble_tombstone.py64 for output in ProcessRegisterList(line_generator, register_text):
65 yield output
69 for output in ProcessCodeBlock(
71 yield output
/development/python-packages/fastboot/
Ddevice.py85 output = _subprocess_check_output([self.path, 'getvar', name],
91 if output[0] == "< waiting for any device >":
93 result = re.search(r'{}:\s*(.*)'.format(name), output[out])
105 output = _subprocess_check_output([self.path, 'getvar', 'all'],
108 for line in output:
235 output=e.output)
/development/tools/repo_diff/service/repodiff/tools/
Dclear_service_account_keys.py8 return_code, output = commands.getstatusoutput(command)
11 return output
19 def parse_list_key_output(output): argument
20 for line in [l for l in output.splitlines() if l][1:-1]:
/development/testrunner/test_defs/
Dnative_test.py88 output = adb.SendShellCommand("'%s 2>&1;echo -n exit code:$?'" %
91 success = output.endswith("exit code:0")
95 pos = output.rfind("exit code")
96 output = output[0:pos]
97 logger.Log(output)
/development/tools/mkstubs/src/com/android/mkstubs/sourcer/
DAnnotationSourcer.java33 public AnnotationSourcer(Output output) { in AnnotationSourcer() argument
34 this(output, false /*isArray*/); in AnnotationSourcer()
37 public AnnotationSourcer(Output output, boolean isArray) { in AnnotationSourcer() argument
39 mOutput = output; in AnnotationSourcer()
/development/tools/privapp_permissions/
Dprivapp_permissions.py124 output = subprocess.check_output([self.path] + arguments,
126 return output.decode(encoding='UTF-8')
246 output = get_output('%s -s %s get-state' %
253 if 'device' not in output:
263 output = get_output(command)
268 if 'device' in output:
278 output = get_output(get_serials_cmd)
280 if len(output.split()) > 1:
284 return output.strip()
398 output = subprocess.check_output(command, shell=True)
[all …]
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceNetwork.java552 private PrintWriter output; field in MonkeySourceNetwork
585 output = new PrintWriter(clientSocket.getOutputStream(), true); in startServer()
595 output.close(); in stopServer()
769 output.println(ERROR_STR); in returnError()
778 output.print(ERROR_STR); in returnError()
779 output.print(":"); in returnError()
780 output.println(msg); in returnError()
787 output.println(OK_STR); in returnOk()
796 output.print(OK_STR); in returnOk()
797 output.print(":"); in returnOk()
[all …]
DMonkeyGetFrameRateEvent.java123 String output = result.readLine(); in injectEvent() local
125 if (output != null) { in injectEvent()
127 mStartFrameNo = Integer.parseInt(getNumberOfFrames(output), 16); in injectEvent()
130 mEndFrameNo = Integer.parseInt(getNumberOfFrames(output), 16); in injectEvent()
DMonkeyGetAppFrameRateEvent.java136 String output = getNumberOfFrames(result); in injectEvent() local
138 if (output != null) { in injectEvent()
140 sStartFrameNo = Integer.parseInt(output); in injectEvent()
143 sEndFrameNo = Integer.parseInt(output); in injectEvent()
/development/samples/browseable/CardEmulation/src/com.example.android.cardemulation/
DMainActivity.java79 ViewAnimator output = (ViewAnimator) findViewById(R.id.sample_output); in onOptionsItemSelected() local
81 output.setDisplayedChild(1); in onOptionsItemSelected()
83 output.setDisplayedChild(0); in onOptionsItemSelected()
/development/samples/browseable/FloatingActionButtonBasic/src/com.example.android.floatingactionbuttonbasic/
DMainActivity.java79 ViewAnimator output = (ViewAnimator) findViewById(R.id.sample_output); in onOptionsItemSelected() local
81 output.setDisplayedChild(1); in onOptionsItemSelected()
83 output.setDisplayedChild(0); in onOptionsItemSelected()
/development/samples/browseable/RecyclerView/src/com.example.android.recyclerview/
DMainActivity.java79 ViewAnimator output = (ViewAnimator) findViewById(R.id.sample_output); in onOptionsItemSelected() local
81 output.setDisplayedChild(1); in onOptionsItemSelected()
83 output.setDisplayedChild(0); in onOptionsItemSelected()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.swiperefreshlistfragment/
DMainActivity.java79 ViewAnimator output = (ViewAnimator) findViewById(R.id.sample_output); in onOptionsItemSelected() local
81 output.setDisplayedChild(1); in onOptionsItemSelected()
83 output.setDisplayedChild(0); in onOptionsItemSelected()
/development/samples/browseable/DragAndDropAcrossApps/DropTarget/src/com.example.android/droptarget/
DMainActivity.java79 ViewAnimator output = (ViewAnimator) findViewById(R.id.sample_output); in onOptionsItemSelected() local
81 output.setDisplayedChild(1); in onOptionsItemSelected()
83 output.setDisplayedChild(0); in onOptionsItemSelected()
/development/samples/browseable/NfcProvisioning/src/com.example.android.nfcprovisioning/
DMainActivity.java79 ViewAnimator output = (ViewAnimator) findViewById(R.id.sample_output); in onOptionsItemSelected() local
81 output.setDisplayedChild(1); in onOptionsItemSelected()
83 output.setDisplayedChild(0); in onOptionsItemSelected()
/development/samples/browseable/ScreenCapture/src/com.example.android.screencapture/
DMainActivity.java79 ViewAnimator output = (ViewAnimator) findViewById(R.id.sample_output); in onOptionsItemSelected() local
81 output.setDisplayedChild(1); in onOptionsItemSelected()
83 output.setDisplayedChild(0); in onOptionsItemSelected()

1234