/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/module_external/ |
H A D | bms_adapter_mock.cpp | 33 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in GetBundleInfos() local 34 bundleInfos.emplace_back( in GetBundleInfos() 37 return bundleInfos; in GetBundleInfos() 49 bundleInfos.emplace_back( in GetBundleInfosForIncremental() 52 return bundleInfos; in GetBundleInfosForIncremental() 59 bundleInfos.emplace_back( in GetBundleInfosForIncremental() 62 return bundleInfos; in GetBundleInfosForIncremental() 69 bundleInfos.emplace_back( in GetFullBundleInfos() 72 return bundleInfos; in GetFullBundleInfos() 89 bundleInfos.emplace_back( in GetBundleInfosForAppend() [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_jsonutil/ |
H A D | b_jsonutil_test.cpp | 110 bundleInfos.push_back(bundleInfo); 111 bundleInfos.push_back(bundleInfo2); 143 bundleInfos.push_back(bundleInfo); 175 bundleInfos.push_back(bundleInfo); 207 bundleInfos.push_back(bundleInfo); 241 bundleInfos.push_back(bundleInfo); 274 bundleInfos.push_back(bundleInfo); 308 bundleInfos.push_back(bundleInfo); 342 bundleInfos.push_back(bundleInfo); 375 bundleInfos.push_back(bundleInfo); [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_ms_feature.cpp | 265 BundleInfo *bundleInfos = nullptr; in HandleGetBundleInfos() local 437 if ((bundleInfos == nullptr) || (len == nullptr)) { in QueryKeepAliveBundleInfos() 458 if (*bundleInfos == nullptr || memset_s(*bundleInfos, sizeof(BundleInfo) * (*len), 0, in QueryKeepAliveBundleInfos() 495 if (metaDataKey == nullptr || bundleInfos == nullptr) { in GetBundleInfosByMetaData() 518 if (*bundleInfos == nullptr || memset_s(*bundleInfos, sizeof(BundleInfo) * (*len), 0, in GetBundleInfosByMetaData() 567 BundleInfo *bundleInfos = nullptr; in GetInnerBundleInfos() local 574 errorCode = GetBundleInfos(flag, &bundleInfos, length); in GetInnerBundleInfos() 576 errorCode = QueryKeepAliveBundleInfos(&bundleInfos, length); in GetInnerBundleInfos() 589 BundleInfoUtils::FreeBundleInfos(bundleInfos, *length); in GetInnerBundleInfos() 593 return bundleInfos; in GetInnerBundleInfos() [all …]
|
H A D | bundle_map.cpp | 174 uint8_t BundleMap::GetBundleInfos(int32_t flags, BundleInfo **bundleInfos, int32_t *len) const in GetBundleInfos() argument 176 if (bundleInfos == nullptr) { in GetBundleInfos() 196 *bundleInfos = infos; in GetBundleInfos() 207 uint8_t BundleMap::GetBundleInfosInner(List<BundleInfo *> &bundleInfos) const in GetBundleInfosInner() 213 bundleInfos.PushBack(node->value_); in GetBundleInfosInner() 218 uint8_t BundleMap::GetBundleInfosNoReplication(int32_t flags, BundleInfo **bundleInfos, int32_t *le… in GetBundleInfosNoReplication() argument 220 if (bundleInfos == nullptr) { in GetBundleInfosNoReplication() 240 *bundleInfos = infos; in GetBundleInfosNoReplication()
|
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | resident_process_manager.cpp | 95 for (size_t i = 0; i < bundleInfos.size(); i++) { in StartResidentProcessWithMainElement() 101 bool keepAliveEnable = bundleInfos[i].isKeepAlive; in StartResidentProcessWithMainElement() 108 for (auto hapModuleInfo : bundleInfos[i].hapModuleInfos) { in StartResidentProcessWithMainElement() 129 bundleInfos.erase(bundleInfos.begin() + *iter); in StartResidentProcessWithMainElement() 137 for (size_t i = 0; i < bundleInfos.size(); i++) { in NotifyDisableResidentProcess() 290 if (!bundleInfos.empty()) { in UpdateResidentProcessesStatus() 291 StartResidentProcess(bundleInfos); in UpdateResidentProcessesStatus() 296 NotifyDisableResidentProcess(bundleInfos, userId); in UpdateResidentProcessesStatus() 389 bundleInfos, userId)); in GetResidentBundleInfosForUser() 399 bundleInfos.push_back(bundleInfo); in GetResidentBundleInfosForUser() [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/services/backup_sa/src/module_external/ |
H A D | bms_adapter.cpp | 117 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in GetBundleInfos() local 127 GetBundleInfoForSA(bundleName, bundleInfos); in GetBundleInfos() 150 return bundleInfos; in GetBundleInfos() 264 if (bundleInfos.size() != pkgFileSizes.size()) { in GenerateBundleStatsIncrease() 268 for (size_t i = 0; i < bundleInfos.size(); i++) { in GenerateBundleStatsIncrease() 293 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in GetBundleInfosForIncremental() local 350 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in GetBundleInfosForIncremental() local 381 return bundleInfos; in GetBundleInfosForIncremental() 393 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in GetFullBundleInfos() local 423 return bundleInfos; in GetFullBundleInfos() [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/ |
H A D | bundle_manager.cpp | 558 *bundleInfos = nullptr; in ObtainInnerBundleInfos() 563 if (*bundleInfos == nullptr) { in ObtainInnerBundleInfos() 569 AdapterFree(*bundleInfos); in ObtainInnerBundleInfos() 582 BundleInfo **bundleInfos) in ObtainBundleInfosOneByOne() argument 584 if (bmsClient == nullptr || bundleInfos == nullptr) { in ObtainBundleInfosOneByOne() 647 *bundleInfos = nullptr; in ObtainBundleInfos() 652 if (*bundleInfos == nullptr) { in ObtainBundleInfos() 658 AdapterFree(*bundleInfos); in ObtainBundleInfos() 674 if ((bundleInfos == nullptr) || (len == nullptr)) { in GetBundleInfos() 730 uint8_t QueryKeepAliveBundleInfos(BundleInfo **bundleInfos, int32_t *len) in QueryKeepAliveBundleInfos() argument [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | hidump_helper.cpp | 187 std::vector<BundleInfo> bundleInfos; in GetAllAbilityInfo() local 192 bundleInfos, Constants::ANY_USERID)) { in GetAllAbilityInfo() 197 for (auto &bundleInfo : bundleInfos) { in GetAllAbilityInfo() 218 std::vector<BundleInfo> bundleInfos; in GetAllAbilityNameList() local 223 bundleInfos, Constants::ANY_USERID)) { in GetAllAbilityNameList() 228 for (const auto &bundleInfo : bundleInfos) { in GetAllAbilityNameList() 246 std::vector<BundleInfo> bundleInfos; in GetAbilityInfoByName() local 251 bundleInfos, Constants::ANY_USERID)) { in GetAbilityInfoByName() 282 std::vector<BundleInfo> bundleInfos; in GetAllBundleInfo() local 287 bundleInfos, Constants::ANY_USERID)) { in GetAllBundleInfo() [all …]
|
H A D | user_unlocked_event_subscriber.cpp | 251 std::vector<BundleInfo> bundleInfos; in UpdateAppDataDirSelinuxLabel() local 253 BundleFlag::GET_BUNDLE_WITH_REQUESTED_PERMISSION, bundleInfos, userId)) { in UpdateAppDataDirSelinuxLabel() 264 ReturnIfNewTask(ProcessUpdateAppLogDir, tempTaskNum, bundleInfos, userId); in UpdateAppDataDirSelinuxLabel() 265 ReturnIfNewTask(ProcessFileManagerDir, tempTaskNum, bundleInfos, userId); in UpdateAppDataDirSelinuxLabel() 266 ReturnIfNewTask(ProcessNewBackupDir, tempTaskNum, bundleInfos, userId); in UpdateAppDataDirSelinuxLabel() 271 int32_t userId, const std::vector<BundleInfo> &bundleInfos, const std::string &elDir) in ProcessUpdateAppDataDir() argument 275 for (const auto &bundleInfo : bundleInfos) { in ProcessUpdateAppDataDir() 325 for (const auto &bundleInfo : bundleInfos) { in ProcessUpdateAppLogDir() 335 void UpdateAppDataMgr::ProcessNewBackupDir(const std::vector<BundleInfo> &bundleInfos, int32_t user… in ProcessNewBackupDir() argument 338 for (const auto &bundleInfo : bundleInfos) { in ProcessNewBackupDir() [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_data_group_test/ |
H A D | bms_bundle_data_group_test.cpp | 147 auto &bundleInfos = installer.dataMgr_->bundleInfos_; variable 148 auto iter = bundleInfos.find(BUNDLE_NAME); 149 if (iter == bundleInfos.end()) { 150 bundleInfos.emplace(BUNDLE_NAME, info); 156 if (iter == bundleInfos.end()) { 157 bundleInfos.erase(BUNDLE_NAME); 178 auto iter = bundleInfos.find(BUNDLE_NAME); 179 if (iter == bundleInfos.end()) { 180 bundleInfos.emplace(BUNDLE_NAME, info); 189 if (iter == bundleInfos.end()) { [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | user_unlocked_event_subscriber.h | 43 int32_t userId, const std::vector<BundleInfo> &bundleInfos, const std::string &elDir); 44 static void ProcessUpdateAppLogDir(const std::vector<BundleInfo> &bundleInfos, int32_t userId); 45 static void ProcessFileManagerDir(const std::vector<BundleInfo> &bundleInfos, int32_t userId); 47 static void ProcessNewBackupDir(const std::vector<BundleInfo> &bundleInfos, int32_t userId);
|
/ohos5.0/foundation/filemanagement/app_file_service/test/fuzztest/svcrestoredepsmanager_fuzzer/ |
H A D | svcrestoredepsmanager_fuzzer.cpp | 77 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in SvcRestoreDepsManagerFuzzTest() local 82 SvcRestoreDepsManager::GetInstance().GetRestoreBundleNames(bundleInfos, restoreType); in SvcRestoreDepsManagerFuzzTest() 83 GetInfo(data, size, bundleInfos); in SvcRestoreDepsManagerFuzzTest() 87 bundleInfos.push_back(bundleInfo); in SvcRestoreDepsManagerFuzzTest() 89 SvcRestoreDepsManager::GetInstance().GetRestoreBundleNames(bundleInfos, restoreType); in SvcRestoreDepsManagerFuzzTest()
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_sa/module_ipc/ |
H A D | svc_restore_deps_manager_test.cpp | 107 vector<BJsonEntityCaps::BundleInfo> bundleInfos {info1, info2}; variable 109 …auto bundleNames = SvcRestoreDepsManager::GetInstance().GetRestoreBundleNames(bundleInfos, restore… 136 vector<BJsonEntityCaps::BundleInfo> bundleInfos {info}; variable 141 …auto bundleNames = SvcRestoreDepsManager::GetInstance().GetRestoreBundleNames(bundleInfos, restore… 388 vector<BJsonEntityCaps::BundleInfo> bundleInfos {}; variable 389 SvcRestoreDepsManager::GetInstance().BuildDepsMap(bundleInfos); 432 vector<BJsonEntityCaps::BundleInfo> bundleInfos = {info1, info2, info3}; variable 433 SvcRestoreDepsManager::GetInstance().BuildDepsMap(bundleInfos); 460 vector<BJsonEntityCaps::BundleInfo> bundleInfos = {info}; variable 463 SvcRestoreDepsManager::GetInstance().BuildDepsMap(bundleInfos);
|
/ohos5.0/foundation/ability/ability_runtime/test/mock/services_appmgr_test/include/ |
H A D | mock_bundle_manager.h | 50 virtual bool QueryKeepAliveBundleInfos(std::vector<BundleInfo>& bundleInfos) override in QueryKeepAliveBundleInfos() argument 68 bundleInfos.push_back(bundleInfo); in QueryKeepAliveBundleInfos() 69 GTEST_LOG_(INFO) << "bundleInfos size : " << bundleInfos.size(); in QueryKeepAliveBundleInfos() 102 const BundleFlag flag, std::vector<BundleInfo>& bundleInfos, int32_t userId) override; 107 virtual bool QueryKeepAliveBundleInfos(std::vector<BundleInfo>& bundleInfos) override in QueryKeepAliveBundleInfos() argument 125 bundleInfos.push_back(bundleInfo); in QueryKeepAliveBundleInfos() 126 GTEST_LOG_(INFO) << "bundleInfos size : " << bundleInfos.size(); in QueryKeepAliveBundleInfos()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/querykeepalivebundleinfos_fuzzer/ |
H A D | querykeepalivebundleinfos_fuzzer.cpp | 34 std::vector<BundleInfo> bundleInfos; in DoSomethingInterestingWithMyAPI() local 35 bundleInfos.push_back(bundleInfo); in DoSomethingInterestingWithMyAPI() 36 bundleMgrProxy.QueryKeepAliveBundleInfos(bundleInfos); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/slite/ |
H A D | bundlems_slite_client.cpp | 173 uint8_t BundleMsClient::GetBundleInfos (int32_t flags, BundleInfo **bundleInfos, int32_t *len) const in GetBundleInfos() argument 175 if (bundleInfos == nullptr) { in GetBundleInfos() 185 return bmsProxy_->GetBundleInfos(flags, bundleInfos, len); in GetBundleInfos() 218 uint8_t BundleMsClient::GetBundleInfosNoReplication (const int flags, BundleInfo **bundleInfos, int… in GetBundleInfosNoReplication() argument 220 if ((bundleInfos == nullptr) || (len == nullptr)) { in GetBundleInfosNoReplication() 226 return bmsProxy_->GetBundleInfosNoReplication(flags, bundleInfos, len); in GetBundleInfosNoReplication()
|
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/include/ |
H A D | resident_process_manager.h | 69 void StartResidentProcess(const std::vector<AppExecFwk::BundleInfo> &bundleInfos); 70 …void StartResidentProcessWithMainElement(std::vector<AppExecFwk::BundleInfo> &bundleInfos, int32_t… 75 …bool GetResidentBundleInfosForUser(std::vector<AppExecFwk::BundleInfo> &bundleInfos, int32_t userI… 80 …void NotifyDisableResidentProcess(const std::vector<AppExecFwk::BundleInfo> &bundleInfos, int32_t …
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/ |
H A D | bundle_map.h | 37 uint8_t GetBundleInfos(int32_t flags, BundleInfo **bundleInfos, int32_t *len) const; 38 uint8_t GetBundleInfosInner(List<BundleInfo *> &bundleInfos) const; 39 … uint8_t GetBundleInfosNoReplication(int32_t flags, BundleInfo **bundleInfos, int32_t *len) const;
|
/ohos5.0/foundation/filemanagement/app_file_service/services/backup_sa/src/module_ipc/ |
H A D | svc_restore_deps_manager.cpp | 24 …vcRestoreDepsManager::GetRestoreBundleNames(const vector<BJsonEntityCaps::BundleInfo> &bundleInfos, in GetRestoreBundleNames() argument 29 BuildDepsMap(bundleInfos); // 构建依赖Map in GetRestoreBundleNames() 31 for (auto &bundleInfo : bundleInfos) { in GetRestoreBundleNames() 79 void SvcRestoreDepsManager::BuildDepsMap(const vector<BJsonEntityCaps::BundleInfo> &bundleInfos) in BuildDepsMap() argument 81 for (auto &bundleInfo : bundleInfos) { in BuildDepsMap()
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/interfaces/kits/bundle_lite/ |
H A D | bundle_manager.h | 203 uint8_t GetBundleInfos(const int flags, BundleInfo **bundleInfos, int32_t *len); 216 uint8_t QueryKeepAliveBundleInfos(BundleInfo **bundleInfos, int32_t *len); 230 uint8_t GetBundleInfosByMetaData(const char *metaDataKey, BundleInfo **bundleInfos, int32_t *len);
|
/ohos5.0/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundlemgrproxy_fuzzer/ |
H A D | bundlemgrproxy_fuzzer.cpp | 35 std::vector<BundleInfo> bundleInfos; in DoSomethingInterestingWithMyAPI() local 36 bundleInfos.push_back(bundleInfo); in DoSomethingInterestingWithMyAPI() 37 bundleMgrProxy.QueryKeepAliveBundleInfos(bundleInfos); in DoSomethingInterestingWithMyAPI() 180 … bundleMgrProxy.BatchGetBundleInfo(wants, flags, bundleInfos, reinterpret_cast<uintptr_t>(data)); in DoSomethingInterestingWithMyAPI() 182 …bundleMgrProxy.BatchGetBundleInfo(bundleNames, flags, bundleInfos, reinterpret_cast<uintptr_t>(dat… in DoSomethingInterestingWithMyAPI() 189 bundleMgrProxy.GetBundleInfos(0, bundleInfos, reinterpret_cast<uintptr_t>(data)); in DoSomethingInterestingWithMyAPI() 190 bundleMgrProxy.GetBundleInfosV9(0, bundleInfos, reinterpret_cast<uintptr_t>(data)); in DoSomethingInterestingWithMyAPI() 204 bundleMgrProxy.GetBundleInfosByMetaData("string", bundleInfos); in DoSomethingInterestingWithMyAPI() 224 bundleMgrProxy.QueryKeepAliveBundleInfos(bundleInfos); in DoSomethingInterestingWithMyAPI() 306 std::string(reinterpret_cast<const char*>(data), size), bundleInfos); in DoSomethingInterestingWithMyAPI() [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/utils/include/b_json/ |
H A D | b_json_entity_caps.h | 70 void SetBundleInfos(std::vector<BundleInfo> bundleInfos, bool incre = false) 75 for (const auto &item : bundleInfos) { 190 std::vector<BundleInfo> bundleInfos; in GetBundleInfos() local 219 …bundleInfos.emplace_back(BundleInfo {item["name"].asString(), appIndex, item["versionCode"].asInt6… in GetBundleInfos() 225 return bundleInfos; in GetBundleInfos()
|
/ohos5.0/foundation/ability/ability_lite/services/abilitymgr_lite/src/ |
H A D | ability_mgr_handler.cpp | 130 BundleInfo *bundleInfos = nullptr; in StartKeepAliveApps() local 131 AbilityMsStatus status = bundleMsClient_.QueryKeepAliveBundleInfos(&bundleInfos, &len); in StartKeepAliveApps() 133 CHECK_NULLPTR_RETURN(bundleInfos, "AbilityMgrHandler", "bundleInfos is nullptr"); in StartKeepAliveApps() 141 if (AbilityMsHelper::IsLauncherAbility(bundleInfos[i].bundleName)) { in StartKeepAliveApps() 146 StartKeepAliveApp(bundleInfos[i]); in StartKeepAliveApps() 150 ClearBundleInfo(&(bundleInfos[i])); in StartKeepAliveApps() 152 AdapterFree(bundleInfos); in StartKeepAliveApps()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bmsextensionclient_fuzzer/ |
H A D | bmsextensionclient_fuzzer.cpp | 38 std::vector<BundleInfo> bundleInfos; in DoSomethingInterestingWithMyAPI() local 52 bmsExtensionClient.GetBundleInfos(reinterpret_cast<uintptr_t>(data), bundleInfos, in DoSomethingInterestingWithMyAPI() 57 bundleInfos, reinterpret_cast<uintptr_t>(data)); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/base/account/os_account/frameworks/osaccount/native/test/moduletest/ |
H A D | os_account_manager_no_bms_mock_test.cpp | 114 std::vector<AppExecFwk::BundleInfo> bundleInfos; variable 116 … OHOS::AppExecFwk::BundleFlag::GET_BUNDLE_DEFAULT, bundleInfos, osAccountInfoOne.GetLocalId())); 122 if (!CheckBundleName(bundleInfos, j)) {
|