Home
last modified time | relevance | path

Searched refs:autoTimeInfo_ (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/time/time_service/services/time/src/
H A Dntp_update_time.cpp55 AutoTimeInfo NtpUpdateTime::autoTimeInfo_{};
77 autoTimeInfo_.ntpServer = ntpServer; in Init()
78 autoTimeInfo_.ntpServerSpec = ntpServerSpec; in Init()
79 autoTimeInfo_.status = autoTime; in Init()
208 std::vector<std::string> ntpList = SplitNtpAddrs(autoTimeInfo_.ntpServer); in GetNtpTimeInner()
250 if (autoTimeInfo_.status == AUTO_TIME_STATUS_ON) { in GetNtpTime()
258 if (autoTimeInfo_.status != AUTO_TIME_STATUS_ON) { in SetSystemTime()
306 return autoTimeInfo_.status == AUTO_TIME_STATUS_ON; in CheckStatus()
361 autoTimeInfo_.ntpServer = ntpServer; in ChangeNtpServerCallback()
362 autoTimeInfo_.ntpServerSpec = ntpServerSpec; in ChangeNtpServerCallback()
[all …]
/ohos5.0/base/time/time_service/services/time/include/
H A Dntp_update_time.h58 static AutoTimeInfo autoTimeInfo_; variable
/ohos5.0/base/time/time_service/test/unittest/service_test/src/
H A Dtime_service_test.cpp1029 std::string tmp = NtpUpdateTime::autoTimeInfo_.status;
1030 NtpUpdateTime::autoTimeInfo_.status = AUTO_TIME_STATUS_ON;
1041 NtpUpdateTime::autoTimeInfo_.status = tmp;
1640 auto status = NtpUpdateTime::GetInstance().autoTimeInfo_.status;
1642 NtpUpdateTime::GetInstance().autoTimeInfo_.status = NETWORK_TIME_STATUS_OFF;
1645 NtpUpdateTime::GetInstance().autoTimeInfo_.status = NETWORK_TIME_STATUS_ON;
1657 NtpUpdateTime::GetInstance().autoTimeInfo_.status = status;