Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 25 of 40) sorted by relevance

12

/system/core/libsparse/
Doutput_file.cpp83 struct output_file_ops* ops; member
359 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); in write_sparse_skip_chunk()
382 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); in write_sparse_fill_chunk()
385 ret = out->ops->write(out, &fill_val, sizeof(fill_val)); in write_sparse_fill_chunk()
413 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); in write_sparse_data_chunk()
416 ret = out->ops->write(out, data, len); in write_sparse_data_chunk()
423 ret = out->ops->write(out, out->zero_buf, write_len); in write_sparse_data_chunk()
464 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); in write_sparse_fd_chunk()
468 ret = out->ops->write(out, data, size); in write_sparse_fd_chunk()
481 ret = out->ops->write(out, out->zero_buf, write_len); in write_sparse_fd_chunk()
[all …]
/system/core/fs_mgr/libfs_avb/
Davb_ops.cpp51 static AvbIOResult read_from_partition(AvbOps* ops, const char* partition, int64_t offset, in read_from_partition() argument
53 return FsManagerAvbOps::GetInstanceFromAvbOps(ops)->ReadFromPartition( in read_from_partition()
57 static AvbIOResult no_op_read_rollback_index(AvbOps* ops ATTRIBUTE_UNUSED, in no_op_read_rollback_index()
67 AvbOps* ops ATTRIBUTE_UNUSED, const uint8_t* public_key_data ATTRIBUTE_UNUSED, in no_op_validate_vbmeta_public_key()
81 static AvbIOResult no_op_read_is_device_unlocked(AvbOps* ops ATTRIBUTE_UNUSED, in no_op_read_is_device_unlocked()
90 static AvbIOResult no_op_get_unique_guid_for_partition(AvbOps* ops ATTRIBUTE_UNUSED, in no_op_get_unique_guid_for_partition()
101 static AvbIOResult get_size_of_partition(AvbOps* ops ATTRIBUTE_UNUSED, in get_size_of_partition()
104 return FsManagerAvbOps::GetInstanceFromAvbOps(ops)->GetSizeOfPartition(partition, in get_size_of_partition()
Davb_ops.h53 static FsManagerAvbOps* GetInstanceFromAvbOps(AvbOps* ops) { in GetInstanceFromAvbOps() argument
54 return reinterpret_cast<FsManagerAvbOps*>(ops->user_data); in GetInstanceFromAvbOps()
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dwriter_v3.cpp279 TranslatedCowOps ops; in OpenForAppend() local
280 parser.Translate(&ops); in OpenForAppend()
281 header_.op_count = ops.ops->size(); in OpenForAppend()
283 for (const auto& op : *ops.ops) { in OpenForAppend()
691 bool CowWriterV3::WriteOperation(std::span<const CowOperationV3> ops, in WriteOperation() argument
697 header_.op_count += ops.size(); in WriteOperation()
708 if (header_.op_count + ops.size() > header_.op_count_max) { in WriteOperation()
710 << ops.size() << " ops will exceed the max of " << header_.op_count_max; in WriteOperation()
714 if (!android::base::WriteFullyAtOffset(fd_, ops.data(), ops.size() * sizeof(ops[0]), offset)) { in WriteOperation()
715 PLOG(ERROR) << "Write failed for " << ops.size() << " ops at " << offset; in WriteOperation()
[all …]
Dcow_reader.cpp156 ops_ = std::move(ops_info.ops); in Parse()
500 CowOpIter(std::shared_ptr<std::vector<CowOperation>>& ops, uint64_t start);
514 CowOpIter::CowOpIter(std::shared_ptr<std::vector<CowOperation>>& ops, uint64_t start) { in CowOpIter() argument
515 ops_ = ops; in CowOpIter()
544 explicit CowRevMergeOpIter(std::shared_ptr<std::vector<CowOperation>> ops,
563 explicit CowMergeOpIter(std::shared_ptr<std::vector<CowOperation>> ops,
580 CowMergeOpIter::CowMergeOpIter(std::shared_ptr<std::vector<CowOperation>> ops, in CowMergeOpIter() argument
582 ops_ = ops; in CowMergeOpIter()
611 CowRevMergeOpIter::CowRevMergeOpIter(std::shared_ptr<std::vector<CowOperation>> ops, in CowRevMergeOpIter() argument
614 ops_ = ops; in CowRevMergeOpIter()
Dparser_v2.cpp201 out->ops = std::make_shared<std::vector<CowOperationV3>>(v2_ops_->size()); in Translate()
204 for (size_t i = 0; i < out->ops->size(); i++) { in Translate()
207 auto& new_op = out->ops->at(i); in Translate()
Dparser_base.h30 std::shared_ptr<std::vector<CowOperationV3>> ops; member
Dparser_v3.cpp136 out->ops = ops_; in Translate()
/system/unwinding/libunwindstack/tests/
DDwarfCfaLogTest.cpp564 std::vector<uint8_t> ops{0x0f, 0x81, 0x01}; in TYPED_TEST_P() local
568 ops.push_back(0x05); in TYPED_TEST_P()
578 this->fake_memory_->SetMemory(0x200, ops); in TYPED_TEST_P()
602 std::vector<uint8_t> ops{0x10, 0xff, 0x01, 0x82, 0x01}; in TYPED_TEST_P() local
606 ops.push_back(0xa0 + (i - 5) % 96); in TYPED_TEST_P()
608 op_string += android::base::StringPrintf("4 unwind Raw Data: 0x%02x\n", ops.back()); in TYPED_TEST_P()
609 expected += android::base::StringPrintf(" 0x%02x", ops.back()); in TYPED_TEST_P()
616 this->fake_memory_->SetMemory(0x200, ops); in TYPED_TEST_P()
686 std::vector<uint8_t> ops{0x16, 0x83, 0x10, 0xa8, 0x01}; in TYPED_TEST_P() local
690 ops.push_back(0xa0 + (i % 96)); in TYPED_TEST_P()
[all …]
DDwarfCfaTest.cpp735 std::vector<uint8_t> ops{0x0f, 0x81, 0x01}; in TYPED_TEST_P() local
737 ops.push_back(i - 1); in TYPED_TEST_P()
739 this->fake_memory_->SetMemory(0x200, ops); in TYPED_TEST_P()
768 std::vector<uint8_t> ops{0x10, 0xff, 0x01, 0x82, 0x01}; in TYPED_TEST_P() local
770 ops.push_back(i - 4); in TYPED_TEST_P()
773 this->fake_memory_->SetMemory(0x200, ops); in TYPED_TEST_P()
868 std::vector<uint8_t> ops{0x16, 0x83, 0x10, 0xa8, 0x01}; in TYPED_TEST_P() local
870 ops.push_back(i); in TYPED_TEST_P()
873 this->fake_memory_->SetMemory(0xa00, ops); in TYPED_TEST_P()
/system/extras/tests/mmc_tracepoints/
DREADME15 The output is in a form of start/stop pairs. The ops with rw in the name are
16 read or write ops, and the ones with erase in the name are the various erase
/system/security/keystore2/tests/
Dkeystore2_client_operation_tests.rs328 let mut ops: Vec<binder::Result<CreateOperationResponse>> = (0..MAX_OPS) in keystore2_ops_prune_test() localVariable
342 match &ops[vec_index] { in keystore2_ops_prune_test()
355 ops.push( in keystore2_ops_prune_test()
371 match ops.last() { in keystore2_ops_prune_test()
/system/chre/apps/tflm_demo/src/
Dmodel.cc36 ::tflite::ops::micro::Register_FULLY_CONNECTED(), 1, 4); in RegisterSelectedOps()
/system/update_engine/payload_generator/
Ddelta_diff_utils.cc147 static bool ShouldCreateNewOp(const std::vector<CowMergeOperation>& ops, in ShouldCreateNewOp() argument
151 if (ops.empty()) { in ShouldCreateNewOp()
154 const auto& op = ops.back(); in ShouldCreateNewOp()
164 void AppendXorBlock(std::vector<CowMergeOperation>* ops, in AppendXorBlock() argument
168 if (!ops->empty() && ExtentContains(ops->back().dst_extent(), dst_block)) { in AppendXorBlock()
173 if (ShouldCreateNewOp(*ops, src_block, dst_block, src_offset)) { in AppendXorBlock()
174 auto& op = ops->emplace_back(); in AppendXorBlock()
182 auto& op = ops->back(); in AppendXorBlock()
Dmerge_sequence_generator_unittest.cc425 std::vector<CowMergeOperation> ops; in TEST_F() local
426 ops.reserve(part.merge_operations_size()); in TEST_F()
428 ops.emplace_back(op); in TEST_F()
430 MergeSequenceGenerator generator(ops, part.partition_name()); in TEST_F()
/system/core/fs_mgr/
Dfs_mgr_remount.cpp405 std::unique_ptr<AvbOps, decltype(&avb_ops_user_free)> ops(avb_ops_user_new(), in SetVerityState() local
407 if (!ops) { in SetVerityState()
411 if (!avb_user_verity_set(ops.get(), ab_suffix.c_str(), enable_verity)) { in SetVerityState()
416 if (!avb_user_verification_get(ops.get(), ab_suffix.c_str(), &verification_enabled)) { in SetVerityState()
/system/security/keystore2/test_utils/
Dlib.rs20 use std::{env::temp_dir, ops::Deref};
Dauthorizations.rs17 use std::ops::Deref;
/system/hardware/interfaces/suspend/1.0/
DIWakeLock.hal27 * called. Subsequent calls must result in no-ops. If no unreleased wake
/system/keymint/boringssl/src/
Daes_cmac.rs80 impl core::ops::Drop for BoringAesCmacOperation {
Dhmac.rs80 impl core::ops::Drop for BoringHmacOperation {
/system/security/keystore2/src/crypto/
Dzvec.rs21 use std::ops::{Deref, DerefMut};
/system/core/trusty/keymint/src/
Dkeymint_hal_main.rs23 ops::DerefMut,
/system/media/camera/src/
Dcamera_metadata.c1038 int set_camera_metadata_vendor_tag_ops(const vendor_tag_query_ops_t* ops) { in set_camera_metadata_vendor_tag_ops() argument
1040 (void) ops; in set_camera_metadata_vendor_tag_ops()
1046 int set_camera_metadata_vendor_ops(const vendor_tag_ops_t* ops) { in set_camera_metadata_vendor_ops() argument
1047 vendor_tag_ops = ops; in set_camera_metadata_vendor_ops()
/system/media/audio_utils/tests/
Daudio_tflite_tests.cpp172 tflite::ops::builtin::BuiltinOpResolver resolver; in BuildTestModel()

12