Home
last modified time | relevance | path

Searched refs:timeType (Results 1 - 7 of 7) sorted by relevance

/base/time/time_service/framework/cj/include/
H A Dsystem_date_time_ffi.h30 FFI_EXPORT RetDataI64 FfiOHOSSysDateTimeGetUptime(int32_t timeType, bool isNano);
H A Dsystem_date_time.h38 static std::tuple<int32_t, int64_t> getUpTime(int32_t timeType, bool isNano);
/base/time/time_service/framework/cj/src/
H A Dsystem_date_time_ffi.cpp91 RetDataI64 FfiOHOSSysDateTimeGetUptime(int32_t timeType, bool isNano) in FfiOHOSSysDateTimeGetUptime() argument
94 auto [state, time] = SystemDateTimeImpl::getUpTime(timeType, isNano); in FfiOHOSSysDateTimeGetUptime()
H A Dsystem_date_time.cpp117 std::tuple<int32_t, int64_t> SystemDateTimeImpl::getUpTime(int32_t timeType, bool isNano) in getUpTime() argument
121 if (timeType == STARTUP) { in getUpTime()
/base/sensors/miscdevice/frameworks/cj/src/
H A Dvibrator_ffi.h26 char* timeType; member
H A Dvibrator_ffi.cpp97 std::string strType(effect.timeType); in FfiVibratorStartVibrationTime()
/base/time/time_service/framework/js/napi/system_date_time/src/
H A Dnapi_system_date_time.cpp39 napi_value timeType = nullptr; in SystemDateTimeInit() local
44 NAPI_CALL(env, napi_create_object(env, &timeType)); in SystemDateTimeInit()
45 NAPI_CALL(env, napi_set_named_property(env, timeType, "STARTUP", startup)); in SystemDateTimeInit()
46 NAPI_CALL(env, napi_set_named_property(env, timeType, "ACTIVE", active)); in SystemDateTimeInit()
62 DECLARE_NAPI_STATIC_PROPERTY("TimeType", timeType), in SystemDateTimeInit()
307 int32_t timeType = STARTUP; in GetUptime() member
314 getUpTimeContext->status = napi_get_value_int32(env, argv[ARGV_FIRST], &getUpTimeContext->timeType); in GetUptime()
316 "The type of 'timeType' must be number or enum", JsErrorCode::PARAMETER_ERROR); in GetUptime()
318 (getUpTimeContext->timeType >= STARTUP && getUpTimeContext->timeType < in GetUptime()
[all...]

Completed in 3 milliseconds