Home
last modified time | relevance | path

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

/system/update_engine/scripts/update_payload/
Dpayload.py83 def ReadFromPayload(self, payload_file, hasher=None): argument
101 magic = common.Read(payload_file, len(self._MAGIC), hasher=hasher)
105 self.version = _ReadInt(payload_file, self._VERSION_SIZE, True,
107 self.manifest_len = _ReadInt(payload_file, self._MANIFEST_LEN_SIZE, True,
116 payload_file, self._METADATA_SIGNATURE_LEN_SIZE, True,
119 def __init__(self, payload_file, payload_file_offset=0): argument
126 if zipfile.is_zipfile(payload_file):
127 self.name = payload_file
128 with zipfile.ZipFile(payload_file) as zfp:
131 self.payload_file = zfp.open("payload.bin", "r")
[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()
/system/update_engine/payload_generator/
Dpayload_signer_unittest.cc162 ScopedTempFile payload_file("payload.XXXXXX"); in TEST_F() local
169 payload.WritePayload(payload_file.path(), in TEST_F()
174 payload_file.path(), GetBuildArtifactsPath(kUnittestPublicKeyPath))); in TEST_F()
Dpayload_file.h56 bool WritePayload(const std::string& payload_file,
61 static bool WritePayload(const std::string& payload_file,
Dpayload_file.cc120 bool PayloadFile::WritePayload(const string& payload_file, in WritePayload() argument
203 WritePayload(payload_file, in WritePayload()
214 bool PayloadFile::WritePayload(const std::string& payload_file, in WritePayload() argument
227 TEST_AND_RETURN_FALSE_ERRNO(writer.Open(payload_file.c_str(), in WritePayload()
265 payload_file, metadata_size, &metadata_hash)); in WritePayload()
293 payload_file, in WritePayload()
Dgenerate_delta_main.cc176 bool ApplyPayload(const string& payload_file, in ApplyPayload() argument
194 payload.size = utils::FileSize(payload_file); in ApplyPayload()
197 HashCalculator::RawHashOfFile(payload_file, payload.size, &payload.hash); in ApplyPayload()
201 base::MakeAbsoluteFilePath(base::FilePath(payload_file)).value(); in ApplyPayload()
/system/update_engine/
Ddownload_action_android_unittest.cc98 PayloadFile payload_file; in TEST_F() local
99 ASSERT_TRUE(payload_file.Init(config)); in TEST_F()
105 ASSERT_TRUE(payload_file.AddPartition( in TEST_F()
112 payload_file.WritePayload( in TEST_F()
DAndroid.bp879 "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.py208 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.cc240 ScopedTempFile payload_file("Payload-XXXXXX"); in GeneratePayload() local
243 EXPECT_TRUE(payload.WritePayload(payload_file.path(), in GeneratePayload()
249 EXPECT_TRUE(utils::ReadFile(payload_file.path(), &payload_data)); in GeneratePayload()