Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 25 of 37) 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.cc187 static struct tm MakeTm() { in MakeTm()
188 struct tm tm; in MakeTm() local
189 memset(&tm, 0, sizeof(struct tm)); in MakeTm()
190 tm.tm_year = 2001 - 1900; in MakeTm()
191 tm.tm_mon = 1; in MakeTm()
192 tm.tm_mday = 12; in MakeTm()
193 tm.tm_hour = 18; in MakeTm()
194 tm.tm_min = 30; in MakeTm()
195 tm.tm_sec = 20; in MakeTm()
196 return tm; in MakeTm()
[all …]
Dziptool.cpp308 tm t = entry.GetModificationTime(); in ListOne()
371 tm t = entry.GetModificationTime(); in InfoOne()
Dzip_writer.cc159 struct tm* ptm; in ExtractTimeAndDate()
161 struct tm tm_result; in ExtractTimeAndDate()
/system/extras/simpleperf/
Dcmd_boot_record.cpp178 struct tm tm; in GetDefaultOutputFilename() local
179 if (localtime_r(&t, &tm) != &tm) { in GetDefaultOutputFilename()
182 return android::base::StringPrintf("perf-%04d%02d%02d-%02d-%02d-%02d.data", tm.tm_year + 1900, in GetDefaultOutputFilename()
183 tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); in GetDefaultOutputFilename()
Dprofcollect.cpp101 struct tm now; in FileLogger()
/system/core/debuggerd/
Dutil.cpp67 tm tm; in get_timestamp() local
68 localtime_r(&ts.tv_sec, &tm); in get_timestamp()
73 n = strftime(s, sz, "%F %H:%M", &tm), s += n, sz -= n; in get_timestamp()
74 n = snprintf(s, sz, ":%02d.%09ld", tm.tm_sec, ts.tv_nsec), s += n, sz -= n; in get_timestamp()
75 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.cpp104 struct tm tm; in GetDefaultOutputFilename() local
105 if (localtime_r(&t, &tm) != &tm) { in GetDefaultOutputFilename()
109 asprintf(&buf, "perf-%02d-%02d-%02d-%02d-%02d.data", tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, in GetDefaultOutputFilename()
110 tm.tm_min, tm.tm_sec); in GetDefaultOutputFilename()
/system/logging/liblog/
Dlog_time.cpp36 struct tm* ptm; in strptime()
38 struct tm tmBuf; in strptime()
Dlogprint.cpp1216 struct tm tm; in convertMonotonic() local
1272 cp = strptime(e, "%Y-%m-%d %H:%M:%S.", &tm); in convertMonotonic()
1278 time.tv_sec = mktime(&tm); in convertMonotonic()
1419 struct tm tmBuf; in android_log_formatLogLine()
1421 struct tm* ptm; in android_log_formatLogLine()
/system/core/libutils/include/utils/
DProcessCallStack.h74 struct tm mTimeUpdated;
/system/logging/logd/
DLogKlog.cpp278 struct tm tm = {.tm_isdst = -1}; in calculateCorrection() local
279 localtime_r(&now, &tm); in calculateCorrection()
280 if ((tm.tm_gmtoff < 0) && ((-tm.tm_gmtoff) > (long)real.tv_sec)) { in calculateCorrection()
283 real.tv_sec += tm.tm_gmtoff; in calculateCorrection()
DLogTags.cpp103 struct tm tm; in RebuildFileEventLogTags() local
104 localtime_r(&now, &tm); in RebuildFileEventLogTags()
106 strftime(timebuf, sizeof(timebuf), "%Y-%m-%d %H:%M:%S", &tm); in RebuildFileEventLogTags()
/system/update_engine/aosp/
Dlogging_android.cc172 struct tm local_time; in GetPrefix()
174 struct tm* tm_time = &local_time; in GetPrefix()
/system/core/healthd/
Dhealthd_mode_charger.cpp210 timespec tm; in curr_time_ms() local
211 clock_gettime(CLOCK_MONOTONIC, &tm); in curr_time_ms()
212 return tm.tv_sec * MSEC_PER_SEC + (tm.tv_nsec / NSEC_PER_MSEC); in curr_time_ms()
Dhealthd_draw.cpp191 tm* time_info = localtime(&rawtime); in draw_clock()
/system/core/debuggerd/libdebuggerd/
Dtombstone_proto.cpp523 tm tm; in dump_log_file() local
524 localtime_r(&sec, &tm); in dump_log_file()
525 strftime(timestamp_secs, sizeof(timestamp_secs), "%m-%d %H:%M:%S", &tm); in dump_log_file()
/system/update_engine/common/
Dutils.cc1102 struct tm tm {}; in GetTimeAsString() struct
1103 CHECK_EQ(localtime_r(&utime, &tm), &tm); in GetTimeAsString()
1105 CHECK_EQ(strftime(str, sizeof(str), "%Y%m%d-%H%M%S", &tm), 15u); in GetTimeAsString()
/system/libbase/
Dlogging_splitters.h148 static std::string StderrOutputGenerator(const struct tm& now, int pid, uint64_t tid, in StderrOutputGenerator()
/system/core/init/
Dbootchart.cpp70 struct tm now = *localtime(&now_t); in log_header()
/system/libziparchive/include/ziparchive/
Dzip_archive.h59 struct tm GetModificationTime() const;
/system/memory/lmkd/
Dlmkd.cpp2015 static void record_wakeup_time(struct timespec *tm, enum wakeup_reason reason, in record_wakeup_time() argument
2018 wi->wakeup_tm = *tm; in record_wakeup_time()
2020 wi->last_event_tm = *tm; in record_wakeup_time()
2037 struct wakeup_info *wi, struct timespec *tm, struct psi_data *pd) { in killinfo_log() argument
2054 android_log_write_int32(ctx, (int32_t)get_time_diff_ms(&wi->last_event_tm, tm)); in killinfo_log()
2055 android_log_write_int32(ctx, (int32_t)get_time_diff_ms(&wi->prev_wakeup_tm, tm)); in killinfo_log()
2305 union meminfo *mi, struct wakeup_info *wi, struct timespec *tm, in kill_one_process() argument
2376 last_kill_tm = *tm; in kill_one_process()
2394 killinfo_log(procp, min_oom_score, rss_kb, swap_kb, ki, mi, wi, tm, pd); in kill_one_process()
2422 struct wakeup_info *wi, struct timespec *tm, in find_and_kill_process() argument
[all …]
/system/core/fs_mgr/libsnapshot/
Dutility.cpp202 struct tm now {}; in operator <<()

12