Home
last modified time | relevance | path

Searched refs:configPath (Results 1 – 25 of 61) sorted by relevance

123

/ohos5.0/base/powermgr/display_manager/brightness_manager/src/
H A Dconfig_parser_base.cpp85 std::string configPath{}; in LoadConfigPath() local
89 configPath.append(CONFIG_PATH_TYP); in LoadConfigPath()
91 return configPath; in LoadConfigPath()
97 configPath.append(CONFIG_PATH_TYP); in LoadConfigPath()
99 return configPath; in LoadConfigPath()
105 configPath = configPath.append("_").append(configInfo.panelVersion).append(CONFIG_PATH_TYP); in LoadConfigPath()
109 return configPath; in LoadConfigPath()
114 configPath.append(CONFIG_PATH_TYP); in LoadConfigPath()
117 return configPath; in LoadConfigPath()
121 configPath.clear(); in LoadConfigPath()
[all …]
/ohos5.0/drivers/peripheral/codec/utils/src/
H A Dcodec_hcb_util.c30 static bool GetConfigFilePath(const char *productName, char *configPath, size_t configPathLen) in GetConfigFilePath() argument
39 …if (sprintf_s(configPath, configPathLen - 1, "%s/hdf_%s.hcb", adapterConfigPath[i], productName) <… in GetConfigFilePath()
44 if (access(configPath, F_OK | R_OK) == 0) { in GetConfigFilePath()
47 HDF_LOGD("invalid config file path or permission:%{public}s", configPath); in GetConfigFilePath()
55 char configPath[PATH_MAX] = { 0 }; in HdfGetHcsRootNode() local
62 if (!GetConfigFilePath(productName, configPath, PATH_MAX)) { in HdfGetHcsRootNode()
67 SetHcsBlobPath(configPath); in HdfGetHcsRootNode()
/ohos5.0/drivers/hdf_core/adapter/uhdf2/shared/src/
H A Dhcb_config_entry.c39 static bool GetConfigFilePath(const char *productName, char *configPath, size_t configPathLen) in GetConfigFilePath() argument
48 …if (sprintf_s(configPath, configPathLen - 1, "%s/hdf_%s.hcb", adapterConfigPath[i], productName) <… in GetConfigFilePath()
53 if (access(configPath, F_OK | R_OK) == 0) { in GetConfigFilePath()
56 HDF_LOGD("invalid config file path or permission:%{public}s", configPath); in GetConfigFilePath()
64 char configPath[PATH_MAX] = { 0 }; in HdfGetHcsRootNode() local
71 if (!GetConfigFilePath(productName, configPath, PATH_MAX)) { in HdfGetHcsRootNode()
76 SetHcsBlobPath(configPath); in HdfGetHcsRootNode()
/ohos5.0/foundation/ability/ability_runtime/services/common/src/
H A Djson_utils.cpp30 std::string configPath = GetConfigPath(path, defaultPath); in LoadConfiguration() local
31 TAG_LOGD(AAFwkTag::ABILITYMGR, "config path is: %{public}s", configPath.c_str()); in LoadConfiguration()
32 if (!ReadFileInfoJson(configPath, jsonBuf)) { in LoadConfiguration()
41 char *configPath = GetOneCfgFile(path.c_str(), buf, MAX_PATH_LEN); in GetConfigPath() local
42 if (configPath == nullptr || configPath[0] == '\0' || strlen(configPath) > MAX_PATH_LEN) { in GetConfigPath()
45 return configPath; in GetConfigPath()
/ohos5.0/base/hiviewdfx/hiview/plugins/privacy_controller/config/
H A Darea_policy.cpp32 AreaPolicy::AreaPolicy(const std::string& configPath) in AreaPolicy() argument
34 Parse(configPath); in AreaPolicy()
37 void AreaPolicy::Parse(const std::string& configPath) in Parse() argument
39 auto root = CJsonUtil::ParseJsonRoot(configPath); in Parse()
41 HIVIEW_LOGW("failed to parse config file=%{public}s", configPath.c_str()); in Parse()
48 configPath.c_str(), version.c_str()); in Parse()
54 configPath.c_str(), version.c_str()); in Parse()
/ohos5.0/base/hiviewdfx/hiview/plugins/sysevent_source/control/config/
H A Ddaily_config.cpp31 DailyConfig::DailyConfig(const std::string& configPath) in DailyConfig() argument
33 isValid_ = Parse(configPath); in DailyConfig()
36 bool DailyConfig::Parse(const std::string& configPath) in Parse() argument
38 auto root = CJsonUtil::ParseJsonRoot(configPath); in Parse()
40 HIVIEW_LOGW("failed to parse config file=%{public}s", configPath.c_str()); in Parse()
47 configPath.c_str(), version.c_str()); in Parse()
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/deeplink_reserve/
H A Ddeeplink_reserve_config.cpp50 char *configPath = GetOneCfgFile(CONFIG_PATH.c_str(), buf, MAX_PATH_LEN); in GetConfigPath() local
51 if (configPath == nullptr || configPath[0] == '\0' || strlen(configPath) > MAX_PATH_LEN) { in GetConfigPath()
54 return configPath; in GetConfigPath()
60 std::string configPath = GetConfigPath(); in LoadConfiguration() local
61 … TAG_LOGD(AAFwkTag::ABILITYMGR, "Deeplink reserve config path is: %{public}s", configPath.c_str()); in LoadConfiguration()
63 if (!ReadFileInfoJson(configPath, jsonBuf)) { in LoadConfiguration()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/text/
H A Dfont_mgr_test.cpp289 std::string configPath = JSON_CONFIG_PATH; variable
290 std::ifstream configFile(configPath, std::ios::in);
293 int ret = fontMgr->ParseInstallFontConfig(configPath, fontPathVec);
309 std::string configPath = ERROR_JSON_CONFIG_PATH; variable
310 int ret = fontMgr->ParseInstallFontConfig(configPath, fontPathVec);
324 std::string configPath = ""; variable
325 int ret = fontMgr->ParseInstallFontConfig(configPath, fontPathVec);
/ohos5.0/foundation/window/window_manager/dmserver/src/
H A Ddisplay_manager_config.cpp69 char* configPath = GetOneCfgFile(configFileName.c_str(), buf, PATH_MAX + 1); in GetConfigPath() local
71 …if (!configPath || strlen(configPath) == 0 || strlen(configPath) > PATH_MAX || !realpath(configPat… in GetConfigPath()
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dutils.cpp34 auto configPath = packagePathStr + fileName; in GetStringFromFile() local
36 if (realpath(configPath.c_str(), realPath) == nullptr) { in GetStringFromFile()
37 …LOGE("realpath fail! filePath: %{private}s, fail reason: %{public}s", configPath.c_str(), strerror… in GetStringFromFile()
42 …LOGE("open file failed, filePath: %{private}s, fail reason: %{public}s", configPath.c_str(), strer… in GetStringFromFile()
/ohos5.0/base/hiviewdfx/hiview/core/platform_config/
H A Dhiview_platform_config.cpp38 HiviewPlatformConfig::HiviewPlatformConfig(const std::string& configPath) in HiviewPlatformConfig() argument
40 if (configPath != "") { in HiviewPlatformConfig()
41 configPath_ = configPath; in HiviewPlatformConfig()
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Dextension_config.cpp43 char *configPath = GetOneCfgFile(EXTENSION_CONFIG_FILE_PATH, buf, MAX_PATH_LEN); in GetExtensionConfigPath() local
44 if (configPath == nullptr || configPath[0] == '\0' || strlen(configPath) > MAX_PATH_LEN) { in GetExtensionConfigPath()
47 return configPath; in GetExtensionConfigPath()
/ohos5.0/drivers/peripheral/power/interfaces/hdi_service/src/
H A Dpower_config.cpp86 bool PowerConfig::OpenFile(std::ifstream& ifsConf, const std::string& configPath) in OpenFile() argument
89 if (!configPath.empty()) { in OpenFile()
90 ifsConf.open(configPath); in OpenFile()
92 HDF_LOGI("path is %{public}s", configPath.c_str()); in OpenFile()
/ohos5.0/base/hiviewdfx/hiview/plugins/sysevent_source/include/
H A Dmonitor_config.h26 explicit MonitorConfig(const std::string& configPath): configPath_(configPath) {} in MonitorConfig() argument
/ohos5.0/base/hiviewdfx/hiview/plugins/privacy_controller/config/include/
H A Darea_policy.h32 AreaPolicy(const std::string& configPath);
37 void Parse(const std::string& configPath);
/ohos5.0/base/powermgr/power_manager/services/native/src/shutdown/
H A Dshutdown_dialog.cpp156 char* configPath = GetOneCfgFile(DIALOG_CONFIG_PATH.c_str(), buf, MAX_PATH_LEN); in LoadDialogConfig() local
157 if (configPath == nullptr || *configPath == '\0') { in LoadDialogConfig()
162 std::ifstream inputStream(configPath, std::ios::in | std::ios::binary); in LoadDialogConfig()
/ohos5.0/base/hiviewdfx/hiview/plugins/privacy_controller/
H A Dprivacy_controller.cpp39 …std::string configPath = context->GetHiViewDirectory(HiviewContext::DirectoryType::CONFIG_DIRECTOR… in InitAreaPolicy() local
41 areaPolicy_ = std::make_unique<AreaPolicy>(configPath.append(configFileName)); in InitAreaPolicy()
/ohos5.0/base/hiviewdfx/hiview/core/
H A Dhiview_platform.cpp471 std::string configPath = PIPELINE_RULE_CONFIG_DIR + pipelineInfo.name; in CreatePipeline() local
472 HIVIEW_LOGI("config file=%{public}s", configPath.c_str()); in CreatePipeline()
473 if (!FileUtil::FileExists(configPath)) { in CreatePipeline()
474 HIVIEW_LOGI("file=%{public}s does not exist", configPath.c_str()); in CreatePipeline()
477 DispatchRuleParser ruleParser(configPath); in CreatePipeline()
481 HIVIEW_LOGE("failed to parse config file=%{public}s", configPath.c_str()); in CreatePipeline()
500 …if (std::string configPath = DISPATCH_RULE_CONFIG_DIR + pluginInfo.name; FileUtil::FileExists(conf… in InitPlugin() local
501 HIVIEW_LOGI("config file=%{public}s", configPath.c_str()); in InitPlugin()
502 DispatchRuleParser ruleParser(configPath); in InitPlugin()
881 std::string configPath = defaultConfigDir_ + bundleName + "_plugin_config"; in RequestLoadBundle() local
[all …]
/ohos5.0/base/hiviewdfx/hiview/plugins/sysevent_source/control/config/include/
H A Ddaily_config.h36 DailyConfig(const std::string& configPath);
42 bool Parse(const std::string& configPath);
/ohos5.0/foundation/window/window_manager/wmserver/src/
H A Dwindow_manager_config.cpp100 char* configPath = GetOneCfgFile(configFileName.c_str(), buf, PATH_MAX + 1); in GetConfigPath() local
102 …if (!configPath || strlen(configPath) == 0 || strlen(configPath) > PATH_MAX || !realpath(configPat… in GetConfigPath()
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/
H A Dwindow_scene_config.cpp121 char* configPath = GetOneCfgFile(configFileName.c_str(), buf, PATH_MAX + 1); in GetConfigPath() local
123 …if (!configPath || strlen(configPath) == 0 || strlen(configPath) > PATH_MAX || !realpath(configPat… in GetConfigPath()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/pipeline/
H A Drs_uni_render_judgement_test.cpp78 const std::string configPath = "/data/"; variable
80 std::string configFilePath = configPath + configName;
/ohos5.0/foundation/resourceschedule/qos_manager/common/src/
H A Dconfig_reader.cpp193 void ConfigReader::GetRealConfigPath(const char* configName, std::string& configPath) in GetRealConfigPath() argument
205 configPath = ""; in GetRealConfigPath()
208 configPath = tmpPath; in GetRealConfigPath()
/ohos5.0/base/powermgr/battery_manager/charger/src/
H A Dbattery_config.cpp109 bool BatteryConfig::OpenFile(std::ifstream& ifsConf, const std::string& configPath) in OpenFile() argument
112 if (!configPath.empty()) { in OpenFile()
113 ifsConf.open(configPath); in OpenFile()
/ohos5.0/base/powermgr/battery_manager/services/native/src/
H A Dbattery_config.cpp98 bool BatteryConfig::OpenFile(std::ifstream& ifsConf, const std::string& configPath) in OpenFile() argument
101 if (!configPath.empty()) { in OpenFile()
102 ifsConf.open(configPath); in OpenFile()

123