/system/core/libziparchive/ |
D | zip_writer_test.cc | 138 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 …]
|
D | zip_writer.cc | 155 struct tm* ptm; in ExtractTimeAndDate() 157 struct tm tm_result; in ExtractTimeAndDate()
|
/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/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/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 | 584 struct tm tmBuf; in dump_log_file() 585 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 | logprint.c | 1304 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()
|
D | fake_log_device.c | 359 struct tm tmBuf; in showLog() 361 struct tm* ptm; in showLog()
|
/system/core/libutils/include/utils/ |
D | ProcessCallStack.h | 74 struct tm mTimeUpdated;
|
/system/bt/btif/src/ |
D | btif_debug_conn.cc | 43 struct tm* ptm = localtime(&secs); in format_ts()
|
D | btif_config.cc | 183 struct tm* time_created = localtime(¤t_time); in init()
|
/system/core/healthd/ |
D | healthd_mode_charger.cpp | 197 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/ |
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()
|
/system/keymaster/ |
D | keymaster_enforcement_test.cpp | 87 tm past_tm; 88 tm* future_tm;
|
/system/bt/bta/dm/ |
D | bta_dm_int.h | 291 tBTA_SERVICE_MASK tm; member
|
/system/core/logcat/tests/ |
D | logcat_test.cpp | 168 struct tm* ptm; in TEST() 170 struct tm tmBuf; in TEST()
|