Home
last modified time | relevance | path

Searched full:time (Results 1 – 25 of 2837) sorted by relevance

12345678910>>...114

/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/
Dlog_timestamp.h31 timespec time; in LogTimeStamp() local
32 clock_gettime(id, &time); in LogTimeStamp()
33 tv_sec = static_cast<uint32_t>(time.tv_sec); in LogTimeStamp()
34 tv_nsec = static_cast<uint32_t>(time.tv_nsec); in LogTimeStamp()
37 explicit LogTimeStamp(const timespec& time) in LogTimeStamp() argument
38 : tv_sec(static_cast<uint32_t>(time.tv_sec)), in LogTimeStamp()
39 tv_nsec(static_cast<uint32_t>(time.tv_nsec)) {} in LogTimeStamp()
44 bool operator == (const LogTimeStamp& time) const
46 return (tv_sec == time.tv_sec) && (tv_nsec == time.tv_nsec);
49 bool operator != (const LogTimeStamp& time) const
[all …]
/base/sensors/miscdevice/test/unittest/vibrator/native/resource/json_file/
DJet_N2O.he21 "Time": 0,
26 "Time": 42,
31 "Time": 128,
36 "Time": 217,
41 "Time": 763,
46 "Time": 1125,
51 "Time": 1503,
56 "Time": 1858,
61 "Time": 2295,
66 "Time": 2448,
[all …]
/base/time/time_service/
Dbundle.json3 "description": "Allowing apps to use OS time get/set functions",
8 "destPath": "base/time/time_service"
14 "subsystem": "time",
16 "SystemCapability.MiscServices.Time"
21 "//base/time/time_service/hisysevent.yaml"
54 "//base/time/time_service/framework/js/napi/system_time:systemtime",
55 "//base/time/time_service/framework/js/napi/system_timer:systemtimer",
56 "//base/time/time_service/framework/js/napi/system_date_time:systemdatetime",
57 "//base/time/time_service/framework/cj:cj_system_date_time_ffi",
58 "//base/time/time_service/interfaces/inner_api:time_client",
[all …]
DREADME.md1 # Timing and Time
5 The timing and time module provides APIs for managing the system time.
14 /base/time/time_service
19 ├── services # time service realization
34 | setTime(time : number) : Promise<boolean> | Set the system time (1970-01-01 to…
35 | setTime(time : number, callback : AsyncCallback<boolean>) : void | Set the system time (1970-01-0…
36 | setDate(date: Date, callback: AsyncCallback<boolean>): void; | Set the system time (Date format),…
37 | setDate(date: Date): Promise<boolean> | Set system time (Date format), cal…
38 | setTimezone(timezone: string, callback: AsyncCallback<boolean>): void | Set the system time zone,…
39 | setTimezone(timezone: string): Promise<boolean> | Set the system time zone, Promise …
[all …]
/base/global/timezone/
DREADME.md1 # Time Zone
5 The time zone module provides the functions of updating, parsing, compiling, and deploying time zon…
9 The directory structure of the time zone module is as follows:
13 ├── timezone # Code repository of the time zone module
14 │ ├── data # Time zone compilation data
15 │ ├── tool # Time zone management tool
16 │ │ ├── compile_tool # Time zone compilation tool
17 │ │ └── update_tool # Time zone update tool
22time zone update tool searches for the latest version of time zone data from the [Internet Assigne…
25 cd tool/update_tool // Go to the directory where the time zone update tool is located.
[all …]
/base/time/time_service/interfaces/inner_api/include/
Dtime_service_client.h39 * @brief Set time
41 * This api is used to set system time.
43 * @param UTC time in milliseconds.
49 * @brief Set system time
51 * This api is used to set system time.
53 * @param UTC time in milliseconds.
60 * @brief Set system time
62 * This api is used to set system time.
64 * @param UTC time in milliseconds.
67 TIME_API int32_t SetTimeV9(int64_t time);
[all …]
/base/account/os_account/frameworks/common/perf_stat/src/
Dperf_stat.cpp36 void PerfStat::SetAccountBindStartTime(int64_t time) in SetAccountBindStartTime() argument
38 accountBindBegin_ = (time > 0) ? time : 0; in SetAccountBindStartTime()
46 void PerfStat::SetAccountBindEndTime(int64_t time) in SetAccountBindEndTime() argument
48 accountBindEnd_ = (time > 0 && time > accountBindBegin_) ? time : accountBindBegin_; in SetAccountBindEndTime()
57 void PerfStat::SetAccountAddStartTime(int64_t time) in SetAccountAddStartTime() argument
59 accountAddBegin_ = (time > 0) ? time : 0; in SetAccountAddStartTime()
67 void PerfStat::SetAccountAddEndTime(int64_t time) in SetAccountAddEndTime() argument
69 accountAddEnd_ = (time > 0 && time > accountAddBegin_) ? time : accountAddBegin_; in SetAccountAddEndTime()
78 void PerfStat::SetAccountDelStartTime(int64_t time) in SetAccountDelStartTime() argument
80 accountDelBegin_ = (time > 0) ? time : 0; in SetAccountDelStartTime()
[all …]
/base/time/time_service/services/
DBUILD.gn14 import("../time.gni")
21 "time/include",
22 "time/include/inner_api_include",
47 "time/src/itimer_info.cpp",
48 "time/src/net_conn_callback_observer.cpp",
49 "time/src/nitz_subscriber.cpp",
50 "time/src/ntp_trusted_time.cpp",
51 "time/src/ntp_update_time.cpp",
52 "time/src/power_subscriber.cpp",
53 "time/src/simple_timer_info.cpp",
[all …]
/base/time/time_service/framework/cj/src/
Dsystem_date_time.cpp28 const std::string TIMEZONE_KEY = "persist.time.timezone";
30 int SystemDateTimeImpl::SetTime(int64_t time) in SetTime() argument
32 auto innerCode = TimeServiceClient::GetInstance()->SetTimeV9(time); in SetTime()
44 int64_t time = 0; in getCurrentTime() local
46 innerCode = TimeServiceClient::GetInstance()->GetWallTimeNs(time); in getCurrentTime()
48 innerCode = TimeServiceClient::GetInstance()->GetWallTimeMs(time); in getCurrentTime()
54 return {SUCCESS_CODE, time}; in getCurrentTime()
60 int64_t time = 0; in getRealActiveTime() local
62 innerCode = TimeServiceClient::GetInstance()->GetMonotonicTimeNs(time); in getRealActiveTime()
64 innerCode = TimeServiceClient::GetInstance()->GetMonotonicTimeMs(time); in getRealActiveTime()
[all …]
Dsystem_date_time_ffi.cpp26 RetCode FfiOHOSSysDateTimeSetTime(int64_t time) in FfiOHOSSysDateTimeSetTime() argument
28 RetCode ret = SystemDateTimeImpl::SetTime(time); in FfiOHOSSysDateTimeSetTime()
38 auto [state, time] = SystemDateTimeImpl::getCurrentTime(isNano); in FfiOHOSSysDateTimegetCurrentTime()
45 ret.data = time; in FfiOHOSSysDateTimegetCurrentTime()
52 auto [state, time] = SystemDateTimeImpl::getRealActiveTime(isNano); in FfiOHOSSysDateTimegetRealActiveTime()
59 ret.data = time; in FfiOHOSSysDateTimegetRealActiveTime()
66 auto [state, time] = SystemDateTimeImpl::getRealTime(isNano); in FfiOHOSSysDateTimegetRealTime()
73 ret.data = time; in FfiOHOSSysDateTimegetRealTime()
80 auto [state, time] = SystemDateTimeImpl::getTime(isNano); in FfiOHOSSysDateTimeGetTime()
87 ret.data = time; in FfiOHOSSysDateTimeGetTime()
[all …]
/base/time/time_service/services/etc/init/
Dtimeservice.cfg5 "mkdir /data/service/el1/public/time 0770 time time",
6 "mkdir /data/service/el1/public/database/time 02770 time ddms",
7 "syncexec /system/bin/chown -R time:time /data/service/el1/public/time",
15 "uid" : "time",
16 "gid" : ["time", "shell", "netsys_socket", "readproc"],
/base/global/resource_management_lite/frameworks/resmgr_lite/include/utils/
Ddate_utils.h19 #include <sys/time.h>
26 * Returns the current time in milliseconds.
29 * the current time and midnight, January 1, 1970 UTC.
33 struct timeval time; in CurrentTimeMillis() local
34 gettimeofday(&time, nullptr); in CurrentTimeMillis()
35 return (time.tv_sec * KILO + time.tv_usec / KILO); in CurrentTimeMillis()
39 * Returns the current time in microseconds.
42 * the current time and midnight, January 1, 1970 UTC.
46 struct timeval time; in CurrentTimeUsec() local
47 gettimeofday(&time, nullptr); in CurrentTimeUsec()
[all …]
/base/global/resource_management/frameworks/resmgr/include/utils/
Ddate_utils.h25 * Returns the current time in milliseconds.
28 * the current time and midnight, January 1, 1970 UTC.
32 struct timeval time; in CurrentTimeMillis() local
33 gettimeofday(&time, nullptr); in CurrentTimeMillis()
34 return (time.tv_sec * KILO + time.tv_usec / KILO); in CurrentTimeMillis()
38 * Returns the current time in microseconds.
41 * the current time and midnight, January 1, 1970 UTC.
45 struct timeval time; in CurrentTimeUsec() local
46 gettimeofday(&time, nullptr); in CurrentTimeUsec()
47 return (time.tv_sec * MILLION + time.tv_usec); in CurrentTimeUsec()
/base/sensors/miscdevice/services/miscdevice_service/haptic_matcher/src/
Dcustom_vibration_matcher.cpp118 timeEffect.delay = event.time - frontTime; in TransformTime()
119 timeEffect.time = event.duration; in TransformTime()
125 frontTime = event.time; in TransformTime()
129 timeEffect.time = 0; in TransformTime()
152 primitiveEffect.delay = event.time - preStartTime; in TransformEffect()
158 preStartTime = event.time; in TransformEffect()
183 event.time += pattern.startTime; in MixedWaveProcess()
187 } else if ((event.time >= (outputEvents.back().time + outputEvents.back().duration))) { in MixedWaveProcess()
188 … int32_t diffTime = event.time - outputEvents.back().time - outputEvents.back().duration; in MixedWaveProcess()
196 .time = lastEvent.time, in MixedWaveProcess()
[all …]
/base/hiviewdfx/hiview/plugins/performance/
Dhisysevent.yaml28 INPUT_TIME: {type: UINT64, desc: input time when multimodel receive from kernel}
29 RESPONSE_LATENCY: {type: UINT64, desc: click app icon to launcher animation time}
30 LAUN_TO_START_ABILITY_DUR: {type: UINT64, desc: launcher to start ability time}
31 STARTABILITY_PROCESSSTART_DUR: {type: UINT64, desc: start ability to process start time from ams}
32 PROCESSSTART_TO_APPATTACH_DUR: {type: UINT64, desc: app process start to app attach time from ams}
33 APPATTACH_TO_APPFOREGROUND_DUR: {type: UINT64, desc: app attach to foreground time from ams}
34 …STARTABILITY_APPFOREGROUND_DUR: {type: UINT64, desc: start ability to app foreground time from ams}
35 …APPFOREGR_ABILITYONFOREGR_DUR: {type: UINT64, desc: app foreground to ability onforeground time fr…
36 ABILITYONFOREG_STARTWINDOW_DUR: {type: UINT64, desc: ability onforeground to start window time}
37 DRAWN_LATENCY: {type: UINT64, desc: page drawn whole time}
[all …]
/base/time/time_service/test/fuzztest/timemanager_fuzzer/timesettimezone_fuzzer/
Dtimesettimezone_fuzzer.cpp49 int64_t time = static_cast<int64_t>(*rawData); in FuzzTimeSetTime() local
50 TimeServiceClient::GetInstance()->SetTime(time); in FuzzTimeSetTime()
51 TimeServiceClient::GetInstance()->SetTime(time); in FuzzTimeSetTime()
52 TimeServiceClient::GetInstance()->SetTimeV9(time); in FuzzTimeSetTime()
53 TimeServiceClient::GetInstance()->SetTimeV9(time); in FuzzTimeSetTime()
55 TimeServiceClient::GetInstance()->SetTime(time, code); in FuzzTimeSetTime()
61 int64_t time; in FuzzTimeGetTime() local
63 TimeServiceClient::GetInstance()->GetWallTimeMs(time); in FuzzTimeGetTime()
65 TimeServiceClient::GetInstance()->GetWallTimeNs(time); in FuzzTimeGetTime()
68 TimeServiceClient::GetInstance()->GetBootTimeMs(time); in FuzzTimeGetTime()
[all …]
/base/hiviewdfx/hiview/plugins/performance/scene_data_processor/
DAppLaunchConverter.h29 point.time = data.time; in ConvertToInteractionResponse()
53 point.time = data.time; in ConvertToStartAbility()
65 point.time = data.time; in ConvertToAppStartupType()
80 point.time = data.time; in ConvertToProcessStart()
96 point.time = data.time; in ConvertToAppAttach()
110 point.time = data.time; in ConvertToAppForeground()
126 point.time = data.time; in ConvertToAbilityForeground()
140 point.time = data.time; in ConvertToStartWindow()
153 point.time = data.time; in ConvertToDrawnCompleted()
168 point.time = data.time; in ConvertToFirstFrameDrawn()
[all …]
/base/update/updateservice/services/core/ability/alarm/src/
Dalarm_timer_utils.cpp60 uint64_t AlarmTimerUtils::RegisterAlarm(int64_t time, const AlarmTimerCallback &callback) in RegisterAlarm() argument
70 if (currentTime >= time) { in RegisterAlarm()
71 ENGINE_LOGE("register time is outdated, register time %{public}" PRIu64 "", time); in RegisterAlarm()
74 int64_t tiggerTimeMs = time * Constant::MILLESECONDS; in RegisterAlarm()
79 uint64_t AlarmTimerUtils::RegisterRepeatAlarm(int64_t time, int64_t repeatTime, const AlarmTimerCal… in RegisterRepeatAlarm() argument
81 …ENGINE_LOGI("register repeat timer, start time %{public}" PRId64 ", repeat %{public}" PRId64 "", t… in RegisterRepeatAlarm()
89 uint64_t timerId = RegisterTimer(time, timerInfo); in RegisterRepeatAlarm()
93 uint64_t AlarmTimerUtils::RegisterTimer(int64_t time, const std::shared_ptr<MiscServices::ITimerInf… in RegisterTimer() argument
98 ENGINE_LOGE("CreateTimer failed, register tim %{public}" PRId64 "", time); in RegisterTimer()
102 if (!systemTimer->StartTimer(timerId, static_cast<uint64_t>(time))) { in RegisterTimer()
[all …]
/base/web/webview/ohos_interface/include/ohos_nweb/
Dnweb_largest_contentful_paint_details.h32 * @brief Get start time of navigation.
34 * @retval Start time of navigation.
39 * @brief Get paint time of largest image.
41 * @retval Paint time of largest image..
46 * @brief Get paint time of largest text.
48 * @retval Paint time of largest text.
53 * @brief Get load start time of largest image.
55 * @retval Load start time of largest image.
60 * @brief Get load end time of largest image.
62 * @retval Load end time of largest image.
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
Dark_web_largest_contentful_paint_details_wrapper.h32 * @brief Get start time of navigation.
34 * @return Start time of navigation.
39 * @brief Get paint time of largest image.
41 * @return Paint time of largest image..
46 * @brief Get paint time of largest text.
48 * @return Paint time of largest text.
53 * @brief Get load start time of largest image.
55 * @return Load start time of largest image.
60 * @brief Get load end time of largest image.
62 * @return Load end time of largest image.
/base/time/time_service/services/etc/
Dtime.para14 persist.time.timezone = "Asia/Shanghai"
15 persist.time.ntpserver = "1.cn.pool.ntp.org"
16 persist.time.ntpserver_specific = ""
17 persist.time.auto_time = "ON"
18 persist.time.auto_restore_timer_apps = ""
19 persist.time.scheduled_power_on_apps = ""
20 persist.time.timer_across_accounts = ""
DBUILD.gn15 import("../../time.gni")
17 ohos_prebuilt_etc("time.para") {
18 source = "${time_service_path}/etc/time.para"
20 subsystem_name = "time"
24 ohos_prebuilt_etc("time.para.dac") {
25 source = "${time_service_path}/etc/time.para.dac"
27 subsystem_name = "time"
/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_time.cpp35 void NotificationTime::SetInitialTime(int32_t time) in SetInitialTime() argument
37 initialTime_ = time; in SetInitialTime()
72 return "Time{ " in Dump()
97 NotificationTime *time = new (std::nothrow) NotificationTime(); in FromJson() local
98 if (time == nullptr) { in FromJson()
99 ANS_LOGE("Failed to create time instance"); in FromJson()
105 time->initialTime_ = jsonObject.at("initialTime").get<int32_t>(); in FromJson()
109 time->isCountDown_ = jsonObject.at("isCountDown").get<bool>(); in FromJson()
113 time->isPaused_ = jsonObject.at("isPaused").get<bool>(); in FromJson()
117 time->isInTitle_ = jsonObject.at("isInTitle").get<bool>(); in FromJson()
[all …]
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
Dark_web_largest_contentful_paint_details_impl.h34 * @brief Get start time of navigation.
36 * @return Start time of navigation.
41 * @brief Get paint time of largest image.
43 * @return Paint time of largest image..
48 * @brief Get paint time of largest text.
50 * @return Paint time of largest text.
55 * @brief Get load start time of largest image.
57 * @return Load start time of largest image.
62 * @brief Get load end time of largest image.
64 * @return Load end time of largest image.
/base/time/time_service/interfaces/inner_api/src/
Dtime_service_client.cpp172 bool TimeServiceClient::SetTime(int64_t time) in SetTime() argument
181 return proxy->SetTime(time) == ERR_OK; in SetTime()
199 int32_t TimeServiceClient::SetTimeV9(int64_t time) in SetTimeV9() argument
208 return proxy->SetTime(time, ITimeService::API_VERSION_9); in SetTimeV9()
502 int64_t time; in GetWallTimeMs() local
508 time = tv.tv_sec * MILLI_TO_SEC + tv.tv_nsec / NANO_TO_MILLI; in GetWallTimeMs()
509 TIME_HILOGD(TIME_MODULE_SERVICE, "Result: %{public}" PRId64 "", time); in GetWallTimeMs()
510 return time; in GetWallTimeMs()
513 int32_t TimeServiceClient::GetWallTimeMs(int64_t &time) in GetWallTimeMs() argument
520 time = tv.tv_sec * MILLI_TO_SEC + tv.tv_nsec / NANO_TO_MILLI; in GetWallTimeMs()
[all …]

12345678910>>...114