/base/time/time_service/services/ |
D | time_system_ability.cpp | 343 struct timeval tv {}; in SetRealTime() struct 344 tv.tv_sec = (time_t) (time / MILLI_TO_BASE); in SetRealTime() 345 tv.tv_usec = (suseconds_t)((time % MILLI_TO_BASE) * MILLI_TO_MICR); in SetRealTime() 347 int result = settimeofday(&tv, NULL); in SetRealTime() 352 auto ret = SetRtcTime(tv.tv_sec); in SetRealTime() 576 struct timespec tv {}; in GetWallTimeMs() struct 577 if (GetTimeByClockid(CLOCK_REALTIME, tv)) { in GetWallTimeMs() 578 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetWallTimeMs() 586 struct timespec tv {}; in GetWallTimeNs() struct 587 if (GetTimeByClockid(CLOCK_REALTIME, tv)) { in GetWallTimeNs() [all …]
|
D | time_system_ability.h | 87 bool GetTimeByClockid(clockid_t clockId, struct timespec &tv);
|
/base/inputmethod/imf/services/src/ |
D | global.cpp | 23 struct timeval tv; in LogTimeStamp() local 24 gettimeofday(&tv, nullptr); in LogTimeStamp() 26 localtime_r(&tv.tv_sec, &nowTime); in LogTimeStamp() 29 nowTime.tm_hour, nowTime.tm_min, nowTime.tm_sec, (int)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 | 183 struct timeval tv = { 0, RUNNING_LOCK_DEFAULT_TIMEOUT_US }; in ApplyRunningLock() local 187 timerCallback_->HRilSetTimerCallbackInfo(RunningLockCallback, serialNum, &tv); in ApplyRunningLock() 1053 void OnTimerCallback(HRilCallbackFun func, uint8_t *param, const struct timeval *tv) in OnTimerCallback() argument 1059 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);
|
D | hril_manager.h | 250 void OnTimerCallback(HRilCallbackFun func, uint8_t *param, const struct timeval *tv);
|
/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/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/hiviewdfx/hiview/plugins/freeze_detector/ |
D | resolver.cpp | 162 struct timeval tv; in GetTimeZone() local 164 if (gettimeofday(&tv, &tz) != 0) { in GetTimeZone()
|
/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 | 46 struct timeval tv; in GetTimeZone() local 47 if (gettimeofday(&tv, nullptr) != 0) { in GetTimeZone() 51 time_t sysSec = tv.tv_sec; in GetTimeZone()
|
/base/startup/appspawn/standard/ |
D | appspawn_service.c | 256 struct timeval tv; in WaitChild() local 259 tv.tv_sec = TV_SEC; in WaitChild() 260 tv.tv_usec = 0; in WaitChild() 262 int ret = select(fd + 1, &rd, NULL, NULL, &tv); in WaitChild()
|
/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 | 741 struct timeval tv = {0, CALLBACK_DELAY_MS * DELAY_US_OFFSET}; in PdpContextListUpdate() local 742 OnTimerCallback(PdpContextListCallback, NULL, &tv); in PdpContextListUpdate()
|
/base/time/time_service/services/timer/src/ |
D | timer_manager.cpp | 419 struct timespec tv {}; in GetBootTimeNs() struct 420 if (clock_gettime(CLOCK_BOOTTIME, &tv) < 0) { in GetBootTimeNs() 423 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"
|
D | README.md | 230 "phone", "tv","tablet", "car","smartWatch","sportsWatch","smartCamera", "smartVision"
|
/base/update/updateservice/services/engine/src/ |
D | update_service.cpp | 348 struct timeval tv = {TIMEOUT_FOR_CONNECT, 0}; in CheckNewVersion() local 349 setsockopt(engineSocket, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(struct timeval)); in CheckNewVersion()
|