Home
last modified time | relevance | path

Searched refs:timeDiff (Results 1 - 18 of 18) sorted by relevance

/foundation/resourceschedule/device_standby/services/common/src/
H A Dtime_provider.cpp75 bool TimeProvider::TimeDiffToDayNightSwitch(int64_t& timeDiff) in TimeDiffToDayNightSwitch() argument
81 res = DiffToFixedClock(curSecTimeStamp, DAY_ENTRANCE_HOUR, DAY_ENTRANCE_MIN, timeDiff); in TimeDiffToDayNightSwitch()
83 res = DiffToFixedClock(curSecTimeStamp, NIGHT_ENTRANCE_HOUR, NIGHT_ENTRANCE_MIN, timeDiff); in TimeDiffToDayNightSwitch()
88 bool TimeProvider::DiffToFixedClock(int64_t curTimeStamp, int32_t tmHour, int32_t tmMin, int64_t& timeDiff) in DiffToFixedClock() argument
104 timeDiff = std::mktime(&targetUTCTime) - curTimeStamp; in DiffToFixedClock()
105 if (timeDiff < 0) { in DiffToFixedClock()
106 timeDiff += SEC_PER_DAY; in DiffToFixedClock()
108 timeDiff = timeDiff * MSEC_PER_SEC; in DiffToFixedClock()
H A Dtimed_task.cpp111 int64_t timeDiff {0}; in StartDayNightSwitchTimer()
112 if (!TimeProvider::TimeDiffToDayNightSwitch(timeDiff)) { in StartDayNightSwitchTimer()
115 timeDiff += TimeProvider::GetRandomDelay(LOW_DELAY_TIME_INTERVAL, HIGH_DELAY_TIME_INTERVAL); in StartDayNightSwitchTimer()
116 STANDBYSERVICE_LOGI("start next day and night switch after " SPUBI64 " ms", timeDiff); in StartDayNightSwitchTimer()
119 if (!MiscServices::TimeServiceClient::GetInstance()->StartTimer(timeId, curTimeStamp + timeDiff)) { in StartDayNightSwitchTimer()
/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dtoss_animation_controller.cpp55 auto timeDiff = timeEnd_ - timeStart_; in Play() local
56 if (timeDiff < MIN_TIME) { in Play()
57 LOGW("toss time[%{public}lf] too small.", timeDiff); in Play()
61 double speed = (yEnd_ - yStart_) / timeDiff; in Play()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/
H A Dtiming_wheel.c205 FILLP_LLONG timeDiff; in FillpTimingWheelAddTimerInner() local
218 timeDiff = expireTime - ftWheel->curTime; in FillpTimingWheelAddTimerInner()
219 if ((timeDiff < 0) || (timeDiff < ftWheel->secHand.accuracy)) { in FillpTimingWheelAddTimerInner()
220 timeDiff = ftWheel->secHand.accuracy; in FillpTimingWheelAddTimerInner()
223 tickDiff = (FILLP_INT)(timeDiff / ftWheel->secHand.accuracy); in FillpTimingWheelAddTimerInner()
289 FILLP_LLONG timeDiff = curTime - ftWheel->curTime; in FillpTimingWheelLoopCheck() local
292 if (timeDiff < 0) { in FillpTimingWheelLoopCheck()
296 tickDiff = (FILLP_INT)(timeDiff / ftWheel->accuracy); in FillpTimingWheelLoopCheck()
/foundation/resourceschedule/device_standby/services/common/include/
H A Dtime_provider.h53 static bool TimeDiffToDayNightSwitch(int64_t& timeDiff);
55 static bool DiffToFixedClock(int64_t curTimeStamp, int32_t tmHour, int32_t tmMin, int64_t& timeDiff);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtoss_animation_controller.cpp70 auto timeDiff = timeEnd_ - timeStart_; in Play() local
71 if (timeDiff < MIN_TIME) { in Play()
72 TAG_LOGW(AceLogTag::ACE_DIALOG_TIMEPICKER, "toss time[%{public}lf] too small.", timeDiff); in Play()
/foundation/resourceschedule/device_standby/plugins/ext/src/
H A Dbase_state.cpp233 int64_t timeDiff {0}; in CalculateMaintTimeOut()
235 TimeProvider::TimeDiffToDayNightSwitch(timeDiff)) { in CalculateMaintTimeOut()
237 maintIntervalTimeOut += timeDiff; in CalculateMaintTimeOut()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Dtoss_animation_controller.cpp69 auto timeDiff = timeEnd_ - timeStart_; in Play() local
70 if (timeDiff < MIN_TIME) { in Play()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtoss_animation_controller.cpp69 auto timeDiff = timeEnd_ - timeStart_; in Play() local
70 if (timeDiff < MIN_TIME) { in Play()
/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/
H A Dtrans_tcp_direct_manager.c43 int64_t timeDiff = GetSoftbusRecordTimeMillis() - timeStart; in OnSessionOpenFailProc() local
54 .costTime = (int32_t)timeDiff, in OnSessionOpenFailProc()
H A Dtrans_tcp_direct_message.c469 int64_t timeDiff = GetSoftbusRecordTimeMillis() - timeStart; in NotifyChannelOpenFailedBySessionConn() local
479 .costTime = timeDiff, in NotifyChannelOpenFailedBySessionConn()
501 conn->appInfo.linkType, SOFTBUS_EVT_OPEN_SESSION_FAIL, timeDiff); in NotifyChannelOpenFailedBySessionConn()
/foundation/communication/nfc/services/src/nci_adapter/nci_native_default/include/
H A Dtag_nci_adapter_ntf.h104 bool IsTagDetectedInTimeDiff(uint32_t timeDiff);
H A Dtag_nci_adapter.h151 bool IsTagDetectedInTimeDiff(uint32_t timeDiff);
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/distributed_stream/
H A Ddistributed_stream_test.cpp157 unsigned long long timeDiff = (endTime[i] - startTime[i]); in OnBytesReceived() local
158 cout << i << " frame time cost " << timeDiff << "ms" << endl; in OnBytesReceived()
/foundation/resourceschedule/device_standby/services/test/unittest/
H A Dstandby_service_unit_test.cpp638 int64_t timeDiff {0}; in HWTEST_F()
639 TimeProvider::TimeDiffToDayNightSwitch(timeDiff); in HWTEST_F()
640 TimeProvider::DiffToFixedClock(0, 0, 0, timeDiff); in HWTEST_F()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/relational/
H A Drelational_store_sqlite_ext.cpp158 int64_t timeDiff = static_cast<int64_t>(curTime) - static_cast<int64_t>(lastCurTime); in GetSysCurrentRawTime() local
159 if (std::abs(timeDiff) > 1000u) { // 1000 is us in GetSysCurrentRawTime()
/foundation/communication/nfc/services/src/nci_adapter/nci_native_default/src/
H A Dtag_nci_adapter_ntf.cpp684 bool TagNciAdapterNtf::IsTagDetectedInTimeDiff(uint32_t timeDiff) in IsTagDetectedInTimeDiff() argument
H A Dtag_nci_adapter.cpp1554 bool TagNciAdapter::IsTagDetectedInTimeDiff(uint32_t timeDiff) in IsTagDetectedInTimeDiff() argument

Completed in 18 milliseconds