Home
last modified time | relevance | path

Searched refs:tm (Results 1 - 25 of 113) sorted by relevance

12345

/base/security/device_security_level/baselib/utils/src/
H A Dutils_datetime.c60 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 Dall_cmd_unittest.cpp40 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 Dtransfer_manager_unittest.cpp53 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 Dtheme_manager_test.cpp42 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 Dtime_util.h24 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 Dcommon_event_services_publish_ordered_system_test.cpp161 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 Dlog.cpp89 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 Dreminder_request_calendar_test.cpp44 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 Dpatch_shared.cpp153 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 Dreminder_request_calendar.h52 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 Dcommon_event_services_publish_ordered_module_test.cpp171 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 Dtime_util.cpp36 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 Dcommon_event_services_system_test.cpp684 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 Dtime_util.cpp33 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 Dtime_util.cpp41 struct tm localTm; in GetDate()
58 struct tm tmLocal; in GetTimeZone()
/base/telephony/sms_mms/utils/
H A Dsms_common_utils.cpp189 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 Dcommon_event_command_publish_system_test.cpp176 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 Dupdate_image_block.cpp97 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 Dhistory_event_record.h25 struct tm recordTime {};
58 struct tm recordTime {};
/base/notification/distributed_notification_service/test/fuzztest/reminderrequestcalendar_fuzzer/
H A Dreminderrequestcalendar_fuzzer.cpp36 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 Dreminder_request_calendar.cpp27 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 Dhiview_logcat.c58 struct tm *info = NULL; in main()
59 struct tm nowTime = {0}; in main()
/base/hiviewdfx/hiview/utility/common_utils/
H A Dtbox.cpp172 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 Dcommon_event_publish_system_event_test.cpp113 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 Dglobal.cpp27 struct tm nowTime; in LogTimeStamp()

Completed in 17 milliseconds

12345