Home
last modified time | relevance | path

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

/base/security/appverify/interfaces/innerkits/appverify/src/init/
H A Djson_parser_utils.cpp27 const std::string& jsonPath, std::string& error) in ReadTrustedRootCAFromJson()
34 jsonFileStream.open(jsonPath.c_str(), std::ios::in); in ReadTrustedRootCAFromJson()
26 ReadTrustedRootCAFromJson(cJSON** jsonObj, const std::string& jsonPath, std::string& error) ReadTrustedRootCAFromJson() argument
/base/global/resource_management/frameworks/resmgr/src/
H A 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()
146 FILE* pf = std::fopen(jsonPath.c_str(), "r"); in ParseJson()
165 auto themeConfig = GetThemeConfig(jsonPath); in ParseJson()
142 ParseJson(const std::string &bundleName, const std::string &moduleName, const std::string &jsonPath) ParseJson() argument
/base/security/appverify/interfaces/innerkits/appverify/include/init/
H A Djson_parser_utils.h33 static bool ReadTrustedRootCAFromJson(cJSON** jsonObj, const std::string& jsonPath, std::string& error);
/base/startup/appspawn/util/include/
H A Djson_utils.h32 cJSON *GetJsonObjFromFile(const char *jsonPath);
/base/startup/appspawn/util/src/
H A Dappspawn_utils.c273 cJSON *GetJsonObjFromFile(const char *jsonPath) in GetJsonObjFromFile() argument
275 APPSPAWN_CHECK_ONLY_EXPER(jsonPath != NULL && *jsonPath != '\0', NULL); in GetJsonObjFromFile()
276 char *buffer = ReadFile(jsonPath); in GetJsonObjFromFile()
/base/global/resource_management/frameworks/resmgr/include/
H A Dtheme_pack_resource.h168 void ParseJson(const std::string &bundleName, const std::string &moduleName, const std::string &jsonPath);
/base/startup/appspawn/modules/sandbox/
H A Dsandbox_utils.h131 static bool GetJsonObjFromJson(nlohmann::json &jsonObj, const std::string &jsonPath);
H A Dsandbox_utils.cpp159 bool JsonUtils::GetJsonObjFromJson(nlohmann::json &jsonObj, const std::string &jsonPath) in GetJsonObjFromJson() argument
161 APPSPAWN_CHECK(jsonPath.length() <= PATH_MAX, return false, "jsonPath is too long"); in GetJsonObjFromJson()
163 jsonFileStream.open(jsonPath.c_str(), std::ios::in); in GetJsonObjFromJson()
/base/update/updater/services/
H A Dupdater_main.cpp250 static constexpr auto jsonPath = "/etc/product_cfg.json"; in IsBatteryCapacitySufficient() local
258 JsonNode node { Fs::path { jsonPath }}; in IsBatteryCapacitySufficient()

Completed in 16 milliseconds