Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 25 of 46) 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 …]
/system/core/debuggerd/
Dutil.cpp66 tm tm; in get_timestamp() local
67 localtime_r(&ts.tv_sec, &tm); in get_timestamp()
72 n = strftime(s, sz, "%F %H:%M", &tm), s += n, sz -= n; in get_timestamp()
73 n = snprintf(s, sz, ":%02d.%09ld", tm.tm_sec, ts.tv_nsec), s += n, sz -= n; in get_timestamp()
74 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/bt/gd/common/
Dstrings.h119 inline std::string StringFormatTime(const std::string& format, const struct std::tm& tm) { in StringFormatTime() argument
121 os << std::put_time(&tm, format.c_str()); in StringFormatTime()
128 struct tm* (*calendar_to_tm)(const time_t* timep) = localtime) {
131 std::tm tm = *calendar_to_tm(&epoch_time); variable
133 os << std::put_time(&tm, format.c_str()) << StringFormat(".%03u", millis);
Dstrings_test.cc223 struct std::tm tm; in TEST() local
224 gmtime_r(&then, &tm); in TEST()
225 ASSERT_THAT(StringFormatTime(format, tm), StrEq("1973-11-29 21:33:09")); in TEST()
/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.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/logging/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.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/core/libutils/include/utils/
DProcessCallStack.h74 struct tm mTimeUpdated;
/system/update_engine/aosp/
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.cpp209 timespec tm; in curr_time_ms() local
210 clock_gettime(CLOCK_MONOTONIC, &tm); in curr_time_ms()
211 return tm.tv_sec * MSEC_PER_SEC + (tm.tv_nsec / NSEC_PER_MSEC); in curr_time_ms()
/system/core/debuggerd/libdebuggerd/
Dtombstone.cpp511 tm tm; in dump_log_file() local
512 localtime_r(&sec, &tm); in dump_log_file()
513 strftime(timeBuf, sizeof(timeBuf), "%m-%d %H:%M:%S", &tm); in dump_log_file()
Dtombstone_proto.cpp495 tm tm; in dump_log_file() local
496 localtime_r(&sec, &tm); in dump_log_file()
497 strftime(timestamp_secs, sizeof(timestamp_secs), "%m-%d %H:%M:%S", &tm); in dump_log_file()
/system/update_engine/common/
Dutils.cc1002 struct tm tm; in GetTimeAsString() local
1003 CHECK_EQ(localtime_r(&utime, &tm), &tm); in GetTimeAsString()
1005 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/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/memory/lmkd/
Dlmkd.cpp1922 static void record_wakeup_time(struct timespec *tm, enum wakeup_reason reason, in record_wakeup_time() argument
1925 wi->wakeup_tm = *tm; in record_wakeup_time()
1927 wi->last_event_tm = *tm; in record_wakeup_time()
1937 struct wakeup_info *wi, struct timespec *tm) { in killinfo_log() argument
1952 android_log_write_int32(ctx, (int32_t)get_time_diff_ms(&wi->last_event_tm, tm)); in killinfo_log()
1953 android_log_write_int32(ctx, (int32_t)get_time_diff_ms(&wi->prev_wakeup_tm, tm)); in killinfo_log()
2132 union meminfo *mi, struct wakeup_info *wi, struct timespec *tm) { in kill_one_process() argument
2195 last_kill_tm = *tm; in kill_one_process()
2203 killinfo_log(procp, min_oom_score, rss_kb, swap_kb, ki->kill_reason, mi, wi, tm); in kill_one_process()
2211 killinfo_log(procp, min_oom_score, rss_kb, swap_kb, NONE, mi, wi, tm); in kill_one_process()
[all …]
/system/core/fs_mgr/libsnapshot/
Dutility.cpp165 struct tm now; in operator <<()
/system/libziparchive/include/ziparchive/
Dzip_archive.h57 struct tm GetModificationTime() const;

12