Home
last modified time | relevance | path

Searched refs:ToolsOp (Results 1 - 19 of 19) sorted by relevance

/foundation/filemanagement/app_file_service/tests/unittests/backup_tools/backup_tool/
H A Dtools_op_test.cpp50 bool autoTest = ToolsOp::Register(ToolsOp {ToolsOp::Descriptor { in HWTEST_F()
59 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
60 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
86 bool autoTest = ToolsOp::Register(ToolsOp {ToolsOp::Descriptor { in HWTEST_F()
113 ToolsOp obj({ToolsOp in HWTEST_F()
[all...]
H A Dtools_op_check_sa_test.cpp53 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
54 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
94 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
95 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
H A Dtools_op_help_test.cpp58 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
59 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
H A Dtools_op_incremental_backup_test.cpp65 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
66 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
102 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
103 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
168 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
169 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
H A Dtools_op_backup_test.cpp42 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in PerformBackupOperation()
43 auto &&opeartions = ToolsOp::GetAllOperations(); in PerformBackupOperation()
120 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
121 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
H A Dtools_op_restore_test.cpp88 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
89 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
123 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
124 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
176 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
177 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
235 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
236 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
H A Dtools_op_restore_async_test.cpp91 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
92 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
132 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
133 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
172 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
173 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
H A Dtools_op_incremental_restore_test.cpp82 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
83 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
119 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
120 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
184 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in HWTEST_F()
185 auto &&opeartions = ToolsOp::GetAllOperations(); in HWTEST_F()
/foundation/filemanagement/app_file_service/tools/backup_tool/include/
H A Dtools_op.h28 class ToolsOp { class
52 explicit ToolsOp(Descriptor &&desc) : desc_(std::move(desc)) {} in ToolsOp() function in OHOS::FileManagement::Backup::ToolsOp
84 * @return const std::vector<ToolsOp>& 所有操作
86 static const std::vector<ToolsOp> &GetAllOperations() in GetAllOperations()
88 return ToolsOp::opsAvailable_; in GetAllOperations()
98 static bool Register(ToolsOp &&op);
125 static inline std::vector<ToolsOp> opsAvailable_;
/foundation/filemanagement/app_file_service/tools/backup_tool/src/
H A Dtools_op.cpp25 const std::string ToolsOp::GetName() const in GetName()
40 bool ToolsOp::Register(ToolsOp &&op) in Register()
66 ToolsOp::opsAvailable_.emplace_back(std::move(op)); in Register()
69 std::sort(opsAvailable_.begin(), opsAvailable_.end(), [](const ToolsOp &lop, const ToolsOp &rop) { in Register()
75 bool ToolsOp::TryMatch(CRefVStrView op) const in TryMatch()
80 int ToolsOp::Execute(map<string, vector<string>> args) const in Execute()
89 int ToolsOp::GetFIleNums(const std::string &bundleName, bool isWholeRestore) in GetFIleNums()
H A Dtools_op_help.cpp33 auto &&allOps = ToolsOp::GetAllOperations(); in Exec()
55 return ToolsOp::Register(ToolsOp{ ToolsOp::Descriptor { in HelpRegister()
H A Dtools_op_check_sa.cpp47 return ToolsOp::Register(ToolsOp{ ToolsOp::Descriptor { in CheckSaRegister()
H A Dmain.cpp45 optional<map<string, vector<string>>> GetArgsMap(int argc, char *const argv[], const vector<ToolsOp::CmdInfo> &argList) in GetArgsMap()
107 auto tryOpSucceed = [&curOp](const ToolsOp &op) { return op.TryMatch(curOp); }; in ParseOpAndExecute()
108 auto &&opeartions = ToolsOp::GetAllOperations(); in ParseOpAndExecute()
111 vector<ToolsOp::CmdInfo> argList = matchedOp->GetParams(); in ParseOpAndExecute()
H A Dtools_op_backup.cpp287 return ToolsOp::Register(ToolsOp {ToolsOp::Descriptor { in BackUpRegister()
H A Dtools_op_incremental_restore_async.cpp402 ctx->fileNums_[bundleNames[i]] = ToolsOp::GetFIleNums(bundleNames[i], false); in InitArg()
433 return ToolsOp::Register(ToolsOp {ToolsOp::Descriptor { in IncrementalRestoreAsyncRegister()
H A Dtools_op_restore_async.cpp385 ctx->fileNums_[bundleNames[i]] = ToolsOp::GetFIleNums(bundleNames[i]); in InitArg()
416 return ToolsOp::Register(ToolsOp {ToolsOp::Descriptor { in RestoreAsyncRegister()
H A Dtools_op_incremental_restore.cpp312 ctx->fileNums_[bundleNames[i]] = ToolsOp::GetFIleNums(bundleNames[i], false); in Init()
365 return ToolsOp::Register(ToolsOp {ToolsOp::Descriptor { in IncrementalRestoreRegister()
H A Dtools_op_restore.cpp288 ctx->fileNums_[bundleNames[i]] = ToolsOp::GetFIleNums(bundleNames[i]); in InitPathCapFile()
340 return ToolsOp::Register(ToolsOp {ToolsOp::Descriptor { in RestoreRegister()
H A Dtools_op_incremental_backup.cpp359 return ToolsOp::Register(ToolsOp {ToolsOp::Descriptor { in IncrementalBackUpRegister()

Completed in 13 milliseconds