Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 25 of 35) sorted by relevance

12

/system/core/libziparchive/
Dzip_writer_test.cc146 void ConvertZipTimeToTm(uint32_t& zip_time, struct tm* tm) { in ConvertZipTimeToTm() argument
147 memset(tm, 0, sizeof(struct tm)); in ConvertZipTimeToTm()
148 tm->tm_hour = (zip_time >> 11) & 0x1f; in ConvertZipTimeToTm()
149 tm->tm_min = (zip_time >> 5) & 0x3f; in ConvertZipTimeToTm()
150 tm->tm_sec = (zip_time & 0x1f) << 1; in ConvertZipTimeToTm()
152 tm->tm_year = ((zip_time >> 25) & 0x7f) + 80; in ConvertZipTimeToTm()
153 tm->tm_mon = ((zip_time >> 21) & 0xf) - 1; in ConvertZipTimeToTm()
154 tm->tm_mday = (zip_time >> 16) & 0x1f; in ConvertZipTimeToTm()
157 static struct tm MakeTm() { in MakeTm()
158 struct tm tm; in MakeTm() local
[all …]
Dzip_writer.cc143 struct tm* ptm; in ExtractTimeAndDate()
145 struct tm tm_result; in ExtractTimeAndDate()
/system/extras/tests/timetest/
Drtc_test.cpp27 static int hwtime(int flag, int request, struct rtc_time *tm) { in hwtime() argument
63 ret = TEMP_FAILURE_RETRY(ioctl(fd, request, tm)); in hwtime()
72 static int rd_hwtime(struct rtc_time *tm) { in rd_hwtime() argument
73 return hwtime(O_RDONLY, RTC_RD_TIME, tm); in rd_hwtime()
76 static int set_hwtime(struct rtc_time *tm) { in set_hwtime() argument
77 return hwtime(O_WRONLY, RTC_SET_TIME, tm); in set_hwtime()
122 struct rtc_time tm = roll; in rtc_rollover() local
123 int __set_hwtime = set_hwtime(&tm); in rtc_rollover()
134 ASSERT_LE(0, rd_hwtime(&tm)); in rtc_rollover()
135 ASSERT_EQ(roll.tm_sec, tm.tm_sec); in rtc_rollover()
[all …]
/system/extras/tests/icachetest/
Dicache_main.c11 struct timeval now, tm; in main() local
21 gettimeofday(&tm, 0); in main()
22 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); in main()
28 gettimeofday(&tm, 0); in main()
29 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); in main()
/system/core/libcutils/
Ddebugger.c58 struct timeval tm; in make_dump_request() local
59 tm.tv_sec = timeout_secs; in make_dump_request()
60 tm.tv_usec = 0; in make_dump_request()
61 if (setsockopt(sock_fd, SOL_SOCKET, SO_RCVTIMEO, &tm, sizeof(tm)) == -1) { in make_dump_request()
65 if (setsockopt(sock_fd, SOL_SOCKET, SO_SNDTIMEO, &tm, sizeof(tm)) == -1) { in make_dump_request()
/system/core/crash_reporter/
Dcrash_collector_test.cc97 struct tm tm = {0}; in TEST_F() local
98 tm.tm_sec = 15; in TEST_F()
99 tm.tm_min = 50; in TEST_F()
100 tm.tm_hour = 13; in TEST_F()
101 tm.tm_mday = 23; in TEST_F()
102 tm.tm_mon = 4; in TEST_F()
103 tm.tm_year = 110; in TEST_F()
104 tm.tm_isdst = -1; in TEST_F()
106 collector_.FormatDumpBasename("foo", mktime(&tm), 100); in TEST_F()
Dcrash_collector.cc136 struct tm tm; in FormatDumpBasename() local
137 localtime_r(&timestamp, &tm); in FormatDumpBasename()
141 tm.tm_year + 1900, in FormatDumpBasename()
142 tm.tm_mon + 1, in FormatDumpBasename()
143 tm.tm_mday, in FormatDumpBasename()
144 tm.tm_hour, in FormatDumpBasename()
145 tm.tm_min, in FormatDumpBasename()
146 tm.tm_sec, in FormatDumpBasename()
/system/core/libutils/
DProcessCallStack.cpp105 static String8 getTimeString(struct tm tm) { in getTimeString() argument
108 strftime(timestr, sizeof(timestr), "%F %T", &tm); in getTimeString()
129 mTimeUpdated = tm(); in clear()
151 struct tm tm; in update() local
152 localtime_r(&t, &tm); in update()
154 mTimeUpdated = tm; in update()
/system/update_engine/
Dmain.cc60 struct tm tm; in GetTimeAsString() local
61 CHECK_EQ(localtime_r(&utime, &tm), &tm); in GetTimeAsString()
63 CHECK_EQ(strftime(str, sizeof(str), "%Y%m%d-%H%M%S", &tm), 15u); in GetTimeAsString()
/system/core/debuggerd/
Dbacktrace.cpp55 struct tm tm; in dump_process_header() local
56 localtime_r(&t, &tm); in dump_process_header()
58 strftime(timestr, sizeof(timestr), "%F %T", &tm); in dump_process_header()
/system/webservd/webservd/
Dlog_manager_unittest.cc84 tm time_buf = {}; in TEST_F()
99 tm date = {0, 0, 0, 25, 1, 115, 2, 55, 0}; in TEST_F()
125 tm date = {0, 0, 0, 25, 1, 115, 2, 55, 0}; in TEST_F()
Dlog_manager.cc101 tm time_buf = {}; in Log()
190 tm time_buf = {}; in OnRequestCompleted()
/system/core/toolbox/
Dnewfs_msdos.c253 struct tm *tm; in newfs_msdos_main() local
640 tm = localtime(&now); in newfs_msdos_main()
689 x = (((u_int)(1 + tm->tm_mon) << 8 | in newfs_msdos_main()
690 (u_int)tm->tm_mday) + in newfs_msdos_main()
691 ((u_int)tm->tm_sec << 8 | in newfs_msdos_main()
693 ((u_int)(1900 + tm->tm_year) + in newfs_msdos_main()
694 ((u_int)tm->tm_hour << 8 | in newfs_msdos_main()
695 (u_int)tm->tm_min)); in newfs_msdos_main()
728 x = (u_int)tm->tm_hour << 11 | in newfs_msdos_main()
729 (u_int)tm->tm_min << 5 | in newfs_msdos_main()
[all …]
/system/core/logd/
DLogKlog.cpp288 struct tm tm; in calculateCorrection() local
289 memset(&tm, 0, sizeof(tm)); in calculateCorrection()
290 tm.tm_isdst = -1; in calculateCorrection()
291 localtime_r(&now, &tm); in calculateCorrection()
292 if ((tm.tm_gmtoff < 0) && ((-tm.tm_gmtoff) > (long)real.tv_sec)) { in calculateCorrection()
295 real.tv_sec += tm.tm_gmtoff; in calculateCorrection()
/system/connectivity/shill/net/
Dshill_time.cc98 struct tm local_time = {}; in GetNow()
111 string Time::FormatTime(const struct tm& date_time, suseconds_t usec) { in FormatTime()
Dshill_time_unittest.cc34 struct tm epoch_start_tm; in TEST_F()
Dshill_time.h78 static std::string FormatTime(const struct tm& date_time, suseconds_t usec);
/system/core/liblog/
Dlog_time.cpp42 struct tm *ptm; in strptime()
44 struct tm tmBuf; in strptime()
Dlogprint.c1056 struct tm tm; in convertMonotonic() local
1112 cp = strptime(e, "%Y-%m-%d %H:%M:%S.", &tm); in convertMonotonic()
1121 time.tv_sec = mktime(&tm); in convertMonotonic()
1272 struct tm tmBuf; in android_log_formatLogLine()
1274 struct tm* ptm; in android_log_formatLogLine()
Dfake_log_device.c357 struct tm tmBuf; in showLog()
359 struct tm* ptm; in showLog()
/system/core/include/utils/
DProcessCallStack.h74 struct tm mTimeUpdated;
/system/core/healthd/
Dhealthd_mode_charger.cpp181 struct timespec tm; in curr_time_ms() local
182 clock_gettime(CLOCK_MONOTONIC, &tm); in curr_time_ms()
183 return tm.tv_sec * MSEC_PER_SEC + (tm.tv_nsec / NSEC_PER_MSEC); in curr_time_ms()
/system/bt/btif/src/
Dbtif_debug_conn.c43 struct tm *ptm = localtime(&secs); in format_ts()
/system/core/adb/
Dadb_trace.cpp52 struct tm now; in get_log_file_name()
/system/core/init/
Dbootchart.cpp72 struct tm now = *localtime(&now_t); in log_header()

12