/base/security/device_security_level/baselib/utils/src/ |
D | utils_datetime.c | 60 struct tm tm; in GetDateTimeByMillisecondSince1970() local 62 localtime_r(&time, &tm); in GetDateTimeByMillisecondSince1970() 64 datetime->year = (uint16_t)(tm.tm_year + 1900); // need add 1900 in GetDateTimeByMillisecondSince1970() 65 datetime->mon = (uint16_t)(tm.tm_mon + 1); in GetDateTimeByMillisecondSince1970() 66 datetime->day = (uint16_t)tm.tm_mday; in GetDateTimeByMillisecondSince1970() 67 datetime->hour = (uint16_t)tm.tm_hour; in GetDateTimeByMillisecondSince1970() 68 datetime->min = (uint16_t)tm.tm_min; in GetDateTimeByMillisecondSince1970() 69 datetime->sec = (uint16_t)tm.tm_sec; in GetDateTimeByMillisecondSince1970()
|
/base/update/updater/test/unittest/applypatch_test/ |
D | transfer_manager_unittest.cpp | 53 TransferManagerPtr tm = TransferManager::GetTransferManagerInstance(); variable 55 tm->CheckResult(CommandResult::NEED_RETRY, cmd, CommandType::ZERO); 56 TransferManager::ReleaseTransferManagerInstance(tm); 61 TransferManagerPtr tm = TransferManager::GetTransferManagerInstance(); variable 62 tm->ReloadForRetry(); 63 TransferManager::ReleaseTransferManagerInstance(tm);
|
D | all_cmd_unittest.cpp | 40 int AllCmdUnitTestMove(int &fd, std::vector<std::string> &allCmd, TransferManager &tm); 103 TransferManager *tm = TransferManager::GetTransferManagerInstance(); variable 127 rc = tm->CommandsParser(fd, transferLines); 131 … AllCmdUnitTest::AllCmdUnitTestMove(int &fd, std::vector<std::string> &allCmd, TransferManager &tm) in AllCmdUnitTestMove() argument 151 bool result = tm.CommandsParser(fd, allCmd); in AllCmdUnitTestMove() 169 TransferManagerPtr tm = TransferManager::GetTransferManagerInstance(); variable 196 result = tm->CommandsParser(fd, allCmd); 201 EXPECT_EQ(AllCmdUnitTestMove(fd, allCmd, *tm), 0);
|
D | commandsfunction_unittest.cpp | 67 TransferManagerPtr tm = TransferManager::GetTransferManagerInstance(); variable 69 tm->GetGlobalParams()->storeBase = "data/updater/updater/tmp/cmdtest"; 84 tm->GetGlobalParams()->storeCreated = 0;
|
/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() 47 tm *tmp = localtime(&now); in CreateCalendar() 95 struct tm nowTime; 110 struct tm nowTime; 125 struct tm nowTime; 142 tm *tmp = localtime(&now); 144 struct tm nowTime = *tmp; 185 tm *tmp = localtime(&now); 187 tm nowTime = *tmp; 216 tm *tmp = localtime(&now); [all …]
|
/base/telephony/telephony_data/common/include/ |
D | time_util.h | 24 void FormatDate(std::string &date, const tm *ltm) in FormatDate() 71 struct tm tm = { 0 }; in GetCurrentTime() local 72 struct tm *ltm = localtime_r(&now, &tm); in GetCurrentTime()
|
/base/update/updater/services/log/ |
D | log.cpp | 86 struct tm tm {}; in GetFormatTime() struct 89 localtime_r(&tv.tv_sec, &tm); in GetFormatTime() 91 tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, in GetFormatTime()
|
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_publish_ordered_system_test/ |
D | common_event_services_publish_ordered_system_test.cpp | 161 struct tm startTime = {0}; in ProcessSubscriberTestCase3() 163 struct tm doingTime = {0}; in ProcessSubscriberTestCase3() 192 struct tm startTime = {0}; in ProcessSubscriberTestCase5() 194 struct tm doingTime = {0}; in ProcessSubscriberTestCase5() 222 struct tm startTime = {0}; in AsyncProcess() 224 struct tm doingTime = {0}; in AsyncProcess() 318 struct tm startTime = {0}; in ProcessSubscriberAnotherTestCase5() 320 struct tm doingTime = {0}; in ProcessSubscriberAnotherTestCase5() 350 struct tm startTime = {0}; in AsyncProcess() 352 struct tm doingTime = {0}; in AsyncProcess() [all …]
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
D | reminder_request_calendar.h | 52 ReminderRequestCalendar(const tm &dateTime, 159 …xtDay(const uint16_t &settedYear, const uint8_t &settedMonth, const tm &now, const tm &target) con… 161 uint64_t GetNextTriggerTimeAsRepeatReminder(const tm &nowTime, const tm &tarTime) const; 177 void InitDateTime(const tm &dateTime); 190 tm dateTime_ = {
|
/base/notification/common_event_service/services/test/moduletest/common_event_services_publish_ordered_module_test/ |
D | common_event_services_publish_ordered_module_test.cpp | 171 struct tm startTime = {0}; in ProcessSubscriberTestCase3() 173 struct tm doingTime = {0}; in ProcessSubscriberTestCase3() 204 struct tm startTime = {0}; in ProcessSubscriberTestCase5() 206 struct tm doingTime = {0}; in ProcessSubscriberTestCase5() 235 struct tm startTime = {0}; in AsyncProcess() 237 struct tm doingTime = {0}; in AsyncProcess() 331 struct tm startTime = {0}; in ProcessSubscriberAnotherTestCase5() 333 struct tm doingTime = {0}; in ProcessSubscriberAnotherTestCase5() 363 struct tm startTime = {0}; in AsyncProcess() 365 struct tm doingTime = {0}; in AsyncProcess() [all …]
|
/base/telephony/sms_mms/utils/ |
D | sms_common_utils.cpp | 139 struct tm tmObj; in ConvertTime() 140 if (memset_s(&tmObj, sizeof(struct tm), 0x00, sizeof(tm)) != EOK) { in ConvertTime() 162 struct tm tmObj; in GetDisplayTime() 164 if (memset_s(&tmObj, sizeof(struct tm), 0x00, sizeof(tm)) != EOK) { in GetDisplayTime()
|
/base/notification/common_event_service/tools/test/systemtest/cem/ |
D | common_event_command_publish_system_test.cpp | 176 struct tm startTime = {0}; 180 struct tm doingTime = {0}; 236 struct tm startTime = {0}; 240 struct tm doingTime = {0}; 296 struct tm startTime = {0}; 300 struct tm doingTime = {0}; 356 struct tm startTime = {0}; 360 struct tm doingTime = {0};
|
/base/hiviewdfx/hiview/base/utility/ |
D | time_util.cpp | 28 struct tm tmFormat { 0 }; in StrToTimeStamp() 65 struct tm result {}; in TimestampFormatToDate() 79 struct tm tmLocal; in GetTimeZone() 96 struct tm *l = std::localtime(&now); in Get0ClockStampMs() 131 std::tm t = *std::localtime(&tt); in FormatTime()
|
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/ |
D | common_event_services_system_test.cpp | 679 struct tm startTime = {0}; 695 struct tm doingTime = {0}; 715 struct tm startTime = {0}; 734 struct tm doingTime = {0}; 754 struct tm startTime = {0}; 772 struct tm doingTime = {0}; 792 struct tm startTime = {0}; 812 struct tm doingTime = {0}; 832 struct tm startTime = {0}; 852 struct tm doingTime = {0}; [all …]
|
/base/global/i18n_lite/frameworks/i18n/include/ |
D | date_time_format_impl.h | 79 …void Format(const struct tm &time, const std::string &pattern, std::string &appendTo, I18nStatus &… 81 …void Process(const tm &time, std::string &append, char pre, uint32_t count, I18nStatus &status) c… 82 …void ProcessTime(const tm &time, std::string &append, char pre, uint32_t count, I18nStatus &status… 83 void ProcessWeekDayYear(const tm &time, std::string &appendTo, char pre,
|
/base/account/os_account/services/accountmgr/test/moduletest/os_account/ |
D | os_account_manager_service_subscribe_module_test.cpp | 116 struct tm startTime = {0}; 118 struct tm doingTime = {0}; 168 struct tm startTime = {0}; 170 struct tm doingTime = {0};
|
/base/notification/distributed_notification_service/test/fuzztest/reminderrequestcalendar_fuzzer/ |
D | reminderrequestcalendar_fuzzer.cpp | 35 struct tm nowTime; in DoSomethingInterestingWithMyAPI() 66 struct tm target; in DoSomethingInterestingWithMyAPI() 71 struct tm tarTime; in DoSomethingInterestingWithMyAPI()
|
/base/notification/common_event_service/services/include/ |
D | history_event_record.h | 25 struct tm recordTime {}; 58 struct tm recordTime {};
|
/base/hiviewdfx/hilog_lite/services/hilogcat/ |
D | hiview_logcat.c | 58 struct tm *info = NULL; in main() 59 struct tm nowTime = {0}; in main()
|
/base/time/time_service/services/ |
D | time_system_ability.cpp | 406 struct tm timestr{}; in DumpAllTimeInfo() 485 struct tm tm {}; in SetRtcTime() struct 486 struct tm *gmtime_res = nullptr; in SetRtcTime() 503 gmtime_res = gmtime_r(&sec, &tm); in SetRtcTime() 505 rtc.tm_sec = tm.tm_sec; in SetRtcTime() 506 rtc.tm_min = tm.tm_min; in SetRtcTime() 507 rtc.tm_hour = tm.tm_hour; in SetRtcTime() 508 rtc.tm_mday = tm.tm_mday; in SetRtcTime() 509 rtc.tm_mon = tm.tm_mon; in SetRtcTime() 510 rtc.tm_year = tm.tm_year; in SetRtcTime() [all …]
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | reminder_request_calendar.cpp | 48 ReminderRequestCalendar::ReminderRequestCalendar(const tm &dateTime, in ReminderRequestCalendar() 115 const uint16_t &settedYear, const uint8_t &settedMonth, const tm &now, const tm &target) const in GetNextDay() 122 struct tm setTime; in GetNextDay() 131 struct tm nowTime; in GetNextDay() 156 struct tm nowTime; in GetNextTriggerTime() 159 struct tm tarTime; in GetNextTriggerTime() 186 uint64_t ReminderRequestCalendar::GetNextTriggerTimeAsRepeatReminder(const tm &nowTime, const tm &t… in GetNextTriggerTimeAsRepeatReminder() 220 struct tm tar; in GetTimeInstantMilli() 250 void ReminderRequestCalendar::InitDateTime(const tm &dateTime) in InitDateTime()
|
/base/hiviewdfx/faultloggerd/common/dfxutil/ |
D | dfx_util.cpp | 100 auto tm = std::localtime(&now); in GetCurrentTimeStr() local 102 if (tm == nullptr || strftime(seconds, sizeof(seconds) - 1, "%Y-%m-%d %H:%M:%S", tm) == 0) { in GetCurrentTimeStr()
|
/base/notification/common_event_service/services/test/unittest/ |
D | common_event_publish_system_event_test.cpp | 113 struct tm curTime {0}; 143 struct tm curTime {0}; 174 struct tm curTime{0}; 225 struct tm curTime{0};
|
/base/global/i18n_lite/frameworks/i18n/src/ |
D | date_time_format_impl.cpp | 150 struct tm tmStruct = {0}; in Format() 151 tm *tmPtr = &tmStruct; in Format() 153 const tm time = *tmPtr; in Format() 157 void DateTimeFormatImpl::Format(const struct tm &time, const string &pattern, string &appendTo, in Format() 241 void DateTimeFormatImpl::Process(const tm &time, string &appendTo, char pre, uint32_t count, I18nSt… in Process() 279 void DateTimeFormatImpl::ProcessWeekDayYear(const tm &time, string &appendTo, char pre, in ProcessWeekDayYear() 334 void DateTimeFormatImpl::ProcessTime(const tm &time, string &appendTo, char pre, in ProcessTime() 452 struct tm tmStruct = { 0 }; in Get12HourTimeWithoutAmpm() 453 tm *tmPtr = &tmStruct; in Get12HourTimeWithoutAmpm() 455 const tm time = *tmPtr; in Get12HourTimeWithoutAmpm()
|
/base/account/os_account/services/accountmgr/test/moduletest/app_account/ |
D | app_account_manager_service_subscribe_module_test.cpp | 268 struct tm startTime = {0}; 272 struct tm doingTime = {0}; 430 struct tm startTime = {0}; 434 struct tm doingTime = {0}; 521 struct tm startTime = {0}; 525 struct tm doingTime = {0}; 609 struct tm startTime = {0}; 613 struct tm doingTime = {0}; 700 struct tm startTime = {0}; 704 struct tm doingTime = {0};
|