/system/extras/tests/timetest/ |
D | rtc_test.cpp | 29 static int hwtime(int flag, int request, struct rtc_time *tm) { in hwtime() argument 61 ret = TEMP_FAILURE_RETRY(ioctl(fd.get(), request, tm)); in hwtime() 74 static int rd_hwtime(struct rtc_time *tm) { in rd_hwtime() argument 75 return hwtime(O_RDONLY, RTC_RD_TIME, tm); in rd_hwtime() 78 static int set_hwtime(struct rtc_time *tm) { in set_hwtime() argument 79 return hwtime(O_WRONLY, RTC_SET_TIME, tm); in set_hwtime() 124 struct rtc_time tm = roll; in rtc_rollover() local 125 int __set_hwtime = set_hwtime(&tm); in rtc_rollover() 136 ASSERT_LE(0, rd_hwtime(&tm)); in rtc_rollover() 137 ASSERT_EQ(roll.tm_sec, tm.tm_sec); in rtc_rollover() [all …]
|
/system/media/audio_utils/include/audio_utils/ |
D | clock.h | 60 struct tm tm; in audio_utils_ns_to_string() local 63 if (localtime_r(&sec, &tm) == NULL) { in audio_utils_ns_to_string() 69 tm.tm_mon + 1, // localtime_r uses months in 0 - 11 range in audio_utils_ns_to_string() 70 tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, in audio_utils_ns_to_string()
|
/system/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 | ziptool.cpp | 265 tm t = entry.GetModificationTime(); in ListOne() 328 tm t = entry.GetModificationTime(); in InfoOne()
|
/system/core/debuggerd/ |
D | util.cpp | 47 tm tm; in get_timestamp() local 48 localtime_r(&ts.tv_sec, &tm); in get_timestamp() 53 n = strftime(s, sz, "%F %H:%M", &tm), s += n, sz -= n; in get_timestamp() 54 n = snprintf(s, sz, ":%02d.%09ld", tm.tm_sec, ts.tv_nsec), s += n, sz -= n; in get_timestamp() 55 n = strftime(s, sz, "%z", &tm), s += n, sz -= n; in get_timestamp()
|
/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/extras/simpleperf/app_api/cpp/ |
D | simpleperf.cpp | 103 struct tm tm; in GetDefaultOutputFilename() local 104 if (localtime_r(&t, &tm) != &tm) { in GetDefaultOutputFilename() 108 asprintf(&buf, "perf-%02d-%02d-%02d-%02d-%02d.data", tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, in GetDefaultOutputFilename() 109 tm.tm_min, tm.tm_sec); in GetDefaultOutputFilename()
|
/system/core/liblog/ |
D | log_time.cpp | 36 struct tm* ptm; in strptime() 38 struct tm tmBuf; in strptime()
|
D | logprint.cpp | 1225 struct tm tm; in convertMonotonic() local 1281 cp = strptime(e, "%Y-%m-%d %H:%M:%S.", &tm); in convertMonotonic() 1290 time.tv_sec = mktime(&tm); in convertMonotonic() 1435 struct tm tmBuf; in android_log_formatLogLine() 1437 struct tm* ptm; in android_log_formatLogLine()
|
/system/core/logd/ |
D | LogKlog.cpp | 278 struct tm tm; in calculateCorrection() local 279 memset(&tm, 0, sizeof(tm)); in calculateCorrection() 280 tm.tm_isdst = -1; in calculateCorrection() 281 localtime_r(&now, &tm); in calculateCorrection() 282 if ((tm.tm_gmtoff < 0) && ((-tm.tm_gmtoff) > (long)real.tv_sec)) { in calculateCorrection() 285 real.tv_sec += tm.tm_gmtoff; in calculateCorrection()
|
D | LogTags.cpp | 102 struct tm tm; in RebuildFileEventLogTags() local 103 localtime_r(&now, &tm); in RebuildFileEventLogTags() 105 strftime(timebuf, sizeof(timebuf), "%Y-%m-%d %H:%M:%S", &tm); in RebuildFileEventLogTags()
|
/system/core/libutils/include/utils/ |
D | ProcessCallStack.h | 74 struct tm mTimeUpdated;
|
/system/update_engine/ |
D | logging_android.cc | 170 struct tm local_time; in GetPrefix() 172 struct tm* tm_time = &local_time; in GetPrefix()
|
/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 | 200 timespec tm; in curr_time_ms() local 201 clock_gettime(CLOCK_MONOTONIC, &tm); in curr_time_ms() 202 return tm.tv_sec * MSEC_PER_SEC + (tm.tv_nsec / NSEC_PER_MSEC); in curr_time_ms()
|
D | healthd_draw.cpp | 172 tm* time_info = localtime(&rawtime); in draw_clock()
|
/system/core/debuggerd/libdebuggerd/ |
D | tombstone.cpp | 502 tm tm; in dump_log_file() local 503 localtime_r(&sec, &tm); in dump_log_file() 504 strftime(timeBuf, sizeof(timeBuf), "%m-%d %H:%M:%S", &tm); in dump_log_file()
|
/system/update_engine/common/ |
D | utils.cc | 974 struct tm tm; in GetTimeAsString() local 975 CHECK_EQ(localtime_r(&utime, &tm), &tm); in GetTimeAsString() 977 CHECK_EQ(strftime(str, sizeof(str), "%Y%m%d-%H%M%S", &tm), 15u); in GetTimeAsString()
|
/system/core/adb/ |
D | adb_trace.cpp | 63 struct tm now; in get_log_file_name()
|
/system/libbase/ |
D | logging_splitters.h | 148 static std::string StderrOutputGenerator(const struct tm& now, int pid, uint64_t tid, in StderrOutputGenerator()
|
/system/memory/lmkd/ |
D | lmkd.cpp | 1844 static void record_wakeup_time(struct timespec *tm, enum wakeup_reason reason, in record_wakeup_time() argument 1847 wi->wakeup_tm = *tm; in record_wakeup_time() 1849 wi->last_event_tm = *tm; in record_wakeup_time() 1859 struct wakeup_info *wi, struct timespec *tm) { in killinfo_log() argument 1874 android_log_write_int32(ctx, (int32_t)get_time_diff_ms(&wi->last_event_tm, tm)); in killinfo_log() 1875 android_log_write_int32(ctx, (int32_t)get_time_diff_ms(&wi->prev_wakeup_tm, tm)); in killinfo_log() 2046 struct timespec *tm) { in kill_one_process() argument 2098 last_kill_tm = *tm; in kill_one_process() 2102 killinfo_log(procp, min_oom_score, tasksize, kill_reason, mi, wi, tm); in kill_one_process() 2132 union meminfo *mi, struct wakeup_info *wi, struct timespec *tm) { in find_and_kill_process() argument [all …]
|
/system/bt/btif/include/ |
D | btif_bqr.h | 295 std::tm tm_timestamp_ = {};
|
/system/core/init/ |
D | bootchart.cpp | 70 struct tm now = *localtime(&now_t); in log_header()
|
/system/core/fs_mgr/libsnapshot/ |
D | utility.cpp | 164 struct tm now; in operator <<()
|
/system/libziparchive/include/ziparchive/ |
D | zip_archive.h | 57 struct tm GetModificationTime() const;
|