Home
last modified time | relevance | path

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

12

/system/extras/tests/timetest/
Drtc_test.cpp29 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/
Dclock.h60 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/
Dzip_writer_test.cc138 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 …]
Dziptool.cpp265 tm t = entry.GetModificationTime(); in ListOne()
328 tm t = entry.GetModificationTime(); in InfoOne()
/system/core/debuggerd/
Dutil.cpp47 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/
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/extras/simpleperf/app_api/cpp/
Dsimpleperf.cpp103 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/
Dlog_time.cpp36 struct tm* ptm; in strptime()
38 struct tm tmBuf; in strptime()
Dlogprint.cpp1225 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/
DLogKlog.cpp278 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()
DLogTags.cpp102 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/
DProcessCallStack.h74 struct tm mTimeUpdated;
/system/update_engine/
Dlogging_android.cc170 struct tm local_time; in GetPrefix()
172 struct tm* tm_time = &local_time; in GetPrefix()
/system/bt/btif/src/
Dbtif_debug_conn.cc42 struct tm* ptm = localtime(&secs); in format_ts()
/system/core/healthd/
Dhealthd_mode_charger.cpp200 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()
Dhealthd_draw.cpp172 tm* time_info = localtime(&rawtime); in draw_clock()
/system/core/debuggerd/libdebuggerd/
Dtombstone.cpp502 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/
Dutils.cc974 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/
Dadb_trace.cpp63 struct tm now; in get_log_file_name()
/system/libbase/
Dlogging_splitters.h148 static std::string StderrOutputGenerator(const struct tm& now, int pid, uint64_t tid, in StderrOutputGenerator()
/system/memory/lmkd/
Dlmkd.cpp1844 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/
Dbtif_bqr.h295 std::tm tm_timestamp_ = {};
/system/core/init/
Dbootchart.cpp70 struct tm now = *localtime(&now_t); in log_header()
/system/core/fs_mgr/libsnapshot/
Dutility.cpp164 struct tm now; in operator <<()
/system/libziparchive/include/ziparchive/
Dzip_archive.h57 struct tm GetModificationTime() const;

12