Home
last modified time | relevance | path

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

/base/time/time_service/services/
H A Dtime_system_ability.cpp99 rtcId(GetWallClockRtcId()) in TimeSystemAbility()
104 TimeSystemAbility::TimeSystemAbility() : state_(ServiceRunningState::STATE_NOT_START), rtcId(GetWallClockRtcId()) in TimeSystemAbility()
628 if (rtcId < 0) { in SetRtcTime()
633 strs << "/dev/rtc" << rtcId; in SetRtcTime() local
666 bool TimeSystemAbility::CheckRtc(const std::string &rtcPath, uint64_t rtcId) in CheckRtc() argument
669 strs << rtcPath << "/rtc" << rtcId << "/hctosys"; in CheckRtc() local
695 unsigned long rtcId = 0; in GetWallClockRtcId() local
701 rtcId = std::stoul(rtcIdStr); in GetWallClockRtcId()
703 if (CheckRtc(rtcPath, rtcId)) { in GetWallClockRtcId()
704 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);
121 const int rtcId; member in OHOS::MiscServices::TimeSystemAbility

Completed in 4 milliseconds