/foundation/systemabilitymgr/safwk/test/services/safwk/unittest/ |
H A D | local_ability_manager_test.cpp | 153 string profilePath = "/system/usr/profile_audio.json";
in HWTEST_F() local 154 LocalAbilityManager::GetInstance().DoStartSAProcess(profilePath, SAID);
in HWTEST_F() 169 string profilePath = "/system/usr/profile_audio.json";
in HWTEST_F() local 171 LocalAbilityManager::GetInstance().DoStartSAProcess(profilePath, invalidSaid);
in HWTEST_F() 186 string profilePath = "/system/usr/profile_audio.json";
in HWTEST_F() local 187 string traceTag = LocalAbilityManager::GetInstance().GetTraceTag(profilePath);
in HWTEST_F() 200 string profilePath = "";
in HWTEST_F() local 201 string traceTag = LocalAbilityManager::GetInstance().GetTraceTag(profilePath);
in HWTEST_F() 214 string profilePath = "/system/usr/test";
in HWTEST_F() local 215 string traceTag = LocalAbilityManager::GetInstance().GetTraceTag(profilePath);
in HWTEST_F() 228 string profilePath = "/system/usr/profile_audio.json"; HWTEST_F() local 243 string profilePath = TEST_RESOURCE_PATH + "test_trust_all_allow.json"; HWTEST_F() local 259 string profilePath; HWTEST_F() local 279 string profilePath = TEST_RESOURCE_PATH + "test_trust_all_allow.json"; HWTEST_F() local 294 string profilePath = ""; HWTEST_F() local 308 string profilePath = "/system/usr/profile_audio.json"; HWTEST_F() local 322 string profilePath = "/system/usr/profile_audio.json"; HWTEST_F() local 626 std::string profilePath = "/system/usr/profile_audio.json"; HWTEST_F() local 642 std::string profilePath = "/system/usr/profile_audio.json"; HWTEST_F() local 704 std::string profilePath = "/system/usr/profile_audio.json"; HWTEST_F() local 719 std::string profilePath = "/system/usr/profile_audio.json"; HWTEST_F() local 737 std::string profilePath = "/system/usr/profile_audio.json"; HWTEST_F() local 858 std::string profilePath = "/system/usr/profile_audio.json"; HWTEST_F() local [all...] |
/foundation/systemabilitymgr/safwk/test/fuzztest/systemabilityfwk_fuzzer/ |
H A D | systemabilityfwk_fuzzer.cpp | 95 std::string profilePath = strVal; in FuzzLocalAbilityManager() local 103 LocalAbilityManager::GetInstance().DoStartSAProcess(profilePath, systemAbilityId); in FuzzLocalAbilityManager() 104 LocalAbilityManager::GetInstance().GetTraceTag(profilePath); in FuzzLocalAbilityManager() 106 LocalAbilityManager::GetInstance().CheckTrustSa(profilePath, procName, saInfos); in FuzzLocalAbilityManager() 115 LocalAbilityManager::GetInstance().InitSystemAbilityProfiles(profilePath, systemAbilityId); in FuzzLocalAbilityManager()
|
/foundation/systemabilitymgr/safwk/services/safwk/include/ |
H A D | local_ability_manager.h | 54 bool InitSystemAbilityProfiles(const std::string& profilePath, int32_t saId); 64 void DoStartSAProcess(const std::string& profilePath, int32_t saId); 99 bool CheckAndGetProfilePath(const std::string& profilePath, std::string& realProfilePath); 108 std::string GetTraceTag(const std::string& profilePath);
|
/foundation/systemabilitymgr/samgr/interfaces/innerkits/common/include/ |
H A D | parse_util.h | 30 bool ParseSaProfiles(const std::string& profilePath); 37 bool ParseTrustConfig(const std::string& profilePath, std::map<std::u16string, std::set<int32_t>>& values); 39 bool CheckPathExist(const std::string& profilePath); 129 std::string GetRealPath(const std::string& profilePath) const;
|
/foundation/systemabilitymgr/samgr/services/common/src/ |
H A D | parse_util.cpp | 236 bool ParseUtil::ParseSaProfiles(const string& profilePath) in ParseSaProfiles() argument 238 HILOGD("profilePath:%{private}s", profilePath.c_str()); in ParseSaProfiles() 239 string realPath = GetRealPath(profilePath); in ParseSaProfiles() 593 string ParseUtil::GetRealPath(const string& profilePath) const in GetRealPath() 596 if (realpath(profilePath.c_str(), path) == nullptr) { in GetRealPath() 604 bool ParseUtil::CheckPathExist(const string& profilePath) in CheckPathExist() argument 606 std::ifstream profileStream(profilePath.c_str()); in CheckPathExist() 610 bool ParseUtil::ParseTrustConfig(const string& profilePath, in ParseTrustConfig() argument 613 HILOGD("config path:%{private}s", profilePath in ParseTrustConfig() [all...] |
/foundation/systemabilitymgr/safwk/services/safwk/src/ |
H A D | main.cpp | 168 string profilePath(DEFAULT_JSON); in DoStartSAProcess() 176 profilePath = std::move(filePath); in DoStartSAProcess() 178 LocalAbilityManager::GetInstance().DoStartSAProcess(profilePath, saId); in DoStartSAProcess()
|
H A D | local_ability_manager.cpp | 100 void LocalAbilityManager::DoStartSAProcess(const std::string& profilePath, int32_t saId) in DoStartSAProcess() argument 105 if (!CheckAndGetProfilePath(profilePath, realProfilePath)) { in DoStartSAProcess() 138 std::string LocalAbilityManager::GetTraceTag(const std::string& profilePath) in GetTraceTag() argument 142 SplitStr(profilePath, "/", libPathVec); in GetTraceTag() 153 bool LocalAbilityManager::CheckAndGetProfilePath(const std::string& profilePath, std::string& realProfilePath) in CheckAndGetProfilePath() argument 155 if (profilePath.length() > PATH_MAX) { in CheckAndGetProfilePath() 156 HILOGE(TAG, "profilePath length too long!"); in CheckAndGetProfilePath() 160 if (realpath(profilePath.c_str(), realPath) == nullptr) { in CheckAndGetProfilePath() 192 bool LocalAbilityManager::InitSystemAbilityProfiles(const std::string& profilePath, int32_t saId) in InitSystemAbilityProfiles() argument 196 bool ret = profileParser_->ParseSaProfiles(profilePath); in InitSystemAbilityProfiles() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/componentloader/ |
H A D | component_loader.cpp | 502 char *profilePath = GetOneCfgFile(COMPONENTSLOAD_PROFILE_PATH, buf, MAX_PATH_LEN); in ParseConfig() local 503 if (profilePath == nullptr) { in ParseConfig() 504 DHLOGE("profilePath is null."); in ParseConfig() 508 if (strlen(profilePath) == 0 || strlen(profilePath) > PATH_MAX || realpath(profilePath, path) == nullptr) { in ParseConfig() 509 std::string comProfilePath(profilePath); in ParseConfig()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | gt_bundle_parser.cpp | 156 char profilePath[PATH_LENGTH] = { 0 }; in ParseHapProfile() local 157 if (sprintf_s(profilePath, PATH_LENGTH, "%s/%s", path, PROFILE_NAME) < 0) { in ParseHapProfile() 161 cJSON *root = BundleUtil::GetJsonStream(profilePath); in ParseHapProfile()
|
H A D | bundle_parser.cpp | 232 std::string profilePath = path + std::string(PATH_SEPARATOR) + PROFILE_NAME; in ParseHapProfile() local 233 cJSON *root = BundleUtil::GetJsonStream(profilePath.c_str()); in ParseHapProfile()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | module_profile.cpp | 1847 std::string profilePath = PROFILE_PATH + profileConfiguration + JSON_SUFFIX; in ToInnerProfileConfiguration() local 1849 if (!bundleExtractor.HasEntry(profilePath)) { in ToInnerProfileConfiguration() 1854 if (!bundleExtractor.ExtractByName(profilePath, profileStream)) { in ToInnerProfileConfiguration()
|
H A D | bundle_data_mgr.cpp | 7190 std::string profilePath = mapItem->second; in GetJsonProfile() local 7226 return GetJsonProfileByExtractor(moduleInfo->hapPath, profilePath, profile); in GetJsonProfile() 7230 const std::string &profilePath, std::string &profile) const in GetJsonProfileByExtractor() 7233 APP_LOGD("GetJsonProfileByExtractor with hapPath %{private}s and profilePath %{private}s", in GetJsonProfileByExtractor() 7234 hapPath.c_str(), profilePath.c_str()); in GetJsonProfileByExtractor() 7240 if (!bundleExtractor.HasEntry(profilePath)) { in GetJsonProfileByExtractor() 7245 if (!bundleExtractor.ExtractByName(profilePath, profileStream)) { in GetJsonProfileByExtractor() 7229 GetJsonProfileByExtractor(const std::string &hapPath, const std::string &profilePath, std::string &profile) const GetJsonProfileByExtractor() argument
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | bundle_data_mgr.h | 915 ErrCode GetJsonProfileByExtractor(const std::string &hapPath, const std::string &profilePath,
|