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

12

/system/media/audio_utils/include/audio_utils/
H A Dclock.h49 struct tm tm; local
52 if (localtime_r(&sec, &tm) == NULL) {
58 tm.tm_mon + 1, // localtime_r uses months in 0 - 11 range
59 tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec,
/system/core/libziparchive/
H A Dzip_writer_test.cc138 static struct tm MakeTm() {
139 struct tm tm; local
140 memset(&tm, 0, sizeof(struct tm));
141 tm.tm_year = 2001 - 1900;
142 tm.tm_mon = 1;
143 tm.tm_mday = 12;
144 tm.tm_hour = 18;
145 tm
153 struct tm tm = MakeTm(); local
203 struct tm tm = MakeTm(); local
[all...]
H A Dzip_writer.cc157 struct tm* ptm;
159 struct tm tm_result;
H A Dunzip.cpp202 tm t = entry.GetModificationTime();
/system/extras/tests/timetest/
H A Drtc_test.cpp29 static int hwtime(int flag, int request, struct rtc_time *tm) { argument
61 ret = TEMP_FAILURE_RETRY(ioctl(fd.get(), request, tm));
74 static int rd_hwtime(struct rtc_time *tm) { argument
75 return hwtime(O_RDONLY, RTC_RD_TIME, tm);
78 static int set_hwtime(struct rtc_time *tm) { argument
79 return hwtime(O_WRONLY, RTC_SET_TIME, tm);
124 struct rtc_time tm = roll; local
125 int __set_hwtime = set_hwtime(&tm);
136 ASSERT_LE(0, rd_hwtime(&tm));
137 ASSERT_EQ(roll.tm_sec, tm
[all...]
/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/update_engine/
H A Dmain.cc46 struct tm tm; local
47 CHECK_EQ(localtime_r(&utime, &tm), &tm); local
49 CHECK_EQ(strftime(str, sizeof(str), "%Y%m%d-%H%M%S", &tm), 15u);
/system/core/debuggerd/libdebuggerd/
H A Dbacktrace.cpp46 struct tm tm; local
47 localtime_r(&t, &tm);
49 strftime(timestr, sizeof(timestr), "%F %T", &tm);
/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.c1344 struct tm tm; local
1400 cp = strptime(e, "%Y-%m-%d %H:%M:%S.", &tm);
1409 time.tv_sec = mktime(&tm);
1557 struct tm tmBuf;
1559 struct tm* ptm;
H A Dfake_log_device.c357 struct tm tmBuf;
359 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.cc42 struct tm* ptm = localtime(&secs);
H A Dbtif_config.cc171 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.cpp56 struct tm now;
/system/core/healthd/
H A Dhealthd_mode_charger.cpp191 timespec tm; local
192 clock_gettime(CLOCK_MONOTONIC, &tm);
193 return tm.tv_sec * MSEC_PER_SEC + (tm.tv_nsec / NSEC_PER_MSEC);
H A Dhealthd_draw.cpp133 tm* time_info = localtime(&rawtime);
/system/core/libziparchive/include/ziparchive/
H A Dzip_archive.h76 // Returns `mod_time` as a broken-down struct tm.
77 struct tm GetModificationTime() const;
/system/core/init/
H A Dbootchart.cpp68 struct tm now = *localtime(&now_t);
/system/bt/bta/dm/
H A Dbta_dm_api.cc306 msg->tm = trusted_mask;
H A Dbta_dm_int.h154 tBTA_SERVICE_MASK tm; member in struct:__anon81

Completed in 441 milliseconds

12