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.py78 def ReadFromPayload(self, payload_file, hasher=None): argument
96 magic = common.Read(payload_file, len(self._MAGIC), hasher=hasher)
100 self.version = _ReadInt(payload_file, self._VERSION_SIZE, True,
102 self.manifest_len = _ReadInt(payload_file, self._MANIFEST_LEN_SIZE, True,
111 payload_file, self._METADATA_SIGNATURE_LEN_SIZE, True,
115 def __init__(self, payload_file, payload_file_offset=0): argument
122 self.payload_file = payload_file
142 header.ReadFromPayload(self.payload_file, self.manifest_hasher)
157 return common.Read(self.payload_file, self.header.manifest_len,
174 self.payload_file, self.header.metadata_signature_len,
[all …]
Dchecker_unittest.py68 payload_file = cStringIO.StringIO()
69 payload_gen_write_to_file_func(payload_file, **payload_gen_dargs)
70 payload_file.seek(0)
71 payload = Payload(payload_file)
78 payload_file = cStringIO.StringIO()
79 payload_gen.WriteToFile(payload_file)
80 payload_file.seek(0)
81 payload = Payload(payload_file)
Dchecker.py1276 common.Read(self.payload.payload_file, self.sigs_offset,
1316 self.payload.payload_file.seek(0, 2)
1317 payload_file_size = self.payload.payload_file.tell()
Dapplier.py298 self.payload.payload_file.seek(start_block * block_size)
/system/update_engine/scripts/
Dtest_paycheck.sh84 payload_file=$1
87 time ${paycheck} -t ${payload_type} ${payload_file}
91 payload_file=$1
95 time ${paycheck} ${payload_file} \
101 payload_file=$1
109 time ${paycheck} ${payload_file} \
Dpaycheck.py211 with open(args.payload) as payload_file:
212 payload = update_payload.Payload(payload_file)
Dpayload_info.py212 self.payload = update_payload.Payload(self.options.payload_file)
Dpayload_info_unittest.py48 self.payload_file = None
/system/update_engine/payload_generator/
Dpayload_signer_unittest.cc166 test_utils::ScopedTempFile payload_file("payload.XXXXXX"); in TEST_F() local
173 payload_file.path(), "/dev/null", "", &metadata_size)); in TEST_F()
176 EXPECT_TRUE(PayloadSigner::HashPayloadForSigning(payload_file.path(), in TEST_F()
181 payload.WritePayload(payload_file.path(), in TEST_F()
187 payload_file.path(), sizes, &signed_payload_hash, &signed_metadata_hash)); in TEST_F()
193 test_utils::ScopedTempFile payload_file("payload.XXXXXX"); in TEST_F() local
200 payload.WritePayload(payload_file.path(), in TEST_F()
205 payload_file.path(), GetBuildArtifactsPath(kUnittestPublicKeyPath))); in TEST_F()
Dpayload_file.h52 bool WritePayload(const std::string& payload_file,
Dpayload_file.cc111 bool PayloadFile::WritePayload(const string& payload_file, in WritePayload() argument
217 TEST_AND_RETURN_FALSE_ERRNO(writer.Open(payload_file.c_str(), in WritePayload()
256 payload_file, metadata_size, &metadata_hash)); in WritePayload()
285 payload_file, in WritePayload()
Dgenerate_delta_main.cc198 bool ApplyPayload(const string& payload_file, in ApplyPayload() argument
213 payload.size = utils::FileSize(payload_file); in ApplyPayload()
216 HashCalculator::RawHashOfFile(payload_file, payload.size, &payload.hash); in ApplyPayload()
220 base::MakeAbsoluteFilePath(base::FilePath(payload_file)).value(); in ApplyPayload()
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc230 test_utils::ScopedTempFile payload_file("Payload-XXXXXX"); in GeneratePayload() local
233 EXPECT_TRUE(payload.WritePayload(payload_file.path(), in GeneratePayload()
239 EXPECT_TRUE(utils::ReadFile(payload_file.path(), &payload_data)); in GeneratePayload()
/system/update_engine/
Dupdate_engine.gyp426 'payload_generator/payload_file.cc',
DAndroid.bp498 "payload_generator/payload_file.cc",