/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/utils/ |
D | CachedFileContentsTest.java | 38 Files.write("abc", f, Charsets.US_ASCII); in createFileAndCheckWithNoChanges() 52 Files.write("abc", f, Charsets.US_ASCII); in createFileAndCheckChanges() 59 Files.write("def", f, Charsets.US_ASCII); in createFileAndCheckChanges() 68 Files.write("abc", f, Charsets.US_ASCII); in createFileUpdateAndCheckChanges() 75 Files.write("def", f, Charsets.US_ASCII); in createFileUpdateAndCheckChanges() 85 Files.write("bar", f, Charsets.US_ASCII); in immediateChangesDetected() 90 Files.write("xpto", f, Charsets.US_ASCII); in immediateChangesDetected() 97 Files.write("bar", f, Charsets.US_ASCII); in immediateChangesDetectedEvenWithHackedTs() 103 Files.write("xpto", f, Charsets.US_ASCII); in immediateChangesDetectedEvenWithHackedTs() 111 Files.write("bar", f, Charsets.US_ASCII); in immediateChangesWithNoContentChangeNotDetected() [all …]
|
/tools/tradefederation/core/python-lib/tradefed_py/ |
D | tf_runner.py | 51 self.stream.write('TEST_RUN_STARTED %s\n' % json.dumps(resp)) 61 self.stream.write('TEST_STARTED %s\n' % json.dumps(resp)) 71 self.stream.write('TEST_ENDED %s\n' % json.dumps(resp)) 82 self.stream.write('TEST_FAILED %s\n' % json.dumps(resp)) 84 self.stream.write('TEST_ENDED %s\n' % json.dumps(resp)) 95 self.stream.write('TEST_IGNORED %s\n' % json.dumps(resp)) 97 self.stream.write('TEST_ENDED %s\n' % json.dumps(resp)) 108 self.stream.write('TEST_ASSUMPTION_FAILURE %s\n' % json.dumps(resp)) 110 self.stream.write('TEST_ENDED %s\n' % json.dumps(resp)) 120 self.stream.write('TEST_ASSUMPTION_FAILURE %s\n' % json.dumps(resp)) [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | CentralDirectory.java | 442 cdhs[idx].getExtraField().write(ByteBuffer.wrap(extraFields[idx])); in computeByteRepresentation() 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 | Eocd.java | 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()
|
D | StoredEntry.java | 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() 724 F_COMPRESSED_SIZE.write(out, compressInfo.getCompressedSize()); in toHeaderData() [all …]
|
D | ExtraField.java | 207 public void write(@Nonnull ByteBuffer out) throws IOException { in write() method in ExtraField 213 s.write(out); in write() 260 void write(@Nonnull ByteBuffer out) throws IOException; in write() method 315 public void write(@Nonnull ByteBuffer out) throws IOException { in write() method in ExtraField.RawDataSegment 389 public void write(@Nonnull ByteBuffer out) throws IOException { in write() method in ExtraField.AlignmentSegment
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | ProguardWriter.kt | 64 modifiers.isPublic() -> writer.write("public ") in visitMethod() 65 modifiers.isProtected() -> writer.write("protected ") in visitMethod() 66 modifiers.isPrivate() -> writer.write("private ") in visitMethod() 106 modifiers.isPublic() -> writer.write("public ") in visitField() 107 modifiers.isProtected() -> writer.write("protected ") in visitField() 108 modifiers.isPrivate() -> writer.write("private ") in visitField()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | FixedByteArrayOutputStreamTest.java | 53 mOutStream.write(text.getBytes()); in writeTextIntoStreamAndReturn() 103 mOutStream.write(prefix.getBytes()); in testWriteWithWrap() 115 mOutStream.write(text.getBytes(), offset, text.length() - offset); in testLessThanBufferWithOffset() 133 mOutStream.write(prefix.getBytes()); in testWriteWithOffsetAndWrap() 134 mOutStream.write(followup.getBytes(), offset, followup.length() - offset); in testWriteWithOffsetAndWrap()
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | OutputStreamDataSink.java | 53 mOut.write(buf, offset, length); in consume() 63 mOut.write( in consume() 73 mOut.write(tmp, 0, chunkSize); in consume()
|
D | RandomAccessFileDataSink.java | 84 mFile.write(buf, offset, length); in consume() 99 mFileChannel.write(buf); in consume()
|
/tools/apksig/src/main/java/com/android/apksig/internal/jar/ |
D | ManifestWriter.java | 71 out.write(CRLF); in writeSectionDelimiter() 96 out.write(CRLF); in writeLine() 97 out.write(' '); in writeLine() 100 out.write(lineBytes, offset, chunkLength); in writeLine() 105 out.write(CRLF); in writeLine()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | ExtraFieldTest.java | 94 zos.write(new byte[] { 1, 2, 3 }); in readEntryWithNoExtraField() 122 zos.write(new byte[] { 1, 2, 3 }); in readSingleExtraField() 134 segments.get(0).write(ByteBuffer.wrap(segData)); in readSingleExtraField() 169 zos.write(new byte[] { 1, 2, 3 }); in readMultipleExtraFields() 182 segments.get(0).write(ByteBuffer.wrap(segData)); in readMultipleExtraFields() 187 segments.get(1).write(ByteBuffer.wrap(segData)); in readMultipleExtraFields() 192 segments.get(2).write(ByteBuffer.wrap(segData)); in readMultipleExtraFields() 234 s.write(ByteBuffer.wrap(sData)); in addExtraFieldToExistingEntry() 330 s.write(ByteBuffer.wrap(sData)); in updateExtraFieldOfExistingEntry()
|
D | ZFileTest.java | 91 Files.write(new byte[0], zf); in readExistingEmptyFile() 226 zos.write(new byte[] { 1, 2, 3, 4 }); 313 zos.write(new byte[] { 1, 2, 3, 4, 5 }); 315 zos.write(new byte[] { 6, 7, 8 }); 317 zos.write(new byte[] { 9, 0, 1, 2, 3, 4 }); 353 zos.write(new byte[]{1, 2, 3, 4, 5}); 355 zos.write(new byte[]{6, 7, 8}); 357 zos.write(new byte[]{9, 0, 1, 2, 3, 4}); 395 zos.write(new byte[]{1, 2, 3, 4, 5}); 397 zos.write(new byte[]{6, 7, 8}); [all …]
|
D | ZipMergeTest.java | 100 fooOut.write(wBytes); in mergeZipWithDeferredCrc() 132 fooOut.write(wBytes); in mergeZipKeepsDeflatedAndStored() 138 fooOut.write(lBytes); in mergeZipKeepsDeflatedAndStored() 180 fooOut.write(wBytes); in mergeZipWithSorting() 186 fooOut.write(lBytes); in mergeZipWithSorting()
|
/tools/tradefederation/core/atest/ |
D | atest_utils.py | 79 sys.stdout.write('\n') 98 sys.stdout.write('\r%s\r' % white_space) 99 sys.stdout.write('%s' % line.strip()) 102 sys.stdout.write(_BASH_RESET_CODE)
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | SizeLimitedOutputStream.java | 180 public synchronized void write(int data) throws IOException { in write() method in SizeLimitedOutputStream 184 mCurrentOutputStream.write(data); in write() 191 public synchronized void write(byte[] b, int off, int len) throws IOException { in write() method in SizeLimitedOutputStream 203 mCurrentOutputStream.write(b, off, (int)sizeToWrite); in write()
|
D | PropertyChanger.java | 66 bw.write(line + '\n'); in changeProperties() 70 bw.write(String.format("%s=%s\n", entry.getKey(), entry.getValue())); in changeProperties()
|
D | FixedByteArrayOutputStream.java | 69 public void write(int data) throws IOException { in write() method in FixedByteArrayOutputStream 79 public void write(byte[] b, int off, int len) throws IOException { in write() method in FixedByteArrayOutputStream
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | FatFile.java | 144 public void write(long offset, ByteBuffer srcBuf) in write() method in FatFile 160 private void updateTimeStamps(boolean write) { in updateTimeStamps() argument 164 if (write) { in updateTimeStamps()
|
D | Fat16RootDirectory.java | 84 protected void write(ByteBuffer data) throws IOException { in write() method in Fat16RootDirectory 85 this.device.write(deviceOffset, data); in write()
|
D | AbstractDirectory.java | 87 protected abstract void write(ByteBuffer data) throws IOException; in write() method in AbstractDirectory 221 entry.write(data); in flush() 231 labelEntry.write(data); in flush() 240 write(data); in flush()
|
D | Sector.java | 80 public final void write() throws IOException { in write() method in Sector 85 device.write(offset, buffer); in write()
|
/tools/tradefederation/core/src/com/android/tradefed/log/ |
D | ConsoleReaderOutputStream.java | 110 public synchronized void write(byte[] b, int off, int len) throws IOException { in write() method in ConsoleReaderOutputStream 135 public synchronized void write(int b) throws IOException { in write() method in ConsoleReaderOutputStream
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/ |
D | InputStreamBerDataValueReader.java | 253 mBuf.write(b); in read() 262 mBuf.write(b, 0, len); in read() 271 mBuf.write(b, off, len); in read() 285 mBuf.write(buf, 0, len); in skip()
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ |
D | Asn1DerEncoder.java | 255 encodedValue.write(firstByte); in toOid() 268 encodedValue.write(node); in toOid() 272 encodedValue.write(0x80 | (node >> 7)); in toOid() 273 encodedValue.write(node & 0x7f); in toOid() 277 encodedValue.write(0x80 | (node >> 14)); in toOid() 278 encodedValue.write(0x80 | ((node >> 7) & 0x7f)); in toOid() 279 encodedValue.write(node & 0x7f); in toOid()
|