/ohos5.0/foundation/resourceschedule/device_standby/services/common/src/ |
H A D | time_provider.cpp | 75 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 D | timed_task.cpp | 111 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 D | timing_wheel.c | 205 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 D | toss_animation_controller.cpp | 55 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 D | time_provider.h | 53 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 D | toss_animation_controller.cpp | 73 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 D | base_state.cpp | 233 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 D | toss_animation_controller.cpp | 71 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 D | toss_animation_controller.cpp | 69 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 D | player_server_state.cpp | 513 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 D | trans_tcp_direct_manager.c | 46 int64_t timeDiff = GetSoftbusRecordTimeMillis() - timeStart; in OnSessionOpenFailProc() local 57 .costTime = (int32_t)timeDiff, in OnSessionOpenFailProc()
|
H A D | trans_tcp_direct_message.c | 465 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 D | common_event_subscriber_manager.cpp | 571 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 D | tag_nci_adapter_ntf.h | 104 bool IsTagDetectedInTimeDiff(uint32_t timeDiff);
|
H A D | tag_nci_adapter.h | 151 bool IsTagDetectedInTimeDiff(uint32_t timeDiff);
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/distributed_stream/ |
H A D | distributed_stream_test.cpp | 157 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 D | standby_service_unit_test.cpp | 638 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 D | locator_ability.cpp | 1660 …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 D | relational_store_sqlite_ext.cpp | 158 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 D | tag_nci_adapter_ntf.cpp | 684 bool TagNciAdapterNtf::IsTagDetectedInTimeDiff(uint32_t timeDiff) in IsTagDetectedInTimeDiff() argument
|
H A D | tag_nci_adapter.cpp | 1554 bool TagNciAdapter::IsTagDetectedInTimeDiff(uint32_t timeDiff) in IsTagDetectedInTimeDiff() argument
|