/base/security/device_security_level/baselib/utils/src/ |
H A 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/ |
H A D | all_cmd_unittest.cpp | 40 int AllCmdUnitTestMove(int &fd, std::vector<std::string> &allCmd, TransferManager &tm);
103 std::unique_ptr<TransferManager> tm = std::make_unique<TransferManager>();
in HWTEST_F() local 124 tm->GetTransferParams()->storeBase = "/data/updater/update_tmp";
in HWTEST_F() 127 rc = tm->CommandsParser(fd, transferLines);
in HWTEST_F() 131 int AllCmdUnitTest::AllCmdUnitTestMove(int &fd, std::vector<std::string> &allCmd, TransferManager &tm)
in AllCmdUnitTestMove() argument 151 bool result = tm.CommandsParser(fd, allCmd);
in AllCmdUnitTestMove() 169 std::unique_ptr<TransferManager> tm = std::make_unique<TransferManager>();
in HWTEST_F() local 174 tm->GetTransferParams()->storeBase = "/tmp/cmdtest";
in HWTEST_F() 175 Store::DoFreeSpace(tm->GetTransferParams()->storeBase);
in HWTEST_F() 176 Utils::MkdirRecursive(tm in HWTEST_F() [all...] |
H A D | transfer_manager_unittest.cpp | 53 std::unique_ptr<TransferManager> tm = std::make_unique<TransferManager>();
in HWTEST_F() local 55 bool reset = tm->CheckResult(CommandResult::NEED_RETRY, cmd, CommandType::ZERO);
in HWTEST_F() 61 std::unique_ptr<TransferManager> tm = std::make_unique<TransferManager>();
in HWTEST_F() local 62 string cmd = tm->ReloadForRetry();
in HWTEST_F()
|
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | theme_manager_test.cpp | 42 std::shared_ptr<ThemePackManager> tm; member in __anon285::ThemeManagerTest 58 this->tm = ThemePackManager::GetThemePackManager(); in SetUp() 90 tm->LoadThemeSkinResource("ohos.global.test", "entry", rootDirs, userId); in HWTEST_F() 114 tm->LoadThemeSkinResource("ohos.global.test.all", "entry", rootDirs, userId); in HWTEST_F() 138 tm->LoadThemeIconsResource("ohos.global.test.all", "entry", rootDirs, userId); in HWTEST_F() 141 tm->LoadThemeIconsResource("ohos.global.test.all", "entry", {}, userId); in HWTEST_F() 162 tm->LoadThemeIconsResource("ohos.global.test.all", "entry", rootDirs, userId); in HWTEST_F() 165 tm->LoadThemeIconsResource("ohos.global.test.all", "entry", {}, userId); in HWTEST_F() 187 tm->LoadThemeIconsResource("ohos.global.test.all", "entry", rootDirs, userId); in HWTEST_F() 190 tm in HWTEST_F() [all...] |
/base/telephony/telephony_data/common/include/ |
H A 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/notification/common_event_service/test/systemtest/common/ces/common_event_services_publish_ordered_system_test/ |
H A 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 doingTim in AsyncProcess() [all...] |
/base/update/updater/services/log/ |
H A D | log.cpp | 89 struct tm tm {}; in GetFormatTime() struct 92 localtime_r(&tv.tv_sec, &tm); in GetFormatTime() 94 tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, in GetFormatTime()
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | reminder_request_calendar_test.cpp | 44 std::shared_ptr<ReminderRequestCalendar> CreateCalendar(tm &nowTime) in CreateCalendar() 48 tm *tmp = localtime(&now); in CreateCalendar() 98 struct tm nowTime; in HWTEST_F() 113 struct tm nowTime; in HWTEST_F() 128 struct tm nowTime; in HWTEST_F() 145 tm *tmp = localtime(&now); in HWTEST_F() 147 struct tm nowTime = *tmp; in HWTEST_F() 190 tm *tmp = localtime(&now); in HWTEST_F() 192 tm nowTime = *tmp; in HWTEST_F() 241 tm *tm in HWTEST_F() [all...] |
/base/update/updater/services/diffpatch/patch_shared/ |
H A D | patch_shared.cpp | 153 TransferManagerPtr tm, const std::string &partitionName, const std::string &targetPath) in ExecuteTransferCommand() 155 auto transferParams = tm->GetTransferParams(); in ExecuteTransferCommand() 167 if (!tm->CommandsParser(fd, lines)) { in ExecuteTransferCommand() 191 static int32_t DoExecuteUpdateBlock(const UpdateBlockInfo &infos, TransferManagerPtr tm, in DoExecuteUpdateBlock() argument 199 int32_t ret = ExecuteTransferCommand(fd, lines, tm, infos.partitionName, targetPath); in DoExecuteUpdateBlock() 264 TransferManagerPtr tm = static_cast<TransferManagerPtr>(arg); in UnpackNewDataFunc() local 265 WriterThreadInfo *info = tm->GetTransferParams()->writerThreadInfo.get(); in UnpackNewDataFunc() 273 auto env = tm->GetTransferParams()->env; in UnpackNewDataFunc() 297 static int InitThread(const struct UpdateBlockInfo &infos, TransferManagerPtr tm) in InitThread() argument 299 auto transferParams = tm in InitThread() 152 ExecuteTransferCommand(int fd, const std::vector<std::string> &lines, TransferManagerPtr tm, const std::string &partitionName, const std::string &targetPath) ExecuteTransferCommand() argument 388 std::unique_ptr<TransferManager> tm = std::make_unique<TransferManager>(); ExecuteUpdateBlock() local [all...] |
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | reminder_request_calendar.h | 52 ReminderRequestCalendar(const tm &dateTime, const std::vector<uint8_t> &repeatMonths, 326 uint8_t GetNextDay(const uint16_t &settedYear, const uint8_t &settedMonth, const tm &now, const tm &target) const; 328 uint64_t GetNextTriggerTimeAsRepeatReminder(const tm &nowTime, const tm &tarTime) const; 336 void InitDateTime(const tm &dateTime); 353 tm dateTime_ = {
|
/base/notification/common_event_service/services/test/moduletest/common_event_services_publish_ordered_module_test/ |
H A 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 doingTim in AsyncProcess() [all...] |
/base/security/access_token/frameworks/common/src/ |
H A D | time_util.cpp | 36 struct tm t1 = {0}; in IsTimeStampsSameMinute() 40 struct tm t2 = {0}; in IsTimeStampsSameMinute()
|
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/ |
H A D | common_event_services_system_test.cpp | 684 struct tm startTime = {0}; in HWTEST_F() 700 struct tm doingTime = {0}; in HWTEST_F() 720 struct tm startTime = {0}; in HWTEST_F() 739 struct tm doingTime = {0}; in HWTEST_F() 759 struct tm startTime = {0}; in HWTEST_F() 777 struct tm doingTime = {0}; in HWTEST_F() 797 struct tm startTime = {0}; in HWTEST_F() 817 struct tm doingTime = {0}; in HWTEST_F() 837 struct tm startTime = {0}; in HWTEST_F() 857 struct tm doingTim in HWTEST_F() [all...] |
/base/hiviewdfx/hiview/base/utility/ |
H A D | time_util.cpp | 33 struct tm tmFormat { 0 }; in StrToTimeStamp() 70 struct tm result {}; in TimestampFormatToDate() 84 struct tm tmLocal; in GetTimeZone() 101 struct tm *l = std::localtime(&now); in Get0ClockStampMs() 136 std::tm t = *std::localtime(&tt); in FormatTime()
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/ |
H A D | time_util.cpp | 41 struct tm localTm;
in GetDate() 58 struct tm tmLocal;
in GetTimeZone()
|
/base/telephony/sms_mms/utils/ |
H A D | sms_common_utils.cpp | 189 struct tm tmObj; in ConvertTime() 190 if (memset_s(&tmObj, sizeof(struct tm), 0x00, sizeof(tm)) != EOK) { in ConvertTime() 212 struct tm tmObj; in GetDisplayTime() 214 if (memset_s(&tmObj, sizeof(struct tm), 0x00, sizeof(tm)) != EOK) { in GetDisplayTime()
|
/base/notification/common_event_service/tools/test/systemtest/cem/ |
H A D | common_event_command_publish_system_test.cpp | 176 struct tm startTime = {0}; in HWTEST_F() 180 struct tm doingTime = {0}; in HWTEST_F() 236 struct tm startTime = {0}; in HWTEST_F() 240 struct tm doingTime = {0}; in HWTEST_F() 296 struct tm startTime = {0}; in HWTEST_F() 300 struct tm doingTime = {0}; in HWTEST_F() 356 struct tm startTime = {0}; in HWTEST_F() 360 struct tm doingTime = {0}; in HWTEST_F()
|
/base/update/updater/services/updater_binary/ |
H A D | update_image_block.cpp | 97 TransferManagerPtr tm = static_cast<TransferManagerPtr>(arg);
in UnpackNewData() local 98 WriterThreadInfo *info = tm->GetTransferParams()->writerThreadInfo.get();
in UnpackNewData() 106 auto env = tm->GetTransferParams()->env;
in UnpackNewData() 188 static int32_t ExecuteTransferCommand(int fd, const std::vector<std::string> &lines, TransferManagerPtr tm,
in ExecuteTransferCommand() argument 191 auto transferParams = tm->GetTransferParams();
in ExecuteTransferCommand() 205 if (!tm->CommandsParser(fd, lines)) {
in ExecuteTransferCommand() 228 static int InitThread(const struct UpdateBlockInfo &infos, TransferManagerPtr tm)
in InitThread() argument 230 auto transferParams = tm->GetTransferParams();
in InitThread() 239 int error = pthread_create(&transferParams->thread, &attr, UnpackNewData, tm);
in InitThread() 283 static int32_t DoExecuteUpdateBlock(const UpdateBlockInfo &infos, TransferManagerPtr tm,
in DoExecuteUpdateBlock() argument 362 std::unique_ptr<TransferManager> tm = std::make_unique<TransferManager>(); ExecuteUpdateBlock() local 505 std::unique_ptr<TransferManager> tm = std::make_unique<TransferManager>(); DoBlocksVerify() local [all...] |
/base/notification/common_event_service/services/include/ |
H A D | history_event_record.h | 25 struct tm recordTime {}; 58 struct tm recordTime {};
|
/base/notification/distributed_notification_service/test/fuzztest/reminderrequestcalendar_fuzzer/ |
H A D | reminderrequestcalendar_fuzzer.cpp | 36 struct tm nowTime;
in DoSomethingInterestingWithMyAPI() 72 struct tm target;
in DoSomethingInterestingWithMyAPI() 77 struct tm tarTime;
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | reminder_request_calendar.cpp | 27 ReminderRequestCalendar::ReminderRequestCalendar(const tm &dateTime, const std::vector<uint8_t> &repeatMonths, in ReminderRequestCalendar() 75 struct tm dateTime; in AddExcludeDate() 105 struct tm dateTime; in IsInExcludeDate() 231 const uint16_t &settedYear, const uint8_t &settedMonth, const tm &now, const tm &target) const in GetNextDay() 238 struct tm setTime; in GetNextDay() 247 struct tm nowTime; in GetNextDay() 366 struct tm nowTime; in CalcLastStartDateTime() 370 struct tm startTime; in CalcLastStartDateTime() 387 struct tm nowTim in GetNextTriggerTime() [all...] |
/base/hiviewdfx/hilog_lite/services/hilogcat/ |
H A D | hiview_logcat.c | 58 struct tm *info = NULL; in main() 59 struct tm nowTime = {0}; in main()
|
/base/hiviewdfx/hiview/utility/common_utils/ |
H A D | tbox.cpp | 172 struct tm tmHappenTime; in GetHappenTime() 173 (void)memset_s(&tmHappenTime, sizeof(struct tm), 0, sizeof(struct tm)); in GetHappenTime() 192 struct tm result; in GetHappenTime()
|
/base/notification/common_event_service/services/test/unittest/ |
H A D | common_event_publish_system_event_test.cpp | 113 struct tm curTime {0}; in HWTEST_F() 143 struct tm curTime {0}; in HWTEST_F() 174 struct tm curTime{0}; in HWTEST_F() 225 struct tm curTime{0}; in HWTEST_F()
|
/base/inputmethod/imf/test/unittest/cpp_test/mock/ |
H A D | global.cpp | 27 struct tm nowTime; in LogTimeStamp()
|