Home
last modified time | relevance | path

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

/ohos5.0/base/time/time_service/services/
H A Dtime_system_ability.cpp82 rtcId(GetWallClockRtcId()) in TimeSystemAbility()
87 TimeSystemAbility::TimeSystemAbility() : state_(ServiceRunningState::STATE_NOT_START), rtcId(GetWal… in TimeSystemAbility()
600 if (rtcId < 0) { in SetRtcTime()
605 strs << "/dev/rtc" << rtcId; in SetRtcTime()
638 bool TimeSystemAbility::CheckRtc(const std::string &rtcPath, uint64_t rtcId) in CheckRtc() argument
641 strs << rtcPath << "/rtc" << rtcId << "/hctosys"; in CheckRtc()
667 unsigned long rtcId = 0; in GetWallClockRtcId() local
673 rtcId = std::stoul(rtcIdStr); in GetWallClockRtcId()
675 if (CheckRtc(rtcPath, rtcId)) { in GetWallClockRtcId()
676 TIME_HILOGD(TIME_MODULE_SERVICE, "found wall clock rtc %{public}ld", rtcId); in GetWallClockRtcId()
[all …]
H A Dtime_system_ability.h107 bool CheckRtc(const std::string &rtcPath, uint64_t rtcId);
120 const int rtcId; variable