/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
D | reminder_request_calendar_test.cpp | 43 std::shared_ptr<ReminderRequestCalendar> CreateCalendar(tm &nowTime) in CreateCalendar() argument 51 nowTime = *tmp; in CreateCalendar() 52 nowTime.tm_year = 0; in CreateCalendar() 53 nowTime.tm_mon = 0; in CreateCalendar() 54 nowTime.tm_mday = 1; in CreateCalendar() 55 nowTime.tm_hour = 1; in CreateCalendar() 56 nowTime.tm_min = 1; in CreateCalendar() 61 … auto calendar = std::make_shared<ReminderRequestCalendar>(nowTime, repeatMonths, repeatDays); in CreateCalendar() 95 struct tm nowTime; variable 96 auto calendar = ReminderRequestCalendarTest::CreateCalendar(nowTime); [all …]
|
/base/notification/eventhandler/frameworks/test/moduletest/ |
D | event_handler_send_timing_event_module_test.cpp | 45 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(); variable 154 bool result = handler->SendTimingEvent(nullPtr, nowTime + delayTime, EventQueue::Priority::LOW); [all …]
|
/base/inputmethod/imf/services/src/ |
D | global.cpp | 25 struct tm nowTime; in LogTimeStamp() local 26 localtime_r(&tv.tv_sec, &nowTime); in LogTimeStamp() 28 printf("%02d-%02d %02d:%02d:%02d.%03d\t", nowTime.tm_mon, nowTime.tm_mday, in LogTimeStamp() 29 nowTime.tm_hour, nowTime.tm_min, nowTime.tm_sec, (int)tv.tv_usec / millSec); in LogTimeStamp()
|
/base/time/time_service/framework/js/napi/system_time/test/unittest/src/ |
D | SystemTimeGets.test.js | 44 const nowTime = new Date().getTime(); 49 expect(milliTime > nowTime).assertTrue; 50 expect((milliTime - nowTime) < 500).assertTrue; 67 const nowTime = new Date().getTime(); 74 expect(milliTime > nowTime).assertTrue; 75 expect((milliTime - nowTime) < 500).assertTrue; 172 const nowTime = new Date().getTime(); 176 expect(milliTime > nowTime).assertTrue; 177 expect((milliTime - nowTime) < 500).assertTrue;
|
/base/time/time_service/framework/js/napi/system_date_time/test/unittest/src/ |
D | SystemDateTimeGets.test.js | 44 const nowTime = new Date().getTime(); 49 expect(milliTime > nowTime).assertTrue; 50 expect((milliTime - nowTime) < 500).assertTrue; 67 const nowTime = new Date().getTime(); 74 expect(milliTime > nowTime).assertTrue; 75 expect((milliTime - nowTime) < 500).assertTrue; 172 const nowTime = new Date().getTime(); 176 expect(milliTime > nowTime).assertTrue; 177 expect((milliTime - nowTime) < 500).assertTrue;
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | reminder_request_alarm.cpp | 111 struct tm nowTime; in GetNextTriggerTime() local 112 (void)localtime_r(&now, &nowTime); in GetNextTriggerTime() 115 GetActualTime(TimeTransferType::YEAR, nowTime.tm_year), in GetNextTriggerTime() 116 GetActualTime(TimeTransferType::MONTH, nowTime.tm_mon), in GetNextTriggerTime() 117 nowTime.tm_mday, nowTime.tm_hour, nowTime.tm_min, nowTime.tm_sec, in GetNextTriggerTime() 118 GetActualTime(TimeTransferType::WEEK, nowTime.tm_wday), hour_, minute_); in GetNextTriggerTime() 121 tar.tm_year = nowTime.tm_year; in GetNextTriggerTime() 122 tar.tm_mon = nowTime.tm_mon; in GetNextTriggerTime() 123 tar.tm_mday = nowTime.tm_mday; in GetNextTriggerTime() 163 struct tm nowTime; in GetNextAlarm() local [all …]
|
D | reminder_request_calendar.cpp | 131 struct tm nowTime; in GetNextDay() local 132 nowTime.tm_year = now.tm_year; in GetNextDay() 133 nowTime.tm_mon = now.tm_mon; in GetNextDay() 134 nowTime.tm_mday = now.tm_mday; in GetNextDay() 135 nowTime.tm_hour = now.tm_hour; in GetNextDay() 136 nowTime.tm_min = now.tm_min; in GetNextDay() 137 nowTime.tm_sec = now.tm_sec; in GetNextDay() 138 nowTime.tm_isdst = -1; in GetNextDay() 140 if (mktime(&nowTime) >= mktime(&setTime)) { in GetNextDay() 156 struct tm nowTime; in GetNextTriggerTime() local [all …]
|
/base/hiviewdfx/hiview/plugins/usage_event_report/ |
D | usage_event_report.cpp | 71 auto nowTime = TimeUtil::GetMilliseconds(); in Init() local 87 lastReportTime_ = nowTime; in Init() 95 lastSysReportTime_ = nowTime; in Init() 101 if (nowTime >= (lastReportTime_ + TimeUtil::MILLISECS_PER_DAY)) { in Init() 107 if (nowTime >= (lastSysReportTime_ + 3600000)) { // 3600000ms: 1h in Init() 142 auto nowTime = TimeUtil::GetMilliseconds(); in ReportDailyEvent() local 143 if (nowTime > (nextReportTime_ + TimeUtil::MILLISECS_PER_DAY) in ReportDailyEvent() 144 || nowTime < (nextReportTime_ - TimeUtil::MILLISECS_PER_DAY)) { in ReportDailyEvent() 147 } else if (nowTime >= nextReportTime_) { in ReportDailyEvent()
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/ |
D | time_util.cpp | 36 time_t nowTime = time(nullptr); in GetDate() local 37 if (nowTime < 0) { in GetDate() 42 if (localtime_r(&nowTime, &localTm) == nullptr) { in GetDate()
|
/base/notification/distributed_notification_service/test/fuzztest/reminderrequestcalendar_fuzzer/ |
D | reminderrequestcalendar_fuzzer.cpp | 35 struct tm nowTime; in DoSomethingInterestingWithMyAPI() local 42 … Notification::ReminderRequestCalendar reminderRequestCalendar(nowTime, repeatMonths, repeatDays); in DoSomethingInterestingWithMyAPI() 48 reminderRequestCalendar.InitDateTime(nowTime); in DoSomethingInterestingWithMyAPI() 67 reminderRequestCalendar.GetNextDay(year, months, nowTime, target); in DoSomethingInterestingWithMyAPI() 72 reminderRequestCalendar.GetNextTriggerTimeAsRepeatReminder(nowTime, tarTime); in DoSomethingInterestingWithMyAPI()
|
/base/update/updater/services/package/pkg_manager/ |
D | pkg_utils.cpp | 164 struct tm nowTime {}; in GetFileSize() struct 166 localtime_s(&nowTime, &when); in GetFileSize() 168 localtime_r(&when, &nowTime); in GetFileSize() 170 int year = nowTime.tm_year; in GetFileSize() 175 date |= static_cast<uint16_t>(static_cast<uint16_t>(nowTime.tm_mon + 1) << TM_MON_BITS); in GetFileSize() 176 date |= static_cast<uint16_t>(nowTime.tm_mday); in GetFileSize() 177 time = static_cast<uint16_t>(static_cast<uint16_t>(nowTime.tm_hour) << TM_HOUR_BITS); in GetFileSize() 178 time |= static_cast<uint16_t>(static_cast<uint16_t>(nowTime.tm_min) << TM_MIN_BITS); in GetFileSize() 179 time |= static_cast<uint16_t>(static_cast<uint16_t>(nowTime.tm_sec) >> 1); in GetFileSize()
|
/base/account/os_account/services/accountmgr/src/osaccount/ |
D | os_account_interface.cpp | 89 struct tm nowTime = {0}; in SendToAMSAccountStop() local 91 OHOS::GetSystemCurrentTime(&nowTime); in SendToAMSAccountStop() 92 while (OHOS::GetSecondsBetween(startTime, nowTime) < Constants::TIME_WAIT_TIME_OUT && in SendToAMSAccountStop() 95 OHOS::GetSystemCurrentTime(&nowTime); in SendToAMSAccountStop() 142 struct tm nowTime = {0}; in SendToIDMAccountDelete() local 144 OHOS::GetSystemCurrentTime(&nowTime); in SendToIDMAccountDelete() 145 while (OHOS::GetSecondsBetween(startTime, nowTime) < Constants::TIME_WAIT_TIME_OUT && in SendToIDMAccountDelete() 148 OHOS::GetSystemCurrentTime(&nowTime); in SendToIDMAccountDelete()
|
/base/hiviewdfx/hilog_lite/services/hilogcat/ |
D | hiview_logcat.c | 59 struct tm nowTime = {0}; in main() local 63 info = localtime_r(&rawtime, &nowTime); in main()
|
/base/hiviewdfx/hilog_lite/frameworks/mini/ |
D | hiview_output_log.c | 404 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/hilog_lite/services/apphilogcat/ |
D | hiview_applogcat.c | 206 struct tm nowTime = {0}; in main() local 210 info = localtime_r(&rawtime, &nowTime); in main()
|
/base/hiviewdfx/hidumper/frameworks/native/src/util/zip/ |
D | zip_writer.cpp | 134 auto nowTime = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); in SetTimeToZipFileInfo() local 136 if (localtime_r(&nowTime, &localTime) == nullptr) { in SetTimeToZipFileInfo()
|
/base/startup/init/services/modules/bootevent/ |
D | bootevent.c | 195 time_t nowTime = time(NULL); in SaveServiceBootEvent() local 196 INIT_CHECK_RETURN_VALUE(nowTime > 0, -1); in SaveServiceBootEvent() 197 struct tm *p = localtime(&nowTime); in SaveServiceBootEvent()
|
/base/telephony/call_manager/services/call_manager_service/src/ |
D | call_manager_service.cpp | 100 struct tm nowTime = { 0 }; in OnStart() local 105 timeNow = localtime_r(&second, &nowTime); in OnStart() 120 struct tm nowTime = { 0 }; in OnStop() local 125 timeNow = localtime_r(&second, &nowTime); in OnStop()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
D | reminder_request_calendar.h | 161 uint64_t GetNextTriggerTimeAsRepeatReminder(const tm &nowTime, const tm &tarTime) const;
|
/base/hiviewdfx/hidumper/frameworks/native/src/manager/ |
D | dump_implement.cpp | 274 struct tm nowTime; in GetTime() local 275 localtime_r(&curTime.tv_sec, &nowTime); in GetTime() 276 (void)strftime(buffer, sizeof(buffer), "%Y%m%d-%H%M%S", &nowTime); in GetTime()
|