Home
last modified time | relevance | path

Searched refs:bundleInfos (Results 1 - 25 of 163) sorted by relevance

1234567

/foundation/filemanagement/app_file_service/tests/mock/module_external/
H A Dbms_adapter_mock.cpp33 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 Dbms_adapter.cpp116 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 Dbundle_ms_feature.cpp265 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 Dbundle_map.cpp174 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 Db_jsonutil_test.cpp107 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 Dresident_process_manager.cpp62 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 Dhidump_helper.cpp187 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 Duser_unlocked_event_subscriber.cpp195 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 Dbundle_manager.cpp289 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 Dquerykeepalivebundleinfos_fuzzer.cpp34 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 Dbundle_map.h37 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 Dresident_process_manager.h73 * @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 Duser_unlocked_event_subscriber.h43 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 Dsvcrestoredepsmanager_fuzzer.cpp77 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 Dbundle_manager.h195 * @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 Dmock_bundle_manager.h50 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 DgetbundleInfosbymetadata_fuzzer.cpp30 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 Dsvc_restore_deps_manager.cpp24 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 Dresident_process_manager_test.cpp61 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 Dbundlems_slite_client.cpp173 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 Dbundle_manager.cpp40 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 Dgetbundleinfos_fuzzer.cpp58 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 Dgetapplicationinfos_fuzzer.cpp58 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 Dsvc_restore_deps_manager_mock.cpp21 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 Dbundle_inner_interface.h62 uint8_t (*GetBundleInfos)(int flags, BundleInfo **bundleInfos, int32_t *len);
63 uint8_t (*QueryKeepAliveBundleInfos)(BundleInfo **bundleInfos, int32_t *len);

Completed in 11 milliseconds

1234567