Home
last modified time | relevance | path

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

/base/time/time_service/services/
Dtime_system_ability.cpp76 rtcId(GetWallClockRtcId()) in TimeSystemAbility()
81 TimeSystemAbility::TimeSystemAbility() : state_(ServiceRunningState::STATE_NOT_START), rtcId(GetWal… in TimeSystemAbility()
489 if (rtcId < 0) { in SetRtcTime()
494 strs << "/dev/rtc" << rtcId; in SetRtcTime()
526 bool TimeSystemAbility::CheckRtc(const std::string &rtcPath, uint64_t rtcId) in CheckRtc() argument
529 strs << rtcPath << "/rtc" << rtcId << "/hctosys"; in CheckRtc()
556 unsigned long rtcId = 0; in GetWallClockRtcId() local
562 rtcId = std::stoul(rtcIdStr); in GetWallClockRtcId()
564 if (CheckRtc(rtcPath, rtcId)) { in GetWallClockRtcId()
565 TIME_HILOGD(TIME_MODULE_SERVICE, "found wall clock rtc %{public}ld", rtcId); in GetWallClockRtcId()
[all …]
Dtime_system_ability.h94 bool CheckRtc(const std::string &rtcPath, uint64_t rtcId);
101 const int rtcId; variable