/system/media/audio_utils/include/audio_utils/ |
D | clock.h | 41 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/ |
D | rtc_test.cpp | 27 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/ |
D | zip_writer_test.cc | 138 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 …]
|
D | zip_writer.cc | 157 struct tm* ptm; in ExtractTimeAndDate() 159 struct tm tm_result; in ExtractTimeAndDate()
|
D | unzip.cpp | 202 tm t = entry.GetModificationTime(); in ListOne()
|
D | zip_archive.cc | 1212 tm ZipEntry::GetModificationTime() const { in GetModificationTime() 1213 tm t = {}; in GetModificationTime()
|
/system/core/libutils/ |
D | ProcessCallStack.cpp | 102 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/ |
D | main.cc | 60 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/ |
D | backtrace.cpp | 43 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()
|
D | tombstone.cpp | 606 struct tm tmBuf; in dump_log_file() 607 struct tm* ptm; in dump_log_file()
|
/system/core/toolbox/ |
D | newfs_msdos.c | 253 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/ |
D | LogKlog.cpp | 280 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()
|
D | LogTags.cpp | 95 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/ |
D | log_time.cpp | 42 struct tm* ptm; in strptime() 44 struct tm tmBuf; in strptime()
|
D | fake_log_device.c | 357 struct tm tmBuf; in showLog() 359 struct tm* ptm; in showLog()
|
D | logprint.c | 1343 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/ |
D | ProcessCallStack.h | 74 struct tm mTimeUpdated;
|
/system/bt/btif/src/ |
D | btif_debug_conn.cc | 42 struct tm* ptm = localtime(&secs); in format_ts()
|
/system/core/healthd/ |
D | healthd_mode_charger.cpp | 191 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()
|
D | healthd_draw.cpp | 133 tm* time_info = localtime(&rawtime); in draw_clock()
|
/system/core/libziparchive/include/ziparchive/ |
D | zip_archive.h | 77 struct tm GetModificationTime() const;
|
/system/core/adb/ |
D | adb_trace.cpp | 52 struct tm now; in get_log_file_name()
|
/system/core/init/ |
D | bootchart.cpp | 68 struct tm now = *localtime(&now_t); in log_header()
|
/system/core/base/ |
D | logging.cpp | 190 struct tm now; in StderrLogger()
|
/system/extras/ANRdaemon/ |
D | ANRdaemon.cpp | 257 struct tm tstruct; in dump_trace()
|