/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_json/ |
H A D | b_json_cached_entity_test.cpp | 50 TestManager tm("b_json_construction_0100"); variable 52 std::string path = tm.GetRootDirCurTest(); 75 TestManager tm("b_json_construction_0101"); variable 77 std::string path = tm.GetRootDirCurTest(); 100 TestManager tm("b_json_construction_0102"); variable 102 std::string path = tm.GetRootDirCurTest(); 127 std::string path = tm.GetRootDirCurTest(); 152 std::string path = tm.GetRootDirCurTest(); 177 std::string path = tm.GetRootDirCurTest(); 251 TestManager tm("b_json_GetFd_0100"); variable [all …]
|
/ohos5.0/foundation/communication/netmanager_base/frameworks/native/netpolicyclient/src/ |
H A D | net_quota_policy.cpp | 197 struct tm tm; in GetPeriodStart() local 203 tm.tm_hour = start; in GetPeriodStart() 204 tm.tm_min = 0; in GetPeriodStart() 205 tm.tm_sec = 0; in GetPeriodStart() 207 tm.tm_hour = 0; in GetPeriodStart() 208 tm.tm_min = 0; in GetPeriodStart() 209 tm.tm_sec = 0; in GetPeriodStart() 212 tm.tm_hour = 0; in GetPeriodStart() 213 tm.tm_min = 0; in GetPeriodStart() 214 tm.tm_sec = 0; in GetPeriodStart() [all …]
|
/ohos5.0/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()
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_filesystem/ |
H A D | b_file_test.cpp | 45 string path = tm.GetRootDirCurTest(); in GetTestFile() 67 TestManager tm(__func__); 68 const auto [filePath, content] = GetTestFile(tm); 93 TestManager tm(__func__); 94 const auto [filePath, content] = GetTestFile(tm); 121 TestManager tm(__func__); 122 const auto [filePath, content] = GetTestFile(tm); 150 TestManager tm(__func__); 151 const auto [filePath, content] = GetTestFile(tm); 179 TestManager tm(__func__); [all …]
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-platform-rtc-des.md | 210 tm.year = 2020; 211 tm.month = 01; 212 tm.day = 01; 213 tm.hour= 00; 214 tm.minute = 59; 215 tm.second = 00; 589 tm.month = 01; 590 tm.day = 01; 591 tm.hour= 0; 592 tm.minute = 0; [all …]
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | theme_manager_test.cpp | 42 std::shared_ptr<ThemePackManager> tm; member in __anon1769c7800110::ThemeManagerTest 58 this->tm = ThemePackManager::GetThemePackManager(); in SetUp() 90 tm->LoadThemeSkinResource("ohos.global.test", "entry", rootDirs, userId); 114 tm->LoadThemeSkinResource("ohos.global.test.all", "entry", rootDirs, userId); 177 tm->LoadThemeIconsResource("other_icons", "", rootDirs, userId); 200 tm->LoadThemeIconsResource("other_icons", "", rootDirs, userId); 205 state = tm->GetOtherIconsInfo("background", outValue, len, false, userId); 207 state = tm->GetThemeIconFromCache("other_icons_background", outValue, len); 219 tm->UpdateUserId(userId); 220 bool result = tm->IsUpdateByUserId(userId); [all …]
|
/ohos5.0/base/update/updater/test/unittest/applypatch_test/ |
H A D | all_cmd_unittest.cpp | 103 std::unique_ptr<TransferManager> tm = std::make_unique<TransferManager>(); variable 124 tm->GetTransferParams()->storeBase = "/data/updater/update_tmp"; 127 rc = tm->CommandsParser(fd, transferLines); 151 bool result = tm.CommandsParser(fd, allCmd); in AllCmdUnitTestMove() 174 tm->GetTransferParams()->storeBase = "/tmp/cmdtest"; 175 Store::DoFreeSpace(tm->GetTransferParams()->storeBase); 176 Utils::MkdirRecursive(tm->GetTransferParams()->storeBase, dirMode); 196 result = tm->CommandsParser(fd, allCmd); 198 Store::DoFreeSpace(tm->GetTransferParams()->storeBase); 199 Utils::MkdirRecursive(tm->GetTransferParams()->storeBase, mode); [all …]
|
H A D | transfer_manager_unittest.cpp | 53 std::unique_ptr<TransferManager> tm = std::make_unique<TransferManager>(); variable 55 bool reset = tm->CheckResult(CommandResult::NEED_RETRY, cmd, CommandType::ZERO); 61 std::unique_ptr<TransferManager> tm = std::make_unique<TransferManager>(); variable 62 string cmd = tm->ReloadForRetry();
|
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | datetime_ex.cpp | 33 int64_t GetSecondsSince1970ToPointTime(struct tm inputTm) in GetSecondsSince1970ToPointTime() 45 int64_t GetSecondsBetween(struct tm inputTm1, struct tm inputTm2) in GetSecondsBetween() 62 bool GetSystemCurrentTime(struct tm* curTime) in GetSystemCurrentTime() 69 struct tm* timeResult = nullptr; in GetSystemCurrentTime() 78 struct tm curTime1 = {0}; in GetLocalTimeZone() 79 struct tm curTime2 = {0}; in GetLocalTimeZone() 80 struct tm* localTime = localtime_r(&t1, &curTime1); in GetLocalTimeZone() 81 struct tm* gmTime = gmtime_r(&t2, &curTime2); in GetLocalTimeZone()
|
/ohos5.0/foundation/multimedia/player_framework/services/utils/ |
H A D | time_format_utils.cpp | 43 std::tm tm; in FormatDateTimeByTimeZone() local 44 if (!(iss >> std::get_time(&tm, "%Y-%m-%dT%H:%M:%S"))) { in FormatDateTimeByTimeZone() 49 time_t tt = mktime(&tm); in FormatDateTimeByTimeZone() 59 oss << std::put_time(&tm, "%Y-%m-%d %H:%M:%S"); in FormatDateTimeByTimeZone() 70 std::tm *timeWithOffsetPtr = localtime(&tt); in FormatDateTimeByTimeZone() 74 std::tm timeWithOffset = *timeWithOffsetPtr; in FormatDateTimeByTimeZone() 79 …std::chrono::system_clock::from_time_t(std::mktime(&tm)) + std::chrono::seconds(timezone - diffTim… in FormatDateTimeByTimeZone() 81 std::tm *localTmPtr = std::localtime(&localTimeT); in FormatDateTimeByTimeZone() 85 std::tm localTm = *localTmPtr; in FormatDateTimeByTimeZone() 135 tm *pTime; in ConvertTimestampToDatetime()
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_tarball/ |
H A D | b_tarball_cmdline_test.cpp | 56 TestManager tm("b_tarball_cmdline_0100"); variable 57 string root = tm.GetRootDirCurTest(); 82 TestManager tm("b_tarball_cmdline_0101"); variable 83 string root = tm.GetRootDirCurTest(); 109 TestManager tm("b_tarball_cmdline_0200"); variable 110 string root = tm.GetRootDirCurTest(); 156 TestManager tm("b_tarball_cmdline_0201"); variable 157 string root = tm.GetRootDirCurTest(); 204 string root = tm.GetRootDirCurTest(); 251 string root = tm.GetRootDirCurTest(); [all …]
|
H A D | b_tarball_factory_test.cpp | 50 TestManager tm("b_tarball_factory_0100"); variable 51 string root = tm.GetRootDirCurTest(); 83 TestManager tm("b_tarball_factory_0200"); variable 84 string root = tm.GetRootDirCurTest(); 116 TestManager tm("b_tarball_factory_0300"); variable 117 string root = tm.GetRootDirCurTest(); 149 TestManager tm("b_tarball_factory_0400"); variable 150 string root = tm.GetRootDirCurTest();
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | reminder_request_calendar_test.cpp | 98 struct tm nowTime; 113 struct tm nowTime; 128 struct tm nowTime; 192 tm nowTime = *tmp; 243 tm nowTime = *tmp; 287 tm nowTime = *tmp; 316 struct tm nowTime; 330 struct tm nowTime; 345 struct tm nowTime; 360 struct tm nowTime; [all …]
|
/ohos5.0/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/graphics/ |
H A D | X2DFast.js | 52 tm[0][0], 53 tm[1][0], 54 tm[2][0], 55 tm[3][0], 56 tm[0][1], 57 tm[1][1], 58 tm[2][1], 59 tm[3][1], 60 tm[0][2], 61 tm[1][2], [all …]
|
/ohos5.0/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() 474 struct tm startTime = {0}; 478 struct tm doingTime = {0}; 591 struct tm startTime = {0}; 593 struct tm doingTime = {0}; 704 struct tm startTime = {0}; 706 struct tm doingTime = {0}; 817 struct tm startTime = {0}; 819 struct tm doingTime = {0}; 933 struct tm startTime = {0}; [all …]
|
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/http/cache/cache_strategy/src/ |
H A D | http_time.cpp | 30 std::tm tm = {0}; in StrTimeToTimestamp() local 32 ss >> std::get_time(&tm, GMT_TIME); in StrTimeToTimestamp() 35 return _mkgmtime(&tm); in StrTimeToTimestamp() 37 return timegm(&tm); in StrTimeToTimestamp() 51 std::tm timeInfo = {0}; in GetNowTimeGMT()
|
/ohos5.0/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 | 489 struct tm startTime = {0}; 493 struct tm doingTime = {0}; 607 struct tm startTime = {0}; 611 struct tm doingTime = {0}; 721 struct tm startTime = {0}; 723 struct tm doingTime = {0}; 834 struct tm startTime = {0}; 836 struct tm doingTime = {0}; 946 struct tm startTime = {0}; 948 struct tm doingTime = {0}; [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_ext/ |
H A D | untar_file_test.cpp | 135 TestManager tm("SUB_Untar_File_UnPacket_0200"); variable 136 string root = tm.GetRootDirCurTest(); 178 TestManager tm("SUB_Untar_File_UnPacket_0300"); variable 179 string root = tm.GetRootDirCurTest(); 213 TestManager tm("SUB_Untar_File_UnPacket_0400"); variable 214 string root = tm.GetRootDirCurTest(); 253 string root = tm.GetRootDirCurTest(); 307 string root = tm.GetRootDirCurTest(); 363 string root = tm.GetRootDirCurTest(); 394 string root = tm.GetRootDirCurTest(); [all …]
|
H A D | tar_file_test.cpp | 111 TestManager tm("SUB_Tar_File_Packet_0100"); variable 112 string root = tm.GetRootDirCurTest(); 137 TestManager tm("SUB_Tar_File_Packet_0200"); variable 138 string root = tm.GetRootDirCurTest(); 176 TestManager tm("SUB_Tar_File_Packet_0300"); variable 177 string root = tm.GetRootDirCurTest(); 246 TestManager tm("SUB_Tar_File_Packet_0500"); variable 247 string root = tm.GetRootDirCurTest(); 291 TestManager tm("SUB_Tar_File_Packet_0600"); variable 292 string root = tm.GetRootDirCurTest(); [all …]
|
/ohos5.0/foundation/communication/netstack/frameworks/native/http/http_client/ |
H A D | http_client_time.cpp | 33 std::tm timeInfo = {0}; in GetNowTimeGMT() 56 std::tm tm = {0}; in GetNowTimeGMT() local 58 ss >> std::get_time(&tm, GMT_TIME); in GetNowTimeGMT() 59 auto tp = std::chrono::system_clock::from_time_t(std::mktime(&tm)); in GetNowTimeGMT()
|
/ohos5.0/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()
|
/ohos5.0/base/update/updater/services/diffpatch/patch_shared/ |
H A D | patch_shared.cpp | 131 auto transferParams = tm->GetTransferParams(); in ExecuteTransferCommand() 143 if (!tm->CommandsParser(fd, lines)) { in ExecuteTransferCommand() 241 TransferManagerPtr tm = static_cast<TransferManagerPtr>(arg); in UnpackNewDataFunc() local 242 WriterThreadInfo *info = tm->GetTransferParams()->writerThreadInfo.get(); in UnpackNewDataFunc() 250 auto env = tm->GetTransferParams()->env; in UnpackNewDataFunc() 274 static int InitThread(const struct UpdateBlockInfo &infos, TransferManagerPtr tm) in InitThread() argument 276 auto transferParams = tm->GetTransferParams(); in InitThread() 285 int error = pthread_create(&transferParams->thread, &attr, UnpackNewDataFunc, tm); in InitThread() 350 std::unique_ptr<TransferManager> tm = std::make_unique<TransferManager>(); in ExecuteUpdateBlock() local 351 auto transferParams = tm->GetTransferParams(); in ExecuteUpdateBlock() [all …]
|
/ohos5.0/docs/en/device-dev/driver/ |
H A D | driver-platform-rtc-des.md | 158 struct RtcTime tm; 191 struct RtcTime tm; 194 tm.year = 2020; 195 tm.month = 01; 196 tm.day = 01; 197 tm.hour= 00; 198 tm.minute = 59; 199 tm.second = 00; 527 tm.day = 01; 528 tm.hour= 0; [all …]
|
/ohos5.0/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()
|
/ohos5.0/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}; 700 struct tm doingTime = {0}; 720 struct tm startTime = {0}; 739 struct tm doingTime = {0}; 759 struct tm startTime = {0}; 777 struct tm doingTime = {0}; 797 struct tm startTime = {0}; 817 struct tm doingTime = {0}; 837 struct tm startTime = {0}; 857 struct tm doingTime = {0}; [all …]
|