Home
last modified time | relevance | path

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

12

/build/soong/symbol_inject/
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)
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)
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/blueprint/parser/
Dmodify.go99 var offset int64
101 toWrite := int64(patch.Start) - offset
102 written, err := io.Copy(out, io.NewSectionReader(in, offset, toWrite))
106 offset += toWrite
108 return fmt.Errorf("unexpected EOF at %d", offset)
116 offset += int64(patch.End - patch.Start)
118 _, err := io.Copy(out, io.NewSectionReader(in, offset, math.MaxInt64-offset))
Dparser_test.go26 func mkpos(offset, line, column int) scanner.Position { argument
28 Offset: offset,
/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.cpp1264 bool ReadAtOffset(uint8_t* buf, size_t len, off64_t offset) const { in ReadAtOffset()
1268 if (offset != current_offset_) { in ReadAtOffset()
1269 if (fseek(fp_, offset, SEEK_SET) != 0) { in ReadAtOffset()
1273 current_offset_ = offset; in ReadAtOffset()
1303 off_t offset = entry->getFileOffset(); in uncompress() local
1304 if (fseek(mZipFp, offset, SEEK_SET) != 0) { in uncompress()
1320 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…
172 if offset > uint32max {
173 offset = uint32max
[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/
Dtest_ota_utils.py54 (offset, size) = ota_utils.GetZipEntryOffset(zfp, zinfo)
56 self.assertEqual(offset, zipfile.sizeFileHeader+len(zinfo.filename) + 28)
Dota_utils.py425 offset = entry_info.header_offset
426 offset += zipfile.sizeFileHeader
427 offset += filename_len + extra_len
429 return (offset, size)
550 (offset, size) = GetZipEntryOffset(zip_file, info)
551 return '%s:%d:%d' % (os.path.basename(name), offset, size)
Drangelib.py266 offset = 0
273 offset += p-start
276 out.append(offset + p - start)
Dtest_utils.py230 offset, size = map(int, tokens[entry].split(':'))
232 input_fp.seek(offset)
Dfsverity_metadata_generator.py93 offset = int(m.group(1))
97 f.seek(offset + header_len)
Dtest_verity_utils.py325 image_sizes = [BLOCK_SIZE * random.randint(51200, 524288) + offset
326 for offset in range(BLOCK_SIZE)]
/build/soong/cmd/host_bionic_verify/
Dhost_bionic_verify_test.go24 func prog(flags elf.ProgFlag, offset, addr, filesz, memsz uint64) *elf.Prog { argument
29 Off: offset,
/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/droiddoc/templates-pdk/assets/
Djquery-resizable.min.js19offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){retur…
40offset=this.helper.offset();this.position={left:j,top:g};this.size=this._helper?{width:d.outerWidt…
/build/make/tools/droiddoc/templates-pdk/assets/design/
Ddefault.js146 var targetRect = $target.offset();
/build/make/tools/signapk/src/com/android/signapk/
DSignApk.java436 long offset = 0L; in copyFiles() local
477 offset += JarFile.LOCHDR + outEntry.getName().length(); in copyFiles()
484 offset += 4; in copyFiles()
489 long paddingStartOffset = offset + ALIGNMENT_ZIP_EXTRA_DATA_FIELD_MIN_SIZE_BYTES; in copyFiles()
501 offset += extra.length; in copyFiles()
517 offset += num; in copyFiles()
/build/soong/cmd/merge_zips/
Dmerge_zips.go720 var offset int64
726 offset, err = io.Copy(outputZip, prefixFile)
739 writer.SetOffset(offset)

12