Home
last modified time | relevance | path

Searched refs:NapiWork (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/time/time_service/framework/js/napi/system_date_time/src/
H A Dnapi_system_date_time.cpp97 return NapiWork::AsyncEnqueue(env, setTimeContext, "SetTime", executor, complete); in SetTime()
143 return NapiWork::AsyncEnqueue(env, setDateContext, "SetDate", executor, complete); in SetDate()
260 return NapiWork::SyncEnqueue(env, getTimeContext, "GetTime", executor, complete); in GetTime()
300 return NapiWork::AsyncEnqueue(env, getRealTimeContext, "GetRealTime", executor, complete); in GetRealTime()
350 return NapiWork::SyncEnqueue(env, getUpTimeContext, "GetUpTime", executor, complete); in GetUptime()
374 return NapiWork::AsyncEnqueue(env, getDateContext, "GetDate", executor, complete); in GetDate()
400 return NapiWork::AsyncEnqueue(env, setTimezoneContext, "SetTimezone", executor, complete); in SetTimezone()
428 return NapiWork::AsyncEnqueue(env, getTimezoneContext, "GetTimezone", executor, complete); in GetTimezone()
453 return NapiWork::SyncEnqueue(env, getTimezoneContext, "GetTimezone", executor, complete); in GetTimezoneSync()
477 return NapiWork::AsyncEnqueue(env, updateNtpTimeContext, "UpdateNtpTime", executor, complete); in UpdateNtpTime()
[all …]
/ohos5.0/base/time/time_service/framework/js/napi/common/include/
H A Dnapi_work.h58 friend class NapiWork; member
61 class NapiWork {
/ohos5.0/base/time/time_service/framework/js/napi/common/src/
H A Dnapi_work.cpp74 napi_value NapiWork::AsyncEnqueue(napi_env env, ContextBase *ctxt, const std::string &name, in AsyncEnqueue()
127 void NapiWork::GenerateOutput(ContextBase *ctxt) in GenerateOutput()
166 napi_value NapiWork::SyncEnqueue(napi_env env, ContextBase *ctxt, const std::string &name, in SyncEnqueue()
190 napi_value NapiWork::GenerateOutputSync(napi_env env, ContextBase *ctxt) in GenerateOutputSync()
/ohos5.0/base/time/time_service/framework/js/napi/system_timer/src/
H A Dnapi_system_timer.cpp250 return NapiWork::AsyncEnqueue(env, createTimerContext, "SetTime", executor, complete); in CreateTimer()
285 return NapiWork::AsyncEnqueue(env, startTimerContext, "StartTimer", executor, complete); in StartTimer()
313 return NapiWork::AsyncEnqueue(env, stopTimerContext, "StopTimer", executor, complete); in StopTimer()
342 return NapiWork::AsyncEnqueue(env, destroyTimerContext, "DestroyTimer", executor, complete); in DestroyTimer()