/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_jsonutil/ |
H A D | b_jsonutil_test.cpp | 104 std::vector<std::string> bundleNames; in HWTEST_F() local 106 bundleNames.push_back(bundleName); in HWTEST_F() 115 auto result = BJsonUtil::BuildBundleInfos(bundleNames, bundleInfos, bundleNamesOnly, in HWTEST_F() 138 std::vector<std::string> bundleNames; in HWTEST_F() local 140 bundleNames.push_back(bundleName); in HWTEST_F() 147 auto result = BJsonUtil::BuildBundleInfos(bundleNames, bundleInfos, bundleNamesOnly, in HWTEST_F() 170 std::vector<std::string> bundleNames; in HWTEST_F() local 172 bundleNames.push_back(bundleName); in HWTEST_F() 179 auto result = BJsonUtil::BuildBundleInfos(bundleNames, bundleInfos, bundleNamesOnly, in HWTEST_F() 202 std::vector<std::string> bundleNames; in HWTEST_F() local 234 std::vector<std::string> bundleNames; HWTEST_F() local 269 std::vector<std::string> bundleNames; HWTEST_F() local 303 std::vector<std::string> bundleNames; HWTEST_F() local 337 std::vector<std::string> bundleNames; HWTEST_F() local 370 std::vector<std::string> bundleNames; HWTEST_F() local 403 std::vector<std::string> bundleNames; HWTEST_F() local 436 std::vector<std::string> bundleNames; HWTEST_F() local [all...] |
/foundation/filemanagement/app_file_service/tests/unittests/backup_tools/backup_tool/ |
H A D | tools_op_restore_async_test.cpp | 481 vector<BundleName> bundleNames; in HWTEST_F() local 482 RestoreApp(nullptr, bundleNames); in HWTEST_F() 506 vector<BundleName> bundleNames; in HWTEST_F() local 507 bundleNames.push_back("bundle/name"); in HWTEST_F() 510 RestoreApp(restore, bundleNames); in HWTEST_F() 534 vector<BundleName> bundleNames; in HWTEST_F() local 535 bundleNames.push_back("bundlename"); in HWTEST_F() 538 RestoreApp(restore, bundleNames); in HWTEST_F() 563 vector<string> bundleNames = {"bundlenames"}; in HWTEST_F() local 565 int32_t ret = ChangeBundleInfo(pathCapFile, bundleNames, typ in HWTEST_F() 588 vector<string> bundleNames = {"bundlenames"}; HWTEST_F() local 613 vector<string> bundleNames = {}; HWTEST_F() local 638 vector<string> bundleNames = {"bundle1", "bundle2"}; HWTEST_F() local 666 vector<string> bundleNames = {"bundle1", "bundle2"}; HWTEST_F() local 692 vector<string> bundleNames = {"bundle1", "bundle2"}; HWTEST_F() local 719 vector<string> bundleNames = {"bun/dle1"}; HWTEST_F() local 746 vector<string> bundleNames = {"bundle1", "bundle2"}; HWTEST_F() local 774 vector<string> bundleNames = {"com.example.app2backup"}; HWTEST_F() local [all...] |
H A D | tools_op_incremental_restore_test.cpp | 244 vector<BundleName> bundleNames;
in HWTEST_F() local 245 bundleNames.push_back("bundle1");
in HWTEST_F() 246 bundleNames.push_back("bundle2");
in HWTEST_F() 248 int32_t ret = InitRestoreSession(ctx, bundleNames, times);
in HWTEST_F() 271 vector<BundleName> bundleNames;
in HWTEST_F() local 272 bundleNames.push_back("bundle1");
in HWTEST_F() 273 bundleNames.push_back("bundle2");
in HWTEST_F() 277 int32_t ret = InitRestoreSession(nullptr, bundleNames, times);
in HWTEST_F() 300 vector<BundleName> bundleNames;
in HWTEST_F() local 301 bundleNames in HWTEST_F() 594 vector<BundleName> bundleNames; HWTEST_F() local 629 vector<string> bundleNames = {"com.example.app2backup/"}; HWTEST_F() local 655 vector<string> bundleNames = {"com.example.app2backup/"}; HWTEST_F() local 681 vector<string> bundleNames = {"com.example.app2backup/"}; HWTEST_F() local [all...] |
H A D | tools_op_incremental_backup_test.cpp | 398 vector<string> bundleNames;
in HWTEST_F() local 399 bundleNames.push_back("bundle1");
in HWTEST_F() 400 bundleNames.push_back("bundle2");
in HWTEST_F() 402 int32_t ret = GetLocalCapabilitiesIncremental(ctx, pathCapFile, bundleNames, times);
in HWTEST_F() 426 vector<string> bundleNames;
in HWTEST_F() local 427 bundleNames.push_back("bundle1");
in HWTEST_F() 428 bundleNames.push_back("bundle2");
in HWTEST_F() 432 int32_t ret = GetLocalCapabilitiesIncremental(ctx, pathCapFile, bundleNames, times);
in HWTEST_F() 455 vector<string> bundleNames;
in HWTEST_F() local 456 bundleNames in HWTEST_F() [all...] |
/foundation/filemanagement/app_file_service/test/fuzztest/backupsaanother_fuzzer/ |
H A D | backupsaanother_fuzzer.cpp | 68 vector<string> bundleNames; in CmdAppendBundlesBackupSessionFuzzTest() local 72 bundleNames.push_back(name); in CmdAppendBundlesBackupSessionFuzzTest() 74 datas.WriteStringVector(bundleNames); in CmdAppendBundlesBackupSessionFuzzTest() 104 void GetBundleNamesData(const uint8_t *data, size_t size, vector<BIncrementalData> &bundleNames) in GetBundleNamesData() argument 111 bundleNames.push_back(data); in GetBundleNamesData() 120 bundleNames.push_back(incrementaData); in GetBundleNamesData() 145 vector<BIncrementalData> bundleNames; in CmdGetLocalCapabilitiesIncrementalFuzzTest() local 146 GetBundleNamesData(data, size, bundleNames); in CmdGetLocalCapabilitiesIncrementalFuzzTest() 147 WriteParcelableVector(bundleNames, datas); in CmdGetLocalCapabilitiesIncrementalFuzzTest() 182 vector<BIncrementalData> bundleNames; in CmdAppendBundlesIncrementalBackupSessionFuzzTest() local [all...] |
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/getbundlesforuid_fuzzer/ |
H A D | getbundlesforuid_fuzzer.cpp | 29 std::vector<std::string> bundleNames; in DoSomethingInterestingWithMyAPI() local 31 bundleNames.push_back(bundleName); in DoSomethingInterestingWithMyAPI() 32 bundleMgrProxy.GetBundlesForUid(reinterpret_cast<uintptr_t>(data), bundleNames); in DoSomethingInterestingWithMyAPI() local
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | ability_manager_helper.cpp | 73 auto res = std::any_of(info.bundleNames.begin(), info.bundleNames.end(), in IsRunning() 109 auto res = std::any_of(info.bundleNames.begin(), info.bundleNames.end(), in IsRunning()
|
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/cycle_task/ |
H A D | cycle_task.cpp | 23 std::set<std::string> bundleNames, in CycleTask() 28 bundleNames_(bundleNames), in CycleTask() 36 void CycleTask::SetRunnableBundleNames(std::shared_ptr<std::set<std::string>> &bundleNames) in SetRunnableBundleNames() argument 38 this->runnableBundleNames_ = bundleNames; in SetRunnableBundleNames() 22 CycleTask(std::string taskName, std::set<std::string> bundleNames, int32_t intervalTime, std::shared_ptr<CloudFile::DataSyncManager> dataSyncManager) CycleTask() argument
|
/foundation/ability/ability_runtime/services/appmgr/src/ |
H A D | exit_resident_process_manager.cpp | 87 std::vector<ExitResidentProcessInfo> &bundleNames) in HandleExitResidentBundleDependedOnWeb() 91 bundleNames = std::move(exitResidentBundlesDependedOnWeb_); in HandleExitResidentBundleDependedOnWeb() 125 std::vector<ExitResidentProcessInfo> bundleNames; in IsKilledForUpgradeWeb() local 128 bundleNames = exitResidentBundlesDependedOnWeb_; in IsKilledForUpgradeWeb() 130 for (const auto &innerBundleName : bundleNames) { in IsKilledForUpgradeWeb() 86 HandleExitResidentBundleDependedOnWeb( std::vector<ExitResidentProcessInfo> &bundleNames) HandleExitResidentBundleDependedOnWeb() argument
|
/foundation/filemanagement/app_file_service/services/backup_sa/src/module_external/ |
H A D | bms_adapter.cpp | 114 vector<BJsonEntityCaps::BundleInfo> BundleMgrAdapter::GetBundleInfos(const vector<string> &bundleNames, int32_t userId) in GetBundleInfos() argument 118 HILOGI("Start, bundleNames size:%{public}zu", bundleNames.size()); in GetBundleInfos() 119 for (auto const &bundleName : bundleNames) { in GetBundleInfos() 245 static bool GenerateBundleStatsIncrease(int32_t userId, const vector<string> &bundleNames, in GenerateBundleStatsIncrease() argument 251 int32_t err = StorageMgrAdapter::GetBundleStatsForIncrease(userId, bundleNames, lastBackTimes, in GenerateBundleStatsIncrease() 257 HILOGI("bundleNames size:%{public}zu, pkgFileSizes size:%{public}zu, bundleInfos size:%{public}zu", in GenerateBundleStatsIncrease() 258 bundleNames.size(), pkgFileSizes.size(), bundleInfos.size()); in GenerateBundleStatsIncrease() 286 vector<std::string> bundleNames; in GetBundleInfosForIncremental() local 318 bundleNames in GetBundleInfosForIncremental() 343 vector<BIncrementalData> bundleNames; GetBundleInfosForIncremental() local 386 vector<string> bundleNames; GetFullBundleInfos() local [all...] |
/foundation/filemanagement/app_file_service/tools/backup_tool/src/ |
H A D | tools_op_incremental_restore_async.cpp | 254 static void RestoreApp(shared_ptr<InrementalSessionAsync> restore, vector<BundleName> &bundleNames) in RestoreApp() argument 260 for (auto &bundleName : bundleNames) { in RestoreApp() 309 static int32_t ChangeBundleInfo(const string &pathCapFile, const vector<string> &bundleNames, const string &type) in ChangeBundleInfo() argument 322 for (auto name : bundleNames) { in ChangeBundleInfo() 351 vector<string> bundleNames, in AppendBundles() 367 int ret = restore->session_->AppendBundles(move(fd), bundleNames, restoreType, atoi(userId.data())); in AppendBundles() 373 RestoreApp(restore, bundleNames); in AppendBundles() 387 const vector<string> &bundleNames, in InitArg() 394 if (ChangeBundleInfo(pathCapFile, bundleNames, type)) { in InitArg() 400 size_t len = bundleNames in InitArg() 349 AppendBundles(shared_ptr<InrementalSessionAsync> restore, const string &pathCapFile, vector<string> bundleNames, const string &type, const string &userId) AppendBundles() argument 386 InitArg(const string &pathCapFile, const vector<string> &bundleNames, const string &type, const string &userId) InitArg() argument [all...] |
H A D | tools_op_restore_async.cpp | 247 static void RestoreApp(shared_ptr<SessionAsync> restore, vector<BundleName> &bundleNames) in RestoreApp() argument 253 for (auto &bundleName : bundleNames) { in RestoreApp() 292 static int32_t ChangeBundleInfo(const string &pathCapFile, const vector<string> &bundleNames, const string &type) in ChangeBundleInfo() argument 305 for (auto name : bundleNames) { in ChangeBundleInfo() 334 vector<string> bundleNames, in AppendBundles() 350 int ret = restore->session_->AppendBundles(move(fd), bundleNames, restoreType, atoi(userId.data())); in AppendBundles() 356 RestoreApp(restore, bundleNames); in AppendBundles() 370 const vector<string> &bundleNames, in InitArg() 377 if (ChangeBundleInfo(pathCapFile, bundleNames, type)) { in InitArg() 383 size_t len = bundleNames in InitArg() 332 AppendBundles(shared_ptr<SessionAsync> restore, const string &pathCapFile, vector<string> bundleNames, const string &type, const string &userId) AppendBundles() argument 369 InitArg(const string &pathCapFile, const vector<string> &bundleNames, const string &type, const string &userId) InitArg() argument [all...] |
H A D | tools_op_incremental_restore.cpp | 264 const vector<BundleName> &bundleNames, in InitRestoreSession() 267 if (bundleNames.size() != times.size()) { in InitRestoreSession() 289 for (const auto &bundleName : bundleNames) { in InitRestoreSession() 299 static int32_t Init(const string &pathCapFile, vector<string> bundleNames, bool depMode, vector<string> times) in Init() argument 310 size_t len = bundleNames.size(); in Init() 312 ctx->fileNums_[bundleNames[i]] = ToolsOp::GetFIleNums(bundleNames[i], false); in Init() 314 int32_t ret = InitRestoreSession(ctx, bundleNames, times); in Init() 321 for (auto &bundleName : bundleNames) { in Init() 335 ret = ctx->session_->AppendBundles(move(fd), bundleNames); in Init() 263 InitRestoreSession(shared_ptr<SessionRestore> ctx, const vector<BundleName> &bundleNames, vector<string> ×) InitRestoreSession() argument [all...] |
H A D | tools_op_restore.cpp | 205 static void RestoreApp(shared_ptr<Session> restore, vector<BundleName> &bundleNames, bool updateSendFiles) in RestoreApp() argument 211 for (auto &bundleName : bundleNames) { in RestoreApp() 275 static int32_t InitPathCapFile(const string &pathCapFile, vector<string> bundleNames, bool depMode) in InitPathCapFile() argument 286 size_t len = bundleNames.size(); in InitPathCapFile() 288 ctx->fileNums_[bundleNames[i]] = ToolsOp::GetFIleNums(bundleNames[i]); in InitPathCapFile() 295 ctx->SetBundleFinishedCount(bundleNames.size()); in InitPathCapFile() 296 RestoreApp(ctx, bundleNames, true); in InitPathCapFile() 298 for (auto &bundleName : bundleNames) { in InitPathCapFile() 312 ret = ctx->session_->AppendBundles(move(fd), bundleNames); in InitPathCapFile() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/aot/ |
H A D | aot_handler.cpp | 279 std::vector<std::string> bundleNames = dataMgr->GetAllBundleName(); in ClearArkCacheDir() local 280 std::for_each(bundleNames.cbegin(), bundleNames.cend(), [dataMgr](const auto &bundleName) { in ClearArkCacheDir() 344 std::vector<std::string> bundleNames; in HandleResetAOT() local 346 bundleNames = dataMgr->GetAllBundleName(); in HandleResetAOT() 348 bundleNames = {bundleName}; in HandleResetAOT() 350 std::for_each(bundleNames.cbegin(), bundleNames.cend(), [dataMgr](const auto &bundleToReset) { in HandleResetAOT() 389 std::vector<std::string> bundleNames; in HandleCopyAp() local 391 bundleNames in HandleCopyAp() 564 std::vector<std::string> bundleNames; OTACompileInternal() local 601 GetUserBehaviourAppList(std::vector<std::string> &bundleNames, int32_t size) const GetUserBehaviourAppList() argument 772 std::vector<std::string> bundleNames = dataMgr->GetAllBundleName(); HandleIdle() local 827 std::vector<std::string> bundleNames; HandleCompile() local 841 HandleCompileBundles(const std::vector<std::string> &bundleNames, const std::string &compileMode, std::shared_ptr<BundleDataMgr> &dataMgr, std::vector<std::string> &compileResults) const HandleCompileBundles() argument [all...] |
/foundation/filemanagement/app_file_service/interfaces/inner_api/native/backup_kit_inner/impl/ |
H A D | service_proxy.h | 42 const std::vector<BundleName> &bundleNames, 47 const std::vector<BundleName> &bundleNames, 50 ErrCode AppendBundlesBackupSession(const std::vector<BundleName> &bundleNames) override; 51 ErrCode AppendBundlesDetailsBackupSession(const std::vector<BundleName> &bundleNames, 55 UniqueFd GetLocalCapabilitiesIncremental(const std::vector<BIncrementalData> &bundleNames) override;
|
H A D | i_service.h | 59 const std::vector<BundleName> &bundleNames, 64 const std::vector<BundleName> &bundleNames, 67 virtual ErrCode AppendBundlesBackupSession(const std::vector<BundleName> &bundleNames) = 0; 68 virtual ErrCode AppendBundlesDetailsBackupSession(const std::vector<BundleName> &bundleNames, 72 virtual UniqueFd GetLocalCapabilitiesIncremental(const std::vector<BIncrementalData> &bundleNames) = 0;
|
/foundation/filemanagement/app_file_service/test/fuzztest/backupservicestub_fuzzer/ |
H A D | backupservicestub_fuzzer.cpp | 255 vector<string> bundleNames; in CmdAppendBundlesRestoreSessionFuzzTest() local 256 bundleNames.emplace_back(string(reinterpret_cast<const char*>(data + pos), size - pos)); in CmdAppendBundlesRestoreSessionFuzzTest() 258 msg.WriteStringVector(bundleNames); in CmdAppendBundlesRestoreSessionFuzzTest() 283 vector<string> bundleNames; in CmdAppendBundlesDetailsRestoreSessionFuzzTest() local 284 bundleNames.emplace_back(string(reinterpret_cast<const char*>(data + pos), len)); in CmdAppendBundlesDetailsRestoreSessionFuzzTest() 288 msg.WriteStringVector(bundleNames); in CmdAppendBundlesDetailsRestoreSessionFuzzTest() 305 vector<string> bundleNames; in CmdAppendBundlesBackupSessionFuzzTest() local 306 bundleNames.emplace_back(string(reinterpret_cast<const char*>(data), size)); in CmdAppendBundlesBackupSessionFuzzTest() 307 msg.WriteStringVector(bundleNames); in CmdAppendBundlesBackupSessionFuzzTest() 322 vector<string> bundleNames; in CmdAppendBundlesDetailsBackupSessionFuzzTest() local 365 vector<BIncrementalData> bundleNames; CmdGetLocalCapabilitiesIncrementalFuzzTest() local [all...] |
/foundation/filemanagement/app_file_service/tests/unittests/backup_sa/session/ |
H A D | service_proxy_mock.h | 41 MOCK_METHOD5(AppendBundlesRestoreSession, ErrCode(UniqueFd fd, const std::vector<BundleName> &bundleNames, 43 MOCK_METHOD4(AppendBundlesRestoreSession, ErrCode(UniqueFd fd, const std::vector<BundleName> &bundleNames, 45 MOCK_METHOD1(AppendBundlesBackupSession, ErrCode(const std::vector<BundleName> &bundleNames)); 48 MOCK_METHOD1(GetLocalCapabilitiesIncremental, UniqueFd(const std::vector<BIncrementalData> &bundleNames));
|
/foundation/filemanagement/app_file_service/tests/moduletests/backup_kit_inner/ |
H A D | b_session_restore_async_test.cpp | 234 vector<string> bundleNames; in HWTEST_F() local 235 ErrCode ret = restorePtr_->AppendBundles(UniqueFd(-1), bundleNames); in HWTEST_F() 237 ret = restorePtr_->AppendBundles(UniqueFd(-1), bundleNames); in HWTEST_F() 240 ret = restorePtr_->AppendBundles(UniqueFd(-1), bundleNames); in HWTEST_F() 269 vector<string> bundleNames; in HWTEST_F() local 271 ErrCode ret = restorePtr_->AppendBundles(UniqueFd(-1), bundleNames, detailInfos); in HWTEST_F() 273 ret = restorePtr_->AppendBundles(UniqueFd(-1), bundleNames, detailInfos); in HWTEST_F() 276 ret = restorePtr_->AppendBundles(UniqueFd(-1), bundleNames, detailInfos); in HWTEST_F()
|
/foundation/filemanagement/dfs_service/test/fuzztest/cycletaskrunner_fuzzer/ |
H A D | cycletaskrunner_fuzzer.cpp | 54 std::set<std::string> bundleNames; in CycleTaskDerivedFuzzTest() local 55 bundleNames.insert(bundleName); in CycleTaskDerivedFuzzTest() 56 auto bundleNamesPtr = make_shared<std::set<std::string>>(bundleNames); in CycleTaskDerivedFuzzTest()
|
/foundation/filemanagement/app_file_service/tests/unittests/backup_api/backup_impl/ |
H A D | service_proxy_test.cpp | 354 std::vector<string> bundleNames; in HWTEST_F() local 358 int32_t result = proxy_->AppendBundlesRestoreSession(move(fd), bundleNames); in HWTEST_F() 360 result = proxy_->AppendBundlesRestoreSession(UniqueFd(-1), bundleNames); in HWTEST_F() 385 std::vector<string> bundleNames; in HWTEST_F() local 390 int32_t result = proxy_->AppendBundlesRestoreSession(move(fd), bundleNames, detailInfos); in HWTEST_F() 392 result = proxy_->AppendBundlesRestoreSession(UniqueFd(-1), bundleNames, detailInfos); in HWTEST_F() 414 std::vector<string> bundleNames; in HWTEST_F() local 415 int32_t result = proxy_->AppendBundlesRestoreSession(UniqueFd(-1), bundleNames); in HWTEST_F() 417 result = proxy_->AppendBundlesRestoreSession(UniqueFd(-1), bundleNames); in HWTEST_F() 443 std::vector<string> bundleNames; in HWTEST_F() local 473 std::vector<std::string> bundleNames; HWTEST_F() local 561 std::vector<BIncrementalData> bundleNames; HWTEST_F() local 621 std::vector<BIncrementalData> bundleNames; HWTEST_F() local 652 std::vector<BIncrementalData> bundleNames; HWTEST_F() local [all...] |
/foundation/filemanagement/app_file_service/tests/mock/module_external/src/ |
H A D | sms_adapter_mock.cpp | 36 int32_t StorageMgrAdapter::GetBundleStatsForIncrease(uint32_t userId, const std::vector<std::string> &bundleNames, in GetBundleStatsForIncrease() argument 40 return BStorageMgrAdapter::sms->GetBundleStatsForIncrease(userId, bundleNames, incrementalBackTimes, pkgFileSizes, in GetBundleStatsForIncrease()
|
/foundation/bundlemanager/app_domain_verify/interfaces/kits/js/src/ |
H A D | app_domain_verify_manager_napi.cpp | 110 std::vector<std::string> bundleNames; in QueryAssociatedBundleNames() local 111 auto ret = AppDomainVerifyMgrClient::GetInstance()->QueryAssociatedBundleNames(domain, bundleNames); in QueryAssociatedBundleNames() 119 return BuildStringArray(env, bundleNames); in QueryAssociatedBundleNames() 123 return BuildStringArray(env, bundleNames); in QueryAssociatedBundleNames()
|
/foundation/filemanagement/app_file_service/tests/unittests/backup_sa/module_ipc/ |
H A D | sched_scheduler_test.cpp | 68 vector<string> bundleNames; in Init() local 70 bundleNames.emplace_back(BUNDLE_NAME); in Init() 78 transform(bundleNames.begin(), bundleNames.end(), inserter(backupExtNameMap, backupExtNameMap.end()), in Init()
|