/base/time/time_service/test/unittest/service_test/src/ |
D | time_client_test.cpp | 156 int32_t result = TimeServiceClient::GetInstance()->SetTimeV9(time); 168 int32_t result = TimeServiceClient::GetInstance()->SetTimeV9(-1); 180 int32_t result = TimeServiceClient::GetInstance()->SetTimeV9(LLONG_MAX); 196 int32_t result = TimeServiceClient::GetInstance()->SetTimeV9(time); 199 bool ret = TimeServiceClient::GetInstance()->SetTime(time, code); 215 auto getCurrentTimeZone = TimeServiceClient::GetInstance()->GetTimeZone(); 218 int32_t result = TimeServiceClient::GetInstance()->SetTimeZoneV9(timeZoneNicosia); 221 int32_t getTimeZoneResult = TimeServiceClient::GetInstance()->GetTimeZone(getTimeZoneNicosia); 224 int32_t ret = TimeServiceClient::GetInstance()->SetTimeZoneV9(getCurrentTimeZone); 236 int32_t result = TimeServiceClient::GetInstance()->SetTimeZoneV9("123"); [all …]
|
D | time_service_test.cpp | 164 TimeServiceClient::GetInstance()->CreateTimerV9(timerInfo, g_idleTimerId); in StartIdleTimer() 168 TimeServiceClient::GetInstance()->StartTimerV9(g_idleTimerId, time + 5000); in StartIdleTimer() 173 TimeServiceClient::GetInstance()->DestroyTimerV9(g_idleTimerId); in DestroyIdleTimer() 184 auto ret = TimeServiceClient::GetInstance()->ProxyTimer(RESERVED_UID, true, true); 186 ret = TimeServiceClient::GetInstance()->ProxyTimer(RESERVED_UID, false, true); 198 auto ret = TimeServiceClient::GetInstance()->ProxyTimer(RESERVED_UID, true, true); 200 ret = TimeServiceClient::GetInstance()->ResetAllProxy(); 212 auto ret = TimeServiceClient::GetInstance()->ProxyTimer(RESERVED_UID, false, true); 224 auto ret = TimeServiceClient::GetInstance()->ProxyTimer(RESERVED_UID, true, false); 226 ret = TimeServiceClient::GetInstance()->ProxyTimer(RESERVED_UID, false, false); [all …]
|
D | time_dfx_test.cpp | 127 auto timerId1 = TimeServiceClient::GetInstance()->CreateTimer(timerInfo); 136 ret = TimeServiceClient::GetInstance()->DestroyTimer(timerId1); 153 auto timerId1 = TimeServiceClient::GetInstance()->CreateTimer(timerInfo); 162 ret = TimeServiceClient::GetInstance()->DestroyTimer(timerId1); 205 TimeServiceClient::GetInstance()->CreateTimerV9(timerInfo, timerId); 209 TimeServiceClient::GetInstance()->StartTimerV9(timerId, time + 3000); 216 TimeServiceClient::GetInstance()->DestroyTimerV9(timerId);
|
/base/time/time_service/interfaces/inner_api/src/ |
D | time_service_client.cpp | 28 std::mutex TimeServiceClient::instanceLock_; 29 sptr<TimeServiceClient> TimeServiceClient::instance_; 30 TimeServiceClient::TimeServiceClient() in TimeServiceClient() function in OHOS::MiscServices::TimeServiceClient 34 TimeServiceClient::~TimeServiceClient() in ~TimeServiceClient() 45 sptr<TimeServiceClient> TimeServiceClient::GetInstance() in GetInstance() 50 instance_ = new TimeServiceClient; in GetInstance() 56 bool TimeServiceClient::ConnectService() in ConnectService() 90 bool TimeServiceClient::SetTime(const int64_t time) in SetTime() 102 bool TimeServiceClient::SetTime(const int64_t milliseconds, int32_t &code) in SetTime() 117 int32_t TimeServiceClient::SetTimeV9(const int64_t &time) in SetTimeV9() [all …]
|
/base/time/time_service/test/fuzztest/timetesttimer_fuzzer/ |
D | timetesttimer_fuzzer.cpp | 36 uint64_t timerId = TimeServiceClient::GetInstance()->CreateTimer(timerInfo); in FuzzTimeCreateTimer() 37 TimeServiceClient::GetInstance()->DestroyTimer(timerId); in FuzzTimeCreateTimer() 43 TimeServiceClient::GetInstance()->StartTimer(timerId, timerId); in FuzzTimeStartTimer() 49 TimeServiceClient::GetInstance()->StopTimer(timerId); in FuzzTimeStopTimer() 55 TimeServiceClient::GetInstance()->DestroyTimer(timerId); in FuzzTimeDestroyTimer() 66 TimeServiceClient::GetInstance()->CreateTimerV9(timerInfo, timerId); in FuzzTimeCreateTimerV9() 67 TimeServiceClient::GetInstance()->DestroyTimer(timerId); in FuzzTimeCreateTimerV9() 73 TimeServiceClient::GetInstance()->StartTimerV9(timerId, timerId); in FuzzTimeStartTimerV9() 79 TimeServiceClient::GetInstance()->StopTimerV9(timerId); in FuzzTimeStopTimerV9() 85 TimeServiceClient::GetInstance()->DestroyTimerV9(timerId); in FuzzTimeDestroyTimerV9()
|
/base/time/time_service/test/fuzztest/timeproxytimer_fuzzer/ |
D | timeproxytimer_fuzzer.cpp | 33 TimeServiceClient::GetInstance()->ProxyTimer(uid, true, true); in FuzzTimeProxyTimer() 34 TimeServiceClient::GetInstance()->ProxyTimer(uid, true, false); in FuzzTimeProxyTimer() 35 TimeServiceClient::GetInstance()->ProxyTimer(uid, false, false); in FuzzTimeProxyTimer() 36 TimeServiceClient::GetInstance()->ProxyTimer(uid, false, true); in FuzzTimeProxyTimer()
|
/base/time/time_service/interfaces/inner_api/include/ |
D | time_service_client.h | 28 class TimeServiceClient : public RefBase { 30 DISALLOW_COPY_AND_MOVE(TimeServiceClient); 31 TIME_API static sptr<TimeServiceClient> GetInstance(); 377 TimeServiceClient::GetInstance()->ClearProxy(); in OnRemoteDied() 378 TimeServiceClient::GetInstance()->ConnectService(); in OnRemoteDied() 385 TimeServiceClient(); 386 ~TimeServiceClient(); 393 static sptr<TimeServiceClient> instance_;
|
/base/time/time_service/test/fuzztest/timesettimezone_fuzzer/ |
D | timesettimezone_fuzzer.cpp | 31 TimeServiceClient::GetInstance()->SetTimeZone(timeZone); in FuzzTimeSetTimezone() 32 TimeServiceClient::GetInstance()->SetTimeZone(timeZone); in FuzzTimeSetTimezone() 33 TimeServiceClient::GetInstance()->SetTimeZoneV9(timeZone); in FuzzTimeSetTimezone()
|
/base/time/time_service/test/fuzztest/timesettime_fuzzer/ |
D | timesettime_fuzzer.cpp | 32 TimeServiceClient::GetInstance()->SetTime(time); in FuzzTimeSetTime() 33 TimeServiceClient::GetInstance()->SetTime(time, code); in FuzzTimeSetTime() 34 TimeServiceClient::GetInstance()->SetTimeV9(time); in FuzzTimeSetTime()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | reminder_request_timer.cpp | 35 sptr<MiscServices::TimeServiceClient> timer = MiscServices::TimeServiceClient::GetInstance(); in ReminderRequestTimer() 101 sptr<MiscServices::TimeServiceClient> timer = MiscServices::TimeServiceClient::GetInstance(); in UpdateTimeInfo()
|
/base/powermgr/thermal_manager/services/native/src/thermal_action/ |
D | thermal_timer.cpp | 69 timerId = TimeServiceClient::GetInstance()->CreateTimer(timerInfo); in CreateTimer() 80 auto ret = TimeServiceClient::GetInstance()->StartTimer(timerId, triggerTime); in StartTimer() 91 auto ret = TimeServiceClient::GetInstance()->StopTimer(timerId); in StopTimer() 101 auto ret = TimeServiceClient::GetInstance()->DestroyTimer(timerId); in DestroyTimer()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/ |
D | sys_usage_event_factory.cpp | 61 auto powerTime = MiscServices::TimeServiceClient::GetInstance()->GetBootTimeMs(); in GetBootTime() 72 auto runningTime = MiscServices::TimeServiceClient::GetInstance()->GetMonotonicTimeMs(); in GetMonotonicTime()
|
/base/account/os_account/services/accountmgr/src/ |
D | account_info_report.cpp | 37 …jsonResult["bootTime"] = std::to_string(MiscServices::TimeServiceClient::GetInstance()->GetBootTim… in TransformIntoJson() 38 …jsonResult["wallTime"] = std::to_string(MiscServices::TimeServiceClient::GetInstance()->GetWallTim… in TransformIntoJson()
|
/base/time/time_service/framework/js/napi/system_date_time/src/ |
D | napi_system_date_time.cpp | 88 auto innerCode = TimeServiceClient::GetInstance()->SetTimeV9(setTimeContext->time); in SetTime() 134 auto innerCode = TimeServiceClient::GetInstance()->SetTimeV9(setDateContext->time); in SetDate() 168 … innerCode = TimeServiceClient::GetInstance()->GetMonotonicTimeNs(getRealActiveTimeContext->time); in GetRealActiveTime() 170 … innerCode = TimeServiceClient::GetInstance()->GetMonotonicTimeMs(getRealActiveTimeContext->time); in GetRealActiveTime() 209 … innerCode = TimeServiceClient::GetInstance()->GetWallTimeNs(getCurrentTimeContext->time); in GetCurrentTime() 211 … innerCode = TimeServiceClient::GetInstance()->GetWallTimeMs(getCurrentTimeContext->time); in GetCurrentTime() 284 innerCode = TimeServiceClient::GetInstance()->GetBootTimeNs(getRealTimeContext->time); in GetRealTime() 286 innerCode = TimeServiceClient::GetInstance()->GetBootTimeMs(getRealTimeContext->time); in GetRealTime() 358 auto innerCode = TimeServiceClient::GetInstance()->GetWallTimeMs(getDateContext->time); in GetDate() 389 … auto innerCode = TimeServiceClient::GetInstance()->SetTimeZoneV9(setTimezoneContext->timezone); in SetTimezone() [all …]
|
/base/telephony/core_service/services/network_search/src/ |
D | nitz_update.cpp | 69 int64_t now = OHOS::MiscServices::TimeServiceClient::GetInstance()->GetBootTimeMs(); in ProcessNitzUpdate() 201 … int64_t currentSystemTime = OHOS::MiscServices::TimeServiceClient::GetInstance()->GetBootTimeMs(); in IsValidTime() 270 std::string lastTimeZone = OHOS::MiscServices::TimeServiceClient::GetInstance()->GetTimeZone(); in SaveTimeZone() 278 bool result = OHOS::MiscServices::TimeServiceClient::GetInstance()->SetTimeZone(timeZone); in SaveTimeZone() 298 …bool result = OHOS::MiscServices::TimeServiceClient::GetInstance()->SetTime(networkTime * MILLI_TO… in SaveTime() 369 int64_t time = OHOS::MiscServices::TimeServiceClient::GetInstance()->GetBootTimeMs(); in AutoTimeChange()
|
/base/time/time_service/framework/js/napi/system_time/src/ |
D | js_systemtime.cpp | 83 … asyncContext->isOK = TimeServiceClient::GetInstance()->SetTime(asyncContext->time, errorCode); in JSSystemTimeSetTime() 140 …asyncContext->isOK = TimeServiceClient::GetInstance()->SetTimeZone(asyncContext->timeZone, errorCo… in JSSystemTimeSetTimeZone() 198 asyncContext->time = TimeServiceClient::GetInstance()->GetWallTimeNs(); in JSSystemTimeGetCurrentTime() 200 asyncContext->time = TimeServiceClient::GetInstance()->GetWallTimeMs(); in JSSystemTimeGetCurrentTime() 257 asyncContext->time = TimeServiceClient::GetInstance()->GetMonotonicTimeNs(); in JSSystemTimeGetRealActiveTime() 259 asyncContext->time = TimeServiceClient::GetInstance()->GetMonotonicTimeMs(); in JSSystemTimeGetRealActiveTime() 316 asyncContext->time = TimeServiceClient::GetInstance()->GetBootTimeNs(); in JSSystemTimeGetRealTime() 318 asyncContext->time = TimeServiceClient::GetInstance()->GetBootTimeMs(); in JSSystemTimeGetRealTime() 372 asyncContext->time = TimeServiceClient::GetInstance()->GetWallTimeMs(); in JSSystemTimeGetDate() 426 asyncContext->timeZone = TimeServiceClient::GetInstance()->GetTimeZone(); in JSSystemTimeGetTimeZone()
|
/base/print/print_fwk/services/src/ |
D | print_security_guard_info.cpp | 27 … OHOS::MiscServices::TimeServiceClient *tsc = OHOS::MiscServices::TimeServiceClient::GetInstance(); in PrintSecurityGuardInfo()
|
/base/customization/enterprise_device_management/services/edm_plugin/src/ |
D | set_datetime_plugin.cpp | 38 MiscServices::TimeServiceClient::GetInstance()->SetTime(data); in OnSetPolicy()
|
/base/time/time_service/framework/js/napi/system_timer/src/ |
D | napi_system_timer.cpp | 209 …auto innerCode = TimeServiceClient::GetInstance()->CreateTimerV9(createTimerContext->iTimerInfoIns… in CreateTimer() 250 …TimeServiceClient::GetInstance()->StartTimerV9(startTimerContext->timerId, startTimerContext->trig… in StartTimer() 278 auto innerCode = TimeServiceClient::GetInstance()->StopTimerV9(stopTimerContext->timerId); in StopTimer() 306 … auto innerCode = TimeServiceClient::GetInstance()->DestroyTimerV9(destroyTimerContext->timerId); in DestroyTimer()
|
/base/telephony/core_service/services/network_search/test/ |
D | test.cpp | 539 std::string timeZoneRes = OHOS::MiscServices::TimeServiceClient::GetInstance()->GetTimeZone(); in TestGetTimeZone() 557 … bool result = OHOS::MiscServices::TimeServiceClient::GetInstance()->SetTime(time * MILLI_TO_BASE); in TestInitTimeAndTimeZone() 562 result = OHOS::MiscServices::TimeServiceClient::GetInstance()->SetTimeZone(timeZoneSet); in TestInitTimeAndTimeZone() 566 std::string timeZoneRes = OHOS::MiscServices::TimeServiceClient::GetInstance()->GetTimeZone(); in TestInitTimeAndTimeZone()
|
/base/notification/distributed_notification_service/services/ans/src/ |
D | reminder_data_manager.cpp | 1294 sptr<MiscServices::TimeServiceClient> timer = MiscServices::TimeServiceClient::GetInstance(); in StartTimer() 1353 sptr<MiscServices::TimeServiceClient> timer = MiscServices::TimeServiceClient::GetInstance(); in StopTimer()
|