Home
last modified time | relevance | path

Searched defs:offset (Results 1 – 25 of 76) sorted by relevance

1234

/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DSector.java32 private final long offset; field in Sector
41 protected Sector(BlockDevice device, long offset, int size) { in Sector()
89 protected int get16(int offset) { in get16()
93 protected long get32(int offset) { in get32()
97 protected int get8(int offset) { in get8()
101 protected void set16(int offset, int value) { in set16()
106 protected void set32(int offset, long value) { in set32()
111 protected void set8(int offset, int value) { in set8()
DLittleEndian.java40 public static int getUInt8(byte[] src, int offset) { in getUInt8()
50 public static int getUInt16(byte[] src, int offset) { in getUInt16()
62 public static long getUInt32(byte[] src, int offset) { in getUInt32()
73 public static void setInt8(byte[] dst, int offset, int value) { in setInt8()
80 public static void setInt16(byte[] dst, int offset, int value) { in setInt16()
88 public static void setInt32(byte[] dst, int offset, long value) in setInt32()
DFatUtils.java46 long offset = resSects * sectSize; in getFatOffset() local
66 long offset = getFatOffset(bs, 0); in getRootDirOffset() local
81 long offset = getRootDirOffset(bs); in getFilesOffset() local
DFsInfoSector.java47 private FsInfoSector(BlockDevice device, long offset) { in FsInfoSector()
80 final int offset = offset(bs); in create() local
93 private static int offset(Fat32BootSector bs) { in offset() method in FsInfoSector
DFatFile.java111 public void read(long offset, ByteBuffer dest) throws IOException { in read()
144 public void write(long offset, ByteBuffer srcBuf) in write()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DByteArrayDataSink.java49 public void consume(byte[] buf, int offset, int length) throws IOException { in consume()
116 public ByteBuffer getByteBuffer(long offset, int size) { in getByteBuffer()
124 public void feed(long offset, long size, DataSink sink) throws IOException { in feed()
132 public void copyTo(long offset, int size, ByteBuffer dest) throws IOException { in copyTo()
139 private void checkChunkValid(long offset, long size) { in checkChunkValid()
162 public DataSource slice(long offset, long size) { in slice()
175 private SliceDataSource(int offset, int size) { in SliceDataSource()
186 public void feed(long offset, long size, DataSink sink) throws IOException { in feed()
194 public ByteBuffer getByteBuffer(long offset, int size) throws IOException { in getByteBuffer()
202 public void copyTo(long offset, int size, ByteBuffer dest) throws IOException { in copyTo()
[all …]
DByteBufferDataSource.java55 public ByteBuffer getByteBuffer(long offset, int size) { in getByteBuffer()
78 public void copyTo(long offset, int size, ByteBuffer dest) { in copyTo()
83 public void feed(long offset, long size, DataSink sink) throws IOException { in feed()
91 public ByteBufferDataSource slice(long offset, long size) { in slice()
104 private void checkChunkValid(long offset, long size) { in checkChunkValid()
DFileChannelDataSource.java56 public FileChannelDataSource(FileChannel channel, long offset, long size) { in FileChannelDataSource()
82 public FileChannelDataSource slice(long offset, long size) { in slice()
93 public void feed(long offset, long size, DataSink sink) throws IOException { in feed()
127 public void copyTo(long offset, int size, ByteBuffer dest) throws IOException { in copyTo()
159 public ByteBuffer getByteBuffer(long offset, int size) throws IOException { in getByteBuffer()
169 private static void checkChunkValid(long offset, long size, long sourceSize) { in checkChunkValid()
DChainedDataSource.java43 public void feed(long offset, long size, DataSink sink) throws IOException { in feed()
70 public ByteBuffer getByteBuffer(long offset, int size) throws IOException { in getByteBuffer()
97 public void copyTo(long offset, int size, ByteBuffer dest) throws IOException { in copyTo()
102 public DataSource slice(long offset, long size) { in slice()
134 private Pair<Integer, Long> locateDataSource(long offset) { in locateDataSource()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DZFileDataSource.java42 private final long offset; field in ZFileDataSource
66 public ZFileDataSource(@Nonnull ZFile file, long offset, long size) { in ZFileDataSource()
90 public DataSource slice(long offset, long size) { in slice()
101 public void feed(long offset, long size, @Nonnull DataSink sink) throws IOException { in feed()
126 public void copyTo(long offset, int size, @Nonnull ByteBuffer dest) throws IOException { in copyTo()
142 public ByteBuffer getByteBuffer(long offset, int size) throws IOException { in getByteBuffer()
149 private static void checkChunkValid(long offset, long size, long sourceSize) { in checkChunkValid()
/tools/apksig/src/main/java/com/android/apksig/util/
DDataSource.java69 void feed(long offset, long size, DataSink sink) throws IOException; in feed()
85 ByteBuffer getByteBuffer(long offset, int size) throws IOException; in getByteBuffer()
97 void copyTo(long offset, int size, ByteBuffer dest) throws IOException; in copyTo()
109 DataSource slice(long offset, long size); in slice()
DDataSources.java55 public static DataSource asDataSource(RandomAccessFile file, long offset, long size) { in asDataSource()
74 public static DataSource asDataSource(FileChannel channel, long offset, long size) { in asDataSource()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DZipField.java66 protected final int offset; field in ZipField
93 ZipField(int offset, int size, @Nonnull String name, ZipFieldInvariant... invariants) { in ZipField()
112 ZipField(int offset, int size, long expected, @Nonnull String name) { in ZipField()
296 int offset() { in offset() method in ZipField
322 F2(int offset, @Nonnull String name, ZipFieldInvariant... invariants) { in F2()
333 F2(int offset, long expected, @Nonnull String name) { in F2()
349 F4(int offset, @Nonnull String name, ZipFieldInvariant... invariants) { in F4()
360 F4(int offset, long expected, @Nonnull String name) { in F4()
/tools/apksig/src/test/java/com/android/apksig/util/
DDataSourceTestBase.java223 String expectedContents, DataSource ds, long offset, int size) throws IOException { in assertSliceEquals()
229 protected static void assertSliceThrowsIOOB(DataSource ds, long offset, int size) { in assertSliceThrowsIOOB()
237 String expectedContents, DataSource ds, long offset, int size) throws IOException { in assertGetByteBufferEquals()
245 protected static void assertGetByteBufferThrowsIOOB(DataSource ds, long offset, int size) in assertGetByteBufferThrowsIOOB()
254 String expectedFedContents, DataSource ds, long offset, int size) throws IOException { in assertFeedEquals()
261 protected static void assertFeedThrowsIOOB(DataSource ds, long offset, long size) in assertFeedThrowsIOOB()
270 String expectedContents, DataSource ds, long offset, int size) throws IOException { in assertCopyToEquals()
283 String expectedContents, DataSource ds, long offset, int size, ByteBuffer buf) in assertCopyToEquals()
297 protected static void assertCopyToThrowsIOOB(DataSource ds, long offset, int size) in assertCopyToThrowsIOOB()
307 DataSource ds, long offset, int size, ByteBuffer buf) throws IOException { in assertCopyToThrowsBufferOverflow()
[all …]
DDataSourceFromRAFFactory.java27 @Override DataSource create(RandomAccessFile file, long offset, long size) { in create()
36 @Override DataSource create(RandomAccessFile file, long offset, long size) { in create()
42 abstract DataSource create(RandomAccessFile file, long offset, long size); in create()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zfile/
DApkAlignmentTest.java70 long offset = in soFilesUncompressedAndAligned() local
91 long offset = in soFilesMergedFromZipsCanBeUncompressedAndAligned() local
123 long offset = in soFilesMergedFromZipsCanBeUncompressedAndAligned() local
167 long offset = in soFilesUncompressedAndNotAligned() local
188 long offset = in soFilesMergedFromZipsCanBeUncompressedAndNotAligned() local
220 long offset = in soFilesMergedFromZipsCanBeUncompressedAndNotAligned() local
/tools/dexter/slicer/export/slicer/
Dreader.h106 const T* ptr(int offset) const { in ptr()
114 const T* dataPtr(int offset) const { in dataPtr()
121 slicer::ArrayView<const T> section(int offset, int count) const { in section()
Dbuffer.h75 T* ptr(size_t offset) { in ptr()
90 size_t offset = size_; in Alloc() local
97 size_t offset = size_; in Push() local
/tools/dexter/slicer/
Dwriter.cc227 dex::u4 offset = section.SectionOffset(); in CopySection() local
257 dex::u4 offset = 0; in CreateImage() local
371 dex::u4 offset = section.AddItem(); in CreateStringDataSection() local
443 dex::u4& offset = node_offset_[ir_node.get()]; in CreateAnnItemSection() local
457 dex::u4& offset = node_offset_[ir_node.get()]; in CreateAnnSetsSection() local
470 dex::u4& offset = node_offset_[ir_node.get()]; in CreateAnnSetRefListsSection() local
483 dex::u4& offset = node_offset_[ir_type_list.get()]; in CreateTypeListsSection() local
496 dex::u4& offset = node_offset_[ir_node.get()]; in CreateCodeItemSection() local
510 dex::u4& offset = node_offset_[ir_node.get()]; in CreateDebugInfoSection() local
637 dex::u4 offset = data.AddItem(4); in WriteTypeList() local
[all …]
Dcode_ir.cc247 dex::u4 offset = ptr - begin; in DisassembleBytecode() local
358 dex::u4 offset) { in DecodePackedSwitch()
384 dex::u4 offset) { in DecodeSparseSwitch()
413 ArrayData* CodeIr::DecodeArrayData(const dex::u2* ptr, dex::u4 offset) { in DecodeArrayData()
450 Bytecode* CodeIr::DecodeBytecode(const dex::u2* ptr, dex::u4 offset) { in DecodeBytecode()
674 Label* CodeIr::GetLabel(dex::u4 offset) { in GetLabel()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/
DFsFile.java62 public void read(long offset, ByteBuffer dest) throws IOException; in read()
76 public void write(long offset, ByteBuffer src) in write()
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/bt/
Dgattc_lib.py91 def writeCharById(self, id, offset, write_value): argument
111 def writeLongCharById(self, id, offset, write_value, reliable_mode=False): argument
133 def writeLongDescById(self, id, offset, write_value): argument
252 def readLongDescriptorById(self, id, offset, max_bytes): argument
272 def writeDescriptorById(self, id, offset, write_value): argument
290 def readLongCharacteristicById(self, id, offset, max_bytes): argument
/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DZipUtils.java64 ByteBuffer zipEndOfCentralDirectory, long offset) { in setZipEocdCentralDirectoryOffset()
262 public static int getUnsignedInt16(ByteBuffer buffer, int offset) { in getUnsignedInt16()
310 static void setUnsignedInt16(ByteBuffer buffer, int offset, int value) { in setUnsignedInt16()
317 static void setUnsignedInt32(ByteBuffer buffer, int offset, long value) { in setUnsignedInt32()
331 static long getUnsignedInt32(ByteBuffer buffer, int offset) { in getUnsignedInt32()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DFileChannelDataSourceTest.java63 int offset = 23456; in testFeedsCorrectData_whenFilePartiallyReadWithOffset() local
82 int offset = 23456; in testFeedsCorrectData_whenSeveralMbRead() local
/tools/carrier_settings/java/
DCarrierProtoUtils.java48 public static long addVersionOffset(long version, long offset) { in addVersionOffset()

1234