/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() 48 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in GetBundleInfosForIncremental() local 49 bundleInfos.emplace_back( in GetBundleInfosForIncremental() 52 return bundleInfos; in GetBundleInfosForIncremental() 58 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in GetBundleInfosForIncremental() local 59 bundleInfos.emplace_back( in GetBundleInfosForIncremental() 62 return bundleInfos; in GetBundleInfosForIncremental() 68 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in GetFullBundleInfos() local 88 vector<BJsonEntityCaps::BundleInfo> bundleInfos; GetBundleInfosForAppend() local [all...] |
/foundation/filemanagement/app_file_service/services/backup_sa/src/module_external/ |
H A D | bms_adapter.cpp | 116 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in GetBundleInfos() local 122 GetBundleInfoForSA(bundleName, bundleInfos); in GetBundleInfos() 138 bundleInfos.emplace_back(BJsonEntityCaps::BundleInfo {installedBundle.name, installedBundle.appIndex, in GetBundleInfos() 144 HILOGI("End, bundleInfos size:%{public}zu", bundleInfos.size()); in GetBundleInfos() 145 return bundleInfos; in GetBundleInfos() 246 const vector<int64_t> &lastBackTimes, vector<BJsonEntityCaps::BundleInfo> &bundleInfos, 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() 259 if (bundleInfos in GenerateBundleStatsIncrease() 245 GenerateBundleStatsIncrease(int32_t userId, const vector<string> &bundleNames, const vector<int64_t> &lastBackTimes, vector<BJsonEntityCaps::BundleInfo> &bundleInfos, vector<BJsonEntityCaps::BundleInfo> &newBundleInfos) GenerateBundleStatsIncrease() argument 288 vector<BJsonEntityCaps::BundleInfo> bundleInfos; GetBundleInfosForIncremental() local 344 vector<BJsonEntityCaps::BundleInfo> bundleInfos; GetBundleInfosForIncremental() local 387 vector<BJsonEntityCaps::BundleInfo> bundleInfos; GetFullBundleInfos() local 467 GetBundleInfoForSA(std::string bundleName, std::vector<BJsonEntityCaps::BundleInfo>& bundleInfos) GetBundleInfoForSA() argument 550 auto bundleInfos = BundleMgrAdapter::GetBundleInfosForIncremental(list, userId); GetBundleInfosForAppend() local [all...] |
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_ms_feature.cpp | 265 BundleInfo *bundleInfos = nullptr; in HandleGetBundleInfos() local 273 errorCode = GetBundleInfos(flag, &bundleInfos, &lengthOfBundleInfo); in HandleGetBundleInfos() 275 errorCode = QueryKeepAliveBundleInfos(&bundleInfos, &lengthOfBundleInfo); in HandleGetBundleInfos() 281 errorCode = GetBundleInfosByMetaData(metaDataKey, &bundleInfos, &lengthOfBundleInfo); in HandleGetBundleInfos() 286 BundleInfoUtils::FreeBundleInfos(bundleInfos, lengthOfBundleInfo); in HandleGetBundleInfos() 289 char *strs = ConvertUtils::ConvertBundleInfosToString(&bundleInfos, lengthOfBundleInfo); in HandleGetBundleInfos() 291 BundleInfoUtils::FreeBundleInfos(bundleInfos, lengthOfBundleInfo); in HandleGetBundleInfos() 296 BundleInfoUtils::FreeBundleInfos(bundleInfos, lengthOfBundleInfo); in HandleGetBundleInfos() 303 BundleInfoUtils::FreeBundleInfos(bundleInfos, lengthOfBundleInfo); in HandleGetBundleInfos() 425 uint8_t BundleMsFeature::GetBundleInfos(const int flags, BundleInfo **bundleInfos, int32_ argument 435 QueryKeepAliveBundleInfos(BundleInfo **bundleInfos, int32_t *len) QueryKeepAliveBundleInfos() argument 493 GetBundleInfosByMetaData(const char *metaDataKey, BundleInfo **bundleInfos, int32_t *len) GetBundleInfosByMetaData() argument 567 BundleInfo *bundleInfos = nullptr; GetInnerBundleInfos() local 603 BundleInfo *bundleInfos = GetInnerBundleInfos(req, reply, &lengthOfBundleInfo); HandleGetBundleInfosLength() local 622 BundleInfo *bundleInfos = GetInnerBundleInfos(req, reply, &lengthOfBundleInfo); HandleGetBundleInfosByIndex() local [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 *len) const in GetBundleInfosNoReplication() argument 220 if (bundleInfos == nullptr) { in GetBundleInfosNoReplication() 240 *bundleInfos = infos; in GetBundleInfosNoReplication()
|
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_jsonutil/ |
H A D | b_jsonutil_test.cpp | 107 std::vector<std::string> bundleInfos; in HWTEST_F() local 110 bundleInfos.push_back(bundleInfo); in HWTEST_F() 111 bundleInfos.push_back(bundleInfo2); in HWTEST_F() 115 auto result = BJsonUtil::BuildBundleInfos(bundleNames, bundleInfos, bundleNamesOnly, in HWTEST_F() 141 std::vector<std::string> bundleInfos; in HWTEST_F() local 143 bundleInfos.push_back(bundleInfo); in HWTEST_F() 147 auto result = BJsonUtil::BuildBundleInfos(bundleNames, bundleInfos, bundleNamesOnly, in HWTEST_F() 173 std::vector<std::string> bundleInfos; in HWTEST_F() local 175 bundleInfos.push_back(bundleInfo); in HWTEST_F() 179 auto result = BJsonUtil::BuildBundleInfos(bundleNames, bundleInfos, bundleNamesOnl in HWTEST_F() 205 std::vector<std::string> bundleInfos; HWTEST_F() local 237 std::vector<std::string> bundleInfos; HWTEST_F() local 272 std::vector<std::string> bundleInfos; HWTEST_F() local 306 std::vector<std::string> bundleInfos; HWTEST_F() local 340 std::vector<std::string> bundleInfos; HWTEST_F() local 373 std::vector<std::string> bundleInfos; HWTEST_F() local 406 std::vector<std::string> bundleInfos; HWTEST_F() local 439 std::vector<std::string> bundleInfos; HWTEST_F() local [all...] |
/foundation/ability/ability_runtime/services/abilitymgr/src/resident_process/ |
H A D | resident_process_manager.cpp | 62 void ResidentProcessManager::StartResidentProcess(const std::vector<AppExecFwk::BundleInfo> &bundleInfos) in StartResidentProcess() argument 64 DelayedSingleton<AppScheduler>::GetInstance()->StartupResidentProcess(bundleInfos); in StartResidentProcess() 67 void ResidentProcessManager::StartResidentProcessWithMainElement(std::vector<AppExecFwk::BundleInfo> &bundleInfos, in StartResidentProcessWithMainElement() argument 72 for (size_t i = 0; i < bundleInfos.size(); i++) { in StartResidentProcessWithMainElement() 73 if (userId != 0 && !AmsConfigurationParameter::GetInstance().InResidentWhiteList(bundleInfos[i].name)) { in StartResidentProcessWithMainElement() 77 std::string processName = bundleInfos[i].applicationInfo.process; in StartResidentProcessWithMainElement() 78 bool keepAliveEnable = bundleInfos[i].isKeepAlive; in StartResidentProcessWithMainElement() 80 AmsResidentProcessRdb::GetInstance().GetResidentProcessEnable(bundleInfos[i].name, keepAliveEnable); in StartResidentProcessWithMainElement() 85 for (auto hapModuleInfo : bundleInfos[i].hapModuleInfos) { in StartResidentProcessWithMainElement() 111 bundleInfos in StartResidentProcessWithMainElement() 115 NotifyDisableResidentProcess(const std::vector<AppExecFwk::BundleInfo> &bundleInfos, int32_t userId) NotifyDisableResidentProcess() argument 298 GetResidentBundleInfosForUser(std::vector<AppExecFwk::BundleInfo> &bundleInfos, int32_t userId) GetResidentBundleInfosForUser() argument [all...] |
/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() 193 APP_LOGE("get bundleInfos failed"); in GetAllAbilityInfo() 197 for (auto &bundleInfo : bundleInfos) { in GetAllAbilityInfo() 218 std::vector<BundleInfo> bundleInfos; in GetAllAbilityNameList() local 223 bundleInfos, Constants::ANY_USERID)) { in GetAllAbilityNameList() 224 APP_LOGE("get bundleInfos failed"); in GetAllAbilityNameList() 228 for (const auto &bundleInfo : bundleInfos) { in GetAllAbilityNameList() 246 std::vector<BundleInfo> bundleInfos; in GetAbilityInfoByName() local 251 bundleInfos, Constant in GetAbilityInfoByName() 282 std::vector<BundleInfo> bundleInfos; GetAllBundleInfo() local [all...] |
H A D | user_unlocked_event_subscriber.cpp | 195 std::vector<BundleInfo> bundleInfos; in UpdateAppDataDirSelinuxLabel() local 197 BundleFlag::GET_BUNDLE_WITH_REQUESTED_PERMISSION, bundleInfos, userId)) { in UpdateAppDataDirSelinuxLabel() 202 ProcessUpdateAppDataDir(userId, bundleInfos, ServiceConstants::BUNDLE_EL[1]); in UpdateAppDataDirSelinuxLabel() 204 ProcessUpdateAppDataDir(userId, bundleInfos, ServiceConstants::DIR_EL3); in UpdateAppDataDirSelinuxLabel() 205 ProcessUpdateAppDataDir(userId, bundleInfos, ServiceConstants::DIR_EL4); in UpdateAppDataDirSelinuxLabel() 207 ProcessUpdateAppDataDir(userId, bundleInfos, ServiceConstants::DIR_EL5); in UpdateAppDataDirSelinuxLabel() 208 ProcessUpdateAppLogDir(bundleInfos, userId); in UpdateAppDataDirSelinuxLabel() 209 ProcessFileManagerDir(bundleInfos, userId); in UpdateAppDataDirSelinuxLabel() 210 ProcessNewBackupDir(bundleInfos, userId); in UpdateAppDataDirSelinuxLabel() 215 int32_t userId, const std::vector<BundleInfo> &bundleInfos, cons in ProcessUpdateAppDataDir() 214 ProcessUpdateAppDataDir( int32_t userId, const std::vector<BundleInfo> &bundleInfos, const std::string &elDir) ProcessUpdateAppDataDir() argument 267 ProcessUpdateAppLogDir(const std::vector<BundleInfo> &bundleInfos, int32_t userId) ProcessUpdateAppLogDir() argument 279 ProcessNewBackupDir(const std::vector<BundleInfo> &bundleInfos, int32_t userId) ProcessNewBackupDir() argument 365 ProcessFileManagerDir(const std::vector<BundleInfo> &bundleInfos, int32_t userId) ProcessFileManagerDir() argument [all...] |
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/ |
H A D | bundle_manager.cpp | 289 HILOG_INFO(HILOG_MODULE_APP, "BundleManager get bundleInfos length failed due to %{public}d", errCode);
in Notify() 531 static uint8_t ObtainInnerBundleInfos(const int flags, BundleInfo **bundleInfos, int32_t *len,
in ObtainInnerBundleInfos() argument 534 if ((bundleInfos == nullptr) || (len == nullptr) || (ipcIo == nullptr)) {
in ObtainInnerBundleInfos() 558 *bundleInfos = nullptr;
in ObtainInnerBundleInfos() 562 *bundleInfos = reinterpret_cast<BundleInfo *>(AdapterMalloc(sizeof(BundleInfo) * resultOfGetBundleInfos.length));
in ObtainInnerBundleInfos() 563 if (*bundleInfos == nullptr) {
in ObtainInnerBundleInfos() 567 if (memset_s(*bundleInfos, sizeof(BundleInfo) * (resultOfGetBundleInfos.length), 0, sizeof(BundleInfo) *
in ObtainInnerBundleInfos() 569 AdapterFree(*bundleInfos);
in ObtainInnerBundleInfos() 574 OHOS::BundleInfoUtils::CopyBundleInfo(flags, *bundleInfos + i, (resultOfGetBundleInfos.bundleInfo)[i]);
in ObtainInnerBundleInfos() 582 BundleInfo **bundleInfos)
in ObtainBundleInfosOneByOne() 581 ObtainBundleInfosOneByOne(BasicInfo basicInfo, int32_t len, uint8_t code, IClientProxy *bmsClient, BundleInfo **bundleInfos) ObtainBundleInfosOneByOne() argument 620 ObtainBundleInfos(BasicInfo basicInfo, BundleInfo **bundleInfos, int32_t *len, uint8_t code, IpcIo *ipcIo) ObtainBundleInfos() argument 672 GetBundleInfos(const int flags, BundleInfo **bundleInfos, int32_t *len) GetBundleInfos() argument 730 QueryKeepAliveBundleInfos(BundleInfo **bundleInfos, int32_t *len) QueryKeepAliveBundleInfos() argument 741 GetBundleInfosByMetaData(const char *metaDataKey, BundleInfo **bundleInfos, int32_t *len) GetBundleInfosByMetaData() argument [all...] |
/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()
|
/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;
|
/foundation/ability/ability_runtime/services/abilitymgr/include/resident_process/ |
H A D | resident_process_manager.h | 73 * @param bundleInfos bundles of resident processes.
75 void StartResidentProcess(const std::vector<AppExecFwk::BundleInfo> &bundleInfos);
79 void StartResidentProcessWithMainElement(std::vector<AppExecFwk::BundleInfo> &bundleInfos, int32_t userId);
96 bool GetResidentBundleInfosForUser(std::vector<AppExecFwk::BundleInfo> &bundleInfos, int32_t userId);
101 void NotifyDisableResidentProcess(const std::vector<AppExecFwk::BundleInfo> &bundleInfos, int32_t userId);
|
/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);
|
/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()
|
/foundation/bundlemanager/bundle_framework_lite/interfaces/kits/bundle_lite/ |
H A D | bundle_manager.h | 195 * @param bundleInfos Indicates the double pointer to the obtained {@link BundleInfo} objects. 203 uint8_t GetBundleInfos(const int flags, BundleInfo **bundleInfos, int32_t *len); 208 * @param bundleInfos Indicates the double pointer to the obtained {@link BundleInfo} objects. 216 uint8_t QueryKeepAliveBundleInfos(BundleInfo **bundleInfos, int32_t *len); 222 * @param bundleInfos Indicates the double pointer to the obtained {@link BundleInfo} objects. 230 uint8_t GetBundleInfosByMetaData(const char *metaDataKey, BundleInfo **bundleInfos, int32_t *len);
|
/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 68 bundleInfos.push_back(bundleInfo); 69 GTEST_LOG_(INFO) << "bundleInfos size : " << bundleInfos.size(); 102 const BundleFlag flag, std::vector<BundleInfo>& bundleInfos, int32_t userId) override; 107 virtual bool QueryKeepAliveBundleInfos(std::vector<BundleInfo>& bundleInfos) override 125 bundleInfos.push_back(bundleInfo); 126 GTEST_LOG_(INFO) << "bundleInfos size : " << bundleInfos.size();
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/getbundleInfosbymetadata_fuzzer/ |
H A D | getbundleInfosbymetadata_fuzzer.cpp | 30 std::vector<BundleInfo> bundleInfos; in DoSomethingInterestingWithMyAPI() local 31 bundleMgrProxy.GetBundleInfosByMetaData(metaData, bundleInfos); in DoSomethingInterestingWithMyAPI()
|
/foundation/filemanagement/app_file_service/services/backup_sa/src/module_ipc/ |
H A D | svc_restore_deps_manager.cpp | 24 vector<string> SvcRestoreDepsManager::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()
|
/foundation/ability/ability_runtime/test/unittest/resident_process_manager_test/ |
H A D | resident_process_manager_test.cpp | 61 std::vector<BundleInfo> bundleInfos; in HWTEST_F() local 77 bundleInfos.emplace_back(bundleInfo1); in HWTEST_F() 78 bundleInfos.emplace_back(bundleInfo2); in HWTEST_F() 79 manager->StartResidentProcessWithMainElement(bundleInfos, 0); in HWTEST_F()
|
/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, int32_t *len) const
in GetBundleInfosNoReplication() argument 220 if ((bundleInfos == nullptr) || (len == nullptr)) {
in GetBundleInfosNoReplication() 226 return bmsProxy_->GetBundleInfosNoReplication(flags, bundleInfos, len);
in GetBundleInfosNoReplication()
|
H A D | bundle_manager.cpp | 40 uint8_t GetBundleInfos(const int flags, BundleInfo **bundleInfos, int32_t *len)
in GetBundleInfos() argument 42 return OHOS::BundleMsClient::GetInstance().GetBundleInfos(flags, bundleInfos, len);
in GetBundleInfos()
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/getbundleinfos_fuzzer/ |
H A D | getbundleinfos_fuzzer.cpp | 58 std::vector<BundleInfo> bundleInfos; in DoSomethingInterestingWithMyAPI() local 59 bundleMgr->GetBundleInfos(reinterpret_cast<uintptr_t>(data), bundleInfos); in DoSomethingInterestingWithMyAPI() local
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/getapplicationinfos_fuzzer/ |
H A D | getapplicationinfos_fuzzer.cpp | 58 std::vector<ApplicationInfo> bundleInfos; in DoSomethingInterestingWithMyAPI() local 60 reinterpret_cast<uintptr_t>(data), reinterpret_cast<uintptr_t>(data), bundleInfos); in DoSomethingInterestingWithMyAPI()
|
/foundation/filemanagement/app_file_service/tests/mock/module_ipc/src/ |
H A D | svc_restore_deps_manager_mock.cpp | 21 vector<string> SvcRestoreDepsManager::GetRestoreBundleNames(const vector<BJsonEntityCaps::BundleInfo> &bundleInfos, in GetRestoreBundleNames() argument 24 return BSvcRestoreDepsManager::manager->GetRestoreBundleNames(bundleInfos, restoreType); in GetRestoreBundleNames()
|
/foundation/bundlemanager/bundle_framework_lite/interfaces/inner_api/bundlemgr_lite/ |
H A D | bundle_inner_interface.h | 62 uint8_t (*GetBundleInfos)(int flags, BundleInfo **bundleInfos, int32_t *len);
63 uint8_t (*QueryKeepAliveBundleInfos)(BundleInfo **bundleInfos, int32_t *len);
|