Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 486) sorted by relevance

12345678910>>...20

/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/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/interfaces/inner_api/src/
Dtime_service_client.cpp89 bool TimeServiceClient::SetTime(int64_t time) in SetTime() argument
98 return proxy->SetTime(time) == ERR_OK; in SetTime()
116 int32_t TimeServiceClient::SetTimeV9(int64_t time) in SetTimeV9() argument
125 return proxy->SetTime(time, ITimeService::API_VERSION_9); in SetTimeV9()
318 int64_t time; in GetWallTimeMs() local
326 if (proxy->GetWallTimeMs(time) != ERR_OK) { in GetWallTimeMs()
330 TIME_HILOGD(TIME_MODULE_SERVICE, "Result: %{public}" PRId64 "", time); in GetWallTimeMs()
331 return time; in GetWallTimeMs()
334 int32_t TimeServiceClient::GetWallTimeMs(int64_t &time) in GetWallTimeMs() argument
343 if (proxy->GetWallTimeMs(time) != ERR_OK) { in GetWallTimeMs()
[all …]
/base/sensors/miscdevice/services/miscdevice_service/haptic_matcher/src/
Dcustom_vibration_matcher.cpp68 timeEffect.delay = event.time - frontTime; in TransformTime()
69 timeEffect.time = event.duration; in TransformTime()
73 frontTime = event.time; in TransformTime()
77 timeEffect.time = 0; in TransformTime()
120 event.time += pattern.startTime; in MixedWaveProcess()
123 (event.time >= (outputEvents.back().time + outputEvents.back().duration)) || in MixedWaveProcess()
130 .time = lastEvent.time, in MixedWaveProcess()
131 … .duration = std::max(lastEvent.time + lastEvent.duration, event.time + event.duration) in MixedWaveProcess()
132 - lastEvent.time, in MixedWaveProcess()
150 .time = 0, in PreProcessEvent()
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/include/utils/
Ddate_utils.h33 struct timeval time; in CurrentTimeMillis() local
34 gettimeofday(&time, nullptr); in CurrentTimeMillis()
35 return (time.tv_sec * KILO + time.tv_usec / KILO); in CurrentTimeMillis()
46 struct timeval time; in CurrentTimeUsec() local
47 gettimeofday(&time, nullptr); in CurrentTimeUsec()
48 return (time.tv_sec * MILLION + time.tv_usec); in CurrentTimeUsec()
/base/global/resource_management/frameworks/resmgr/include/utils/
Ddate_utils.h32 struct timeval time; in CurrentTimeMillis() local
33 gettimeofday(&time, nullptr); in CurrentTimeMillis()
34 return (time.tv_sec * KILO + time.tv_usec / KILO); in CurrentTimeMillis()
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/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_time.cpp35 void NotificationTime::SetInitialTime(int32_t time) in SetInitialTime() argument
37 initialTime_ = time; in SetInitialTime()
97 NotificationTime *time = new (std::nothrow) NotificationTime(); in FromJson() local
98 if (time == nullptr) { 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()
120 return time; in FromJson()
160 NotificationTime *time = new (std::nothrow) NotificationTime(); in Unmarshalling() local
[all …]
/base/time/time_service/services/etc/init/
Dtimeservice.cfg5 "mkdir /data/service/el1/public/time 0770 time time",
6 "syncexec /system/bin/chown -R time:time /data/service/el1/public/time",
14 "uid" : "time",
15 "gid" : ["time", "shell", "netsys_socket"],
/base/time/time_service/services/
DBUILD.gn14 import("../time.gni")
21 "time/include",
42 "time/src/itimer_info.cpp",
43 "time/src/net_conn_callback_observer.cpp",
44 "time/src/nitz_subscriber.cpp",
45 "time/src/ntp_trusted_time.cpp",
46 "time/src/ntp_update_time.cpp",
47 "time/src/power_subscriber.cpp",
48 "time/src/simple_timer_info.cpp",
49 "time/src/sntp_client.cpp",
[all …]
/base/global/timezone/
DREADME.md5 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
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.
29 The time zone compilation tool compiles the time zone source data and generates time zone binary da…
32 cd tool/compile_tool // Go to the directory where the time zone compilation tool is located.
/base/powermgr/battery_manager/charger/src/
Dbattery_vibrate.cpp58 void BatteryVibrate::HandlePlayMode(int32_t time) in HandlePlayMode() argument
61 SetDuration(time); in HandlePlayMode()
63 usleep((time + VIBRATE_DELAY_MS) * USEC_TO_MSEC); in HandlePlayMode()
67 void BatteryVibrate::HandleDurationMode(int32_t time) in HandleDurationMode() argument
69 SetDuration(time); in HandleDurationMode()
71 usleep((time + VIBRATE_DELAY_MS) * USEC_TO_MSEC); in HandleDurationMode()
75 void BatteryVibrate::HandleVibration(int32_t time) const in HandleVibration()
80 HandlePlayMode(time); in HandleVibration()
85 HandleDurationMode(time); in HandleVibration()
126 void BatteryVibrate::SetDuration(int32_t time) in SetDuration() argument
[all …]
/base/account/os_account/frameworks/common/perf_stat/include/
Dperf_stat.h30 void SetAccountBindStartTime(int64_t time);
33 void SetAccountBindEndTime(int64_t time);
36 void SetAccountAddStartTime(int64_t time);
39 void SetAccountAddEndTime(int64_t time);
42 void SetAccountDelStartTime(int64_t time);
45 void SetAccountDelEndTime(int64_t time);
48 void SetAccountQueryStartTime(int64_t time);
51 void SetAccountQueryEndTime(int64_t time);
57 void SetAccountStateChangeTime(const std::string &stateStr, int64_t time);
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Dpermission_grant_event_test.cpp55 uint64_t time; variable
58 eventHandler.AddEvent(tokenID, permissionName, time);
61 eventHandler.NotifyPermGrantStoreResult(true, time + 1);
77 uint64_t time; variable
80 eventHandler.AddEvent(tokenID, permissionName, time);
83 eventHandler.NotifyPermGrantStoreResult(false, time + 1);
99 uint64_t time; variable
102 eventHandler.AddEvent(tokenID, permissionName, time);
105 eventHandler.NotifyPermGrantStoreResult(true, time - 1);
/base/time/time_service/test/unittest/js_test/permission/
DSystemDateTimeGet.test.js436 systemDateTime.getCurrentTime("true").then((time) => {
485 systemDateTime.getRealActiveTime("true").then((time) => {
534 systemDateTime.getRealTime("true").then((time) => {
628 const time = systemDateTime.getTime(true);
629 console.log('Get current time is ' + time);
630 expect(typeof (time) === 'number' && time >= nowTime).assertTrue();
647 const time = systemDateTime.getTime(false);
648 console.log('Get current time is ' + time);
649 expect(typeof (time) === 'number' && time >= nowTime).assertTrue();
665 const time = systemDateTime.getUptime(systemDateTime.TimeType.STARTUP, false);
[all …]
/base/update/updateservice/services/core/ability/alarm/src/
Dalarm_timer_utils.cpp59 uint64_t AlarmTimerUtils::RegisterAlarm(int64_t time, const AlarmTimerCallback &callback) in RegisterAlarm() argument
69 if (currentTime >= time) { in RegisterAlarm()
70 ENGINE_LOGE("register time is outdated, register time %{public}lld", time); in RegisterAlarm()
73 int64_t tiggerTimeMs = time * Constant::MILLESECONDS; in RegisterAlarm()
78 uint64_t AlarmTimerUtils::RegisterRepeatAlarm(int64_t time, int64_t repeatTime, const AlarmTimerCal… in RegisterRepeatAlarm() argument
80 … ENGINE_LOGI("register repeat timer, start time %{public}d, repeat %{public}d", time, repeatTime); in RegisterRepeatAlarm()
88 uint64_t timerId = RegisterTimer(time, timerInfo); in RegisterRepeatAlarm()
92 uint64_t AlarmTimerUtils::RegisterTimer(int64_t time, const std::shared_ptr<MiscServices::ITimerInf… in RegisterTimer() argument
97 ENGINE_LOGE("CreateTimer failed, register tim %{public}lld", time); in RegisterTimer()
101 if (!systemTimer->StartTimer(timerId, static_cast<uint64_t>(time))) { in RegisterTimer()
[all …]
/base/hiviewdfx/hiview/test/unittest/unified_collection/utility/
Dmem_profiler_collector_test.cpp53 int time = 0; variable
54 while (!COMMON::IsProcessExist(NATIVE_DAEMON_NAME, g_nativeDaemonPid) && time < FINAL_TIME) {
56 time += WAIT_EXIT_MILLS;
58 ASSERT_TRUE(time < FINAL_TIME);
73 int time = 0; variable
74 while (COMMON::IsProcessExist(NATIVE_DAEMON_NAME, g_nativeDaemonPid) && time < FINAL_TIME) {
76 time += WAIT_EXIT_MILLS;
78 ASSERT_TRUE(time < FINAL_TIME);
/base/time/time_service/
DREADME_zh.md14 /base/time/time_service
31time.md)不再维护,推荐使用新模块接口[@ohos.systemDateTime](https://gitee.com/openharmony/docs/blob/master/zh-cn/…
37 | setTime(time : number) : Promise | 设置系统时间(1970-01-01至今毫秒数),Promise方式。…
38 | setTime(time : number, callback : AsyncCallback<boolean>) : void | 设置系统时间(1970-01-01至今毫秒数),callba…
89 // time对应的时间为2021-01-20 02:36:25
90 let time = 1611081385000;
92 systemDateTime.setTime(time).then(() => {
93 console.info(`Succeeded in setting time.`);
95 console.info(`Failed to set time. message: ${error.message}, code: ${error.code}`);
98 console.info(`Failed to set time. message: ${e.message}, code: ${e.code}`);
[all …]
DREADME.md5 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 …
58 … represented as the system startup time timer (the timer start time cannot be later than the curre…
[all …]
/base/security/device_auth/services/frameworks/inc/hiview_adapter/
Dperformance_dumper.h69 #define UPDATE_PERFORM_DATA_BY_INPUT_INDEX(reqId, timeIndex, time) argument
70 #define UPDATE_PERFORM_DATA_BY_SELF_INDEX(reqId, time) argument
78 #define UPDATE_PERFORM_DATA_BY_INPUT_INDEX(reqId, timeIndex, time) \
79 UpdatePerformDataByInputIndex(reqId, timeIndex, time)
80 #define UPDATE_PERFORM_DATA_BY_SELF_INDEX(reqId, time) UpdatePerformDataBySelfIndex(reqId, time)
90 void UpdatePerformDataByInputIndex(int64_t reqId, PerformTimeIndex timeIndex, int64_t time);
91 void UpdatePerformDataBySelfIndex(int64_t reqId, int64_t time);
/base/hiviewdfx/faultloggerd/test/unittest/services/
Dfaultlogger_pipe_test.cpp48 uint64_t time = OHOS::HiviewDFX::GetTimeMilliSeconds(); variable
50 bool check = ptr->Check(pid, time);
53 ptr->Set(pid, time);
58 time = OHOS::HiviewDFX::GetTimeMilliSeconds();
59 check = ptr->Check(pid, time);
74 uint64_t time = OHOS::HiviewDFX::GetTimeMilliSeconds(); variable
76 ptr->Set(pid, time);
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
Dmem_profiler_collector_impl.cpp43 int time = 0; in Start() local
44 while (!COMMON::IsProcessExist(NATIVE_DAEMON_NAME, g_nativeDaemonPid) && time < FINAL_TIME) { in Start()
46 time += WAIT_EXIT_MILLS; in Start()
59 int time = 0; in Stop() local
60 while (COMMON::IsProcessExist(NATIVE_DAEMON_NAME, g_nativeDaemonPid) && time < FINAL_TIME) { in Stop()
62 time += WAIT_EXIT_MILLS; in Stop()
76 int time = 0; in Start() local
77 while (!COMMON::IsProcessExist(NATIVE_DAEMON_NAME, g_nativeDaemonPid) && time < FINAL_TIME) { in Start()
79 time += WAIT_EXIT_MILLS; in Start()
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/
Dfaultlogger_client_test.cpp27 std::string GetFaultLogName(const time_t& time, int32_t id, const std::string& type, const std::str… in GetFaultLogName() argument
32 struct tm* timeInfo = localtime(&time); in GetFaultLogName()
43 FaultLogInfoInner CreateFaultLogInfo(const time_t& time, int32_t id, int32_t type, const std::strin… in CreateFaultLogInfo() argument
46 info.time = time; in CreateFaultLogInfo()
61 bool CheckLogFileExist(const time_t& time, int32_t id, const std::string& type, const std::string& … in CheckLogFileExist() argument
63 auto fileName = GetFaultLogName(time, id, type, module); in CheckLogFileExist()
/base/time/time_service/services/ipc/stub/
Dtime_service_stub.cpp82 int64_t time = data.ReadInt64(); in OnSetTime() local
94 int32_t ret = SetTime(time); in OnSetTime()
136 int64_t time; in OnGetWallTimeMs() local
137 int32_t ret = GetWallTimeMs(time); in OnGetWallTimeMs()
142 reply.WriteInt64(time); in OnGetWallTimeMs()
150 int64_t time; in OnGetWallTimeNs() local
151 int32_t ret = GetWallTimeNs(time); in OnGetWallTimeNs()
156 reply.WriteInt64(time); in OnGetWallTimeNs()
164 int64_t time; in OnGetBootTimeMs() local
165 int32_t ret = GetBootTimeMs(time); in OnGetBootTimeMs()
[all …]
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_param_encode.cpp216 int32_t timeZone = timeStamp->time.absolute.timeZone; in EncodeTimePdu()
217 resultValue.push_back(((timeStamp->time.absolute.year % DIGIT_TEN) << HEX_VALUE_04) + in EncodeTimePdu()
218 (timeStamp->time.absolute.year / DIGIT_TEN)); in EncodeTimePdu()
219 resultValue.push_back(((timeStamp->time.absolute.month % DIGIT_TEN) << HEX_VALUE_04) + in EncodeTimePdu()
220 (timeStamp->time.absolute.month / DIGIT_TEN)); in EncodeTimePdu()
222 …((timeStamp->time.absolute.day % DIGIT_TEN) << HEX_VALUE_04) + (timeStamp->time.absolute.day / DIG… in EncodeTimePdu()
223 resultValue.push_back(((timeStamp->time.absolute.hour % DIGIT_TEN) << HEX_VALUE_04) + in EncodeTimePdu()
224 (timeStamp->time.absolute.hour / DIGIT_TEN)); in EncodeTimePdu()
225 resultValue.push_back(((timeStamp->time.absolute.minute % DIGIT_TEN) << HEX_VALUE_04) + in EncodeTimePdu()
226 (timeStamp->time.absolute.minute / DIGIT_TEN)); in EncodeTimePdu()
[all …]
/base/time/time_service/services/etc/
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"

12345678910>>...20