Home
last modified time | relevance | path

Searched refs:data_offset (Results 1 – 24 of 24) sorted by relevance

/system/update_engine/payload_generator/
Dannotated_operation.cc46 off_t data_offset = blob_file->StoreBlob(blob); in SetOperationBlob() local
47 TEST_AND_RETURN_FALSE(data_offset != -1); in SetOperationBlob()
48 op.set_data_offset(data_offset); in SetOperationBlob()
60 os << " @" << aop.op.data_offset(); in operator <<()
Dpayload_file_unittest.cc77 EXPECT_EQ(0U, part0_aops[0].op.data_offset()); in TEST_F()
79 EXPECT_EQ(3U, part0_aops[1].op.data_offset()); in TEST_F()
83 EXPECT_EQ(4U, part1_aops[0].op.data_offset()); in TEST_F()
Dab_generator.cc170 uint64_t data_offset = original_op.data_offset(); in SplitAReplaceOp() local
181 new_op.set_data_offset(data_offset); in SplitAReplaceOp()
182 data_offset += data_size; in SplitAReplaceOp()
Dab_generator_unittest.cc157 first_op.data_offset(), in TestSplitReplaceOrReplaceBzOperation()
186 second_op.data_offset(), in TestSplitReplaceOrReplaceBzOperation()
192 EXPECT_EQ(first_op.data_offset() + first_op.data_length(), in TestSplitReplaceOrReplaceBzOperation()
193 second_op.data_offset()); in TestSplitReplaceOrReplaceBzOperation()
194 EXPECT_EQ(second_op.data_offset() + second_op.data_length(), in TestSplitReplaceOrReplaceBzOperation()
198 EXPECT_EQ(0U, first_op.data_offset()); in TestSplitReplaceOrReplaceBzOperation()
318 new_op.data_offset(), in TestMergeReplaceOrReplaceBzOperations()
Dpayload_file.cc128 if (aop.op.data_offset() != next_blob_offset) { in WritePayload()
129 LOG(FATAL) << "bad blob offset! " << aop.op.data_offset() in WritePayload()
322 ssize_t rc = pread(in_fd, buf.data(), buf.size(), aop.op.data_offset()); in ReorderDataBlobs()
Dinplace_generator_unittest.cc579 EXPECT_EQ(0U, vertex.aop.op.data_offset()); in TEST_F()
/system/media/audio/include/system/
Dsound_trigger.h106 unsigned int data_offset; /* offset of opaque data start from head of struct member
170 unsigned int data_offset; /* offset of opaque data start from start of member
219 unsigned int data_offset; /* offset of opaque data start from start of this struct member
231 unsigned int data_offset; /* offset of data start from start of this struct member
/system/update_engine/scripts/update_payload/
Dtest_utils.py194 def AddOperation(self, is_kernel, op_type, data_offset=None, argument
204 _SetMsgField(op, 'data_offset', data_offset)
275 data_offset = self.curr_offset
278 return data_length, data_offset
299 data_offset = data_length = data_sha256_hash = None
303 data_length, data_offset = self.AddData(data_blob)
305 self.AddOperation(is_kernel, op_type, data_offset=data_offset,
353 data_offset=self.curr_offset, data_length=sigs_len,
Dchecker.py809 def _CheckMoveOperation(self, op, data_offset, total_src_blocks, argument
824 if data_offset is not None:
907 if op.data_offset:
944 def _CheckSourceCopyOperation(self, data_offset, total_src_blocks, argument
958 if data_offset is not None:
1022 data_offset = self._CheckOptionalField(op, 'data_offset', None)
1024 self._CheckPresentIff(data_offset, data_length, 'data_offset',
1041 if data_offset is None:
1047 actual_hash = hashlib.sha256(self.payload.ReadDataBlob(data_offset,
1054 elif data_offset is not None:
[all …]
Dpayload.py128 self.data_offset = None
192 offset=self.payload_file_offset + self.data_offset +
225 self.data_offset = self.metadata_size + self.header.metadata_signature_len
261 self.payload_file.seek(self.payload_file_offset + self.data_offset)
Dapplier.py146 data_offset = 0
156 data_view = buffer(data, data_offset, write_length)
159 data_offset += write_length
539 data = self.payload.ReadDataBlob(op.data_offset, op.data_length)
Dchecker_unittest.py914 op.data_offset = prev_data_offset + 16
916 op.data_offset = prev_data_offset
924 payload.ReadDataBlob(op.data_offset, op.data_length).AndReturn(
931 payload.ReadDataBlob(op.data_offset, op.data_length).AndReturn(
1014 data_offset=0,
1078 data_offset=payload_gen.curr_offset / 2,
/system/media/radio/src/
Dradio_metadata.c63 uint32_t data_offset = *((uint32_t *)metadata + index_offset); in check_size() local
73 req_size_int = data_offset + metadata->count + 1 + 1 + size_int; in check_size()
114 uint32_t data_offset; in add_metadata() local
126 data_offset = *((uint32_t *)metadata + index_offset); in add_metadata()
128 entry = (radio_metadata_entry_t *)((uint32_t *)metadata + data_offset); in add_metadata()
134 data_offset += entry_size_int; in add_metadata()
135 *((uint32_t *)metadata + index_offset -1) = data_offset; in add_metadata()
147 uint32_t data_offset = *((uint32_t *)metadata + index_offset); in get_entry_at_index() local
160 if (data_offset < min_offset) { in get_entry_at_index()
171 if (data_offset > max_offset) { in get_entry_at_index()
[all …]
/system/extras/libfec/
Dfec_verity.cpp160 uint8_t *hash, uint64_t data_offset, uint8_t *data) in ecc_read_hashes() argument
173 if (fec_pread(f, data, FEC_BLOCKSIZE, data_offset) != FEC_BLOCKSIZE) { in ecc_read_hashes()
175 data_offset, strerror(errno)); in ecc_read_hashes()
204 uint64_t data_offset = hash_offset + FEC_BLOCKSIZE; in verify_tree() local
206 v->hash_data_offset = data_offset; in verify_tree()
235 v->hash_data_offset = data_offset; in verify_tree()
238 data_offset += blocks * FEC_BLOCKSIZE; in verify_tree()
262 data_offset = hash_offset + FEC_BLOCKSIZE; in verify_tree()
273 data_offset + j * FEC_BLOCKSIZE)) { in verify_tree()
282 data_offset + j * FEC_BLOCKSIZE, data) || in verify_tree()
[all …]
/system/core/fs_mgr/libdm/
Ddm.cpp329 uint32_t data_offset = cursor + sizeof(dm_target_spec); in GetTable() local
333 if (next_cursor > data_offset) { in GetTable()
335 data = std::string(&buffer[data_offset], next_cursor - data_offset).c_str(); in GetTable()
/system/update_engine/payload_consumer/
Dverity_writer_android.h44 uint64_t data_offset,
Dverity_writer_android.cc120 uint64_t data_offset, in EncodeFEC() argument
160 data_offset + offset, in EncodeFEC()
Ddelta_performer.cc991 if (operation.data_offset() < buffer_offset_) { in CanPerformInstallOperation()
996 return (operation.data_offset() + operation.data_length() <= in CanPerformInstallOperation()
1008 TEST_AND_RETURN_FALSE(buffer_offset_ == operation.data_offset()); in PerformReplaceOperation()
1322 TEST_AND_RETURN_FALSE(buffer_offset_ == operation.data_offset()); in PerformBsdiffOperation()
1427 TEST_AND_RETURN_FALSE(buffer_offset_ == operation.data_offset()); in PerformSourceBsdiffOperation()
1538 TEST_AND_RETURN_FALSE(buffer_offset_ == operation.data_offset()); in PerformPuffDiffOperation()
1572 manifest_.signatures_offset() != operation.data_offset()) { in ExtractSignatureMessageFromOperation()
1734 manifest_.signatures_offset() == operation.data_offset()) { in ValidateOperationHash()
1768 << " bytes at offset: " << operation.data_offset() << " = "; in ValidateOperationHash()
/system/timezone/zone_compactor/main/java/
DZoneCompactor.java162 int data_offset = (int) f.getFilePointer(); in ZoneCompactor() local
183 f.writeInt(data_offset); in ZoneCompactor()
/system/core/libziparchive/
Dzip_archive.cc677 const off64_t data_offset = local_header_offset + sizeof(LocalFileHeader) + in FindEntry() local
679 if (data_offset > cd_offset) { in FindEntry()
680 ALOGW("Zip: bad data offset %" PRId64 " in zip", static_cast<int64_t>(data_offset)); in FindEntry()
684 if (static_cast<off64_t>(data_offset + data->compressed_length) > cd_offset) { in FindEntry()
686 static_cast<int64_t>(data_offset), data->compressed_length, in FindEntry()
692 static_cast<off64_t>(data_offset + data->uncompressed_length) > cd_offset) { in FindEntry()
694 static_cast<int64_t>(data_offset), data->uncompressed_length, in FindEntry()
699 data->offset = data_offset; in FindEntry()
/system/update_engine/scripts/
Dpayload_info.py155 print(' Data offset: %s' % op.data_offset)
Dpayload_info_unittest.py80 data_offset=1,
/system/update_engine/
Dupdate_metadata.proto184 // Only minor version 6 or newer support 64 bits |data_offset| and
188 optional uint64 data_offset = 2; field
252 // associated operation blobs (in operations[i].data_offset, data_length)
/system/update_engine/update_engine/
Dupdate_metadata.proto184 // Only minor version 6 or newer support 64 bits |data_offset| and
188 optional uint64 data_offset = 2; field
252 // associated operation blobs (in operations[i].data_offset, data_length)