Home
last modified time | relevance | path

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

12

/base/inputmethod/imf/test/unittest/cpp_test/mock/
H A Dglobal.cpp27 struct tm nowTime; in LogTimeStamp() local
28 localtime_r(&tv.tv_sec, &nowTime); in LogTimeStamp()
30 printf("%02d-%02d %02d:%02d:%02d.%03d\t", nowTime.tm_mon, nowTime.tm_mday, nowTime.tm_hour, nowTime.tm_min, in LogTimeStamp()
31 nowTime.tm_sec, static_cast<int32_t>(tv.tv_usec) / millSec); in LogTimeStamp()
/base/inputmethod/imf/common/src/
H A Dglobal.cpp27 struct tm nowTime; in LogTimeStamp() local
28 localtime_r(&tv.tv_sec, &nowTime); in LogTimeStamp()
30 printf("%02d-%02d %02d:%02d:%02d.%03d\t", nowTime.tm_mon, nowTime.tm_mday, nowTime.tm_hour, nowTime.tm_min, in LogTimeStamp()
31 nowTime.tm_sec, static_cast<int32_t>(tv.tv_usec) / millSec); in LogTimeStamp()
/base/notification/eventhandler/frameworks/test/moduletest/
H A Devent_handler_send_timing_event_module_test.cpp45 int64_t nowTime = GetNowSysTime(); in WaitTaskCalled() local
48 if (handler->PostTimingTask(f, nowTime + delayTime)) { in WaitTaskCalled()
79 int64_t nowTime = GetNowSysTime(); in SendEventWithSmartPtr() local
83 handler->SendTimingEvent(RUN_EVENT_ID, sharedPtr, nowTime + delayTime); in SendEventWithSmartPtr()
87 handler->SendTimingEvent(RUN_EVENT_ID, weakPtr, nowTime + delayTime); in SendEventWithSmartPtr()
91 handler->SendTimingEvent(RUN_EVENT_ID, uniquePtr, nowTime + delayTime); in SendEventWithSmartPtr()
96 RUN_EVENT_ID, std::unique_ptr<int, void (*)(int *)>((new int(1)), f), nowTime + delayTime); in SendEventWithSmartPtr()
102 handler->SendTimingEvent(STOP_EVENT_ID, delayTime + delayTime + nowTime); in SendEventWithSmartPtr()
149 int64_t nowTime = GetNowSysTime(); in HWTEST_F() local
154 bool result = handler->SendTimingEvent(nullPtr, nowTime in HWTEST_F()
170 int64_t nowTime = GetNowSysTime(); HWTEST_F() local
195 int64_t nowTime = GetNowSysTime(); HWTEST_F() local
219 int64_t nowTime = GetNowSysTime(); HWTEST_F() local
312 int64_t nowTime = GetNowSysTime(); HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dreminder_request_calendar_test.cpp44 std::shared_ptr<ReminderRequestCalendar> CreateCalendar(tm &nowTime) in CreateCalendar() argument
52 nowTime = *tmp; in CreateCalendar()
53 nowTime.tm_year = 0; in CreateCalendar()
54 nowTime.tm_mon = 0; in CreateCalendar()
55 nowTime.tm_mday = 1; in CreateCalendar()
56 nowTime.tm_hour = 1; in CreateCalendar()
57 nowTime.tm_min = 1; in CreateCalendar()
64 auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays, daysOfWeek); in CreateCalendar()
98 struct tm nowTime; in HWTEST_F() local
99 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); in HWTEST_F()
113 struct tm nowTime; HWTEST_F() local
128 struct tm nowTime; HWTEST_F() local
147 struct tm nowTime = *tmp; HWTEST_F() local
192 tm nowTime = *tmp; HWTEST_F() local
243 tm nowTime = *tmp; HWTEST_F() local
287 tm nowTime = *tmp; HWTEST_F() local
316 struct tm nowTime; HWTEST_F() local
330 struct tm nowTime; HWTEST_F() local
345 struct tm nowTime; HWTEST_F() local
360 struct tm nowTime; HWTEST_F() local
374 struct tm nowTime; HWTEST_F() local
388 struct tm nowTime; HWTEST_F() local
404 struct tm nowTime; HWTEST_F() local
421 struct tm nowTime; HWTEST_F() local
443 tm nowTime = *tmp; HWTEST_F() local
464 struct tm nowTime; HWTEST_F() local
480 struct tm nowTime; HWTEST_F() local
500 struct tm nowTime; HWTEST_F() local
514 struct tm nowTime; HWTEST_F() local
533 struct tm nowTime; HWTEST_F() local
552 struct tm nowTime; HWTEST_F() local
571 struct tm nowTime; HWTEST_F() local
590 struct tm nowTime; HWTEST_F() local
609 struct tm nowTime; HWTEST_F() local
661 struct tm nowTime; HWTEST_F() local
706 struct tm nowTime; HWTEST_F() local
745 struct tm nowTime; HWTEST_F() local
789 struct tm nowTime; HWTEST_F() local
833 struct tm nowTime; HWTEST_F() local
876 struct tm nowTime; HWTEST_F() local
931 struct tm nowTime; HWTEST_F() local
950 struct tm nowTime; HWTEST_F() local
966 struct tm nowTime; HWTEST_F() local
1011 struct tm nowTime; HWTEST_F() local
1078 struct tm nowTime; HWTEST_F() local
1095 struct tm nowTime; HWTEST_F() local
1111 struct tm nowTime; HWTEST_F() local
1126 struct tm nowTime; HWTEST_F() local
1141 struct tm nowTime; HWTEST_F() local
1157 struct tm nowTime; HWTEST_F() local
1172 struct tm nowTime; HWTEST_F() local
1193 struct tm nowTime; HWTEST_F() local
1248 struct tm nowTime; HWTEST_F() local
1284 struct tm nowTime; HWTEST_F() local
1313 struct tm nowTime; HWTEST_F() local
1363 struct tm nowTime; HWTEST_F() local
1408 struct tm nowTime; HWTEST_F() local
1438 struct tm nowTime; HWTEST_F() local
1487 struct tm nowTime; HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dreminder_request_alarm.cpp80 struct tm nowTime; in GetNextTriggerTime() local
81 (void)localtime_r(&now, &nowTime); in GetNextTriggerTime()
84 GetActualTime(TimeTransferType::YEAR, nowTime.tm_year), in GetNextTriggerTime()
85 GetActualTime(TimeTransferType::MONTH, nowTime.tm_mon), in GetNextTriggerTime()
86 nowTime.tm_mday, nowTime.tm_hour, nowTime.tm_min, nowTime.tm_sec, in GetNextTriggerTime()
87 GetActualTime(TimeTransferType::WEEK, nowTime.tm_wday), hour_, minute_); in GetNextTriggerTime()
90 tar.tm_year = nowTime in GetNextTriggerTime()
[all...]
H A Dreminder_request_calendar.cpp247 struct tm nowTime; in GetNextDay() local
248 nowTime.tm_year = now.tm_year; in GetNextDay()
249 nowTime.tm_mon = now.tm_mon; in GetNextDay()
250 nowTime.tm_mday = now.tm_mday; in GetNextDay()
251 nowTime.tm_hour = now.tm_hour; in GetNextDay()
252 nowTime.tm_min = now.tm_min; in GetNextDay()
253 nowTime.tm_sec = now.tm_sec; in GetNextDay()
254 nowTime.tm_isdst = -1; in GetNextDay()
256 if (mktime(&nowTime) >= mktime(&setTime)) { in GetNextDay()
366 struct tm nowTime; in CalcLastStartDateTime() local
387 struct tm nowTime; GetNextTriggerTime() local
432 GetNextTriggerTimeAsRepeatReminder(const tm &nowTime, const tm &tarTime) const GetNextTriggerTimeAsRepeatReminder() argument
[all...]
/base/hiviewdfx/hiview/plugins/sysevent_source/control/
H A Ddaily_controller.cpp43 int64_t nowTime = TimeUtil::GetSeconds(); in CheckThreshold() local
44 TryToUpdateCacheToDb(nowTime); in CheckThreshold()
45 TryToReportDb(nowTime); in CheckThreshold()
57 void DailyController::TryToUpdateCacheToDb(int64_t nowTime) in TryToUpdateCacheToDb() argument
59 if (CheckTimeOfCache(nowTime) || CheckSizeOfCache()) { in TryToUpdateCacheToDb()
64 bool DailyController::CheckTimeOfCache(int64_t nowTime) in CheckTimeOfCache() argument
73 if (std::abs(nowTime - lastUpdateTime) <= updateInterval) { in CheckTimeOfCache()
76 lastUpdateTime = nowTime; in CheckTimeOfCache()
109 void DailyController::TryToReportDb(int64_t nowTime) in TryToReportDb() argument
111 if (dbHelper_->NeedReport(nowTime)) { in TryToReportDb()
[all...]
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/
H A Dtime_util.cpp36 time_t nowTime = time(nullptr); in GetDate() local
37 if (nowTime < 0) { in GetDate()
42 if (localtime_r(&nowTime, &localTm) == nullptr) { in GetDate()
/base/hiviewdfx/hiview/plugins/usage_event_report/
H A Dusage_event_report.cpp97 auto nowTime = TimeUtil::GetMilliseconds(); in Init() local
113 lastReportTime_ = nowTime; in Init()
121 lastSysReportTime_ = nowTime; in Init()
129 if (nowTime >= (lastReportTime_ + TimeUtil::MILLISECS_PER_DAY)) { in Init()
135 if (nowTime >= (lastSysReportTime_ + 3600000)) { // 3600000ms: 1h in Init()
207 auto nowTime = TimeUtil::GetMilliseconds(); in ReportDailyEvent() local
208 if (nowTime > (nextReportTime_ + TimeUtil::MILLISECS_PER_DAY) in ReportDailyEvent()
209 || nowTime < (nextReportTime_ - TimeUtil::MILLISECS_PER_DAY)) { in ReportDailyEvent()
212 } else if (nowTime >= nextReportTime_) { in ReportDailyEvent()
/base/hiviewdfx/hiview/plugins/sysevent_source/control/include/
H A Ddaily_controller.h38 void TryToUpdateCacheToDb(int64_t nowTime);
39 void TryToReportDb(int64_t nowTime);
40 bool CheckTimeOfCache(int64_t nowTime);
/base/notification/distributed_notification_service/test/fuzztest/reminderrequestcalendar_fuzzer/
H A Dreminderrequestcalendar_fuzzer.cpp36 struct tm nowTime; in DoSomethingInterestingWithMyAPI() local
46 Notification::ReminderRequestCalendar reminderRequestCalendar(nowTime, repeatMonths, repeatDays, daysOfWeek); in DoSomethingInterestingWithMyAPI()
52 reminderRequestCalendar.InitDateTime(nowTime); in DoSomethingInterestingWithMyAPI()
73 reminderRequestCalendar.GetNextDay(year, months, nowTime, target); in DoSomethingInterestingWithMyAPI()
78 reminderRequestCalendar.GetNextTriggerTimeAsRepeatReminder(nowTime, tarTime); in DoSomethingInterestingWithMyAPI()
/base/update/updater/services/package/pkg_manager/
H A Dpkg_utils.cpp222 struct tm nowTime {}; in GetFileSize() struct
224 localtime_s(&nowTime, &when); in GetFileSize()
226 localtime_r(&when, &nowTime); in GetFileSize()
228 int year = nowTime.tm_year; in GetFileSize()
233 date |= static_cast<uint16_t>(static_cast<uint16_t>(nowTime.tm_mon + 1) << TM_MON_BITS); in GetFileSize()
234 date |= static_cast<uint16_t>(nowTime.tm_mday); in GetFileSize()
235 time = static_cast<uint16_t>(static_cast<uint16_t>(nowTime.tm_hour) << TM_HOUR_BITS); in GetFileSize()
236 time |= static_cast<uint16_t>(static_cast<uint16_t>(nowTime.tm_min) << TM_MIN_BITS); in GetFileSize()
237 time |= static_cast<uint16_t>(static_cast<uint16_t>(nowTime.tm_sec) >> 1); in GetFileSize()
/base/msdp/device_status/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;
/base/hiviewdfx/hilog_lite/services/hilogcat/
H A Dhiview_logcat.c59 struct tm nowTime = {0}; in main() local
63 info = localtime_r(&rawtime, &nowTime); in main()
/base/hiviewdfx/hiview/base/
H A Dpipeline.cpp89 uint64_t nowTime = TimeUtil::GenerateTimestamp(); in OnFinish() local
90 processTime_ = nowTime > createTime_ ? (nowTime - createTime_) : 0; in OnFinish()
/base/hiviewdfx/hiview/plugins/unified_collector/task/
H A Dcpu_perf_dump.cpp80 int64_t nowTime = static_cast<int64_t>(TimeUtil::GetMilliseconds()); in CheckRecordInterval() local
81 if (abs(nowTime - systemUpTime_) < DUMP_HIPERF_DELAY_TIME) { in CheckRecordInterval()
84 if (systemUpTime_ != lastRecordTime_ && abs(nowTime - lastRecordTime_) < DUMP_HIPERF_INTERVAL) { in CheckRecordInterval()
/base/hiviewdfx/hiview/framework/native/unified_collection/process/
H A Dprocess_status.cpp147 uint64_t nowTime = TimeUtil::GetMilliseconds(); in UpdateProcessForegroundState() local
150 processInfos_[pid].lastForegroundTime = nowTime; in UpdateProcessForegroundState()
156 .lastForegroundTime = nowTime, in UpdateProcessForegroundState()
/base/print/print_fwk/frameworks/helper/scan_helper/src/
H A Dscan_progress.cpp72 void ScanProgress::SetScanTime(SteadyTimePoint nowTime) in SetScanTime() argument
74 this->timePoint = nowTime; in SetScanTime()
/base/hiviewdfx/hilog_lite/frameworks/mini/
H A Dhiview_output_log.c404 struct tm nowTime = {0}; in LogCommonFmt() local
407 localtime_r(&time, &nowTime); in LogCommonFmt()
408 month = nowTime.tm_mon + 1; in LogCommonFmt()
409 day = nowTime.tm_mday; in LogCommonFmt()
410 hour = nowTime.tm_hour; in LogCommonFmt()
411 min = nowTime.tm_min; in LogCommonFmt()
412 sec = nowTime.tm_sec; in LogCommonFmt()
/base/hiviewdfx/hiview/plugins/sysevent_source/control/db/include/
H A Ddaily_db_helper.h40 bool NeedReport(int64_t nowTime);
/base/print/print_fwk/frameworks/helper/scan_helper/include/
H A Dscan_progress.h38 void SetScanTime(SteadyTimePoint nowTime);
/base/hiviewdfx/hiview/plugins/sysevent_source/control/db/
H A Ddaily_db_helper.cpp197 bool DailyDbHelper::NeedReport(int64_t nowTime) in NeedReport() argument
200 std::string curDate = TimeUtil::TimestampFormatToDate(nowTime, "%Y%m%d"); in NeedReport()
/base/hiviewdfx/hidumper/frameworks/native/src/util/zip/
H A Dzip_writer.cpp135 auto nowTime = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); in SetTimeToZipFileInfo() local
137 if (localtime_r(&nowTime, &localTime) == nullptr) { in SetTimeToZipFileInfo()
/base/hiviewdfx/hilog_lite/services/apphilogcat/
H A Dhiview_applogcat.c206 struct tm nowTime = {0}; in main() local
210 info = localtime_r(&rawtime, &nowTime); in main()
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/include/
H A Dfold_app_usage_db_helper.h78 std::vector<std::pair<int, std::string>> QueryEventAfterEndTime(uint64_t endTime, uint64_t nowTime);

Completed in 13 milliseconds

12