Home
last modified time | relevance | path

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

12

/system/core/libziparchive/
Dzip_writer_test.cc138 static void ConvertZipTimeToTm(uint32_t& zip_time, struct tm* tm) { in ConvertZipTimeToTm() argument
139 memset(tm, 0, sizeof(struct tm)); in ConvertZipTimeToTm()
140 tm->tm_hour = (zip_time >> 11) & 0x1f; in ConvertZipTimeToTm()
141 tm->tm_min = (zip_time >> 5) & 0x3f; in ConvertZipTimeToTm()
142 tm->tm_sec = (zip_time & 0x1f) << 1; in ConvertZipTimeToTm()
144 tm->tm_year = ((zip_time >> 25) & 0x7f) + 80; in ConvertZipTimeToTm()
145 tm->tm_mon = ((zip_time >> 21) & 0xf) - 1; in ConvertZipTimeToTm()
146 tm->tm_mday = (zip_time >> 16) & 0x1f; in ConvertZipTimeToTm()
149 static struct tm MakeTm() { in MakeTm()
150 struct tm tm; in MakeTm() local
[all …]
Dzip_writer.cc155 struct tm* ptm; in ExtractTimeAndDate()
157 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/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/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.cpp584 struct tm tmBuf; in dump_log_file()
585 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()
Dlogprint.c1304 struct tm tm; in convertMonotonic() local
1360 cp = strptime(e, "%Y-%m-%d %H:%M:%S.", &tm); in convertMonotonic()
1369 time.tv_sec = mktime(&tm); in convertMonotonic()
1517 struct tm tmBuf; in android_log_formatLogLine()
1519 struct tm* ptm; in android_log_formatLogLine()
Dfake_log_device.c359 struct tm tmBuf; in showLog()
361 struct tm* ptm; in showLog()
/system/core/libutils/include/utils/
DProcessCallStack.h74 struct tm mTimeUpdated;
/system/bt/btif/src/
Dbtif_debug_conn.cc43 struct tm* ptm = localtime(&secs); in format_ts()
Dbtif_config.cc183 struct tm* time_created = localtime(&current_time); in init()
/system/core/healthd/
Dhealthd_mode_charger.cpp197 struct timespec tm; in curr_time_ms() local
198 clock_gettime(CLOCK_MONOTONIC, &tm); in curr_time_ms()
199 return tm.tv_sec * MSEC_PER_SEC + (tm.tv_nsec / NSEC_PER_MSEC); in curr_time_ms()
327 struct tm* time_info = localtime(&rawtime); in draw_clock()
/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()
/system/keymaster/
Dkeymaster_enforcement_test.cpp87 tm past_tm;
88 tm* future_tm;
/system/bt/bta/dm/
Dbta_dm_int.h291 tBTA_SERVICE_MASK tm; member
/system/core/logcat/tests/
Dlogcat_test.cpp168 struct tm* ptm; in TEST()
170 struct tm tmBuf; in TEST()

12