Home
last modified time | relevance | path

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

12

/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.cc169 uint64_t data_offset = original_op.data_offset(); in SplitAReplaceOp() local
180 new_op.set_data_offset(data_offset); in SplitAReplaceOp()
181 data_offset += data_size; in SplitAReplaceOp()
Dab_generator_unittest.cc155 first_op.data_offset(), in TestSplitReplaceOrReplaceXzOperation()
184 second_op.data_offset(), in TestSplitReplaceOrReplaceXzOperation()
190 EXPECT_EQ(first_op.data_offset() + first_op.data_length(), in TestSplitReplaceOrReplaceXzOperation()
191 second_op.data_offset()); in TestSplitReplaceOrReplaceXzOperation()
192 EXPECT_EQ(second_op.data_offset() + second_op.data_length(), in TestSplitReplaceOrReplaceXzOperation()
196 EXPECT_EQ(0U, first_op.data_offset()); in TestSplitReplaceOrReplaceXzOperation()
314 new_op.data_offset(), in TestMergeReplaceOrReplaceXzOperations()
Dpayload_file.cc135 if (aop.op.data_offset() != next_blob_offset) { in WritePayload()
136 LOG(FATAL) << "bad blob offset! " << aop.op.data_offset() in WritePayload()
330 ssize_t rc = pread(in_fd, buf.data(), buf.size(), aop.op.data_offset()); in ReorderDataBlobs()
/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()
115 uint32_t data_offset; in add_metadata() local
127 data_offset = *((uint32_t *)metadata + index_offset); in add_metadata()
129 entry = (radio_metadata_entry_t *)((uint32_t *)metadata + data_offset); in add_metadata()
135 data_offset += entry_size_int; in add_metadata()
136 *((uint32_t *)metadata + index_offset -1) = data_offset; in add_metadata()
148 uint32_t data_offset = *((uint32_t *)metadata + index_offset); in get_entry_at_index() local
161 if (data_offset < min_offset) { in get_entry_at_index()
172 if (data_offset > max_offset) { in get_entry_at_index()
[all …]
/system/media/audio/include/system/
Dsound_trigger.h166 unsigned int data_offset; /* offset of opaque data start from head of struct member
268 unsigned int data_offset; /* offset of opaque data start from start of member
317 unsigned int data_offset; /* offset of opaque data start from start of this struct member
369 unsigned int data_offset; /* offset of data start from start of this struct member
/system/timezone/debug_tools/host/main/java/
DZoneSplitter.java71 int data_offset = mappedFile.getInt(); in execute() local
72 validateOffset(data_offset, fileSize); in execute()
75 if (index_offset >= data_offset in execute()
76 || data_offset >= final_offset in execute()
79 + ", data_offset=" + data_offset + ", final_offset=" + final_offset in execute()
85 extractZicFiles(mappedFile, index_offset, data_offset, zicFilesDir); in execute()
/system/update_engine/scripts/update_payload/
Dtest_utils.py197 def AddOperation(self, part_name, op_type, data_offset=None, argument
211 _SetMsgField(op, 'data_offset', data_offset)
282 data_offset = self.curr_offset
285 return data_length, data_offset
306 data_offset = data_length = data_sha256_hash = None
310 data_length, data_offset = self.AddData(data_blob)
312 self.AddOperation(part_name, op_type, data_offset=data_offset,
Dpayload.py148 self.data_offset = None
186 return op.data_offset + op.data_length
249 offset=self.payload_file_offset + self.data_offset +
282 self.data_offset = self.metadata_size + self.header.metadata_signature_len
300 self.payload_file.seek(self.payload_file_offset + self.data_offset)
352 blob = self.ReadDataBlob(op.data_offset, op.data_length)
Dchecker.py807 if op.data_offset:
843 def _CheckSourceCopyOperation(self, data_offset, total_src_blocks, argument
857 if data_offset is not None:
915 data_offset = self._CheckOptionalField(op, 'data_offset', None)
917 self._CheckPresentIff(data_offset, data_length, 'data_offset',
934 if data_offset is None:
940 actual_hash = hashlib.sha256(self.payload.ReadDataBlob(data_offset,
947 elif data_offset is not None:
954 if data_offset is not None:
956 if data_offset != prev_data_offset:
[all …]
/system/extras/libfec/
Dfec_verity.cpp182 uint8_t *hash, uint64_t data_offset, in ecc_read_hashes() argument
195 if (fec_pread(f, data, FEC_BLOCKSIZE, data_offset) != FEC_BLOCKSIZE) { in ecc_read_hashes()
197 data_offset, strerror(errno)); in ecc_read_hashes()
220 uint64_t data_offset = hash_offset + FEC_BLOCKSIZE; in verify_tree() local
246 uint64_t hash_data_offset = data_offset; in verify_tree()
253 hash_data_offset = data_offset; in verify_tree()
256 data_offset += blocks * FEC_BLOCKSIZE; in verify_tree()
272 data_offset = hash_offset + FEC_BLOCKSIZE; in verify_tree()
284 data_offset + j * FEC_BLOCKSIZE)) { in verify_tree()
294 data_offset + j * FEC_BLOCKSIZE, data) || in verify_tree()
[all …]
Dfec_private.h105 uint64_t data_offset, uint8_t *data);
/system/libfmq/fuzzer/
Dfmq_fuzzer.cpp87 uint64_t* createCounterPtr(payload_t* start, uint32_t offset, uint32_t data_offset) { in createCounterPtr() argument
92 return reinterpret_cast<uint64_t*>(reinterpret_cast<uint8_t*>(start) - data_offset + offset); in createCounterPtr()
97 uint32_t data_offset = desc.grantors()[android::hardware::details::DATAPTRPOS].offset; in getCounterPtr() local
98 return createCounterPtr(start, offset, data_offset); in getCounterPtr()
103 uint32_t data_offset = desc.grantors()[android::hardware::details::DATAPTRPOS].offset; in getCounterPtr() local
104 return createCounterPtr(start, offset, data_offset); in getCounterPtr()
109 uint32_t data_offset = desc.grantors[android::hardware::details::DATAPTRPOS].offset; in getCounterPtr() local
110 return createCounterPtr(start, offset, data_offset); in getCounterPtr()
115 uint32_t data_offset = desc.grantors[android::hardware::details::DATAPTRPOS].offset; in getCounterPtr() local
116 return createCounterPtr(start, offset, data_offset); in getCounterPtr()
/system/update_engine/payload_consumer/
Dverity_writer_android.h102 uint64_t data_offset,
110 uint64_t data_offset,
Dverity_writer_android.cc330 uint64_t data_offset, in EncodeFEC() argument
369 data_offset + offset, in EncodeFEC()
410 uint64_t data_offset, in EncodeFEC() argument
421 data_offset, in EncodeFEC()
Ddelta_performer.cc942 if (operation.data_offset() < buffer_offset_) { in CanPerformInstallOperation()
947 return (operation.data_offset() + operation.data_length() <= in CanPerformInstallOperation()
1015 TEST_AND_RETURN_FALSE(buffer_offset_ == operation.data_offset()); in PerformDiffOperation()
1268 manifest_.signatures_offset() == operation.data_offset()) { in ValidateOperationHash()
1302 << " bytes at offset: " << operation.data_offset() << " = " in ValidateOperationHash()
/system/timezone/input_tools/android/zone_compactor/main/java/
DZoneCompactor.java165 int data_offset = (int) f.getFilePointer(); in ZoneCompactor() local
176 f.writeInt(data_offset); in ZoneCompactor()
/system/keymint/common/src/tag/
Dlegacy.rs270 let data_offset = consume_u32(data)? as usize; in consume_blob() localVariable
272 if data_offset != *next_blob_offset { in consume_blob()
276 data_offset, in consume_blob()
280 if (data_offset + data_len) > blob_data.len() { in consume_blob()
284 data_offset, in consume_blob()
285 data_offset, in consume_blob()
291 let slice = &blob_data[data_offset..data_offset + data_len]; in consume_blob()
/system/extras/simpleperf/
DBranchListFile.cpp223 uint64_t data_offset = 0; member
277 if (start >= data.data_offset && end <= data.data_offset + data.aux_data.size()) { in ProcessAuxRecord()
279 uint8_t* p = data.aux_data.data() + (start - data.data_offset); in ProcessAuxRecord()
301 data.data_offset = start; in ProcessAuxTraceRecord()
/system/security/keystore2/src/
Dsw_keyblob.rs372 let data_offset = consume_u32(data)? as usize; in consume_blob() localVariable
374 if data_offset != *next_blob_offset { in consume_blob()
375 return Err(bloberr!("got blob offset {} instead of {}", data_offset, next_blob_offset)); in consume_blob()
377 if (data_offset + data_len) > blob_data.len() { in consume_blob()
380 data_offset, in consume_blob()
381 data_offset, in consume_blob()
387 let slice = &blob_data[data_offset..data_offset + data_len]; in consume_blob()
/system/core/fs_mgr/libdm/
Ddm.cpp584 uint32_t data_offset = cursor + sizeof(dm_target_spec); in GetTable() local
588 if (next_cursor > data_offset) { in GetTable()
590 data = std::string(&buffer[data_offset], next_cursor - data_offset).c_str(); in GetTable()
/system/unwinding/libunwindstack/tests/
DDexFilesTest.cpp40 void CreateFakeElf(MapInfo* map_info, uint64_t global_offset, uint64_t data_offset, in CreateFakeElf() argument
49 interface->FakeSetDataOffset(data_offset); in CreateFakeElf()
/system/libziparchive/
Dzip_archive.cc1016 const off64_t data_offset = local_header_offset + sizeof(LocalFileHeader) + in FindEntry() local
1018 if (data_offset > cd_offset) { in FindEntry()
1019 ALOGW("Zip: bad data offset %" PRId64 " in zip", static_cast<int64_t>(data_offset)); in FindEntry()
1023 if (data->compressed_length > cd_offset - data_offset) { in FindEntry()
1025 static_cast<int64_t>(data_offset), data->compressed_length, in FindEntry()
1030 if (data->method == kCompressStored && data->uncompressed_length > cd_offset - data_offset) { in FindEntry()
1032 static_cast<int64_t>(data_offset), data->uncompressed_length, in FindEntry()
1037 data->offset = data_offset; in FindEntry()
/system/update_engine/aosp/
Dupdate_attempter_android_integration_test.cc193 ASSERT_EQ(total_blob_size, op.data_offset()) in AddSignatureInfoToPayload()
215 ASSERT_GE(lseek64(blob_file_.fd(), op.data_offset(), SEEK_SET), 0); in HydratePayload()

12