Home
last modified time | relevance | path

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

123456

/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_json/
H A Db_json_cached_entity_test.cpp50 TestManager tm("b_json_construction_0100"); in HWTEST_F()
52 std::string path = tm.GetRootDirCurTest(); in HWTEST_F()
75 TestManager tm("b_json_construction_0101"); in HWTEST_F()
77 std::string path = tm.GetRootDirCurTest(); in HWTEST_F()
100 TestManager tm("b_json_construction_0102"); in HWTEST_F()
102 std::string path = tm.GetRootDirCurTest(); in HWTEST_F()
125 TestManager tm("b_json_construction_0104"); in HWTEST_F()
127 std::string path = tm.GetRootDirCurTest(); in HWTEST_F()
150 TestManager tm("b_json_construction_0105"); in HWTEST_F()
152 std::string path = tm in HWTEST_F()
[all...]
H A Db_json_entity_ext_manage_test.cpp141 TestManager tm("b_json_entity_ext_manage_0100"); in HWTEST_F()
142 string root = tm.GetRootDirCurTest(); in HWTEST_F()
182 TestManager tm("b_json_entity_ext_manage_0200"); in HWTEST_F()
186 string root = tm.GetRootDirCurTest(); in HWTEST_F()
235 TestManager tm("b_json_entity_ext_manage_0300"); in HWTEST_F()
239 string root = tm.GetRootDirCurTest(); in HWTEST_F()
298 TestManager tm("b_json_entity_ext_manage_0400"); in HWTEST_F()
302 string root = tm.GetRootDirCurTest(); in HWTEST_F()
364 TestManager tm("b_json_entity_ext_manage_0500"); in HWTEST_F()
365 string root = tm in HWTEST_F()
[all...]
H A Db_report_entity_test.cpp54 static tuple<string, string> GetTestFile(const TestManager &tm, const string content) in GetTestFile() argument
56 string path = tm.GetRootDirCurTest(); in GetTestFile()
86 TestManager tm(__func__); in HWTEST_F()
87 const auto [filePath, res] = GetTestFile(tm, content); in HWTEST_F()
379 TestManager tm(__func__); in HWTEST_F()
380 const auto [filePath, res] = GetTestFile(tm, content); in HWTEST_F()
424 TestManager tm(__func__); in HWTEST_F()
425 const auto [filePath, res] = GetTestFile(tm, content); in HWTEST_F()
461 TestManager tm(__func__); in HWTEST_F()
462 const auto [filePath, res] = GetTestFile(tm, conten in HWTEST_F()
[all...]
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_filesystem/
H A Db_file_test.cpp43 static tuple<string, string> GetTestFile(const TestManager &tm) in GetTestFile() argument
45 string path = tm.GetRootDirCurTest(); in GetTestFile()
67 TestManager tm(__func__); in HWTEST_F()
68 const auto [filePath, content] = GetTestFile(tm); in HWTEST_F()
93 TestManager tm(__func__); in HWTEST_F()
94 const auto [filePath, content] = GetTestFile(tm); in HWTEST_F()
121 TestManager tm(__func__); in HWTEST_F()
122 const auto [filePath, content] = GetTestFile(tm); in HWTEST_F()
150 TestManager tm(__func__); in HWTEST_F()
151 const auto [filePath, content] = GetTestFile(tm); in HWTEST_F()
[all...]
H A Db_file_hash_test.cpp42 static tuple<string, string> GetTestFile(const TestManager &tm) in GetTestFile() argument
44 string path = tm.GetRootDirCurTest(); in GetTestFile()
65 TestManager tm(__func__); in HWTEST_F()
66 const auto [filePath, content] = GetTestFile(tm); in HWTEST_F()
H A Db_dir_test.cpp55 TestManager tm("b_dir_GetDirFiles_0100"); in HWTEST_F()
57 string preparedDir = tm.GetRootDirCurTest(); in HWTEST_F()
93 TestManager tm("b_dir_GetDirFiles_0104"); in HWTEST_F()
132 TestManager tm("b_dir_GetBigFiles_0100"); in HWTEST_F()
133 string rootDir = tm.GetRootDirCurTest(); in HWTEST_F()
268 TestManager tm("b_dir_GetBigFiles_0300"); in HWTEST_F()
269 string preparedDir = tm.GetRootDirCurTest(); in HWTEST_F()
309 TestManager tm("b_dir_GetDirs_0100"); in HWTEST_F()
/foundation/communication/netmanager_base/frameworks/native/netpolicyclient/src/
H A Dnet_quota_policy.cpp197 struct tm tm; in GetPeriodStart() local
198 localtime_r(&timeNow, &tm); in GetPeriodStart()
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()
210 tm in GetPeriodStart()
[all...]
/foundation/communication/netstack/frameworks/js/napi/http/cache/cache_strategy/src/
H A Dhttp_time.cpp30 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()
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_tarball/
H A Db_tarball_cmdline_test.cpp56 TestManager tm("b_tarball_cmdline_0100"); in HWTEST_F()
57 string root = tm.GetRootDirCurTest(); in HWTEST_F()
82 TestManager tm("b_tarball_cmdline_0101"); in HWTEST_F()
83 string root = tm.GetRootDirCurTest(); in HWTEST_F()
109 TestManager tm("b_tarball_cmdline_0200"); in HWTEST_F()
110 string root = tm.GetRootDirCurTest(); in HWTEST_F()
156 TestManager tm("b_tarball_cmdline_0201"); in HWTEST_F()
157 string root = tm.GetRootDirCurTest(); in HWTEST_F()
203 TestManager tm("b_tarball_cmdline_0202"); in HWTEST_F()
204 string root = tm in HWTEST_F()
[all...]
H A Db_tarball_factory_test.cpp50 TestManager tm("b_tarball_factory_0100"); in HWTEST_F()
51 string root = tm.GetRootDirCurTest(); in HWTEST_F()
83 TestManager tm("b_tarball_factory_0200"); in HWTEST_F()
84 string root = tm.GetRootDirCurTest(); in HWTEST_F()
116 TestManager tm("b_tarball_factory_0300"); in HWTEST_F()
117 string root = tm.GetRootDirCurTest(); in HWTEST_F()
149 TestManager tm("b_tarball_factory_0400"); in HWTEST_F()
150 string root = tm.GetRootDirCurTest(); in HWTEST_F()
/foundation/multimedia/player_framework/services/utils/
H A Dtime_format_utils.cpp43 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()
65 std::tm *timeWithOffsetPtr = localtime(&tt); in FormatDateTimeByTimeZone()
69 std::tm timeWithOffset = *timeWithOffsetPtr; in FormatDateTimeByTimeZone()
74 std::chrono::system_clock::from_time_t(std::mktime(&tm)) + std::chrono::seconds(timezone - diffTime); in FormatDateTimeByTimeZone()
76 std::tm *localTmPtr = std::localtime(&localTimeT); in FormatDateTimeByTimeZone()
80 std::tm localTm = *localTmPtr; in FormatDateTimeByTimeZone()
130 tm *pTim in ConvertTimestampToDatetime()
[all...]
/foundation/communication/netstack/frameworks/native/http/http_client/
H A Dhttp_client_time.cpp33 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()
/foundation/filemanagement/app_file_service/tests/unittests/backup_ext/
H A Dtar_file_test.cpp111 TestManager tm("SUB_Tar_File_Packet_0100"); in HWTEST_F()
112 string root = tm.GetRootDirCurTest(); in HWTEST_F()
137 TestManager tm("SUB_Tar_File_Packet_0200"); in HWTEST_F()
138 string root = tm.GetRootDirCurTest(); in HWTEST_F()
176 TestManager tm("SUB_Tar_File_Packet_0300"); in HWTEST_F()
177 string root = tm.GetRootDirCurTest(); in HWTEST_F()
246 TestManager tm("SUB_Tar_File_Packet_0500"); in HWTEST_F()
247 string root = tm.GetRootDirCurTest(); in HWTEST_F()
291 TestManager tm("SUB_Tar_File_Packet_0600"); in HWTEST_F()
292 string root = tm in HWTEST_F()
[all...]
H A Duntar_file_test.cpp135 TestManager tm("SUB_Untar_File_UnPacket_0200"); in HWTEST_F()
136 string root = tm.GetRootDirCurTest(); in HWTEST_F()
178 TestManager tm("SUB_Untar_File_UnPacket_0300"); in HWTEST_F()
179 string root = tm.GetRootDirCurTest(); in HWTEST_F()
213 TestManager tm("SUB_Untar_File_UnPacket_0400"); in HWTEST_F()
214 string root = tm.GetRootDirCurTest(); in HWTEST_F()
252 TestManager tm("SUB_Untar_File_UnPacket_0500"); in HWTEST_F()
253 string root = tm.GetRootDirCurTest(); in HWTEST_F()
306 TestManager tm("SUB_Untar_File_IncrementalUnPacket_0100"); in HWTEST_F()
307 string root = tm in HWTEST_F()
[all...]
/foundation/filemanagement/app_file_service/tests/mock/backup_kit_inner/
H A Db_session_backup_mock.cpp56 TestManager tm("BSessionBackupMock_GetFd_0100"); in Start()
57 string fileManagePath = tm.GetRootDirCurTest().append("manage.json"); in Start()
63 string filePath = tm.GetRootDirCurTest().append("1.tar"); in Start()
76 string filePathTwo = tm.GetRootDirCurTest().append("1.tar"); in Start()
H A Db_session_restore_async_mock.cpp72 TestManager tm("BSessionRestoreAsyncMock_GetFd_0100"); in AppendBundles()
73 string filePath = tm.GetRootDirCurTest().append("1.tar"); in AppendBundles()
78 string fileManagePath = tm.GetRootDirCurTest().append("manage.json"); in AppendBundles()
109 TestManager tm("BSessionRestoreAsyncMock_GetFd_0100"); in AppendBundles()
110 string filePath = tm.GetRootDirCurTest().append("1.tar"); in AppendBundles()
115 string fileManagePath = tm.GetRootDirCurTest().append("manage.json"); in AppendBundles()
/foundation/multimedia/player_framework/services/services/recorder/server/
H A Dmedia_library_adapter.cpp138 struct tm *GetLocaltime(const time_t* clock, struct tm *result) in GetLocaltime()
140 struct tm *ptr = localtime(clock); in GetLocaltime()
149 struct tm currentTime; in CreateDisplayName()
153 struct tm* timeResult = GetLocaltime(&clock, &currentTime); in CreateDisplayName()
/foundation/resourceschedule/device_standby/services/common/src/
H A Dtime_provider.cpp47 bool TimeProvider::ConvertTimeStampToLocalTime(int64_t curTimeStamp, struct tm& curLocalTime) in ConvertTimeStampToLocalTime()
60 struct tm curLocalTime {}; in GetCondition()
90 struct tm curUTCTime {}; in DiffToFixedClock()
98 struct tm targetUTCTime = curUTCTime; in DiffToFixedClock()
116 struct tm curLocalTime {}; in GetNapTimeOut()
/foundation/communication/dsoftbus/adapter/common/kernel/posix/
H A Dsoftbus_adapter_timer.c117 struct timeval tm; in SoftBusSleepMs() local
118 tm.tv_sec = ms / MS_PER_SECOND; in SoftBusSleepMs()
119 tm.tv_usec = (ms % MS_PER_SECOND) * US_PER_MSECOND; in SoftBusSleepMs()
122 ret = select(0, NULL, NULL, NULL, &tm); in SoftBusSleepMs()
171 struct tm formatedDateTime;
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/include/
H A Dzip_reader.h49 virtual void SetTimeModified(const struct tm *modifiedTime) = 0;
87 struct tm GetLastModified() const in GetLastModified()
114 struct tm lastModified_ {
212 void SetTimeModified(const struct tm *time) override;
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Dlocal_matrix_system.cpp119 const TransformComponent& tm = transformManager_->Get(transformComponentId); in Update() local
122 localMatrixData.matrix = Math::Trs(tm.position, tm.rotation, tm.scale); in Update()
/foundation/multimedia/audio_framework/frameworks/native/audioutils/src/
H A Dvolume_ramp.cpp71 timespec tm {}; in GetCurrentTimeMS()
72 clock_gettime(CLOCK_MONOTONIC, &tm); in GetCurrentTimeMS()
73 return tm.tv_sec * MS_PER_S + (tm.tv_nsec / NS_PER_MS); in GetCurrentTimeMS()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_common_tools.cpp35 std::tm* tm = std::localtime(&t); in GetLocalTime() local
39 ss << std::put_time(tm, "%Y-%m-%d %H_%M_%S.") << std::setfill('0') << std::setw(millSecondWidth) << ms.count(); in GetLocalTime()
/foundation/multimedia/media_foundation/engine/foundation/osal/thread/
H A Dcondition_variable.cpp23 inline long long TmToNs(struct timespec tm) in TmToNs() argument
25 return tm.tv_sec * std::giga::num + tm.tv_nsec; in TmToNs()
/foundation/distributeddatamgr/preferences/frameworks/native/platform/src/
H A Dpreferences_dfx_adapter.cpp44 std::tm *tm = std::localtime(&tt); in GetCurrentTime() local
45 if (tm == nullptr) { in GetCurrentTime()
52 oss << std::put_time(tm, "%Y-%m-%d %H:%M:%S.") << std::setfill('0') << std::setw(width) in GetCurrentTime()

Completed in 10 milliseconds

123456