Home
last modified time | relevance | path

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

12

/system/media/audio_utils/include/audio_utils/
Dclock.h41 struct tm tm; in audio_utils_ns_to_string() local
44 if (localtime_r(&sec, &tm) == NULL) { in audio_utils_ns_to_string()
50 tm.tm_mon + 1, // localtime_r uses months in 0 - 11 range in audio_utils_ns_to_string()
51 tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, in audio_utils_ns_to_string()
/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/core/libziparchive/
Dzip_writer_test.cc138 static struct tm MakeTm() { in MakeTm()
139 struct tm tm; in MakeTm() local
140 memset(&tm, 0, sizeof(struct tm)); in MakeTm()
141 tm.tm_year = 2001 - 1900; in MakeTm()
142 tm.tm_mon = 1; in MakeTm()
143 tm.tm_mday = 12; in MakeTm()
144 tm.tm_hour = 18; in MakeTm()
145 tm.tm_min = 30; in MakeTm()
146 tm.tm_sec = 20; in MakeTm()
147 return tm; in MakeTm()
[all …]
Dzip_writer.cc157 struct tm* ptm; in ExtractTimeAndDate()
159 struct tm tm_result; in ExtractTimeAndDate()
Dunzip.cpp202 tm t = entry.GetModificationTime(); in ListOne()
Dzip_archive.cc1212 tm ZipEntry::GetModificationTime() const { in GetModificationTime()
1213 tm t = {}; in GetModificationTime()
/system/core/libutils/
DProcessCallStack.cpp102 static String8 getTimeString(struct tm tm) { in getTimeString() argument
105 strftime(timestr, sizeof(timestr), "%F %T", &tm); in getTimeString()
126 mTimeUpdated = tm(); in clear()
144 struct tm tm; in update() local
145 localtime_r(&t, &tm); in update()
147 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/libdebuggerd/
Dbacktrace.cpp43 struct tm tm; in dump_process_header() local
44 localtime_r(&t, &tm); in dump_process_header()
46 strftime(timestr, sizeof(timestr), "%F %T", &tm); in dump_process_header()
Dtombstone.cpp606 struct tm tmBuf; in dump_log_file()
607 struct tm* ptm; in dump_log_file()
/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.cpp280 struct tm tm; in calculateCorrection() local
281 memset(&tm, 0, sizeof(tm)); in calculateCorrection()
282 tm.tm_isdst = -1; in calculateCorrection()
283 localtime_r(&now, &tm); in calculateCorrection()
284 if ((tm.tm_gmtoff < 0) && ((-tm.tm_gmtoff) > (long)real.tv_sec)) { in calculateCorrection()
287 real.tv_sec += tm.tm_gmtoff; in calculateCorrection()
DLogTags.cpp95 struct tm tm; in RebuildFileEventLogTags() local
96 localtime_r(&now, &tm); in RebuildFileEventLogTags()
99 strftime(timebuf, sizeof(timebuf), "%Y-%m-%d %H:%M:%S", &tm); in RebuildFileEventLogTags()
/system/core/liblog/
Dlog_time.cpp42 struct tm* ptm; in strptime()
44 struct tm tmBuf; in strptime()
Dfake_log_device.c357 struct tm tmBuf; in showLog()
359 struct tm* ptm; in showLog()
Dlogprint.c1343 struct tm tm; in convertMonotonic() local
1399 cp = strptime(e, "%Y-%m-%d %H:%M:%S.", &tm); in convertMonotonic()
1408 time.tv_sec = mktime(&tm); in convertMonotonic()
1556 struct tm tmBuf; in android_log_formatLogLine()
1558 struct tm* ptm; in android_log_formatLogLine()
/system/core/libutils/include/utils/
DProcessCallStack.h74 struct tm mTimeUpdated;
/system/bt/btif/src/
Dbtif_debug_conn.cc42 struct tm* ptm = localtime(&secs); in format_ts()
/system/core/healthd/
Dhealthd_mode_charger.cpp191 timespec tm; in curr_time_ms() local
192 clock_gettime(CLOCK_MONOTONIC, &tm); in curr_time_ms()
193 return tm.tv_sec * MSEC_PER_SEC + (tm.tv_nsec / NSEC_PER_MSEC); in curr_time_ms()
Dhealthd_draw.cpp133 tm* time_info = localtime(&rawtime); in draw_clock()
/system/core/libziparchive/include/ziparchive/
Dzip_archive.h77 struct tm GetModificationTime() const;
/system/core/adb/
Dadb_trace.cpp52 struct tm now; in get_log_file_name()
/system/core/init/
Dbootchart.cpp68 struct tm now = *localtime(&now_t); in log_header()
/system/core/base/
Dlogging.cpp190 struct tm now; in StderrLogger()
/system/extras/ANRdaemon/
DANRdaemon.cpp257 struct tm tstruct; in dump_trace()

12