Lines Matching full:path

47 const char *PATH = "/etc/telephony/pdp_profile.json";
101 char *path = GetOneCfgFile(PATH, buf, MAX_PATH_LEN);
102 return ParserPdpProfileJson(vec, path);
105 int ParserUtil::ParserPdpProfileJson(std::vector<PdpProfile> &vec, const char *path)
109 if (path && *path != '\0') {
110 ret = LoaderJsonFile(content, path);
217 int ParserUtil::GetOpKeyFilePath(std::string &path)
223 path = ret;
230 int ParserUtil::ParserOpKeyJson(std::vector<OpKey> &vec, const char *path)
233 int ret = LoaderJsonFile(content, path);
340 char *path = GetOneCfgFile(file.c_str(), buf, MAX_PATH_LEN);
342 if (path && *path != '\0') {
344 ret = parser.LoaderJsonFile(content, path);
354 if (hashCheck && !IsDigestChanged(path, NUM_MATCH_HASH)) {
434 char *path = GetOneCfgFile(file.c_str(), buf, MAX_PATH_LEN);
436 if (path && *path != '\0') {
437 ret = LoaderJsonFile(content, path);
447 if (hashCheck && !IsDigestChanged(path, ECC_DATA_HASH)) {
506 int ParserUtil::LoaderJsonFile(char *&content, const char *path) const
510 if (realpath(path, realPath) == nullptr) {
511 DATA_STORAGE_LOGE("ParserUtil::LoaderJsonFile realpath fail! #PATH: %{public}s", path);
582 int ParserUtil::GetPdpProfilePath(int slotId, std::string &path)
589 char *ret = GetOneCfgFileEx(PATH, buf, MAX_PATH_LEN, mode, nullptr);
591 path = ret;
598 int ParserUtil::GetFileChecksum(const char *path, std::string &checkSum)
601 if (realpath(path, realPath) == nullptr) {
638 bool ParserUtil::IsDigestChanged(const char *path, const std::string &key)
642 util.GetFileChecksum(path, newHash);