Home
last modified time | relevance | path

Searched refs:jsonPath (Results 1 – 9 of 9) sorted by relevance

/base/global/resource_management/frameworks/resmgr/src/
Dtheme_pack_resource.cpp59 std::string GetResKey(const std::string &jsonPath) in GetResKey() argument
61 auto lastIndex = jsonPath.rfind('/'); in GetResKey()
65 auto secondLastIndex = jsonPath.rfind('/', lastIndex - 1); in GetResKey()
69 auto thirdLastIndex = jsonPath.rfind('/', secondLastIndex - 1); in GetResKey()
77 std::string res = jsonPath.substr(thirdLastIndex + 1, secondLastIndex - thirdLastIndex - 1); in GetResKey()
143 const std::string &jsonPath) in ParseJson() argument
146 FILE* pf = std::fopen(jsonPath.c_str(), "r"); in ParseJson()
165 auto themeConfig = GetThemeConfig(jsonPath); in ParseJson()
/base/security/appverify/interfaces/innerkits/appverify/src/init/
Djson_parser_utils.cpp27 const std::string& jsonPath, std::string& error) in ReadTrustedRootCAFromJson() argument
30 jsonFileStream.open(jsonPath.c_str(), std::ios::in); in ReadTrustedRootCAFromJson()
/base/security/appverify/interfaces/innerkits/appverify/include/init/
Djson_parser_utils.h33 …static bool ReadTrustedRootCAFromJson(nlohmann::json& jsonObj, const std::string& jsonPath, std::s…
/base/startup/appspawn/util/src/
Dappspawn_utils.c258 cJSON *GetJsonObjFromFile(const char *jsonPath) in GetJsonObjFromFile() argument
260 APPSPAWN_CHECK_ONLY_EXPER(jsonPath != NULL && *jsonPath != '\0', NULL); in GetJsonObjFromFile()
261 char *buffer = ReadFile(jsonPath); in GetJsonObjFromFile()
/base/startup/appspawn/util/include/
Djson_utils.h32 cJSON *GetJsonObjFromFile(const char *jsonPath);
/base/global/resource_management/frameworks/resmgr/include/
Dtheme_pack_resource.h144 …rseJson(const std::string &bundleName, const std::string &moduleName, const std::string &jsonPath);
/base/startup/appspawn/modules/sandbox/
Dsandbox_utils.h122 static bool GetJsonObjFromJson(nlohmann::json &jsonObj, const std::string &jsonPath);
Dsandbox_utils.cpp128 bool JsonUtils::GetJsonObjFromJson(nlohmann::json &jsonObj, const std::string &jsonPath) in GetJsonObjFromJson() argument
130 APPSPAWN_CHECK(jsonPath.length() <= PATH_MAX, return false, "jsonPath is too long"); in GetJsonObjFromJson()
132 jsonFileStream.open(jsonPath.c_str(), std::ios::in); in GetJsonObjFromJson()
/base/update/updater/services/
Dupdater_main.cpp222 static constexpr auto jsonPath = "/etc/product_cfg.json"; in IsBatteryCapacitySufficient() local
230 JsonNode node { Fs::path { jsonPath }}; in IsBatteryCapacitySufficient()