Searched refs:targetPath (Results 1 – 6 of 6) sorted by relevance
/base/powermgr/power_manager/services/native/src/suspend/ |
D | suspend_source_parser.cpp | 46 std::string targetPath; in ParseSources() local 47 bool ret = GetTargetPath(targetPath); in ParseSources() 51 POWER_HILOGI(FEATURE_SUSPEND, "use targetPath=%{public}s", targetPath.c_str()); in ParseSources() 52 std::ifstream inputStream(targetPath.c_str(), std::ios::in | std::ios::binary); in ParseSources() 63 bool SuspendSourceParser::GetTargetPath(std::string& targetPath) in GetTargetPath() argument 65 targetPath.clear(); in GetTargetPath() 71 targetPath = path; in GetTargetPath() 81 targetPath = SYSTEM_POWER_SUSPEND_CONFIG_FILE; in GetTargetPath() 84 targetPath = VENDOR_POWER_SUSPEND_CONFIG_FILE; in GetTargetPath()
|
D | suspend_source_parser.h | 31 static bool GetTargetPath(std::string& targetPath);
|
/base/powermgr/power_manager/services/native/src/wakeup/ |
D | wakeup_source_parser.cpp | 46 std::string targetPath; in ParseSources() local 47 bool ret = GetTargetPath(targetPath); in ParseSources() 52 POWER_HILOGI(FEATURE_WAKEUP, "use targetPath=%{public}s", targetPath.c_str()); in ParseSources() 53 std::ifstream inputStream(targetPath.c_str(), std::ios::in | std::ios::binary); in ParseSources() 64 bool WakeupSourceParser::GetTargetPath(std::string& targetPath) in GetTargetPath() argument 66 targetPath.clear(); in GetTargetPath() 71 targetPath = path; in GetTargetPath() 81 targetPath = SYSTEM_POWER_WAKEUP_CONFIG_FILE; in GetTargetPath() 84 targetPath = VENDOR_POWER_WAKEUP_CONFIG_FILE; in GetTargetPath()
|
D | wakeup_source_parser.h | 34 static bool GetTargetPath(std::string& targetPath);
|
/base/powermgr/power_manager/test/unittest/src/ |
D | power_wakeup_test.cpp | 171 std::string targetPath; variable 172 WakeupSourceParser::GetTargetPath(targetPath); 173 EXPECT_TRUE(targetPath.size() != 0);
|
/base/security/huks/services/huks_standard/huks_service/main/core/src/ |
D | hks_storage.c | 211 static int32_t GetPath(const char *path, const char *name, char *targetPath, uint32_t pathLen, uint… in GetPath() argument 213 if (strncpy_s(targetPath, pathLen, path, strlen(path)) != EOK) { in GetPath() 218 if (targetPath[strlen(targetPath) - 1] != '/') { in GetPath() 219 if (strncat_s(targetPath, pathLen, "/", strlen("/")) != EOK) { in GetPath() 225 if (strncat_s(targetPath, pathLen, name, strlen(name)) != EOK) { in GetPath() 231 if (strncat_s(targetPath, pathLen, ".bak", strlen(".bak")) != EOK) { in GetPath()
|