Home
last modified time | relevance | path

Searched refs:nowTime (Results 1 - 25 of 57) sorted by relevance

123

/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/
H A Dlog.h37 static inline void FillpLogGetNowTime(struct timeval *tv, struct tm *nowTime) in FillpLogGetNowTime() argument
41 (void)localtime_r(&sec, nowTime); in FillpLogGetNowTime()
46 struct tm nowTime; \
47 FillpLogGetNowTime(&tv, &nowTime); \
50 nowTime.tm_mon + 1, nowTime.tm_mday, nowTime.tm_hour, nowTime.tm_min, nowTime.tm_sec, \
/foundation/multimodalinput/input/service/timer_manager/src/
H A Dtimer_manager.cpp113 auto nowTime = GetMillisTime(); in AddTimerInternal() local
114 if (!AddInt64(nowTime, timer->intervalMs, timer->nextCallTime)) { in AddTimerInternal()
142 auto nowTime = GetMillisTime(); in ResetTimerInternal() local
143 if (!AddInt64(nowTime, timer->intervalMs, timer->nextCallTime)) { in ResetTimerInternal()
183 auto nowTime = GetMillisTime(); in CalcNextDelayInternal() local
185 if (nowTime >= item->nextCallTime) { in CalcNextDelayInternal()
188 delay = item->nextCallTime - nowTime; in CalcNextDelayInternal()
200 auto nowTime = GetMillisTime(); in ProcessTimersInternal() local
206 if ((*it)->nextCallTime > nowTime) { in ProcessTimersInternal()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/interface/src/
H A Ddocument_key.cpp30 time_t nowTime = time(nullptr); in InitDocIdFromOid() local
31 if (nowTime < 0) { in InitDocIdFromOid()
34 uint32_t now = (uint32_t)nowTime; in InitDocIdFromOid()
/foundation/multimodalinput/input/intention/scheduler/timer_manager/src/
H A Dtimer_manager.cpp196 int64_t nowTime = GetMillisTime();
197 if (!AddInt64(nowTime, timer->intervalMs, timer->nextCallTime)) {
223 int64_t nowTime = GetMillisTime();
224 if (!AddInt64(nowTime, timer->intervalMs, timer->nextCallTime)) {
251 int64_t nowTime = GetMillisTime();
253 if (nowTime >= items->nextCallTime) {
256 delayTime = items->nextCallTime - nowTime;
/foundation/barrierfree/accessibility/services/aams/src/
H A Daccessibility_mouse_autoclick.cpp82 int64_t nowTime = GetSystemTime(); in SendMouseClickEvent() local
84 lastMouseEvent_->SetActionTime(nowTime); in SendMouseClickEvent()
85 lastMouseEvent_->SetActionStartTime(nowTime); in SendMouseClickEvent()
93 item.SetDownTime(nowTime); in SendMouseClickEvent()
H A Daccessibility_touchEvent_injector.cpp274 int64_t nowTime = startTime; in ParseMovesEvents() local
295 nowTime += perDurationTime * MS_TO_US; in ParseMovesEvents()
296 event = obtainTouchEvent(MMI::PointerEvent::POINTER_ACTION_MOVE, pointer, nowTime); in ParseMovesEvents()
305 nowTime += perDurationTime * MS_TO_US; in ParseMovesEvents()
306 event = obtainTouchEvent(MMI::PointerEvent::POINTER_ACTION_MOVE, pointer, nowTime); in ParseMovesEvents()
315 event = obtainTouchEvent(MMI::PointerEvent::POINTER_ACTION_UP, pointer, nowTime); in ParseMovesEvents()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/media_library_manager_test/include/
H A Dphoto_proxy_test.h37 time_t nowTime = time(NULL); in PhotoProxyTest() local
38 if (nowTime == -1) { in PhotoProxyTest()
41 tm *localTime = localtime(&nowTime); in PhotoProxyTest()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_helper_test/include/
H A Dphoto_proxy_test.h37 time_t nowTime = time(NULL); in PhotoProxyTest() local
38 if (nowTime == -1) { in PhotoProxyTest()
41 tm *localTime = localtime(&nowTime); in PhotoProxyTest()
/foundation/communication/dhcp/services/dhcp_server/src/
H A Dcommon_util.cpp40 struct tm nowTime; in DHCP_LOGTime() local
41 localtime_r(&curr, &nowTime); in DHCP_LOGTime()
42 ptm tt = &nowTime; in DHCP_LOGTime()
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/
H A Dlnn_heartbeat_medium_mgr.c82 static void HbMediumMgrRecvLpInfo(const char *networkId, uint64_t nowTime);
324 LnnHeartbeatType hbType, const LnnHeartbeatRecvInfo *storedInfo, DeviceInfo *device, uint64_t nowTime) in HbIsRepeatedRecvInfo()
329 if (nowTime - storedInfo->lastRecvTime >= HbGetRepeatThresholdByType(hbType)) { in HbIsRepeatedRecvInfo()
338 static bool HbIsRepeatedJoinLnnRequest(LnnHeartbeatRecvInfo *storedInfo, uint64_t nowTime) in HbIsRepeatedJoinLnnRequest() argument
343 if (nowTime - storedInfo->lastJoinLnnTime < HB_REPEAD_JOIN_LNN_THRESHOLD) { in HbIsRepeatedJoinLnnRequest()
346 storedInfo->lastJoinLnnTime = nowTime; in HbIsRepeatedJoinLnnRequest()
363 const DeviceInfo *device, int32_t weight, int32_t masterWeight, LnnHeartbeatType hbType, uint64_t nowTime) in HbDumpRecvDeviceInfo()
371 "ConnectionAddrType=%{public}d, nowTime=%{public}" PRIu64, in HbDumpRecvDeviceInfo()
374 masterWeight, device->devType, device->addr[0].type, nowTime); in HbDumpRecvDeviceInfo()
554 static bool HbIsRepeatedReAuthRequest(LnnHeartbeatRecvInfo *storedInfo, uint64_t nowTime) in HbIsRepeatedReAuthRequest() argument
323 HbIsRepeatedRecvInfo( LnnHeartbeatType hbType, const LnnHeartbeatRecvInfo *storedInfo, DeviceInfo *device, uint64_t nowTime) HbIsRepeatedRecvInfo() argument
362 HbDumpRecvDeviceInfo( const DeviceInfo *device, int32_t weight, int32_t masterWeight, LnnHeartbeatType hbType, uint64_t nowTime) HbDumpRecvDeviceInfo() argument
702 SoftBusNetNodeResult(DeviceInfo *device, HbRespData *hbResp, LnnConnectCondition *connectCondition, LnnHeartbeatRecvInfo *storedInfo, uint64_t nowTime) SoftBusNetNodeResult() argument
764 HbOnlineNodeAuth(DeviceInfo *device, LnnHeartbeatRecvInfo *storedInfo, uint64_t nowTime) HbOnlineNodeAuth() argument
806 CheckReceiveDeviceInfo( DeviceInfo *device, LnnHeartbeatType hbType, const LnnHeartbeatRecvInfo *storedInfo, uint64_t nowTime) CheckReceiveDeviceInfo() argument
901 CheckJoinLnnConnectResult( DeviceInfo *device, HbRespData *hbResp, bool isDirectlyHb, LnnHeartbeatRecvInfo *storedInfo, uint64_t nowTime) CheckJoinLnnConnectResult() argument
924 uint64_t nowTime = GetNowTime(); HbNotifyReceiveDevice() local
1026 HbMediumMgrRecvLpInfo(const char *networkId, uint64_t nowTime) HbMediumMgrRecvLpInfo() argument
[all...]
H A Dlnn_heartbeat_fsm.c814 static bool IsTimestampExceedLimit(uint64_t nowTime, uint64_t oldTimeStamp, LnnHeartbeatType hbType, uint64_t delayTime) in IsTimestampExceedLimit() argument
822 if ((nowTime - oldTimeStamp) <= delayTime) { in IsTimestampExceedLimit()
833 if (nowTime - oldTimeStamp <= offlineToleranceLen) { in IsTimestampExceedLimit()
851 uint64_t nowTime; in CheckDevStatusByNetworkId() local
873 nowTime = (uint64_t)times.sec * HB_TIME_FACTOR + (uint64_t)times.usec / HB_TIME_FACTOR; in CheckDevStatusByNetworkId()
874 if (!IsTimestampExceedLimit(nowTime, oldTimeStamp, hbType, msgPara->checkDelay)) { in CheckDevStatusByNetworkId()
876 LNN_LOGD(LNN_HEART_BEAT, "receive heartbeat in time, networkId=%{public}s, nowTime=%{public}" PRIu64 ", " in CheckDevStatusByNetworkId()
877 "oldTimeStamp=%{public}" PRIu64, AnonymizeWrapper(anonyNetworkId), nowTime, oldTimeStamp); in CheckDevStatusByNetworkId()
883 "nowTime=%{public}" PRIu64, AnonymizeWrapper(anonyNetworkId), oldTimeStamp, nowTime); in CheckDevStatusByNetworkId()
895 CheckDevStatusForScreenOff(LnnHeartbeatFsm *hbFsm, const char *networkId, LnnHeartbeatType hbType, uint64_t nowTime) CheckDevStatusForScreenOff() argument
997 uint64_t nowTime; OnScreeOffCheckDevStatus() local
[all...]
H A Dlnn_heartbeat_strategy.c93 static void DumpGearModeSettingList(int64_t nowTime, const ListNode *gearModeList) in DumpGearModeSettingList() argument
109 info->lifeTimestamp != HB_GEARMODE_LIFETIME_PERMANENT && info->lifeTimestamp <= nowTime ? "true" : "false"); in DumpGearModeSettingList()
116 int64_t nowTime; in GetGearModeFromSettingList() local
123 nowTime = times.sec * HB_TIME_FACTOR + times.usec / HB_TIME_FACTOR; in GetGearModeFromSettingList()
124 DumpGearModeSettingList(nowTime, gearModeList); in GetGearModeFromSettingList()
130 if (info->lifeTimestamp < nowTime && info->lifeTimestamp != HB_GEARMODE_LIFETIME_PERMANENT) { in GetGearModeFromSettingList()
208 static int32_t FirstSetGearModeByCallerId(const char *callerId, int64_t nowTime, ListNode *list, const GearMode *mode) in FirstSetGearModeByCallerId() argument
238 info->lifeTimestamp = nowTime + mode->duration * HB_TIME_FACTOR; in FirstSetGearModeByCallerId()
246 int64_t nowTime; in LnnSetGearModeBySpecificType() local
267 nowTime in LnnSetGearModeBySpecificType()
[all...]
/foundation/communication/wifi/wifi/base/state_machine/src/
H A Dhandler.cpp161 int64_t nowTime = static_cast<int64_t>(curTime.tv_sec) * USEC_1000 + in MessageExecutedLater() local
164 MessageExecutedAtTime(msg, nowTime + delayTime); in MessageExecutedLater()
208 int64_t nowTime = static_cast<int64_t>(curTime.tv_sec) * USEC_1000 + in MessageExecutedAtTime() local
210 MessageExecutedLater(msg, execTime - nowTime); in MessageExecutedAtTime()
H A Dmessage_queue.cpp145 int64_t nowTime = static_cast<int64_t>(curTime.tv_sec) * TIME_USEC_1000 + in GetNextMessage() local
153 if (nowTime < curMsg->GetHandleTime()) { in GetNextMessage()
156 nextBlockTime = curMsg->GetHandleTime() - nowTime; in GetNextMessage()
/foundation/ability/form_fwk/test/fuzztest/formtimermgrannex_fuzzer/
H A Dformtimermgrannex_fuzzer.cpp49 long nowTime = static_cast<long>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
51 formTimerMgr.FindNextAtTimerItem(nowTime, updateAtItem); in DoSomethingInterestingWithMyAPI()
/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Dpackage_usage_test.cpp1168 int64_t nowTime = bundleActiveCore_->GetSystemTimeMs(); in HWTEST_F() local
1169 BundleActiveCalendar testCalendar(nowTime); in HWTEST_F()
1171 EXPECT_TRUE(nowTime - testCalendar.GetMilliseconds() >= 0); in HWTEST_F()
1172 BundleActiveCalendar testCalendar2(nowTime); in HWTEST_F()
1174 EXPECT_TRUE(nowTime - testCalendar.GetMilliseconds() >= 0); in HWTEST_F()
1175 BundleActiveCalendar testCalendar3(nowTime); in HWTEST_F()
1177 EXPECT_TRUE(nowTime - testCalendar.GetMilliseconds() >= 0); in HWTEST_F()
1178 BundleActiveCalendar testCalendar4(nowTime); in HWTEST_F()
1180 EXPECT_TRUE(nowTime - testCalendar.GetMilliseconds() >= 0); in HWTEST_F()
1191 int64_t nowTime in HWTEST_F() local
[all...]
/foundation/multimedia/media_foundation/engine/plugin/plugins/source/http_source/monitor/
H A Ddownload_monitor.cpp43 time_t nowTime; in HttpMonitorLoop() local
44 time(&nowTime); in HttpMonitorLoop()
45 if ((lastReadTime_ != 0) && (nowTime - lastReadTime_ >= 60)) { // 60 in HttpMonitorLoop()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/fuzztest/medialibrarymediaphotoassetproxy_fuzzer/
H A Dmedialibrarymediaphotoassetproxy_fuzzer.h45 time_t nowTime = time(NULL); in PhotoProxyFuzzTest() local
46 if (nowTime == -1) { in PhotoProxyFuzzTest()
49 tm *localTime = localtime(&nowTime); in PhotoProxyFuzzTest()
/foundation/multimodalinput/input/service/event_dump/src/
H A Devent_statistic.cpp44 auto nowTime = std::chrono::system_clock::now(); in ConvertEventToStr() local
45 std::time_t timeT = std::chrono::system_clock::to_time_t(nowTime); in ConvertEventToStr()
46 auto milsecsCount = std::chrono::duration_cast<std::chrono::milliseconds>(nowTime.time_since_epoch()).count(); in ConvertEventToStr()
/foundation/communication/dsoftbus/tests/core/bus_center/test/heartbeat/
H A Dhb_medium_mgr_test.cpp186 uint64_t nowTime = TEST_RECVTIME_LAST + HB_RECV_INFO_SAVE_LEN; in HWTEST_F() local
187 ret2 = HbIsRepeatedRecvInfo(HEARTBEAT_TYPE_BLE_V1, &storedInfo, &device, nowTime); in HWTEST_F()
189 ret2 = HbIsRepeatedRecvInfo(HEARTBEAT_TYPE_BLE_V1, nullptr, &device, nowTime); in HWTEST_F()
191 ret2 = HbIsRepeatedJoinLnnRequest(nullptr, nowTime); in HWTEST_F()
193 nowTime = TEST_RECVTIME_LAST; in HWTEST_F()
194 ret2 = HbIsRepeatedJoinLnnRequest(&storedInfo, nowTime); in HWTEST_F()
196 nowTime = TEST_RECVTIME_LAST + HB_RECV_INFO_SAVE_LEN; in HWTEST_F()
197 ret2 = HbIsRepeatedJoinLnnRequest(&storedInfo, nowTime); in HWTEST_F()
734 uint64_t nowTime = TEST_RECVTIME_LAST; in HWTEST_F() local
739 bool ret = HbIsRepeatedReAuthRequest(&storedInfo, nowTime); in HWTEST_F()
841 uint64_t nowTime = GetNowTime(); HWTEST_F() local
[all...]
/foundation/communication/netstack/frameworks/cj/http/src/
H A Dnet_http_cache_strategy.cpp114 int64_t nowTime = std::max<int64_t>(0, GetNowTimeSeconds()); in CacheResponseAgeMillis() local
119 static_cast<long long>(age), static_cast<long long>(dateTime), static_cast<long long>(nowTime), in CacheResponseAgeMillis()
127 int64_t residentTime = std::max<int64_t>(0, nowTime - responseTime); in CacheResponseAgeMillis()
/foundation/communication/netstack/frameworks/js/napi/http/cache/cache_strategy/src/
H A Dhttp_cache_strategy.cpp116 int64_t nowTime = std::max<int64_t>(0, HttpTime::GetNowTimeSeconds()); in CacheResponseAgeMillis() local
121 static_cast<long long>(age), static_cast<long long>(dateTime), static_cast<long long>(nowTime), in CacheResponseAgeMillis()
129 int64_t residentTime = std::max<int64_t>(0, nowTime - responseTime); in CacheResponseAgeMillis()
/foundation/arkui/ace_engine/test/unittest/base/
H A Dbase_utils_test.cpp125 time_t nowTime; in HWTEST_F() local
127 time(&nowTime); in HWTEST_F()
128 localTime = localtime(&nowTime); in HWTEST_F()
199 time_t nowTime; in HWTEST_F() local
201 time(&nowTime); in HWTEST_F()
202 localTime = gmtime(&nowTime); in HWTEST_F()
236 time_t nowTime; in HWTEST_F() local
238 time(&nowTime); in HWTEST_F()
239 localTime = gmtime(&nowTime); in HWTEST_F()
282 time_t nowTime; in HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/
H A Dsvg_context.cpp159 std::time_t nowTime = std::chrono::system_clock::to_time_t(now); in GetCurrentTimeString() local
160 std::tm* now_time = std::localtime(&nowTime); in GetCurrentTimeString()
/foundation/distributeddatamgr/preferences/frameworks/native/platform/src/
H A Dpreferences_dfx_adapter.cpp74 std::string nowTime = GetCurrentTime(); in ReportDbFault()
109 .v = { .s = const_cast<char *>(nowTime.c_str()) }, in ReportDbFault()

Completed in 19 milliseconds

123