/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/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 | ziptool.cpp | 257 tm t = entry.GetModificationTime(); in ListOne() 320 tm t = entry.GetModificationTime(); in InfoOne()
|
/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/core/debuggerd/libdebuggerd/ |
D | backtrace.cpp | 46 struct tm tm; in dump_process_header() local 47 localtime_r(&t, &tm); in dump_process_header() 49 strftime(timestr, sizeof(timestr), "%F %T", &tm); in dump_process_header()
|
D | tombstone.cpp | 82 struct tm tm; in dump_timestamp() local 83 localtime_r(&time, &tm); in dump_timestamp() 86 strftime(buf, sizeof(buf), "%F %T%z", &tm); in dump_timestamp() 500 struct tm tmBuf; in dump_log_file() 501 struct tm* ptm; in dump_log_file()
|
/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/logd/ |
D | LogKlog.cpp | 279 struct tm tm; in calculateCorrection() local 280 memset(&tm, 0, sizeof(tm)); in calculateCorrection() 281 tm.tm_isdst = -1; in calculateCorrection() 282 localtime_r(&now, &tm); in calculateCorrection() 283 if ((tm.tm_gmtoff < 0) && ((-tm.tm_gmtoff) > (long)real.tv_sec)) { in calculateCorrection() 286 real.tv_sec += tm.tm_gmtoff; in calculateCorrection()
|
D | LogTags.cpp | 98 struct tm tm; in RebuildFileEventLogTags() local 99 localtime_r(&now, &tm); in RebuildFileEventLogTags() 102 strftime(timebuf, sizeof(timebuf), "%Y-%m-%d %H:%M:%S", &tm); in RebuildFileEventLogTags()
|
/system/core/liblog/ |
D | log_time.cpp | 40 struct tm* ptm; in strptime() 42 struct tm tmBuf; in strptime()
|
D | logprint.cpp | 1224 struct tm tm; in convertMonotonic() local 1280 cp = strptime(e, "%Y-%m-%d %H:%M:%S.", &tm); in convertMonotonic() 1289 time.tv_sec = mktime(&tm); in convertMonotonic() 1434 struct tm tmBuf; in android_log_formatLogLine() 1436 struct tm* ptm; in android_log_formatLogLine()
|
/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/adb/ |
D | adb_trace.cpp | 63 struct tm now; in get_log_file_name()
|
/system/core/libziparchive/include/ziparchive/ |
D | zip_archive.h | 56 struct tm GetModificationTime() const;
|
/system/update_engine/common/ |
D | utils.cc | 1079 struct tm tm; in GetTimeAsString() local 1080 CHECK_EQ(localtime_r(&utime, &tm), &tm); in GetTimeAsString() 1082 CHECK_EQ(strftime(str, sizeof(str), "%Y%m%d-%H%M%S", &tm), 15u); in GetTimeAsString()
|
/system/core/base/ |
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 | 1857 static void record_wakeup_time(struct timespec *tm, enum wakeup_reason reason, in record_wakeup_time() argument 1860 wi->wakeup_tm = *tm; in record_wakeup_time() 1862 wi->last_event_tm = *tm; in record_wakeup_time() 1872 struct wakeup_info *wi, struct timespec *tm) { in killinfo_log() argument 1887 android_log_write_int32(ctx, (int32_t)get_time_diff_ms(&wi->last_event_tm, tm)); in killinfo_log() 1888 android_log_write_int32(ctx, (int32_t)get_time_diff_ms(&wi->prev_wakeup_tm, tm)); in killinfo_log() 2059 struct timespec *tm) { in kill_one_process() argument 2112 last_kill_tm = *tm; in kill_one_process() 2116 killinfo_log(procp, min_oom_score, tasksize, kill_reason, mi, wi, tm); in kill_one_process() 2155 struct wakeup_info *wi, struct timespec *tm) { in find_and_kill_process() argument [all …]
|
/system/bt/btif/include/ |
D | btif_bqr.h | 296 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 <<()
|