Searched refs:rtcPath (Results 1 – 2 of 2) sorted by relevance
526 bool TimeSystemAbility::CheckRtc(const std::string &rtcPath, uint64_t rtcId) in CheckRtc() argument529 strs << rtcPath << "/rtc" << rtcId << "/hctosys"; in CheckRtc()544 std::string rtcPath = "/sys/class/rtc"; in GetWallClockRtcId() local546 std::unique_ptr<DIR, int (*)(DIR *)> dir(opendir(rtcPath.c_str()), closedir); in GetWallClockRtcId()548 …TIME_HILOGE(TIME_MODULE_SERVICE, "failed to open %{public}s: %{public}s", rtcPath.c_str(), strerro… in GetWallClockRtcId()564 if (CheckRtc(rtcPath, rtcId)) { in GetWallClockRtcId()
94 bool CheckRtc(const std::string &rtcPath, uint64_t rtcId);