Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 215) sorted by relevance

123456789

/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
DRemoteManagerTest.java77 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testProcessClientOperations_invalidAction() local
78 PrintWriter pw = new PrintWriter(out); in testProcessClientOperations_invalidAction()
85 out.toString()); in testProcessClientOperations_invalidAction()
96 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testProcessClientOperations_initHandover() local
97 PrintWriter pw = new PrintWriter(out); in testProcessClientOperations_initHandover()
101 assertEquals("{}\n", out.toString()); in testProcessClientOperations_initHandover()
115 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testProcessClientOperations_addCommand() local
116 PrintWriter pw = new PrintWriter(out); in testProcessClientOperations_addCommand()
120 assertEquals("{}\n", out.toString()); in testProcessClientOperations_addCommand()
131 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testProcessClientOperations_addCommand_fail() local
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/jar/
DManifestWriter.java40 public static void writeMainSection(OutputStream out, Attributes attributes) in writeMainSection() argument
50 writeAttribute(out, Attributes.Name.MANIFEST_VERSION, manifestVersion); in writeMainSection()
55 writeAttributes(out, namedAttributes); in writeMainSection()
57 writeSectionDelimiter(out); in writeMainSection()
60 public static void writeIndividualSection(OutputStream out, String name, Attributes attributes) in writeIndividualSection() argument
62 writeAttribute(out, "Name", name); in writeIndividualSection()
65 writeAttributes(out, getAttributesSortedByName(attributes)); in writeIndividualSection()
67 writeSectionDelimiter(out); in writeIndividualSection()
70 static void writeSectionDelimiter(OutputStream out) throws IOException { in writeSectionDelimiter() argument
71 out.write(CRLF); in writeSectionDelimiter()
[all …]
DSignatureFileWriter.java32 public static void writeMainSection(OutputStream out, Attributes attributes) in writeMainSection() argument
42 ManifestWriter.writeAttribute(out, Attributes.Name.SIGNATURE_VERSION, signatureVersion); in writeMainSection()
48 ManifestWriter.writeAttributes(out, namedAttributes); in writeMainSection()
50 writeSectionDelimiter(out); in writeMainSection()
53 public static void writeIndividualSection(OutputStream out, String name, Attributes attributes) in writeIndividualSection() argument
55 ManifestWriter.writeIndividualSection(out, name, attributes); in writeIndividualSection()
58 public static void writeSectionDelimiter(OutputStream out) throws IOException { in writeSectionDelimiter() argument
59 ManifestWriter.writeSectionDelimiter(out); in writeSectionDelimiter()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/utils/
DLittleEndianUtilsTest.java37 ByteBuffer out = ByteBuffer.allocate(2); in write2Le() local
38 LittleEndianUtils.writeUnsigned2Le(out, 0x0102); in write2Le()
39 assertArrayEquals(new byte[] { 2, 1 }, out.array()); in write2Le()
41 out = ByteBuffer.allocate(2); in write2Le()
42 LittleEndianUtils.writeUnsigned2Le(out, 0xfedc); in write2Le()
43 assertArrayEquals(new byte[] { (byte) 0xdc, (byte) 0xfe }, out.array()); in write2Le()
58 ByteBuffer out = ByteBuffer.allocate(COUNT * 2); in readWrite2Le() local
60 LittleEndianUtils.writeUnsigned2Le(out, d); in readWrite2Le()
63 ByteBuffer in = ByteBuffer.wrap(out.array()); in readWrite2Le()
79 ByteBuffer out = ByteBuffer.allocate(4); in write4Le() local
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DCentralDirectory.java450 ByteBuffer out = ByteBuffer.allocate(total); in computeByteRepresentation() local
453 F_SIGNATURE.write(out); in computeByteRepresentation()
454 F_MADE_BY.write(out, cdhs[idx].getMadeBy()); in computeByteRepresentation()
455 F_VERSION_EXTRACT.write(out, compressInfos[idx].getVersionExtract()); in computeByteRepresentation()
456 F_GP_BIT.write(out, cdhs[idx].getGpBit().getValue()); in computeByteRepresentation()
457 F_METHOD.write(out, compressInfos[idx].getMethod().methodCode); in computeByteRepresentation()
460 F_LAST_MOD_TIME.write(out, 0); in computeByteRepresentation()
461 F_LAST_MOD_DATE.write(out, 0); in computeByteRepresentation()
463 F_LAST_MOD_TIME.write(out, cdhs[idx].getLastModTime()); in computeByteRepresentation()
464 F_LAST_MOD_DATE.write(out, cdhs[idx].getLastModDate()); in computeByteRepresentation()
[all …]
DExtraField.java207 public void write(@Nonnull ByteBuffer out) throws IOException { in write() argument
209 out.put(rawData); in write()
213 s.write(out); in write()
260 void write(@Nonnull ByteBuffer out) throws IOException; in write() argument
315 public void write(@Nonnull ByteBuffer out) throws IOException { in write() argument
316 LittleEndianUtils.writeUnsigned2Le(out, headerId); in write()
317 LittleEndianUtils.writeUnsigned2Le(out, data.length); in write()
318 out.put(data); in write()
389 public void write(@Nonnull ByteBuffer out) throws IOException { in write() argument
390 LittleEndianUtils.writeUnsigned2Le(out, ALIGNMENT_ZIP_EXTRA_DATA_FIELD_HEADER_ID); in write()
[all …]
DEocd.java253 ByteBuffer out = ByteBuffer.allocate(F_COMMENT_SIZE.endOffset() + comment.length); in computeByteRepresentation() local
256 F_SIGNATURE.write(out); in computeByteRepresentation()
257 F_NUMBER_OF_DISK.write(out); in computeByteRepresentation()
258 F_DISK_CD_START.write(out); in computeByteRepresentation()
259 F_RECORDS_DISK.write(out, totalRecords); in computeByteRepresentation()
260 F_RECORDS_TOTAL.write(out, totalRecords); in computeByteRepresentation()
261 F_CD_SIZE.write(out, directorySize); in computeByteRepresentation()
262 F_CD_OFFSET.write(out, directoryOffset); in computeByteRepresentation()
263 F_COMMENT_SIZE.write(out, comment.length); in computeByteRepresentation()
264 out.put(comment); in computeByteRepresentation()
[all …]
DStoredEntry.java704 ByteBuffer out = in toHeaderData() local
710 F_LOCAL_SIGNATURE.write(out); in toHeaderData()
711 F_VERSION_EXTRACT.write(out, compressInfo.getVersionExtract()); in toHeaderData()
712 F_GP_BIT.write(out, cdh.getGpBit().getValue()); in toHeaderData()
713 F_METHOD.write(out, compressInfo.getMethod().methodCode); in toHeaderData()
716 F_LAST_MOD_TIME.write(out, 0); in toHeaderData()
717 F_LAST_MOD_DATE.write(out, 0); in toHeaderData()
719 F_LAST_MOD_TIME.write(out, cdh.getLastModTime()); in toHeaderData()
720 F_LAST_MOD_DATE.write(out, cdh.getLastModDate()); in toHeaderData()
723 F_CRC32.write(out, cdh.getCrc32()); in toHeaderData()
[all …]
/tools/external_updater/
Dgit_utils.py23 out = subprocess.PIPE if redirect else None
24 return subprocess.run(cmd, stdout=out, stderr=out,
58 out = _run(['git', 'remote', '-v'], proj_path)
59 lines = out.stdout.decode('utf-8').splitlines()
65 out = _run(['git', 'rev-list', '--left-only', '--ancestry-path',
68 return out.stdout.decode('utf-8').splitlines()
73 out = _run(['git', 'show', '-s', '--format=%ct', commit], cwd=proj_path)
74 return datetime.datetime.fromtimestamp(int(out.stdout))
79 out = _run(['git', 'branch', '-r'], cwd=proj_path)
80 lines = out.stdout.decode('utf-8').splitlines()
[all …]
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DZipUtil.java175 ZipOutputStream out = null; in createZip() local
178 out = new ZipOutputStream(new BufferedOutputStream(fileStream)); in createZip()
179 addToZip(out, dir, new LinkedList<String>()); in createZip()
187 StreamUtil.close(out); in createZip()
224 ZipOutputStream out = null; in createZip() local
227 out = new ZipOutputStream(new BufferedOutputStream(fileStream)); in createZip()
229 addToZip(out, file, new LinkedList<String>()); in createZip()
235 StreamUtil.close(out); in createZip()
247 public static void addToZip(ZipOutputStream out, File file, List<String> relativePathSegs) in addToZip() argument
255 out.putNextEntry(zipEntry); in addToZip()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dandroid_device.py181 out = adb.AdbProxy().devices()
182 return _parse_device_list(out, "device")
192 out = fastboot.FastbootProxy().devices()
193 return _parse_device_list(out, "fastboot")
428 out = self.adb.devices()
429 devices = _parse_device_list(out, "device")
514 out = self.fastboot.getvar("product").strip()
517 lines = out.split('\n', 1)
660 out = self.adb.shell(
663 if package_name not in out:
[all …]
Dadb.py169 ret, out, err = result.exit_status, result.stdout, result.stderr
172 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
173 if "Result: Parcel" in out:
174 return parsing_parcel_output(out)
176 return out or err
179 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
181 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
183 return out
/tools/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/
DFakeSocketServerHelper.java54 PrintWriter out = null; in run() local
59 out = new PrintWriter(client.getOutputStream(), true); in run()
68 out.print("{\"uid\":1,\"status\":true}"); in run()
69 out.print('\n'); in run()
70 out.flush(); in run()
72 out.print("{\"id\":2,\"result\":true,\"error\":null}"); in run()
73 out.print('\n'); in run()
74 out.flush(); in run()
/tools/dexter/slicer/export/slicer/
Ddex_leb128.h98 u1 out = data & 0x7f; in WriteULeb128() local
99 if (out != data) { in WriteULeb128()
100 *ptr++ = out | 0x80; in WriteULeb128()
103 *ptr++ = out; in WriteULeb128()
114 u1 out = value & 0x7f; in WriteSLeb128() local
116 *ptr++ = out | 0x80; in WriteSLeb128()
118 out = value & 0x7f; in WriteSLeb128()
121 *ptr++ = out; in WriteSLeb128()
/tools/test/graphicsbenchmark/performance_tests/hostside/test/com/android/game/qualification/metric/
DHistogramTest.java50 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testSimple() local
51 histogram.plotAscii(out, 2); in testSimple()
57 out.toString()); in testSimple()
86 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testPlotCutoff() local
87 histogram.plotAscii(out, 1); in testPlotCutoff()
94 out.toString()); in testPlotCutoff()
141 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testPlot() local
142 histogram.plotAscii(out, 10); in testPlot()
155 out.toString()); in testPlot()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DApkSignerTool.java79 System.out.println(VERSION); in main()
103 System.out.println(VERSION); in main()
388 System.out.println("Signed"); in sign()
549 System.out.println("Verifies"); in verify()
550 System.out.println( in verify()
553 System.out.println( in verify()
556 System.out.println( in verify()
559 System.out.println( in verify()
562 System.out.println("Verified for SourceStamp: " + result.isSourceStampVerified()); in verify()
564 System.out.println("Number of signers: " + signerCerts.size()); in verify()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DSerializationUtil.java42 ObjectOutputStream out = null; in serialize() local
45 out = new ObjectOutputStream(fileOut); in serialize()
46 out.writeObject(o); in serialize()
52 StreamUtil.close(out); in serialize()
67 ObjectOutputStream out = null; in serializeToString() local
70 out = new ObjectOutputStream(byteOut); in serializeToString()
71 out.writeObject(o); in serializeToString()
74 StreamUtil.close(out); in serializeToString()
DTarUtil.java146 FileOutputStream out = null; in unGzip() local
149 out = new FileOutputStream(outputFile); in unGzip()
150 IOUtils.copy(in, out); in unGzip()
153 StreamUtil.close(out); in unGzip()
167 GZIPOutputStream out = null; in gzip() local
170 out = new GZIPOutputStream(new FileOutputStream(outputFile)); in gzip()
172 IOUtils.copy(in, out); in gzip()
179 StreamUtil.close(out); in gzip()
/tools/loganalysis/src/com/android/loganalysis/util/config/
DArgsOptionParser.java332 StringBuilder out = new StringBuilder(); in getOptionHelp() local
341 out.append(optionNameHelp); in getOptionHelp()
347 out.append(eol); in getOptionHelp()
355 out.append(' '); in getOptionHelp()
357 out.append(option.description()); in getOptionHelp()
358 out.append(getDefaultValueHelp(defaultValue)); in getOptionHelp()
359 out.append(OptionSetter.getEnumFieldValuesAsString(field)); in getOptionHelp()
360 out.append(eol); in getOptionHelp()
363 return out.toString(); in getOptionHelp()
/tools/test/connectivity/acts/framework/acts/test_utils/users/
Dusers.py28 out = android_device.adb.shell("pm list users")
30 for user in re.findall("UserInfo{(.*\d*\w):", out):
37 out = android_device.adb.shell("pm create-user {}".format(user_name))
38 return re.search("Success(.* (.*\d))", out).group(2)
55 out = android_device.adb.shell("dumpsys activity")
56 result = re.search("mCurrentUserId:(\d+)", out)
/tools/tradefederation/core/python-lib/tradefed_py/
Dadb_handler.py30 (out, err) = proc.communicate()
33 return out
34 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
40 (out, err) = proc.communicate()
43 return out
44 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret)
/tools/apksig/src/test/java/com/android/apksig/
DApkSignerTest.java102 System.out.println( in generateGoldenFiles()
679 File out = sign(in, new ApkSigner.Builder(signers).setMinSdkVersion(1)); in testRsaSignedVerifies() local
680 assertVerified(verifyForMinSdkVersion(out, 1)); in testRsaSignedVerifies()
683 out = sign(in, new ApkSigner.Builder(signers).setMinSdkVersion(18)); in testRsaSignedVerifies()
684 assertVerified(verifyForMinSdkVersion(out, 18)); in testRsaSignedVerifies()
687 verifyForMinSdkVersion(out, 17), Issue.JAR_SIG_UNSUPPORTED_SIG_ALG); in testRsaSignedVerifies()
697 File out = sign(in, new ApkSigner.Builder(signers).setMinSdkVersion(1)); in testDsaSignedVerifies() local
698 assertVerified(verifyForMinSdkVersion(out, 1)); in testDsaSignedVerifies()
701 out = sign(in, new ApkSigner.Builder(signers).setMinSdkVersion(21)); in testDsaSignedVerifies()
702 assertVerified(verifyForMinSdkVersion(out, 21)); in testDsaSignedVerifies()
[all …]
/tools/loganalysis/src/com/android/loganalysis/item/
DMemoryHealthItem.java87 JSONObject out = new JSONObject(); in mapToJson() local
90 out.put(entry.getKey(), processToJson(entry.getValue())); in mapToJson()
95 return out; in mapToJson()
99 JSONObject out = new JSONObject(); in processToJson() local
102 out.put(entry.getKey(), entry.getValue()); in processToJson()
107 return out; in processToJson()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DNativeCodeCoverageListenerTest.java121 try (OutputStream out = new FileOutputStream(outputZip)) { in test_logsCoverageZip() argument
122 logs.get(0).writeTo(out); in test_logsCoverageZip()
153 try (OutputStream out = new FileOutputStream(outputZip)) { in testNoCoverageFiles_logsEmptyZip() argument
154 logs.get(0).writeTo(out); in testNoCoverageFiles_logsEmptyZip()
259 try (OutputStream out = new FileOutputStream(outputZip)) { in testNoCollectOnTestEnd_noCoverageMeasurements() argument
260 logs.get(0).writeTo(out); in testNoCollectOnTestEnd_noCoverageMeasurements()
293 try (TarArchiveOutputStream out = in createTar() argument
299 out.putArchiveEntry(entry); in createTar()
300 file.getValue().writeTo(out); in createTar()
301 out.closeArchiveEntry(); in createTar()
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/
DSl4aClient.java223 PrintWriter out = new PrintWriter(mSocket.getOutputStream(), true); in sendCommand() local
224 out.print(message.toString()); in sendCommand()
225 out.print('\n'); in sendCommand()
227 out.flush(); in sendCommand()
244 PrintWriter out = new PrintWriter(mSocket.getOutputStream(), false); in sendThroughSocket() local
245 out.print(message); in sendThroughSocket()
246 out.print('\n'); in sendThroughSocket()
247 out.flush(); in sendThroughSocket()

123456789