Home
last modified time | relevance | path

Searched refs:operation (Results 1 – 25 of 85) sorted by relevance

1234

/system/update_engine/payload_consumer/
Dinstall_operation_executor.cc179 const InstallOperation& operation, in ExecuteReplaceOperation() argument
183 TEST_AND_RETURN_FALSE(operation.type() == InstallOperation::REPLACE || in ExecuteReplaceOperation()
184 operation.type() == InstallOperation::REPLACE_BZ || in ExecuteReplaceOperation()
185 operation.type() == InstallOperation::REPLACE_XZ); in ExecuteReplaceOperation()
187 if (operation.type() == InstallOperation::REPLACE_BZ) { in ExecuteReplaceOperation()
189 } else if (operation.type() == InstallOperation::REPLACE_XZ) { in ExecuteReplaceOperation()
192 TEST_AND_RETURN_FALSE(writer->Init(operation.dst_extents(), block_size_)); in ExecuteReplaceOperation()
193 TEST_AND_RETURN_FALSE(writer->Write(data, operation.data_length())); in ExecuteReplaceOperation()
199 const InstallOperation& operation, std::unique_ptr<ExtentWriter> writer) { in ExecuteZeroOrDiscardOperation() argument
200 TEST_AND_RETURN_FALSE(operation.type() == InstallOperation::ZERO || in ExecuteZeroOrDiscardOperation()
[all …]
Dpartition_writer.cc191 bool PartitionWriter::PerformReplaceOperation(const InstallOperation& operation, in PerformReplaceOperation() argument
197 operation, std::move(writer), data, count); in PerformReplaceOperation()
201 const InstallOperation& operation) { in PerformZeroOrDiscardOperation() argument
204 (operation.type() == InstallOperation::ZERO ? BLKZEROOUT : BLKDISCARD); in PerformZeroOrDiscardOperation()
207 return install_op_executor_.ExecuteZeroOrDiscardOperation(operation, in PerformZeroOrDiscardOperation()
211 for (const Extent& extent : operation.dst_extents()) { in PerformZeroOrDiscardOperation()
223 operation, std::move(writer)); in PerformZeroOrDiscardOperation()
229 const InstallOperation& operation, ErrorCode* error) { in PerformSourceCopyOperation() argument
237 partition.partition_name(), operation, &buf); in PerformSourceCopyOperation()
238 const InstallOperation& optimized = should_optimize ? buf : operation; in PerformSourceCopyOperation()
[all …]
Dverified_source_fd.cc64 const InstallOperation& operation, ErrorCode* error) { in ChooseSourceFD() argument
69 if (!operation.has_src_sha256_hash()) { in ChooseSourceFD()
76 source_ecc_fd_, operation.src_extents(), block_size_, nullptr)) { in ChooseSourceFD()
83 brillo::Blob expected_source_hash(operation.src_sha256_hash().begin(), in ChooseSourceFD()
84 operation.src_sha256_hash().end()); in ChooseSourceFD()
86 source_fd_, operation.src_extents(), block_size_, &source_hash) && in ChooseSourceFD()
97 source_hash, operation, source_fd_, error); in ChooseSourceFD()
107 source_ecc_fd_, operation.src_extents(), block_size_, &source_hash) && in ChooseSourceFD()
109 source_hash, operation, source_ecc_fd_, error)) { in ChooseSourceFD()
Dinstall_operation_executor.h33 bool ExecuteReplaceOperation(const InstallOperation& operation,
37 bool ExecuteZeroOrDiscardOperation(const InstallOperation& operation,
39 bool ExecuteSourceCopyOperation(const InstallOperation& operation,
43 bool ExecuteDiffOperation(const InstallOperation& operation,
50 bool ExecuteSourceBsdiffOperation(const InstallOperation& operation,
55 bool ExecutePuffDiffOperation(const InstallOperation& operation,
60 bool ExecuteZucchiniOperation(const InstallOperation& operation,
65 bool ExecuteLz4diffOperation(const InstallOperation& operation,
Dpartition_writer.h46 const InstallOperation& operation,
49 static bool ValidateSourceHash(const InstallOperation& operation,
75 [[nodiscard]] bool PerformReplaceOperation(const InstallOperation& operation,
79 const InstallOperation& operation) override;
82 const InstallOperation& operation, ErrorCode* error) override;
83 [[nodiscard]] bool PerformDiffOperation(const InstallOperation& operation,
Dpartition_writer_interface.h56 const InstallOperation& operation, const void* data, size_t count) = 0;
58 const InstallOperation& operation) = 0;
61 const InstallOperation& operation, ErrorCode* error) = 0;
63 const InstallOperation& operation,
Ddelta_performer.cc499 for (const auto& operation : partition.merge_operations()) { in Write() local
500 if (operation.type() == CowMergeOperation::COW_COPY) { in Write()
502 operation.dst_extent().num_blocks() * manifest_.block_size(); in Write()
857 const chromeos_update_engine::InstallOperation& operation) { in CanPerformInstallOperation() argument
859 if (!operation.has_data_offset() && !operation.has_data_length()) in CanPerformInstallOperation()
863 if (operation.data_offset() < buffer_offset_) { in CanPerformInstallOperation()
868 return (operation.data_offset() + operation.data_length() <= in CanPerformInstallOperation()
873 const InstallOperation& operation) { in PerformReplaceOperation() argument
874 CHECK(operation.type() == InstallOperation::REPLACE || in PerformReplaceOperation()
875 operation.type() == InstallOperation::REPLACE_BZ || in PerformReplaceOperation()
[all …]
Dpartition_update_generator_android_unittest.cc100 const auto& operation = partition_update.operations(0); in CheckPartitionUpdate() local
101 ASSERT_EQ(InstallOperation::SOURCE_COPY, operation.type()); in CheckPartitionUpdate()
103 ASSERT_EQ(1, operation.src_extents_size()); in CheckPartitionUpdate()
104 ASSERT_EQ(0u, operation.src_extents(0).start_block()); in CheckPartitionUpdate()
105 ASSERT_EQ(content.size() / 4096, operation.src_extents(0).num_blocks()); in CheckPartitionUpdate()
107 ASSERT_EQ(1, operation.dst_extents_size()); in CheckPartitionUpdate()
108 ASSERT_EQ(0u, operation.dst_extents(0).start_block()); in CheckPartitionUpdate()
109 ASSERT_EQ(content.size() / 4096, operation.dst_extents(0).num_blocks()); in CheckPartitionUpdate()
Dvabc_partition_writer.h50 const InstallOperation& operation) override;
52 const InstallOperation& operation, ErrorCode* error) override;
54 [[nodiscard]] bool PerformReplaceOperation(const InstallOperation& operation,
58 [[nodiscard]] bool PerformDiffOperation(const InstallOperation& operation,
Dvabc_partition_writer.cc264 const InstallOperation& operation) { in PerformZeroOrDiscardOperation() argument
265 for (const auto& extent : operation.dst_extents()) { in PerformZeroOrDiscardOperation()
273 const InstallOperation& operation, ErrorCode* error) { in PerformSourceCopyOperation() argument
276 auto source_fd = verified_source_fd_.ChooseSourceFD(operation, error); in PerformSourceCopyOperation()
280 const auto& src_extents = operation.src_extents(); in PerformSourceCopyOperation()
281 const auto& dst_extents = operation.dst_extents(); in PerformSourceCopyOperation()
350 const InstallOperation& operation, in PerformDiffOperation() argument
355 verified_source_fd_.ChooseSourceFD(operation, error); in PerformDiffOperation()
361 operation, in PerformDiffOperation()
368 operation, std::move(writer), source_fd, data, count); in PerformDiffOperation()
Ddelta_performer.h243 bool CanPerformInstallOperation(const InstallOperation& operation);
252 ErrorCode ValidateOperationHash(const InstallOperation& operation);
255 bool PerformInstallOperation(const InstallOperation& operation);
260 bool PerformReplaceOperation(const InstallOperation& operation);
261 bool PerformZeroOrDiscardOperation(const InstallOperation& operation);
262 bool PerformSourceCopyOperation(const InstallOperation& operation,
264 bool PerformDiffOperation(const InstallOperation& operation,
/system/update_engine/common/
Dcow_operation_convert.cc68 for (const auto& operation : operations) { in ConvertToCowOperations() local
69 if (operation.type() != InstallOperation::SOURCE_COPY) { in ConvertToCowOperations()
72 const auto& src_extents = operation.src_extents(); in ConvertToCowOperations()
73 const auto& dst_extents = operation.dst_extents(); in ConvertToCowOperations()
/system/extras/boottime_tools/io_analysis/
Dcheck_io_trace.py77 operation = match.group(4)
90 if operation[0] == 'R':
94 elif operation[0] == 'W':
100 if operation[0] == 'R':
104 elif operation[0] == 'W':
117 operation = words[cmd_pos + 2]
118 if not operation.startswith("R"):
/system/keymaster/android_keymaster/
Dandroid_keymaster.cpp616 OperationPtr operation( in BeginOperation() local
618 if (operation.get() == nullptr) return; in BeginOperation()
620 operation->set_secure_deletion_slot(sd_slot); in BeginOperation()
622 if (operation->authorizations().Contains(TAG_TRUSTED_CONFIRMATION_REQUIRED)) { in BeginOperation()
623 if (!operation->create_confirmation_verifier_buffer()) { in BeginOperation()
633 operation->set_key_id(key_id); in BeginOperation()
635 request.purpose, key_id, operation->authorizations(), request.additional_params, in BeginOperation()
641 response->error = operation->Begin(request.additional_params, &response->output_params); in BeginOperation()
644 response->op_handle = operation->operation_handle(); in BeginOperation()
645 response->error = operation_table_->Add(std::move(operation)); in BeginOperation()
[all …]
Doperation_table.cpp25 keymaster_error_t OperationTable::Add(OperationPtr&& operation) { in Add() argument
32 table_[i] = std::move(operation); in Add()
/system/update_engine/payload_generator/
Ddelta_diff_utils.cc304 InstallOperation& operation = aop->op; in TryBsdiffAndUpdateOperation() local
305 if (IsDiffOperationBetter(operation, in TryBsdiffAndUpdateOperation()
311 StoreExtents(src_extents_, operation.mutable_src_extents()); in TryBsdiffAndUpdateOperation()
314 operation.set_type(operation_type); in TryBsdiffAndUpdateOperation()
336 InstallOperation& operation = aop->op; in TryPuffdiffAndUpdateOperation() local
337 if (IsDiffOperationBetter(operation, in TryPuffdiffAndUpdateOperation()
341 operation.set_type(InstallOperation::PUFFDIFF); in TryPuffdiffAndUpdateOperation()
381 InstallOperation& operation = aop->op; in TryZucchiniAndUpdateOperation() local
382 if (IsDiffOperationBetter(operation, in TryZucchiniAndUpdateOperation()
386 operation.set_type(InstallOperation::ZUCCHINI); in TryZucchiniAndUpdateOperation()
[all …]
/system/security/keystore2/src/km_compat/
Dlib.rs273 let operation = begin_result.operation.unwrap(); in test_begin_abort() localVariable
274 let result = operation.abort(); in test_begin_abort()
276 let result = operation.abort(); in test_begin_abort()
286 let operation = begin_result.operation.unwrap(); in test_begin_update_finish() localVariable
288 let update_aad_result = operation.updateAad( in test_begin_update_finish()
296 let result = operation.finish( in test_begin_update_finish()
310 let operation = begin_result.operation.unwrap(); in test_begin_update_finish() localVariable
312 let update_aad_result = operation.updateAad( in test_begin_update_finish()
319 let result = operation.update( in test_begin_update_finish()
326 let result = operation.finish( in test_begin_update_finish()
/system/logging/logd/
DReplayMessages.cpp419 std::unique_ptr<Operation> operation; in main() local
421 operation.reset(new PrintInteresting(first_log_timestamp)); in main()
423 operation.reset(new PrintMemory(first_log_timestamp, argv[3])); in main()
425 operation.reset(new PrintLatency(first_log_timestamp, argv[3])); in main()
427 operation.reset(new PrintLogs(first_log_timestamp, argv[3], argc > 4 ? argv[4] : nullptr, in main()
430 operation.reset( in main()
433 operation.reset(new SingleBufferOperation(first_log_timestamp, argv[3])); in main()
449 operation->Begin(); in main()
462 operation->Log(*meta, msg); in main()
465 operation->End(); in main()
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/proto/
Dfilter.proto13 // Success response to host operation (from CHRE).
15 // Failure response to host operation (from CHRE).
/system/hardware/interfaces/wifi/keystore/1.0/
DIKeystore.hal38 * @return status KeystoreStatusCode of the operation.
52 * @return status KeystoreStatusCode of the operation.
64 * operation that assumes |dataToSign| is already propertly digested and
68 * @return status KeystoreStatusCode of the operation.
/system/security/ondevice-signing/
DKeystoreHmacKey.cpp211 auto operation = opResponse.iOperation; in sign() local
214 status = operation->update({message.begin(), message.end()}, &out); in sign()
220 status = operation->finish({}, {}, &signature); in sign()
241 auto operation = opResponse.iOperation; in verify() local
244 status = operation->update({message.begin(), message.end()}, &out); in verify()
251 status = operation->finish({}, in_signature, &out_signature); in verify()
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator.cpp70 bool OptimizeSourceCopyOperation(const InstallOperation& operation, InstallOperation* optimized) { in OptimizeSourceCopyOperation() argument
71 if (operation.type() != InstallOperation::SOURCE_COPY) { in OptimizeSourceCopyOperation()
78 const auto& src_extents = operation.src_extents(); in OptimizeSourceCopyOperation()
79 const auto& dst_extents = operation.dst_extents(); in OptimizeSourceCopyOperation()
/system/core/libutils/
DBitSet_fuzz.cpp51 void runOperationFor32Bit(android::BitSet32 bs, uint32_t bit, uint8_t operation) { in runOperationFor32Bit() argument
52 thirtyTwoBitOps[operation](bs, bit); in runOperationFor32Bit()
/system/keymaster/include/keymaster/
Doperation_table.h33 keymaster_error_t Add(OperationPtr&& operation);
/system/security/keystore2/src/
Dlib.rs37 pub mod operation; module

1234