/tools/apksig/src/main/java/com/android/apksig/internal/jar/ |
D | ManifestWriter.java | 40 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 …]
|
D | SignatureFileWriter.java | 32 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/ |
D | LittleEndianUtilsTest.java | 37 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/tradefederation/core/tests/src/com/android/tradefed/command/remote/ |
D | RemoteManagerTest.java | 77 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/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/ |
D | FakeSocketServerHelper.java | 54 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/tradefederation/core/src/com/android/tradefed/util/ |
D | ZipUtil.java | 158 ZipOutputStream out = null; in createZip() local 161 out = new ZipOutputStream(new BufferedOutputStream(fileStream)); in createZip() 162 addToZip(out, dir, new LinkedList<String>()); in createZip() 170 StreamUtil.close(out); in createZip() 207 ZipOutputStream out = null; in createZip() local 210 out = new ZipOutputStream(new BufferedOutputStream(fileStream)); in createZip() 212 addToZip(out, file, new LinkedList<String>()); in createZip() 218 StreamUtil.close(out); in createZip() 230 public static void addToZip(ZipOutputStream out, File file, List<String> relativePathSegs) in addToZip() argument 238 out.putNextEntry(zipEntry); in addToZip() [all …]
|
D | StringEscapeUtils.java | 39 StringBuilder out = new StringBuilder(); in escapeShell() local 45 out.append("\\$"); in escapeShell() 48 out.append("\\\\"); in escapeShell() 51 out.append(ch); in escapeShell() 55 return out.toString(); in escapeShell()
|
D | SerializationUtil.java | 39 ObjectOutputStream out = null; in serialize() local 42 out = new ObjectOutputStream(fileOut); in serialize() 43 out.writeObject(o); in serialize() 49 StreamUtil.close(out); in serialize()
|
D | TarUtil.java | 117 FileOutputStream out = null; in unGzip() local 120 out = new FileOutputStream(outputFile); in unGzip() 121 IOUtils.copy(in, out); in unGzip() 124 StreamUtil.close(out); in unGzip() 138 GZIPOutputStream out = null; in gzip() local 141 out = new GZIPOutputStream(new FileOutputStream(outputFile)); in gzip() 143 IOUtils.copy(in, out); in gzip() 150 StreamUtil.close(out); in gzip()
|
/tools/appbundle/bundletool/java/com/android/tools/appbundle/bundletool/ |
D | BundleToolMain.java | 40 System.out.println(String.format("Error while parsing the flags: %s", e.getMessage())); in main() 46 System.out.println("Error: you have to specify a command"); in main() 69 System.out.println("Error: unrecognized command."); in main() 73 System.out.println("Error: " + e.getMessage()); in main() 79 System.out.println( in help() 83 System.out.println("Type: bundletool help [command] to learn more about a given command."); in help() 96 System.out.println("Help is not yet available."); in help() 99 System.out.println("Unrecognized command."); in help()
|
D | BuildModuleCommand.java | 148 System.out.println( in help() 164 System.out.println(); in help() 165 System.out.println( in help() 168 System.out.println(); in help() 169 System.out.println("--output: Path to the zip file to build."); in help() 170 System.out.printf( in help() 174 System.out.printf( in help() 179 System.out.printf( in help() 182 System.out.printf( in help() 188 System.out.printf( in help() [all …]
|
/tools/dexter/slicer/export/slicer/ |
D | dex_leb128.h | 98 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/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | CentralDirectory.java | 450 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 …]
|
D | ExtraField.java | 207 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 …]
|
D | Eocd.java | 253 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 …]
|
D | StoredEntry.java | 704 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/tradefederation/core/python-lib/tradefed_py/ |
D | adb_handler.py | 30 (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/loganalysis/src/com/android/loganalysis/item/ |
D | MemoryHealthItem.java | 87 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/test/connectivity/acts/framework/acts/controllers/ |
D | android_device.py | 197 out = adb.AdbProxy().devices() 198 return _parse_device_list(out, "device") 208 out = fastboot.FastbootProxy().devices() 209 return _parse_device_list(out, "fastboot") 446 out = self.adb.devices() 447 devices = _parse_device_list(out, "device") 503 out = self.fastboot.getvar("product").strip() 506 lines = out.split('\n', 1) 633 out = self.adb.shell( 636 if package_name not in out: [all …]
|
D | adb.py | 164 ret, out, err = result.exit_status, result.stdout, result.stderr 167 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret) 168 if "Result: Parcel" in out: 169 return parsing_parcel_output(out) 171 return out or err 173 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret) 175 return out
|
/tools/loganalysis/src/com/android/loganalysis/util/config/ |
D | ArgsOptionParser.java | 332 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/tradefederation/core/src/com/android/tradefed/config/ |
D | IConfigurationFactory.java | 101 public void printHelp(PrintStream out); in printHelp() argument 120 public void printHelpForConfig(String[] args, boolean importantOnly, PrintStream out); in printHelpForConfig() argument 128 public void dumpConfig(String configName, PrintStream out); in dumpConfig() argument
|
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/ |
D | WifiMonitorService.java | 93 FileOutputStream out = null; in monitor() local 103 out = openFileOutput(DATA_FILE, Context.MODE_APPEND); in monitor() 104 final PrintWriter writer = new PrintWriter(out); in monitor() 111 closeSilently(out); in monitor() 166 FileOutputStream out = null; in clearData() local 168 out = context.openFileOutput(DATA_FILE, 0); in clearData() 172 closeSilently(out); in clearData()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/ |
D | FullApkSignTest.java | 51 File out = new File(mTemporaryFolder.getRoot(), "apk"); in testSignature() local 65 ZFile zf = new ZFile(out, options); in testSignature() 84 byte[] read1 = ApkZFileTestUtils.readSegment(out, f1DataStart, f1Data.length); in testSignature() 86 byte[] read2 = ApkZFileTestUtils.readSegment(out, f2DataStart, f2Data.length); in testSignature() 92 ZFile zf2 = new ZFile(out); in testSignature()
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | OutputStreamDataSink.java | 37 public OutputStreamDataSink(OutputStream out) { in OutputStreamDataSink() argument 38 if (out == null) { in OutputStreamDataSink() 41 mOut = out; in OutputStreamDataSink()
|