Home
last modified time | relevance | path

Searched refs:payload_file (Results 1 – 15 of 15) sorted by relevance

/system/update_engine/scripts/update_payload/
Dpayload.py82 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 …]
Dchecker_unittest.py69 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)
Dchecker.py1146 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()
Dapplier.py283 self.payload.payload_file.seek(start_block * block_size)
/system/update_engine/payload_generator/
Dpayload_signer_unittest.cc170 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()
Dpayload_file.cc118 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()
Dpayload_file.h54 bool WritePayload(const std::string& payload_file,
Dgenerate_delta_main.cc173 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/
Ddownload_action_android_unittest.cc102 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()
DBUILD.gn350 "payload_generator/payload_file.cc",
DAndroid.bp611 "payload_generator/payload_file.cc",
/system/update_engine/scripts/
Dpaycheck.py204 with open(args.payload, 'rb') as payload_file:
205 payload = update_payload.Payload(payload_file)
Dpayload_info.py204 self.payload = update_payload.Payload(self.options.payload_file)
Dpayload_info_unittest.py55 self.payload_file = None
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc245 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()