/base/time/time_service/services/ |
D | time_system_ability.cpp | 357 struct timeval tv {}; in SetRealTime() struct 358 tv.tv_sec = (time_t)(time / MILLI_TO_BASE); in SetRealTime() 359 tv.tv_usec = (suseconds_t)((time % MILLI_TO_BASE) * MILLI_TO_MICR); in SetRealTime() 360 int result = settimeofday(&tv, nullptr); in SetRealTime() 365 auto ret = SetRtcTime(tv.tv_sec); in SetRealTime() 602 struct timespec tv {}; in GetWallTimeMs() struct 603 if (GetTimeByClockid(CLOCK_REALTIME, tv)) { in GetWallTimeMs() 604 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetWallTimeMs() 612 struct timespec tv {}; in GetWallTimeNs() struct 613 if (GetTimeByClockid(CLOCK_REALTIME, tv)) { in GetWallTimeNs() [all …]
|
D | time_system_ability.h | 92 bool GetTimeByClockid(clockid_t clockId, struct timespec &tv);
|
/base/inputmethod/imf/services/src/ |
D | global.cpp | 25 struct timeval tv; in LogTimeStamp() local 26 gettimeofday(&tv, nullptr); in LogTimeStamp() 28 localtime_r(&tv.tv_sec, &nowTime); in LogTimeStamp() 31 nowTime.tm_sec, static_cast<int32_t>(tv.tv_usec) / millSec); in LogTimeStamp()
|
/base/hiviewdfx/hitrace/frameworks/native/ |
D | hitracechainc.c | 111 struct timeval tv; in HiTraceChainGetDeviceId() local 112 gettimeofday(&tv, NULL); in HiTraceChainGetDeviceId() 113 srand(tv.tv_sec); in HiTraceChainGetDeviceId() 131 struct timeval tv; in HiTraceChainCreateChainId() local 132 gettimeofday(&tv, NULL); in HiTraceChainCreateChainId() 139 chainId.second = (uint64_t)(tv.tv_sec); in HiTraceChainCreateChainId() 140 chainId.usecond = (uint64_t)(tv.tv_usec); in HiTraceChainCreateChainId() 234 struct timeval tv; in HiTraceChainCreateSpan() local 235 gettimeofday(&tv, NULL); in HiTraceChainCreateSpan() 241 hashData[3] = (uint32_t)(tv.tv_sec); // 3: second in HiTraceChainCreateSpan() [all …]
|
/base/telephony/ril_adapter/services/hril/src/ |
D | hril_event.cpp | 30 void HRilEvent::GetNowTime(struct timeval &tv) in GetNowTime() argument 34 tv.tv_sec = ts.tv_sec; in GetNowTime() 35 tv.tv_usec = ts.tv_nsec / TIME_UNIT; in GetNowTime() 38 bool HRilEvent::GetNextTimeOut(struct timeval &tv) in GetNextTimeOut() argument 51 timersub(&eventIt->timeout, &now, &tv); in GetNextTimeOut() 54 tv.tv_sec = tv.tv_usec = 0; in GetNextTimeOut() 134 void HRilEvent::AddTimerEvent(HRilEventMessage &eventMsg, const struct timeval &tv) in AddTimerEvent() argument 141 timeradd(&now, &tv, &eventMsg.timeout); in AddTimerEvent()
|
D | hril_timer_callback.cpp | 69 HRilCallbackFun func, uint8_t *param, const struct timeval *tv) in HRilSetTimerCallbackInfo() argument 80 if (tv == NULL) { in HRilSetTimerCallbackInfo() 83 (void)memcpy_s(&timeout, sizeof(timeout), tv, sizeof(timeout)); in HRilSetTimerCallbackInfo()
|
D | hril_manager.cpp | 200 struct timeval tv = { 0, RUNNING_LOCK_DEFAULT_TIMEOUT_US }; in ApplyRunningLock() local 204 timerCallback_->HRilSetTimerCallbackInfo(RunningLockCallback, serialNum, &tv); in ApplyRunningLock() 1102 void OnTimerCallback(HRilCallbackFun func, uint8_t *param, const struct timeval *tv) in OnTimerCallback() argument 1108 g_manager->timerCallback_->HRilSetTimerCallbackInfo(func, param, tv); in OnTimerCallback()
|
/base/telephony/ril_adapter/services/hril/include/ |
D | hril_event.h | 44 void AddTimerEvent(HRilEventMessage &eventMsg, const struct timeval &tv); 54 void GetNowTime(struct timeval &tv); 55 bool GetNextTimeOut(struct timeval &tv);
|
D | hril_timer_callback.h | 40 HRilCallbackFun func, uint8_t *param, const struct timeval *tv);
|
/base/update/updater/services/log/ |
D | log.cpp | 85 struct timeval tv {}; in GetFormatTime() struct 88 gettimeofday(&tv, nullptr); in GetFormatTime() 89 localtime_r(&tv.tv_sec, &tm); in GetFormatTime() 92 static_cast<int>(tv.tv_usec / 1000)); // need div 1000 in GetFormatTime()
|
/base/msdp/device_status/tools/vdev/src/ |
D | v_input_device.cpp | 126 struct timeval tv; in SendEvent() local 127 if (gettimeofday(&tv, nullptr) != 0) { in SendEvent() 131 event.input_event_sec = tv.tv_sec; in SendEvent() 132 event.input_event_usec = tv.tv_usec; in SendEvent()
|
/base/telephony/ril_adapter/services/hril_hdf/include/ |
D | hril_hdf.h | 44 extern void OnTimerCallback(HRilCallbackFun func, uint8_t *param, const struct timeval *tv);
|
/base/hiviewdfx/hiview/plugins/freeze_detector/ |
D | resolver.cpp | 136 struct timeval tv; in GetTimeZone() local 138 if (gettimeofday(&tv, &tz) != 0) { in GetTimeZone()
|
/base/telephony/ril_adapter/services/vendor/include/ |
D | vendor_report.h | 35 void OnTimerCallback(HRilCallbackFun func, uint8_t *param, const struct timeval *tv);
|
/base/telephony/ril_adapter/interfaces/innerkits/include/ |
D | hril.h | 55 void (*OnTimerCallback)(HRilCallbackFun func, uint8_t *param, const struct timeval *tv);
|
/base/update/updateservice/services/firmware/check/include/ |
D | firmware_icheck.h | 88 struct timeval tv = {TIMEOUT_FOR_CONNECT, 0}; in DoAction() local 89 setsockopt(engineSocket, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(struct timeval)); in DoAction()
|
/base/time/time_service/framework/js/napi/system_date_time/src/ |
D | napi_system_date_time.cpp | 455 struct timespec tv {}; in GetDeviceTime() struct 456 if (clock_gettime(clockId, &tv) < 0) { in GetDeviceTime() 462 time = tv.tv_sec * SECONDS_TO_NANO + tv.tv_nsec; in GetDeviceTime() 464 time = tv.tv_sec * SECONDS_TO_MILLI + tv.tv_nsec / NANO_TO_MILLI; in GetDeviceTime()
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/ |
D | hiappevent_base.cpp | 49 struct timeval tv; in GetTimeInfo() local 50 if (gettimeofday(&tv, nullptr) != 0) { in GetTimeInfo() 54 …int64_t timeMillSec = static_cast<int64_t>(tv.tv_sec) * 1000 + tv.tv_usec / 1000; // 1000 means mi… in GetTimeInfo() 59 time_t sysSec = tv.tv_sec; in GetTimeInfo()
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
D | hisysevent.cpp | 48 struct timeval tv; in GetTimeZone() local 49 if (gettimeofday(&tv, nullptr) != 0) { in GetTimeZone() 53 time_t sysSec = tv.tv_sec; in GetTimeZone()
|
D | inner_writer.cpp | 42 struct timeval tv; in GetTimeZone() local 43 if (gettimeofday(&tv, nullptr) != 0) { in GetTimeZone() 47 time_t sysSec = tv.tv_sec; in GetTimeZone()
|
/base/telephony/ril_adapter/services/vendor/src/ |
D | vendor_report.c | 81 void OnTimerCallback(HRilCallbackFun func, uint8_t *param, const struct timeval *tv) in OnTimerCallback() argument 84 g_reportOps->OnTimerCallback(func, param, tv); in OnTimerCallback()
|
D | at_data.c | 753 struct timeval tv = {0, CALLBACK_DELAY_MS * DELAY_US_OFFSET}; in PdpContextListUpdate() local 754 OnTimerCallback(PdpContextListCallback, NULL, &tv); in PdpContextListUpdate()
|
/base/startup/appspawn/standard/ |
D | appspawn_service.c | 287 struct timeval tv; in WaitChild() local 290 tv.tv_sec = TV_SEC; in WaitChild() 291 tv.tv_usec = 0; in WaitChild() 293 int ret = select(fd + 1, &rd, NULL, NULL, &tv); in WaitChild()
|
/base/time/time_service/services/timer/src/ |
D | timer_manager.cpp | 471 struct timespec tv {}; in GetBootTimeNs() struct 472 if (clock_gettime(CLOCK_BOOTTIME, &tv) < 0) { in GetBootTimeNs() 475 timeNow = tv.tv_sec * NANO_TO_SECOND + tv.tv_nsec; in GetBootTimeNs()
|
/base/security/permission_lite/ |
D | README_zh.md | 130 "phone", "tv","tablet", "car","smartWatch","sportsWatch","smartCamera", "smartVision"
|