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

12

/system/media/audio_utils/include/audio_utils/
H A Dclock.h41 struct tm tm; local
44 if (localtime_r(&sec, &tm) == NULL) {
50 tm.tm_mon + 1, // localtime_r uses months in 0 - 11 range
51 tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec,
/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/core/libziparchive/
H A Dzip_writer_test.cc138 static void ConvertZipTimeToTm(uint32_t& zip_time, struct tm* tm) { argument
139 memset(tm, 0, sizeof(struct tm));
140 tm->tm_hour = (zip_time >> 11) & 0x1f;
141 tm->tm_min = (zip_time >> 5) & 0x3f;
142 tm->tm_sec = (zip_time & 0x1f) << 1;
144 tm->tm_year = ((zip_time >> 25) & 0x7f) + 80;
145 tm->tm_mon = ((zip_time >> 21) & 0xf) - 1;
146 tm
150 struct tm tm; local
164 struct tm tm = MakeTm(); local
215 struct tm tm = MakeTm(); local
[all...]
H A Dzip_writer.cc155 struct tm* ptm;
157 struct tm tm_result;
/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/libutils/
H A DProcessCallStack.cpp102 static String8 getTimeString(struct tm tm) { argument
105 strftime(timestr, sizeof(timestr), "%F %T", &tm);
126 mTimeUpdated = tm();
144 struct tm tm; local
145 localtime_r(&t, &tm);
147 mTimeUpdated = tm;
/system/core/debuggerd/libdebuggerd/
H A Dbacktrace.cpp43 struct tm tm; local
44 localtime_r(&t, &tm);
46 strftime(timestr, sizeof(timestr), "%F %T", &tm);
H A Dtombstone.cpp584 struct tm tmBuf;
585 struct tm* ptm;
/system/core/include/utils/
H A DProcessCallStack.h74 struct tm mTimeUpdated;
/system/core/libutils/include/utils/
H A DProcessCallStack.h74 struct tm mTimeUpdated;
/system/core/liblog/
H A Dlog_time.cpp42 struct tm* ptm;
44 struct tm tmBuf;
H A Dlogprint.c1304 struct tm tm; local
1360 cp = strptime(e, "%Y-%m-%d %H:%M:%S.", &tm);
1369 time.tv_sec = mktime(&tm);
1517 struct tm tmBuf;
1519 struct tm* ptm;
H A Dfake_log_device.c359 struct tm tmBuf;
361 struct tm* ptm;
/system/core/logd/
H A DLogKlog.cpp280 struct tm tm; local
281 memset(&tm, 0, sizeof(tm));
282 tm.tm_isdst = -1;
283 localtime_r(&now, &tm);
284 if ((tm.tm_gmtoff < 0) && ((-tm.tm_gmtoff) > (long)real.tv_sec)) {
287 real.tv_sec += tm.tm_gmtoff;
H A DLogTags.cpp95 struct tm tm; local
96 localtime_r(&now, &tm);
99 strftime(timebuf, sizeof(timebuf), "%Y-%m-%d %H:%M:%S", &tm);
/system/bt/btif/src/
H A Dbtif_debug_conn.cc43 struct tm* ptm = localtime(&secs);
H A Dbtif_config.cc183 struct tm* time_created = localtime(&current_time);
/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.cpp197 struct timespec tm; local
198 clock_gettime(CLOCK_MONOTONIC, &tm);
199 return tm.tv_sec * MSEC_PER_SEC + (tm.tv_nsec / NSEC_PER_MSEC);
327 struct tm* time_info = localtime(&rawtime);
/system/core/init/
H A Dbootchart.cpp68 struct tm now = *localtime(&now_t);
/system/core/base/
H A Dlogging.cpp190 struct tm now;
/system/extras/ANRdaemon/
H A DANRdaemon.cpp257 struct tm tstruct;
/system/keymaster/
H A Dkeymaster_enforcement_test.cpp87 tm past_tm;
88 tm* future_tm;
/system/bt/bta/dm/
H A Dbta_dm_api.cc437 p_msg->tm = trusted_mask;

Completed in 3816 milliseconds

12