Home
last modified time | relevance | path

Searched refs:rtcPath (Results 1 – 2 of 2) sorted by relevance

/base/time/time_service/services/
Dtime_system_ability.cpp526 bool TimeSystemAbility::CheckRtc(const std::string &rtcPath, uint64_t rtcId) in CheckRtc() argument
529 strs << rtcPath << "/rtc" << rtcId << "/hctosys"; in CheckRtc()
544 std::string rtcPath = "/sys/class/rtc"; in GetWallClockRtcId() local
546 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()
Dtime_system_ability.h94 bool CheckRtc(const std::string &rtcPath, uint64_t rtcId);