Home
last modified time | relevance | path

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

/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DSector.java37 protected final ByteBuffer buffer; field in Sector
44 this.buffer = ByteBuffer.allocate(size); in Sector()
45 this.buffer.order(ByteOrder.LITTLE_ENDIAN); in Sector()
57 buffer.rewind(); in read()
58 buffer.limit(buffer.capacity()); in read()
59 device.read(offset, buffer); in read()
83 buffer.position(0); in write()
84 buffer.limit(buffer.capacity()); in write()
85 device.write(offset, buffer); in write()
90 return buffer.getShort(offset) & 0xffff; in get16()
[all …]
DFsInfoSector.java145 buffer.position(0x00); in init()
146 buffer.put((byte) 0x52); in init()
147 buffer.put((byte) 0x52); in init()
148 buffer.put((byte) 0x61); in init()
149 buffer.put((byte) 0x41); in init()
153 buffer.position(0x1e4); in init()
154 buffer.put((byte) 0x72); in init()
155 buffer.put((byte) 0x72); in init()
156 buffer.put((byte) 0x41); in init()
157 buffer.put((byte) 0x61); in init()
[all …]
DFat32BootSector.java194 buffer.rewind(); in writeCopy()
195 buffer.limit(buffer.capacity()); in writeCopy()
196 device.write(offset, buffer); in writeCopy()
/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DZipUtils.java236 static void assertByteOrderLittleEndian(ByteBuffer buffer) { in assertByteOrderLittleEndian() argument
237 if (buffer.order() != ByteOrder.LITTLE_ENDIAN) { in assertByteOrderLittleEndian()
242 public static int getUnsignedInt16(ByteBuffer buffer, int offset) { in getUnsignedInt16() argument
243 return buffer.getShort(offset) & 0xffff; in getUnsignedInt16()
246 public static int getUnsignedInt16(ByteBuffer buffer) { in getUnsignedInt16() argument
247 return buffer.getShort() & 0xffff; in getUnsignedInt16()
250 static void setUnsignedInt16(ByteBuffer buffer, int offset, int value) { in setUnsignedInt16() argument
254 buffer.putShort(offset, (short) value); in setUnsignedInt16()
257 static void setUnsignedInt32(ByteBuffer buffer, int offset, long value) { in setUnsignedInt32() argument
261 buffer.putInt(offset, (int) value); in setUnsignedInt32()
[all …]
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DChainedDataSourceTest.java72 ByteBuffer buffer = mChain.getByteBuffer(begin, size); in getByteBufferFromAllPossibleRanges() local
75 buffer); in getByteBufferFromAllPossibleRanges()
90 ByteBuffer buffer = ByteBuffer.allocate(size); in copyTo() local
91 mChain.copyTo(begin, size, buffer); in copyTo()
92 assertEquals(size, buffer.position()); in copyTo()
94 buffer.rewind(); in copyTo()
97 buffer); in copyTo()
107 ByteBuffer buffer = mChain.slice(begin, size).getByteBuffer(0, size); in slice() local
111 buffer); in slice()
116 private void assertByteBufferEquals(ByteBuffer buffer, ByteBuffer buffer2) { in assertByteBufferEquals() argument
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DConfigCompletorTest.java46 final String buffer = "run "; in testFullList() local
47 mConfigCompletor.complete(buffer, buffer.length(), mCandidates); in testFullList()
55 final String buffer = "run util/wi"; in testPartialMatch() local
56 mConfigCompletor.complete(buffer, buffer.length(), mCandidates); in testPartialMatch()
/tools/tradefederation/core/src/com/android/tradefed/util/
DConfigCompletor.java42 public int complete(String buffer, int cursor, List candidates) { in complete() argument
44 if (buffer.trim().equals("run")) { in complete()
46 } else if (buffer.startsWith("run ")) { in complete()
47 Matcher matcher = mRunPattern.matcher(buffer); in complete()
51 if (match.startsWith(buffer)) { in complete()
55 return buffer.length() - matcher.group(2).length(); in complete()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/
DRamDisk.java58 final byte[] buffer = new byte[4096]; in readGzipped()
60 int read = zis.read(buffer); in readGzipped()
65 bos.write(buffer, 0, read); in readGzipped()
66 read = zis.read(buffer); in readGzipped()
76 private RamDisk(ByteBuffer buffer, int sectorSize) { in RamDisk() argument
77 this.size = buffer.limit(); in RamDisk()
79 this.data = buffer; in RamDisk()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DByteBufferDataSource.java36 public ByteBufferDataSource(ByteBuffer buffer) { in ByteBufferDataSource() argument
37 this(buffer, true); in ByteBufferDataSource()
44 private ByteBufferDataSource(ByteBuffer buffer, boolean sliceRequired) { in ByteBufferDataSource() argument
45 mBuffer = (sliceRequired) ? buffer.slice() : buffer; in ByteBufferDataSource()
46 mSize = buffer.remaining(); in ByteBufferDataSource()
DChainedDataSource.java86 ByteBuffer buffer = ByteBuffer.allocate(size); in getByteBuffer() local
87 for (; i < mSources.length && buffer.hasRemaining(); i++) { in getByteBuffer()
88 long sizeToCopy = Math.min(mSources[i].size() - offset, buffer.remaining()); in getByteBuffer()
89 mSources[i].copyTo(offset, Math.toIntExact(sizeToCopy), buffer); in getByteBuffer()
92 buffer.rewind(); in getByteBuffer()
93 return buffer; in getByteBuffer()
DByteBufferSink.java31 public ByteBufferSink(ByteBuffer buffer) { in ByteBufferSink() argument
32 mBuffer = buffer; in ByteBufferSink()
/tools/tradefederation/core/python-lib/tradefed_py/
Dtf_main.py32 verbosity=1, failfast=None, catchbreak=None, buffer=None, serial=None): argument
62 if self.buffer is None:
63 self.buffer = True
88 buffer=self.buffer,
Dtf_runner.py150 failfast=False, buffer=False, resultclass=None, serial=None, extra_options=None): argument
153 …unittest.TextTestRunner.__init__(self, stream, descriptions, verbosity, failfast, buffer, resultcl…
175 result.buffer = self.buffer
/tools/apksig/src/main/java/com/android/apksig/util/
DDataSources.java35 public static DataSource asDataSource(ByteBuffer buffer) { in asDataSource() argument
36 if (buffer == null) { in asDataSource()
39 return new ByteBufferDataSource(buffer); in asDataSource()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DExtraField.java147 ByteBuffer buffer = ByteBuffer.wrap(rawData); in parseSegments() local
149 while (buffer.remaining() > 0) { in parseSegments()
150 int headerId = LittleEndianUtils.readUnsigned2Le(buffer); in parseSegments()
151 int dataSize = LittleEndianUtils.readUnsigned2Le(buffer); in parseSegments()
161 if (buffer.remaining() < dataSize) { in parseSegments()
168 + buffer.remaining() in parseSegments()
171 buffer.get(data); in parseSegments()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DAndroidBinXmlParser.java839 private static int getUnsignedInt8(ByteBuffer buffer) { in getUnsignedInt8() argument
840 return buffer.get() & 0xff; in getUnsignedInt8()
843 private static int getUnsignedInt16(ByteBuffer buffer) { in getUnsignedInt16() argument
844 return buffer.getShort() & 0xffff; in getUnsignedInt16()
847 private static long getUnsignedInt32(ByteBuffer buffer) { in getUnsignedInt32() argument
848 return buffer.getInt() & 0xffffffffL; in getUnsignedInt32()
851 private static long getUnsignedInt32(ByteBuffer buffer, int position) { in getUnsignedInt32() argument
852 return buffer.getInt(position) & 0xffffffffL; in getUnsignedInt32()
DApkSigningBlockUtils.java269 public static void checkByteOrderLittleEndian(ByteBuffer buffer) { in checkByteOrderLittleEndian() argument
270 if (buffer.order() != ByteOrder.LITTLE_ENDIAN) { in checkByteOrderLittleEndian()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DGTestXmlResultParserTest.java60 byte[] buffer = new byte[1024]; in readInFile()
62 while ((byteRead = gtest_output.read(buffer)) != -1) { in readInFile()
63 out.write(buffer, 0, byteRead); in readInFile()
/tools/metalava/gradle/wrapper/
Dgradle-wrapper.jar ... .net.URL url String userAgentValue byte[] buffer int numRead int contentLength long progressCounter long numDownloaded java. ...
/tools/dexter/slicer/export/slicer/
Ddex_ir.h429 void AttachBuffer(slicer::Buffer&& buffer) { in AttachBuffer()
430 buffers_.push_back(std::move(buffer)); in AttachBuffer()
/tools/test/connectivity/acts/tests/google/ble/filtering/
DUniqueFilteringTest.py79 buffer = 1000000000 # 1 second
80 if length_of_time > (report_delay_nanos + buffer):
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiItem.kt313 comments.asSequence().joinTo(buffer = sb, separator = "\n") in javadoc()
/tools/tradefederation/core/res/jacoco/
Djacocoagent.jarMETA-INF/MANIFEST.MF META-INF/MTNMINDS.SF META-INF/MTNMINDS ...
Djacocoant.jarMETA-INF/MANIFEST.MF META-INF/MTNMINDS.SF META-INF/MTNMINDS ...
/tools/apkzlib/src/test/resources/testData/packaging/text-files/
Drfc2460.txt2040 without knowledge of the destination reassembly buffer size, and