Searched refs:jsonPath (Results 1 – 9 of 9) sorted by relevance
/base/global/resource_management/frameworks/resmgr/src/ |
D | theme_pack_resource.cpp | 59 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/ |
D | json_parser_utils.cpp | 27 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/ |
D | json_parser_utils.h | 33 …static bool ReadTrustedRootCAFromJson(nlohmann::json& jsonObj, const std::string& jsonPath, std::s…
|
/base/startup/appspawn/util/src/ |
D | appspawn_utils.c | 258 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/ |
D | json_utils.h | 32 cJSON *GetJsonObjFromFile(const char *jsonPath);
|
/base/global/resource_management/frameworks/resmgr/include/ |
D | theme_pack_resource.h | 144 …rseJson(const std::string &bundleName, const std::string &moduleName, const std::string &jsonPath);
|
/base/startup/appspawn/modules/sandbox/ |
D | sandbox_utils.h | 122 static bool GetJsonObjFromJson(nlohmann::json &jsonObj, const std::string &jsonPath);
|
D | sandbox_utils.cpp | 128 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/ |
D | updater_main.cpp | 222 static constexpr auto jsonPath = "/etc/product_cfg.json"; in IsBatteryCapacitySufficient() local 230 JsonNode node { Fs::path { jsonPath }}; in IsBatteryCapacitySufficient()
|