Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 20 of 20) sorted by relevance

/build/soong/symbol_inject/
Delf_test.go26 offset, size uint64
31 offset: 0x1030,
37 offset: 0x1030,
43 offset: 0x10b0,
54 offset, size, err := findSymbol(file, testCase.symbol)
58 if offset != testCase.offset || size != testCase.size {
59 t.Errorf("expected %x:%x, got %x:%x", testCase.offset, testCase.size, offset, size)
Dmacho_test.go27 offset, size uint64
32 offset: 0x1020,
38 offset: 0x1020,
44 offset: 0x10a0,
55 offset, size, err := findSymbol(file, testCase.symbol)
59 if offset != testCase.offset || size != testCase.size {
60 t.Errorf("expected %x:%x, got %x:%x", testCase.offset, testCase.size, offset, size)
Dpe_test.go27 offset, size uint64
32 offset: 0x2420,
38 offset: 0x2420,
44 offset: 0x24a0,
64 offset: 0x15f020,
82 offset: 0x2420,
102 offset: 0x2420,
121 offset: 0x2420,
132 offset, size, err := findSymbol(file, testCase.symbol)
136 if offset != testCase.offset || size != testCase.size {
[all …]
Dsymbol_inject_test.go26 offset uint64
31 offset: 0,
36 offset: 1,
41 offset: 25,
51 copyAndInject(in, out, testCase.offset, []byte(testCase.buf))
Dsymbol_inject.go55 offset, size, err := findSymbol(file, symbol)
69 _, err := file.r.ReadAt(existing, int64(offset))
82 return copyAndInject(file.r, w, offset, buf)
86 offset, size, err := findSymbol(file, symbol)
98 return copyAndInject(file.r, w, offset, buf)
101 func copyAndInject(r io.ReaderAt, w io.Writer, offset uint64, buf []byte) (err error) {
103 _, err = io.Copy(w, io.NewSectionReader(r, 0, int64(offset)))
111 pos := int64(offset) + int64(len(buf))
154 offset := symbol.Section.Offset + symbol.Addr
156 return uint64(offset), uint64(size), nil
/build/make/tools/zipalign/
DZipAlign.cpp164 off_t offset = pEntry->getFileOffset(); in verify() local
166 if ((offset % alignTo) != 0) { in verify()
169 (intmax_t) offset, pEntry->getFileName(), in verify()
170 (intmax_t) (offset % alignTo)); in verify()
176 (intmax_t) offset, pEntry->getFileName()); in verify()
DZipEntry.h199 void setLFHOffset(off_t offset) { in setLFHOffset() argument
200 mCDE.mLocalHeaderRelOffset = (uint32_t) offset; in setLFHOffset()
DZipFile.cpp1270 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const { in ReadAtOffset()
1274 if (offset != current_offset_) { in ReadAtOffset()
1275 if (fseek(fp_, offset, SEEK_SET) != 0) { in ReadAtOffset()
1279 current_offset_ = offset; in ReadAtOffset()
1309 off_t offset = entry->getFileOffset(); in uncompress() local
1310 if (fseek(mZipFp, offset, SEEK_SET) != 0) { in uncompress()
1326 printf("0x%08x ", (int)(offset+(i*0x10))); in uncompress()
/build/soong/third_party/zip/
Dwriter.go29 offset uint64 member
81 if h.isZip64() || h.offset >= uint32max {
95 eb.uint64(h.offset)
106 if h.offset > uint32max {
109 b.uint32(uint32(h.offset))
128 offset := uint64(start)
130 if records > uint16max || size > uint32max || offset > uint32max {
144 …b.uint64(offset) // offset of start of central directory with respect to the start…
167 offset = uint32max
178 b.uint32(uint32(offset)) // start of directory
[all …]
Dandroid.go43 offset: uint64(w.cw.count),
156 offset: uint64(w.cw.count),
Dreader.go146 func (f *File) DataOffset() (offset int64, err error) {
473 func readDirectory64End(r io.ReaderAt, offset int64, d *directoryEnd) (err error) {
475 if _, err := r.ReadAt(buf, offset); err != nil {
/build/make/tools/releasetools/
Drangelib.py266 offset = 0
273 offset += p-start
276 out.append(offset + p - start)
Dota_utils.py520 offset = info.header_offset
521 offset += zipfile.sizeFileHeader
522 offset += len(info.extra) + len(info.filename)
524 return '%s:%d:%d' % (os.path.basename(name), offset, size)
Dtest_utils.py228 offset, size = map(int, tokens[entry].split(':'))
230 input_fp.seek(offset)
Dtest_verity_utils.py325 image_sizes = [BLOCK_SIZE * random.randint(51200, 524288) + offset
326 for offset in range(BLOCK_SIZE)]
Dota_from_target_files.py559 offset, size = self._GetPayloadMetadataOffsetAndSize(input_zip)
560 return ['payload_metadata.bin:{}:{}'.format(offset, size)]
/build/soong/androidmk/parser/
Dparser.go89 offset := int(pos)
90 line := sort.Search(len(p.lines), func(i int) bool { return p.lines[i] > offset }) - 1
94 Column: offset - p.lines[line] + 1,
95 Offset: offset,
/build/make/tools/signapk/src/com/android/signapk/
DSignApk.java409 long offset = 0L; in copyFiles() local
450 offset += JarFile.LOCHDR + outEntry.getName().length(); in copyFiles()
457 offset += 4; in copyFiles()
462 long paddingStartOffset = offset + ALIGNMENT_ZIP_EXTRA_DATA_FIELD_MIN_SIZE_BYTES; in copyFiles()
474 offset += extra.length; in copyFiles()
490 offset += num; in copyFiles()
/build/make/tools/droiddoc/templates-pdk/assets/design/
Ddefault.js146 var targetRect = $target.offset();
/build/blueprint/parser/
Dparser_test.go26 func mkpos(offset, line, column int) scanner.Position { argument
28 Offset: offset,