/build/make/tools/ziptime/ |
D | ZipEntry.cpp | 44 status_t ZipEntry::initAndRewriteFromCDE(FILE* fp) in initAndRewriteFromCDE() argument 47 status_t result = mCDE.rewrite(fp); in initAndRewriteFromCDE() 54 off_t posn = ftello(fp); in initAndRewriteFromCDE() 55 if (fseeko(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { in initAndRewriteFromCDE() 61 result = mLFH.rewrite(fp); in initAndRewriteFromCDE() 67 if (fseeko(fp, posn, SEEK_SET) != 0) in initAndRewriteFromCDE() 84 status_t ZipEntry::LocalFileHeader::rewrite(FILE* fp) in rewrite() argument 88 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) in rewrite() 99 if (fseek(fp, -kLFHLen, SEEK_CUR) != 0) in rewrite() 102 if (fwrite(buf, 1, kLFHLen, fp) != kLFHLen) in rewrite() [all …]
|
D | ZipEntry.h | 69 status_t initAndRewriteFromCDE(FILE* fp); 83 status_t rewrite(FILE* fp); 101 status_t rewrite(FILE* fp);
|
/build/make/tools/zipalign/ |
D | ZipEntry.cpp | 43 status_t ZipEntry::initFromCDE(FILE* fp) in initFromCDE() argument 48 status_t result = mCDE.read(fp); in initFromCDE() 57 off_t posn = ftello(fp); in initFromCDE() 58 if (fseeko(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { in initFromCDE() 64 result = mLFH.read(fp); in initFromCDE() 70 if (fseeko(fp, posn, SEEK_SET) != 0) in initFromCDE() 400 status_t ZipEntry::LocalFileHeader::read(FILE* fp) in read() argument 408 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) { in read() 439 if (fread(mFileName, 1, mFileNameLength, fp) != mFileNameLength) { in read() 453 if (fread(mExtraField, 1, mExtraFieldLength, fp) != mExtraFieldLength) { in read() [all …]
|
D | ZipEntry.h | 158 status_t initFromCDE(FILE* fp); 242 status_t read(FILE* fp); 243 status_t write(FILE* fp); 300 status_t read(FILE* fp); 301 status_t write(FILE* fp);
|
D | ZipFile.h | 185 status_t write(FILE* fp); 232 status_t filemove(FILE* fp, off_t dest, off_t src, size_t n);
|
D | ZipFile.cpp | 1108 status_t ZipFile::filemove(FILE* fp, off_t dst, off_t src, size_t n) in filemove() argument 1122 if (fseeko(fp, src, SEEK_SET) != 0) { in filemove() 1128 if (fread(readBuf, 1, getSize, fp) != getSize) { in filemove() 1129 if (feof(fp)) { in filemove() 1139 if (fseeko(fp, dst, SEEK_SET) != 0) { in filemove() 1145 if (fwrite(readBuf, 1, getSize, fp) != getSize) { in filemove() 1239 FileReader(FILE* fp) : Reader(), fp_(fp), current_offset_(0) { in FileReader() argument 1382 status_t ZipFile::EndOfCentralDir::write(FILE* fp) in write() argument 1395 if (fwrite(buf, 1, kEOCDLen, fp) != kEOCDLen) { in write() 1401 if (fwrite(mComment, mCommentLen, 1, fp) != mCommentLen) { in write()
|
/build/soong/cc/ |
D | fdo_profile.go | 49 func (fp *fdoProfile) GenerateAndroidBuildActions(ctx android.ModuleContext) { 50 if fp.properties.Profile != nil { 51 path := android.PathForModuleSrc(ctx, *fp.properties.Profile)
|
/build/make/tools/releasetools/ |
D | test_ota_utils.py | 50 fp = io.BytesIO(magic_zip) 51 with zipfile.ZipFile(fp, 'r') as zfp:
|
D | edify_generator.py | 96 def AssertSomeFingerprint(self, *fp): argument 98 if not fp: 101 for i in fp]) + 104 common.ErrorCode.FINGERPRINT_MISMATCH, " or ".join(fp)) 107 def AssertSomeThumbprint(self, *fp): argument 109 if not fp: 112 for i in fp]) + 115 common.ErrorCode.THUMBPRINT_MISMATCH, " or ".join(fp)) 118 def AssertFingerprintOrThumbprint(self, fp, tp): argument 126 '+ getprop("ro.build.thumbprint") + ".");').format(fp=fp, tp=tp)
|
D | test_utils.py | 154 with open(sparse_image, 'wb') as fp: 155 fp.write(struct.pack( 171 fp.write(struct.pack( 174 fp.write(os.urandom(data_size))
|
D | merge_ota.py | 160 def WriteHeaderAndManifest(manifest: DeltaArchiveManifest, fp: BinaryIO): 164 fp.write(struct.pack(f">4sQQL", __MAGIC, 166 fp.write(manifest_bytes)
|
D | ota_utils.py | 493 zfp = zfp.fp 770 with open(entry_path, "r") as fp: 771 return fp.read() 874 with open(os.path.join(target_dir, "META", "ab_partitions.txt"), "r") as fp: 875 ab_partitions = fp.read().strip().splitlines() 1067 payload_fp = input_zip.fp
|
D | validate_target_files.py | 503 with open(path, 'r') as fp: 504 dupKey = CheckDataInconsistency(fp.readlines())
|
D | sign_target_files_apks.py | 263 def IsOtaPackage(fp): argument 264 with zipfile.ZipFile(fp) as zfp: 273 with input_zip.open(filename, "r") as fp: 277 os.path.join(os.path.dirname(filename), fp.read().decode())) 278 return IsOtaPackage(fp)
|
D | ota_from_target_files.py | 572 with open(dynamic_partition_info_path, "r") as fp: 573 dynamic_partition_info = fp.read() 576 with open(dynamic_partition_info_path, "w") as fp: 577 fp.write(dynamic_partition_info)
|
D | common.py | 819 with open(tmp_file, "wb") as fp: 820 fp.write(zfp.read(fn)) 1838 with open(kernel_path, "rb") as fp: 1839 salt = sha256(fp.read()).hexdigest() 1890 with open(path, "rb") as fp: 1891 salt = sha256(fp.read()).hexdigest() 3236 with open(os.path.join(d, self.name), "wb") as fp: 3237 fp.write(self.data) 4194 with open(filepath, 'rb') as fp: 4197 return fp.read(4) == b'\x3A\xFF\x26\xED' [all …]
|
D | non_ab_ota.py | 555 with open(OPTIONS.extra_script) as fp: 556 OPTIONS.extra_script = fp.read()
|
D | add_img_to_target_files.py | 92 with open(img_path, 'rb') as fp: 93 fp.seek(-avbtool.AvbFooter.SIZE, os.SEEK_END) 94 data = fp.read(avbtool.AvbFooter.SIZE)
|
D | test_ota_from_target_files.py | 1386 with tempfile.NamedTemporaryFile() as fp: 1387 with zipfile.ZipFile(fp, "w") as zfp: 1397 with tempfile.NamedTemporaryFile() as fp: 1398 with zipfile.ZipFile(fp, "w") as zfp:
|
D | test_common.py | 52 with open(filename, "rb") as fp: 53 for data in iter(lambda: fp.read(4*MiB), b''):
|
/build/make/core/ |
D | filter_symbols.sh | 15 $NM -g -fp $1 | while read -a line
|
/build/soong/ui/build/paths/ |
D | logs_test.go | 125 if fp, err := os.Create(f); err == nil { 126 fp.Close()
|
/build/bazel/scripts/incremental_build/ |
D | plot_metrics.py | 80 with open(template_file, "r") as fp: 81 script_template = Template(fp.read())
|
/build/make/core/tasks/ |
D | general-tests.mk | 60 cp -fp $(PRIVATE_TOOLS) $(PRIVATE_INTERMEDIATES_DIR)/tools/
|
D | automotive-general-tests.mk | 64 cp -fp $(PRIVATE_TOOLS) $(PRIVATE_INTERMEDIATES_DIR)/tools/
|