Home
last modified time | relevance | path

Searched refs:isNano (Results 1 - 9 of 9) sorted by relevance

/base/time/time_service/framework/cj/include/
H A Dsystem_date_time_ffi.h26 FFI_EXPORT RetDataI64 FfiOHOSSysDateTimegetCurrentTime(bool isNano);
27 FFI_EXPORT RetDataI64 FfiOHOSSysDateTimegetRealActiveTime(bool isNano);
28 FFI_EXPORT RetDataI64 FfiOHOSSysDateTimegetRealTime(bool isNano);
29 FFI_EXPORT RetDataI64 FfiOHOSSysDateTimeGetTime(bool isNano);
30 FFI_EXPORT RetDataI64 FfiOHOSSysDateTimeGetUptime(int32_t timeType, bool isNano);
H A Dsystem_date_time.h34 static std::tuple<int32_t, int64_t> getCurrentTime(bool isNano);
35 static std::tuple<int32_t, int64_t> getRealActiveTime(bool isNano);
36 static std::tuple<int32_t, int64_t> getRealTime(bool isNano);
37 static std::tuple<int32_t, int64_t> getTime(bool isNano);
38 static std::tuple<int32_t, int64_t> getUpTime(int32_t timeType, bool isNano);
42 static int32_t GetDeviceTime(clockid_t clockId, bool isNano, int64_t &time);
/base/time/time_service/framework/cj/src/
H A Dsystem_date_time.cpp41 std::tuple<int32_t, int64_t> SystemDateTimeImpl::getCurrentTime(bool isNano) in getCurrentTime() argument
45 if (isNano) { in getCurrentTime()
57 std::tuple<int32_t, int64_t> SystemDateTimeImpl::getRealActiveTime(bool isNano) in getRealActiveTime() argument
61 if (isNano) { in getRealActiveTime()
73 std::tuple<int32_t, int64_t> SystemDateTimeImpl::getRealTime(bool isNano) in getRealTime() argument
77 if (isNano) { in getRealTime()
89 int32_t SystemDateTimeImpl::GetDeviceTime(clockid_t clockId, bool isNano, int64_t &time) in GetDeviceTime() argument
97 if (isNano) { in GetDeviceTime()
105 std::tuple<int32_t, int64_t> SystemDateTimeImpl::getTime(bool isNano) in getTime() argument
109 innerCode = GetDeviceTime(CLOCK_REALTIME, isNano, tim in getTime()
117 getUpTime(int32_t timeType, bool isNano) getUpTime() argument
[all...]
H A Dsystem_date_time_ffi.cpp35 RetDataI64 FfiOHOSSysDateTimegetCurrentTime(bool isNano) in FfiOHOSSysDateTimegetCurrentTime() argument
38 auto [state, time] = SystemDateTimeImpl::getCurrentTime(isNano); in FfiOHOSSysDateTimegetCurrentTime()
49 RetDataI64 FfiOHOSSysDateTimegetRealActiveTime(bool isNano) in FfiOHOSSysDateTimegetRealActiveTime() argument
52 auto [state, time] = SystemDateTimeImpl::getRealActiveTime(isNano); in FfiOHOSSysDateTimegetRealActiveTime()
63 RetDataI64 FfiOHOSSysDateTimegetRealTime(bool isNano) in FfiOHOSSysDateTimegetRealTime() argument
66 auto [state, time] = SystemDateTimeImpl::getRealTime(isNano); in FfiOHOSSysDateTimegetRealTime()
77 RetDataI64 FfiOHOSSysDateTimeGetTime(bool isNano) in FfiOHOSSysDateTimeGetTime() argument
80 auto [state, time] = SystemDateTimeImpl::getTime(isNano); in FfiOHOSSysDateTimeGetTime()
91 RetDataI64 FfiOHOSSysDateTimeGetUptime(int32_t timeType, bool isNano) in FfiOHOSSysDateTimeGetUptime() argument
94 auto [state, time] = SystemDateTimeImpl::getUpTime(timeType, isNano); in FfiOHOSSysDateTimeGetUptime()
[all...]
/base/time/time_service/framework/js/napi/system_time/src/
H A Djs_systemtime.cpp41 bool isNano = false; member
178 bool isNano = false; in JSSystemTimeGetCurrentTime() local
179 if (NapiUtils::ParseParametersGetNA(env, argv, argc, callback, &isNano) == nullptr) { in JSSystemTimeGetCurrentTime()
188 asyncContext->isNano = isNano; in JSSystemTimeGetCurrentTime()
195 if (asyncContext->isNano) { in JSSystemTimeGetCurrentTime()
231 bool isNano = false; in JSSystemTimeGetRealActiveTime() local
232 if (NapiUtils::ParseParametersGetNA(env, argv, argc, callback, &isNano) == nullptr) { in JSSystemTimeGetRealActiveTime()
241 asyncContext->isNano = isNano; in JSSystemTimeGetRealActiveTime()
284 bool isNano = false; JSSystemTimeGetRealTime() local
[all...]
/base/time/time_service/framework/js/napi/system_date_time/src/
H A Dnapi_system_date_time.cpp150 bool isNano = false; in GetRealActiveTime() member
159 napi_get_value_bool(env, argv[ARGV_FIRST], &getRealActiveTimeContext->isNano); in GetRealActiveTime()
161 getRealActiveTimeContext->status == napi_ok, "invalid isNano", JsErrorCode::PARAMETER_ERROR); in GetRealActiveTime()
169 if (getRealActiveTimeContext->isNano) { in GetRealActiveTime()
191 bool isNano = false; in GetCurrentTime() member
200 napi_get_value_bool(env, argv[ARGV_FIRST], &getCurrentTimeContext->isNano); in GetCurrentTime()
202 getCurrentTimeContext->status == napi_ok, "invalid isNano", JsErrorCode::PARAMETER_ERROR); in GetCurrentTime()
210 if (getCurrentTimeContext->isNano) { in GetCurrentTime()
232 bool isNano = false; in GetTime() member
240 getTimeContext->status = napi_get_value_bool(env, argv[ARGV_FIRST], &getTimeContext->isNano); in GetTime()
267 bool isNano = false; GetRealTime() member
506 GetDeviceTime(clockid_t clockId, bool isNano, int64_t &time) GetDeviceTime() argument
[all...]
/base/time/time_service/framework/js/napi/common/src/
H A Dnapi_utils.cpp250 napi_ref &callback, bool *isNano) in ParseParametersGetNA()
258 napi_get_value_bool(env, argv[0], isNano); in ParseParametersGetNA()
261 napi_get_value_bool(env, argv[0], isNano); in ParseParametersGetNA()
249 ParseParametersGetNA(napi_env env, const napi_value (&argv)[SET_TIMEZONE_MAX_PARA], size_t argc, napi_ref &callback, bool *isNano) ParseParametersGetNA() argument
/base/time/time_service/framework/js/napi/system_date_time/include/
H A Dnapi_system_date_time.h50 static int32_t GetDeviceTime(clockid_t clockId, bool isNano, int64_t &time);
/base/time/time_service/framework/js/napi/common/include/
H A Dnapi_utils.h143 napi_ref &callback, bool *isNano);

Completed in 5 milliseconds