Home
last modified time | relevance | path

Searched refs:timeDiff (Results 1 – 21 of 21) sorted by relevance

/ohos5.0/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 …eProvider::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() local
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()
/ohos5.0/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()
/ohos5.0/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()
/ohos5.0/foundation/resourceschedule/device_standby/services/common/include/
H A Dtime_provider.h53 static bool TimeDiffToDayNightSwitch(int64_t& timeDiff);
55 …atic bool DiffToFixedClock(int64_t curTimeStamp, int32_t tmHour, int32_t tmMin, int64_t& timeDiff);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtoss_animation_controller.cpp73 auto timeDiff = timeEnd_ - timeStart_; in Play() local
74 if (timeDiff < MIN_TIME) { in Play()
75 TAG_LOGW(AceLogTag::ACE_DIALOG_TIMEPICKER, "toss time[%{public}lf] too small.", timeDiff); in Play()
/ohos5.0/foundation/resourceschedule/device_standby/plugins/ext/src/
H A Dbase_state.cpp233 int64_t timeDiff {0}; in CalculateMaintTimeOut() local
235 TimeProvider::TimeDiffToDayNightSwitch(timeDiff)) { in CalculateMaintTimeOut()
237 maintIntervalTimeOut += timeDiff; in CalculateMaintTimeOut()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtoss_animation_controller.cpp71 auto timeDiff = timeEnd_ - timeStart_; in Play() local
72 if (timeDiff < MIN_TIME) { in Play()
/ohos5.0/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()
/ohos5.0/foundation/multimedia/player_framework/services/services/player/server/
H A Dplayer_server_state.cpp513 auto timeDiff = timeNow - stateEnterTimeMs_; in Play() local
515 timeNow, stateEnterTimeMs_, timeDiff); in Play()
516 CHECK_AND_RETURN_RET(timeDiff < COMPLETED_PLAY_REPORT_MS, res); in Play()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/
H A Dtrans_tcp_direct_manager.c46 int64_t timeDiff = GetSoftbusRecordTimeMillis() - timeStart; in OnSessionOpenFailProc() local
57 .costTime = (int32_t)timeDiff, in OnSessionOpenFailProc()
H A Dtrans_tcp_direct_message.c465 int64_t timeDiff = GetSoftbusRecordTimeMillis() - timeStart; in NotifyChannelOpenFailedBySessionConn() local
475 .costTime = timeDiff, in NotifyChannelOpenFailedBySessionConn()
497 conn->appInfo.linkType, SOFTBUS_EVT_OPEN_SESSION_FAIL, timeDiff); in NotifyChannelOpenFailedBySessionConn()
/ohos5.0/base/notification/common_event_service/services/src/
H A Dcommon_event_subscriber_manager.cpp571 time_t timeDiff = backRecordTime - frontRecordTime; in InsertFrozenEvents() local
572 if (timeDiff > FREEZE_EVENT_TIMEOUT) { in InsertFrozenEvents()
654 time_t timeDiff = backRecordTime - frontRecordTime; in InsertFrozenEventsMap() local
655 if (timeDiff > FREEZE_EVENT_TIMEOUT) { in InsertFrozenEventsMap()
/ohos5.0/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);
/ohos5.0/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()
/ohos5.0/foundation/resourceschedule/device_standby/services/test/unittest/
H A Dstandby_service_unit_test.cpp638 int64_t timeDiff {0}; variable
639 TimeProvider::TimeDiffToDayNightSwitch(timeDiff);
640 TimeProvider::DiffToFixedClock(0, 0, 0, timeDiff);
/ohos5.0/base/location/services/location_locator/locator/source/
H A Dlocator_ability.cpp1660 …int64_t timeDiff = fabs(CommonUtils::GetCurrentTime() - request->GetRequestConfig()->GetTimeStamp(… in IsInvalidRequest() local
1662 timeDiff > (request->GetRequestConfig()->GetTimeOut() / MILLI_PER_SEC)) { in IsInvalidRequest()
1667 …if (timeDiff > REQUEST_DEFAULT_TIMEOUT_SECOUND && !IsProcessRunning(request->GetPid(), request->Ge… in IsInvalidRequest()
/ohos5.0/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()
/ohos5.0/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