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

12

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

Completed in 2169 milliseconds

12