/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/include/ |
H A D | bundle_info_utils.h | 26 static void CopyBundleInfo(int32_t flags, BundleInfo *des, BundleInfo src); 27 static void CopyBundleInfoNoReplication(int32_t flags, BundleInfo *des, BundleInfo src); 28 static bool SetBundleInfoBundleName(BundleInfo *bundleInfo, const char *bundleName); 29 static bool SetBundleInfoVendor(BundleInfo *bundleInfo, const char *vendor); 30 static bool SetBundleInfoLabel(BundleInfo *bundleInfo, const char *label); 31 static bool SetBundleInfoVersionName(BundleInfo *bundleInfo, const char *versionName); 32 static bool SetBundleInfoBigIconPath(BundleInfo *bundleInfo, const char *bigIconPath); 33 static bool SetBundleInfoCodePath(BundleInfo *bundleInf [all...] |
H A D | convert_utils.h | 25 static char *ConvertBundleInfoToString(const BundleInfo *bundleInfo); 26 static char *ConvertBundleInfosToString(BundleInfo **bundleInfo, uint32_t numOfBundleInfo); 28 static BundleInfo *ConvertStringToBundleInfo(const char *str, size_t buffSize); 29 static bool ConvertStringToBundleInfos(const char *strs, BundleInfo **bundleInfo, uint32_t numOfBundleInfo, 31 static cJSON *GetJsonBundleInfo(const BundleInfo *bundleInfo); 32 static cJSON *GetJsonBundleInfos(BundleInfo **bundleInfo, uint32_t numOfBundleInfo); 38 static bool ConvertJsonToBundleInfo(const cJSON *root, BundleInfo *bundleInfo); 47 static bool ConvertBundleInfoPartToJson(const BundleInfo *bundleInfo, cJSON *root); 48 static bool ConvertModuleInfosToJson(const BundleInfo *bundleInfo, cJSON *root); 49 static bool ConvertAbilityInfosToJson(const BundleInfo *bundleInf [all...] |
/foundation/filemanagement/app_file_service/tests/mock/module_external/ |
H A D | bms_adapter_mock.cpp | 31 vector<BJsonEntityCaps::BundleInfo> BundleMgrAdapter::GetBundleInfos(const vector<string> &bundleNames, int32_t userId) in GetBundleInfos() 33 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in GetBundleInfos() 35 BJsonEntityCaps::BundleInfo {"com.example.app2backup", 0, {}, {}, 0, 0, true, false, in GetBundleInfos() 45 vector<BJsonEntityCaps::BundleInfo> BundleMgrAdapter::GetBundleInfosForIncremental( in GetBundleInfosForIncremental() 48 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in GetBundleInfosForIncremental() 50 BJsonEntityCaps::BundleInfo {"com.example.app2backup", 0, {}, {}, 0, 0, true, false, in GetBundleInfosForIncremental() 55 vector<BJsonEntityCaps::BundleInfo> BundleMgrAdapter::GetBundleInfosForIncremental(int32_t userId, in GetBundleInfosForIncremental() 58 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in GetBundleInfosForIncremental() 60 BJsonEntityCaps::BundleInfo {"com.example.app2backup", 0, {}, {}, 0, 0, true, false, in GetBundleInfosForIncremental() 66 vector<BJsonEntityCaps::BundleInfo> BundleMgrAdapte [all...] |
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/ |
H A D | bundle_map.h | 34 void Add(BundleInfo *bundleInfo); 35 bool Update(BundleInfo *bundleInfo); 36 BundleInfo *Get(const char *bundleName) const; 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; 40 uint8_t GetBundleInfo(const char *bundleName, int32_t flags, BundleInfo &bundleInfo) const; 46 void GetCopyBundleInfo(uint32_t flags, const BundleInfo *bundleInfo, BundleInfo &newBundleInfo) const; 47 List<BundleInfo *> *bundleInfos [all...] |
H A D | bundle_info_creator.h | 30 static BundleInfo *CreateBundleInfo(const BundleProfile &bundleProfile, const std::string &installDirPath, 32 static uint8_t SaveBundleInfo(const BundleProfile &bundleProfile, BundleInfo **bundleInfo); 35 const std::string &dataDirPath, BundleInfo *bundleInfo); 36 static bool SetModuleInfos(const BundleProfile &bundleProfile, BundleInfo *bundleInfo); 38 BundleInfo *bundleInfo); 40 BundleInfo *bundleInfo, uint32_t index);
|
H A D | gt_bundle_parser.h | 28 static BundleInfo *ParseHapProfile(const char *path, BundleRes *bundleRes); 30 BundleInfo **bundleInfo); 33 BundleInfo *bundleInfo); 39 static BundleInfo *CreateBundleInfo(const char *path, const BundleProfile &bundleProfile, 41 static bool ConvertIconResToBundleInfo(const char *resPath, uint32_t iconId, BundleInfo *bundleInfo); 51 static bool SetModuleInfos(const BundleProfile &bundleProfile, BundleInfo *bundleInfo); 53 BundleInfo **bundleInfo); 55 const BundleRes &bundleRes, BundleInfo *bundleInfo);
|
H A D | bundle_res_transform.h | 31 BundleInfo *bundleInfo); 33 static bool ConvertIconResToBundleInfo(const std::string &path, uint32_t iconId, BundleInfo *bundleInfo, 35 static bool ConvertLableResToBundleInfo(const std::string &path, uint32_t labelId, BundleInfo *bundleInfo, 37 static bool ConvertDesResIdToBundleInfo(const std::string &path, uint32_t desId, BundleInfo *bundleInfo,
|
/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); 46 static void ProcessExtensionDir(const BundleInfo &bundleInfo, std::vector<std::string> &dirs); 47 static void ProcessNewBackupDir(const std::vector<BundleInfo> &bundleInfos, int32_t userId); 49 static void CheckPathAttribute(const std::string &path, const BundleInfo &bundleInfo, bool &isExist); 50 static void CreateNewBackupDir(const BundleInfo &bundleInfo, int32_t userId); 51 static bool CreateBundleDataDir(const BundleInfo &bundleInfo, int32_t userId, const std::string &elDir); 52 static bool CreateBundleLogDir(const BundleInfo &bundleInfo, int32_t userId); 53 static bool CreateBundleCloudDir(const BundleInfo [all...] |
/foundation/filemanagement/app_file_service/tests/mock/module_external/include/ |
H A D | bms_adapter_mock.h | 26 virtual std::vector<BJsonEntityCaps::BundleInfo> GetBundleInfos(const std::vector<std::string>&, int32_t) = 0; 28 virtual std::vector<BJsonEntityCaps::BundleInfo> GetBundleInfosForIncremental( 30 virtual std::vector<BJsonEntityCaps::BundleInfo> GetBundleInfosForIncremental(int32_t, 33 virtual std::vector<BJsonEntityCaps::BundleInfo> GetBundleInfosForSA() = 0; 34 virtual void GetBundleInfoForSA(std::string, std::vector<BJsonEntityCaps::BundleInfo>&) = 0; 36 virtual std::vector<BJsonEntityCaps::BundleInfo> 38 virtual std::vector<BJsonEntityCaps::BundleInfo> GetFullBundleInfos(int32_t) = 0; 48 MOCK_METHOD((std::vector<BJsonEntityCaps::BundleInfo>), GetBundleInfos, 51 MOCK_METHOD((std::vector<BJsonEntityCaps::BundleInfo>), GetBundleInfosForIncremental, 53 MOCK_METHOD((std::vector<BJsonEntityCaps::BundleInfo>), GetBundleInfosForIncrementa [all...] |
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_map.cpp | 44 bundleInfos_ = new (std::nothrow) List<BundleInfo *>(); in BundleMap() 54 void BundleMap::Add(BundleInfo *bundleInfo) in Add() 65 BundleInfo *info = node->value_; in Add() 76 bool BundleMap::Update(BundleInfo *bundleInfo) in Update() 86 auto newNode = new (std::nothrow) Node<BundleInfo *>(bundleInfo); in Update() 92 BundleInfo *info = oldNode->value_; in Update() 111 BundleInfo *BundleMap::Get(const char *bundleName) const in Get() 123 BundleInfo *info = node->value_; in Get() 133 void BundleMap::GetCopyBundleInfo(uint32_t flags, const BundleInfo *bundleInfo, BundleInfo [all...] |
H A D | bundle_info_creator.cpp | 30 uint8_t BundleInfoCreator::SaveBundleInfo(const BundleProfile &bundleProfile, BundleInfo **bundleInfo) in SaveBundleInfo() 32 *bundleInfo = reinterpret_cast<BundleInfo *>(AdapterMalloc(sizeof(BundleInfo))); in SaveBundleInfo() 38 if (memset_s(*bundleInfo, sizeof(BundleInfo), 0, sizeof(BundleInfo)) != EOK) { in SaveBundleInfo() 46 BundleInfo *info = ManagerService::GetInstance().QueryBundleInfo(bundleProfile.bundleName); in SaveBundleInfo() 77 BundleInfo *BundleInfoCreator::CreateBundleInfo(const BundleProfile &bundleProfile, const std::string &installDirPath, in CreateBundleInfo() 80 BundleInfo *bundleInfo = reinterpret_cast<BundleInfo *>(AdapterMalloc(sizeof(BundleInfo))); in CreateBundleInfo() [all...] |
H A D | bundle_ms_feature.cpp | 216 BundleInfo bundleInfo; in GetInnerBundleInfo() 217 if (memset_s(&bundleInfo, sizeof(BundleInfo), 0, sizeof(BundleInfo)) != EOK) { in GetInnerBundleInfo() 265 BundleInfo *bundleInfos = nullptr; in HandleGetBundleInfos() 401 BundleInfo *bundleInfo = OHOS::ManagerService::GetInstance().QueryBundleInfo(want->element->bundleName); in QueryAbilityInfo() 420 uint8_t BundleMsFeature::GetBundleInfo(const char *bundleName, int32_t flags, BundleInfo *bundleInfo) in GetBundleInfo() 425 uint8_t BundleMsFeature::GetBundleInfos(const int flags, BundleInfo **bundleInfos, int32_t *len) in GetBundleInfos() 435 uint8_t BundleMsFeature::QueryKeepAliveBundleInfos(BundleInfo **bundleInfos, int32_t *len) in QueryKeepAliveBundleInfos() 440 BundleInfo *allBundleInfos = nullptr; in QueryKeepAliveBundleInfos() 457 *bundleInfos = reinterpret_cast<BundleInfo *>(AdapterMallo in QueryKeepAliveBundleInfos() [all...] |
/foundation/filemanagement/app_file_service/services/backup_sa/include/module_external/ |
H A D | bms_adapter.h | 38 * @return std::vector<BJsonEntityCaps::BundleInfo> 40 static std::vector<BJsonEntityCaps::BundleInfo> GetBundleInfos(const std::vector<std::string> &bundleNames, 53 * @return std::vector<BJsonEntityCaps::BundleInfo> 55 static std::vector<BJsonEntityCaps::BundleInfo> GetBundleInfosForIncremental( 58 static std::vector<BJsonEntityCaps::BundleInfo> GetBundleInfosForIncremental(int32_t userId, 61 static std::vector<BJsonEntityCaps::BundleInfo> GetFullBundleInfos(int32_t userId); 65 static std::vector<BJsonEntityCaps::BundleInfo> GetBundleInfosForSA(); 67 static void GetBundleInfoForSA(std::string bundleName, std::vector<BJsonEntityCaps::BundleInfo> &bundleInfos); 71 static std::vector<BJsonEntityCaps::BundleInfo> GetBundleInfosForAppend( 74 static bool GetCurBundleExtenionInfo(AppExecFwk::BundleInfo [all...] |
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/ |
H A D | bundle_info_utils.cpp | 25 void BundleInfoUtils::FreeBundleInfos(BundleInfo *bundleInfos, uint32_t len) in FreeBundleInfos() 36 void BundleInfoUtils::FreeBundleInfo(BundleInfo *bundleInfo) in FreeBundleInfo() 45 void BundleInfoUtils::CopyBundleInfo(int32_t flags, BundleInfo *des, BundleInfo src) in CopyBundleInfo() 87 void BundleInfoUtils::CopyBundleInfoNoReplication(int32_t flags, BundleInfo *des, BundleInfo src) in CopyBundleInfoNoReplication() 131 bool BundleInfoUtils::SetBundleInfoBundleName(BundleInfo *bundleInfo, const char *bundleName) in SetBundleInfoBundleName() 142 bool BundleInfoUtils::SetBundleInfoVendor(BundleInfo *bundleInfo, const char *vendor) in SetBundleInfoVendor() 153 bool BundleInfoUtils::SetBundleInfoLabel(BundleInfo *bundleInfo, const char *label) in SetBundleInfoLabel() 164 bool BundleInfoUtils::SetBundleInfoVersionName(BundleInfo *bundleInf [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/quick_fix/ |
H A D | quick_fix_checker.h | 41 ErrCode CheckPatchWithInstalledBundle(const AppQuickFix &appQuickFix, const BundleInfo &bundleInfo, 44 ErrCode CheckHotReloadWithInstalledBundle(const AppQuickFix &appQuickFix, const BundleInfo &bundleInfo); 46 ErrCode CheckSignatureInfo(const BundleInfo &bundleInfo, 52 ErrCode CheckCommonWithInstalledBundle(const AppQuickFix &appQuickFix, const BundleInfo &bundleInfo); 54 ErrCode CheckModuleNameExist(const BundleInfo &bundleInfo, 60 const BundleInfo &bundleInfo, const AppqfInfo &qfInfo);
|
H A D | quick_fix_deployer.h | 59 ErrCode GetBundleInfo(const std::string &bundleName, BundleInfo &bundleInfo);
63 const BundleInfo &bundleInfo,
66 ErrCode ProcessHotReloadDeployStart(const BundleInfo &bundleInfo, const AppQuickFix &appQuickFix);
95 const std::string &hqfSoPath, const BundleInfo &bundleInfo);
108 ErrCode ExtractSoAndApplyDiff(const AppQuickFix &appQuickFix, const BundleInfo &bundleInfo,
111 bool ExtractSoFiles(const BundleInfo &bundleInfo, const std::string &moduleName, std::string &tmpSoPath);
116 bool ExtractEncryptedSoFiles(const BundleInfo &bundleInfo, const std::string &moduleName,
120 const BundleInfo &bundleInfo, const std::string &hqfSoPath, CodeSignatureParam &codeSignatureParam);
124 ErrCode CheckHqfResourceIsValid(const std::vector<std::string> bundleFilePaths, const BundleInfo &bundleInfo);
126 ErrCode ExtractQuickFixResFile(const AppQuickFix &appQuickFix, const BundleInfo [all...] |
/foundation/filemanagement/app_file_service/tests/mock/module_external/src/ |
H A D | bms_adapter_mock.cpp | 21 vector<BJsonEntityCaps::BundleInfo> BundleMgrAdapter::GetBundleInfos(const vector<string> &bundleNames, int32_t userId) in GetBundleInfos() 31 vector<BJsonEntityCaps::BundleInfo> BundleMgrAdapter::GetBundleInfosForIncremental( in GetBundleInfosForIncremental() 37 vector<BJsonEntityCaps::BundleInfo> BundleMgrAdapter::GetBundleInfosForIncremental(int32_t userId, in GetBundleInfosForIncremental() 48 std::vector<BJsonEntityCaps::BundleInfo> BundleMgrAdapter::GetBundleInfosForSA() in GetBundleInfosForSA() 53 void BundleMgrAdapter::GetBundleInfoForSA(std::string bundleName, std::vector<BJsonEntityCaps::BundleInfo>& bundleInfos) in GetBundleInfoForSA() 63 vector<BJsonEntityCaps::BundleInfo> BundleMgrAdapter::GetBundleInfosForAppend( in GetBundleInfosForAppend() 69 vector<BJsonEntityCaps::BundleInfo> BundleMgrAdapter::GetFullBundleInfos(int32_t userId) in GetFullBundleInfos()
|
/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() 116 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in GetBundleInfos() 125 AppExecFwk::BundleInfo installedBundle; in GetBundleInfos() 138 bundleInfos.emplace_back(BJsonEntityCaps::BundleInfo {installedBundle.name, installedBundle.appIndex, in GetBundleInfos() 246 const vector<int64_t> &lastBackTimes, vector<BJsonEntityCaps::BundleInfo> &bundleInfos, in GenerateBundleStatsIncrease() 247 vector<BJsonEntityCaps::BundleInfo> &newBundleInfos) in GenerateBundleStatsIncrease() 266 BJsonEntityCaps::BundleInfo newBundleInfo = {.name = curBundleName, in GenerateBundleStatsIncrease() 283 vector<BJsonEntityCaps::BundleInfo> BundleMgrAdapter::GetBundleInfosForIncremental( in GetBundleInfosForIncremental() 288 vector<BJsonEntityCaps::BundleInfo> bundleInfos; in GetBundleInfosForIncremental() 292 AppExecFwk::BundleInfo installedBundl in GetBundleInfosForIncremental() [all...] |
/foundation/ability/ability_lite/services/abilitymgr_lite/include/ |
H A D | ability_worker.h | 30 AbilityMsStatus StartAbility(const Want &want, const AbilityInfo &target, const BundleInfo &bundleInfo, pid_t uid);
35 AbilityMsStatus RestartApp(const BundleInfo &bundleInfo);
38 AbilityMsStatus TerminateService(const AbilityInfo &target, const BundleInfo &bundleInfo, pid_t callingUid);
40 const BundleInfo &bundleInfo);
|
/foundation/ability/dmsfwk_lite/include/ |
H A D | dmslite_permission.h | 39 char* GetCallerSignature(const char *remoteName, BundleInfo *bundleInfo);
40 char* GetRemoteSignature(const char *remoteName, BundleInfo *bundleInfo);
48 int32_t GetCallerBundleInfo(const CallerInfo *callerInfo, BundleInfo *bundleInfo);
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundleinfo_fuzzer/ |
H A D | bundleinfo_fuzzer.cpp | 27 BundleInfo oldBundleInfo; in fuzzabundleinfounmarshalling() 31 BundleInfo *info = new (std::nothrow) BundleInfo(); in fuzzabundleinfounmarshalling()
|
/foundation/multimedia/media_foundation/services/media_monitor/server/include/ |
H A D | media_monitor_wrapper.h | 26 struct BundleInfo { struct 31 typedef MediaMonitorErr GetBundleInfoFromUid(int32_t appUid, BundleInfo *bundleInfoRes); 37 MediaMonitorErr GetBundleInfo(int32_t appUid, BundleInfo *bundleInfo);
|
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_install_system_test/ |
H A D | bm_install_multi_user_test.cpp | 257 BundleInfo bundleInfo1; in HWTEST_F() 261 BundleInfo bundleInfo2; in HWTEST_F() 296 BundleInfo bundleInfo1; in HWTEST_F() 300 BundleInfo bundleInfo2; in HWTEST_F() 335 BundleInfo bundleInfo1; in HWTEST_F() 339 BundleInfo bundleInfo2; in HWTEST_F() 374 BundleInfo bundleInfo1; in HWTEST_F() 378 BundleInfo bundleInfo2; in HWTEST_F() 413 BundleInfo bundleInfo1; in HWTEST_F() 417 BundleInfo bundleInfo in HWTEST_F() [all...] |
/foundation/ability/form_fwk/test/mock/include/ |
H A D | mock_bundle_mgr.h | 31 MOCK_METHOD4(GetBundleInfo, bool(const std::string &, int32_t, BundleInfo &, int32_t)); 33 ErrCode(const std::string &bundleName, int32_t flags, BundleInfo &bundleInfo, int32_t userId)); 48 MOCK_METHOD4(GetBundleInfo, bool(const std::string &, int32_t, BundleInfo &, int32_t)); 50 ErrCode(const std::string &bundleName, int32_t flags, BundleInfo &bundleInfo, int32_t userId)); 56 MOCK_METHOD3(GetBundleInfos, bool(const BundleFlag, std::vector<BundleInfo> &, int32_t));
|
/foundation/bundlemanager/bundle_framework_lite/interfaces/kits/bundle_lite/ |
H A D | bundle_manager.h | 23 * {@link AbilityInfo} and {@link BundleInfo} about an application, and obtain the bundle name of an application 36 * {@link AbilityInfo} and {@link BundleInfo} about an application, obtain the bundle name of an application based 37 * on the application's user ID (UID), and obtain {@link BundleInfo} objects of all applications or keep-alive 171 * @brief Obtains the {@link BundleInfo} of an application based on the specified bundle name. 173 * @attention Before querying a {@link BundleInfo} object, you should first call <b>memset</b> on the constructed 174 * {@link BundleInfo} object so that each field in it can be properly initialized for carrying the 177 * @param flags Specifies whether the obtained {@link BundleInfo} object can contain {@link AbilityInfo}. The value 179 * @param bundleInfo Indicates the pointer to the obtained {@link BundleInfo} object. 187 uint8_t GetBundleInfo(const char *bundleName, int32_t flags, BundleInfo *bundleInfo); 190 * @brief Obtains the {@link BundleInfo} o [all...] |