Home
last modified time | relevance | path

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

12345678910>>...107

/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 …]
Dcoin_drop_seek.json34 "Time": 0, number
39 "Time": 1, number
44 "Time": 40, number
49 "Time": 54, number
117 "Time": 0, number
122 "Time": 100, number
127 "Time": 200, number
132 "Time": 254, number
150 "Time": 0, number
155 "Time": 100, number
[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"
26 "//base/time/time_service/hisysevent.yaml"
59 "//base/time/time_service/framework/js/napi/system_time:systemtime",
60 "//base/time/time_service/framework/js/napi/system_timer:systemtimer",
61 "//base/time/time_service/framework/js/napi/system_date_time:systemdatetime",
62 "//base/time/time_service/framework/cj:cj_system_date_time_ffi",
63 "//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.h34 * @brief Set time
36 * This api is used to set system time.
38 * @param UTC time in milliseconds.
44 * @brief Set system time
46 * This api is used to set system time.
48 * @param UTC time in milliseconds.
55 * @brief Set system time
57 * This api is used to set system time.
59 * @param UTC time in milliseconds.
62 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/framework/cj/src/
Dsystem_date_time.cpp28 constexpr const char *TIMEZONE_KEY = "persist.time.timezone";
34 int SystemDateTimeImpl::SetTime(int64_t time) in SetTime() argument
36 auto innerCode = TimeServiceClient::GetInstance()->SetTimeV9(time); in SetTime()
48 int64_t time = 0; in getCurrentTime() local
50 innerCode = TimeServiceClient::GetInstance()->GetWallTimeNs(time); in getCurrentTime()
52 innerCode = TimeServiceClient::GetInstance()->GetWallTimeMs(time); in getCurrentTime()
58 return {SUCCESS_CODE, time}; in getCurrentTime()
64 int64_t time = 0; in getRealActiveTime() local
66 innerCode = TimeServiceClient::GetInstance()->GetMonotonicTimeNs(time); in getRealActiveTime()
68 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/time/time_service/test/fuzztest/timemanager_fuzzer/timesettimezone_fuzzer/
Dtimesettimezone_fuzzer.cpp50 int64_t time = static_cast<int64_t>(*rawData); in FuzzTimeSetTime() local
51 TimeServiceClient::GetInstance()->SetTime(time); in FuzzTimeSetTime()
52 TimeServiceClient::GetInstance()->SetTime(time); in FuzzTimeSetTime()
53 TimeServiceClient::GetInstance()->SetTimeV9(time); in FuzzTimeSetTime()
54 TimeServiceClient::GetInstance()->SetTimeV9(time); in FuzzTimeSetTime()
56 TimeServiceClient::GetInstance()->SetTime(time, code); in FuzzTimeSetTime()
64 int64_t time = fdp.ConsumeIntegral<int64_t>(); in FuzzTimeGetTime() local
65 TimeServiceClient::GetInstance()->GetWallTimeMs(time); in FuzzTimeGetTime()
67 time = fdp.ConsumeIntegral<int64_t>(); in FuzzTimeGetTime()
68 TimeServiceClient::GetInstance()->GetWallTimeNs(time); in FuzzTimeGetTime()
[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/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/sensors/miscdevice/services/miscdevice_service/haptic_matcher/src/
Dcustom_vibration_matcher.cpp123 timeEffect.delay = event.time - frontTime; in TransformTime()
124 timeEffect.time = event.duration; in TransformTime()
130 frontTime = event.time; in TransformTime()
134 timeEffect.time = 0; in TransformTime()
157 primitiveEffect.delay = event.time - preStartTime; in TransformEffect()
163 preStartTime = event.time; in TransformEffect()
189 event.time += pattern.startTime; in MixedWaveProcess()
193 } else if ((event.time >= (outputEvents.back().time + outputEvents.back().duration))) { in MixedWaveProcess()
194 … int32_t diffTime = event.time - outputEvents.back().time - outputEvents.back().duration; in MixedWaveProcess()
202 .time = lastEvent.time, in MixedWaveProcess()
[all …]
/base/hiviewdfx/hiview/test/unittest/unified_collection/utility/
Dmem_profiler_collector_test.cpp61 int time = 0; variable
62 while (!COMMON::IsProcessExist(NATIVE_DAEMON_NAME, g_nativeDaemonPid) && time < FINAL_TIME) {
64 time += WAIT_EXIT_MILLS;
66 ASSERT_TRUE(time < FINAL_TIME);
88 int time = 0; variable
89 while (COMMON::IsProcessExist(NATIVE_DAEMON_NAME, g_nativeDaemonPid) && time < FINAL_TIME) {
91 time += WAIT_EXIT_MILLS;
93 ASSERT_FALSE(time < FINAL_TIME);
100 time = 0;
101 while (COMMON::IsProcessExist(NATIVE_DAEMON_NAME, g_nativeDaemonPid) && time < FINAL_TIME) {
[all …]
/base/hiviewdfx/hitrace/test/scripts/
Dmain.py20 import time
40 start_time = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))
42 end_time = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))
43 report_time = time.strftime('%Y-%m-%d_%H_%M_%S', time.localtime(time.time()))
/base/hiviewdfx/hidumper/test/scripts/
Dmain.py20 import time
41 start_time = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))
43 end_time = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))
44 report_time = time.strftime('%Y-%m-%d_%H_%M_%S', time.localtime(time.time()))
/base/time/time_service/services/
DBUILD.gn15 import("../time.gni")
27 "time/include",
28 "time/include/inner_api_include",
48 subsystem_name = "time"
71 subsystem_name = "time"
82 "time/src/event_manager.cpp",
83 "time/src/itimer_info.cpp",
84 "time/src/ntp_trusted_time.cpp",
85 "time/src/ntp_update_time.cpp",
86 "time/src/simple_timer_info.cpp",
[all …]
/base/hiviewdfx/hiview/plugins/performance/scene_data_processor/
DAppLaunchConverter.h31 point.time = data.time; in ConvertToInteractionResponse()
55 point.time = data.time; in ConvertToStartAbility()
67 point.time = data.time; in ConvertToAppStartupType()
82 point.time = data.time; in ConvertToProcessStart()
98 point.time = data.time; in ConvertToAppAttach()
112 point.time = data.time; in ConvertToAppForeground()
128 point.time = data.time; in ConvertToAbilityForeground()
142 point.time = data.time; in ConvertToStartWindow()
155 point.time = data.time; in ConvertToDrawnCompleted()
170 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/sensors/miscdevice/utils/tools/haptic_format_converter/tests/test_data/
Dhe_v2_sample_to_he_v1.he23 "Time": 0,
28 "Time": 100,
33 "Time": 300,
38 "Time": 500,
62 "Time": 0,
67 "Time": 200,
72 "Time": 600,
77 "Time": 1500,
/base/sensors/miscdevice/test/unittest/vibrator/js/
DVibratorPatternJsunit.test.js74 time: 100, property
79 time: 150, property
84 time: 201, property
89 time: 256, property
94 time: 322, property
128 time: 100, property
133 time: 150, property
138 time: 201, property
143 time: 256, property
148 time: 322, property
[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.

12345678910>>...107