/system/update_engine/scripts/update_payload/ |
D | payload.py | 82 def ReadFromPayload(self, payload_file, hasher=None): argument 100 magic = common.Read(payload_file, len(self._MAGIC), hasher=hasher) 104 self.version = _ReadInt(payload_file, self._VERSION_SIZE, True, 106 self.manifest_len = _ReadInt(payload_file, self._MANIFEST_LEN_SIZE, True, 115 payload_file, self._METADATA_SIGNATURE_LEN_SIZE, True, 118 def __init__(self, payload_file, payload_file_offset=0): argument 125 if zipfile.is_zipfile(payload_file): 126 with zipfile.ZipFile(payload_file) as zfp: 127 self.payload_file = zfp.open("payload.bin", "r") 128 elif isinstance(payload_file, str): [all …]
|
D | checker_unittest.py | 69 payload_file = io.BytesIO() 70 payload_gen_write_to_file_func(payload_file, **payload_gen_dargs) 71 payload_file.seek(0) 72 payload = Payload(payload_file) 79 payload_file = io.BytesIO() 80 payload_gen.WriteToFile(payload_file) 81 payload_file.seek(0) 82 payload = Payload(payload_file)
|
D | checker.py | 1146 common.Read(self.payload.payload_file, self.sigs_offset, 1182 self.payload.payload_file.seek(0, 2) 1183 payload_file_size = self.payload.payload_file.tell()
|
D | applier.py | 283 self.payload.payload_file.seek(start_block * block_size)
|
/system/update_engine/payload_generator/ |
D | payload_signer_unittest.cc | 170 ScopedTempFile payload_file("payload.XXXXXX"); in TEST_F() local 177 payload_file.path(), "/dev/null", "", &metadata_size)); in TEST_F() 180 EXPECT_TRUE(PayloadSigner::HashPayloadForSigning(payload_file.path(), in TEST_F() 185 payload.WritePayload(payload_file.path(), in TEST_F() 191 payload_file.path(), sizes, &signed_payload_hash, &signed_metadata_hash)); in TEST_F() 197 ScopedTempFile payload_file("payload.XXXXXX"); in TEST_F() local 204 payload.WritePayload(payload_file.path(), in TEST_F() 209 payload_file.path(), GetBuildArtifactsPath(kUnittestPublicKeyPath))); in TEST_F()
|
D | payload_file.cc | 118 bool PayloadFile::WritePayload(const string& payload_file, in WritePayload() argument 208 TEST_AND_RETURN_FALSE_ERRNO(writer.Open(payload_file.c_str(), in WritePayload() 242 payload_file, metadata_size, &metadata_hash)); in WritePayload() 271 payload_file, in WritePayload()
|
D | payload_file.h | 54 bool WritePayload(const std::string& payload_file,
|
D | generate_delta_main.cc | 173 bool ApplyPayload(const string& payload_file, in ApplyPayload() argument 191 payload.size = utils::FileSize(payload_file); in ApplyPayload() 194 HashCalculator::RawHashOfFile(payload_file, payload.size, &payload.hash); in ApplyPayload() 198 base::MakeAbsoluteFilePath(base::FilePath(payload_file)).value(); in ApplyPayload()
|
/system/update_engine/ |
D | download_action_android_unittest.cc | 102 PayloadFile payload_file; in TEST_F() local 103 ASSERT_TRUE(payload_file.Init(config)); in TEST_F() 110 payload_file.AddPartition(partition_config, partition_config, {}, {}, 0)); in TEST_F() 116 payload_file.WritePayload( in TEST_F()
|
D | BUILD.gn | 350 "payload_generator/payload_file.cc",
|
D | Android.bp | 611 "payload_generator/payload_file.cc",
|
/system/update_engine/scripts/ |
D | paycheck.py | 204 with open(args.payload, 'rb') as payload_file: 205 payload = update_payload.Payload(payload_file)
|
D | payload_info.py | 204 self.payload = update_payload.Payload(self.options.payload_file)
|
D | payload_info_unittest.py | 55 self.payload_file = None
|
/system/update_engine/payload_consumer/ |
D | delta_performer_unittest.cc | 245 ScopedTempFile payload_file("Payload-XXXXXX"); in GeneratePayload() local 248 EXPECT_TRUE(payload.WritePayload(payload_file.path(), in GeneratePayload() 254 EXPECT_TRUE(utils::ReadFile(payload_file.path(), &payload_data)); in GeneratePayload()
|