/system/extras/tests/icachetest/ |
H A D | icache_main.c | 11 struct timeval now, tm; local 21 gettimeofday(&tm, 0); 22 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); 28 gettimeofday(&tm, 0); 29 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec);
|
/system/core/libziparchive/ |
H A D | zip_writer_test.cc | 146 void ConvertZipTimeToTm(uint32_t& zip_time, struct tm* tm) { argument 147 memset(tm, 0, sizeof(struct tm)); 148 tm->tm_hour = (zip_time >> 11) & 0x1f; 149 tm->tm_min = (zip_time >> 5) & 0x3f; 150 tm->tm_sec = (zip_time & 0x1f) << 1; 152 tm->tm_year = ((zip_time >> 25) & 0x7f) + 80; 153 tm->tm_mon = ((zip_time >> 21) & 0xf) - 1; 154 tm 158 struct tm tm; local 172 struct tm tm = MakeTm(); local 223 struct tm tm = MakeTm(); local [all...] |
H A D | zip_writer.cc | 143 struct tm* ptm; 145 struct tm tm_result;
|
/system/extras/tests/timetest/ |
H A D | rtc_test.cpp | 27 static int hwtime(int flag, int request, struct rtc_time *tm) { argument 63 ret = TEMP_FAILURE_RETRY(ioctl(fd, request, tm)); 72 static int rd_hwtime(struct rtc_time *tm) { argument 73 return hwtime(O_RDONLY, RTC_RD_TIME, tm); 76 static int set_hwtime(struct rtc_time *tm) { argument 77 return hwtime(O_WRONLY, RTC_SET_TIME, tm); 122 struct rtc_time tm = roll; local 123 int __set_hwtime = set_hwtime(&tm); 134 ASSERT_LE(0, rd_hwtime(&tm)); 135 ASSERT_EQ(roll.tm_sec, tm [all...] |
/system/connectivity/shill/net/ |
H A D | shill_time_unittest.cc | 34 struct tm epoch_start_tm;
|
H A D | shill_time.cc | 98 struct tm local_time = {}; 111 string Time::FormatTime(const struct tm& date_time, suseconds_t usec) {
|
H A D | shill_time.h | 78 static std::string FormatTime(const struct tm& date_time, suseconds_t usec);
|
/system/core/libcutils/ |
H A D | debugger.c | 58 struct timeval tm; local 59 tm.tv_sec = timeout_secs; 60 tm.tv_usec = 0; 61 if (setsockopt(sock_fd, SOL_SOCKET, SO_RCVTIMEO, &tm, sizeof(tm)) == -1) { 65 if (setsockopt(sock_fd, SOL_SOCKET, SO_SNDTIMEO, &tm, sizeof(tm)) == -1) {
|
/system/update_engine/ |
H A D | main.cc | 60 struct tm tm; local 61 CHECK_EQ(localtime_r(&utime, &tm), &tm); local 63 CHECK_EQ(strftime(str, sizeof(str), "%Y%m%d-%H%M%S", &tm), 15u);
|
/system/core/crash_reporter/ |
H A D | crash_collector_test.cc | 97 struct tm tm = {0}; local 98 tm.tm_sec = 15; 99 tm.tm_min = 50; 100 tm.tm_hour = 13; 101 tm.tm_mday = 23; 102 tm.tm_mon = 4; 103 tm.tm_year = 110; 104 tm.tm_isdst = -1; 106 collector_.FormatDumpBasename("foo", mktime(&tm), 10 [all...] |
H A D | crash_collector.cc | 136 struct tm tm; local 137 localtime_r(×tamp, &tm); 141 tm.tm_year + 1900, 142 tm.tm_mon + 1, 143 tm.tm_mday, 144 tm.tm_hour, 145 tm.tm_min, 146 tm.tm_sec,
|
/system/core/libutils/ |
H A D | ProcessCallStack.cpp | 105 static String8 getTimeString(struct tm tm) { argument 108 strftime(timestr, sizeof(timestr), "%F %T", &tm); 129 mTimeUpdated = tm(); 151 struct tm tm; local 152 localtime_r(&t, &tm); 154 mTimeUpdated = tm;
|
/system/core/debuggerd/ |
H A D | backtrace.cpp | 55 struct tm tm; local 56 localtime_r(&t, &tm); 58 strftime(timestr, sizeof(timestr), "%F %T", &tm);
|
/system/core/include/utils/ |
H A D | ProcessCallStack.h | 74 struct tm mTimeUpdated;
|
/system/webservd/webservd/ |
H A D | log_manager_unittest.cc | 84 tm time_buf = {}; 99 tm date = {0, 0, 0, 25, 1, 115, 2, 55, 0}; 125 tm date = {0, 0, 0, 25, 1, 115, 2, 55, 0};
|
H A D | log_manager.cc | 101 tm time_buf = {}; 190 tm time_buf = {};
|
/system/core/liblog/ |
H A D | log_time.cpp | 42 struct tm *ptm; 44 struct tm tmBuf;
|
H A D | logprint.c | 1056 struct tm tm; local 1112 cp = strptime(e, "%Y-%m-%d %H:%M:%S.", &tm); 1121 time.tv_sec = mktime(&tm); 1272 struct tm tmBuf; 1274 struct tm* ptm;
|
H A D | fake_log_device.c | 357 struct tm tmBuf; 359 struct tm* ptm;
|
/system/core/logd/ |
H A D | LogKlog.cpp | 289 struct tm tm; local 290 memset(&tm, 0, sizeof(tm)); 291 tm.tm_isdst = -1; 292 localtime_r(&now, &tm); 293 if ((tm.tm_gmtoff < 0) && ((-tm.tm_gmtoff) > (long)real.tv_sec)) { 296 real.tv_sec += tm.tm_gmtoff;
|
/system/bt/btif/src/ |
H A D | btif_debug_conn.c | 43 struct tm *ptm = localtime(&secs);
|
H A D | btif_debug_l2c.c | 64 struct tm *ptm = localtime(&secs);
|
/system/core/toolbox/ |
H A D | newfs_msdos.c | 253 struct tm *tm; local 640 tm = localtime(&now); 689 x = (((u_int)(1 + tm->tm_mon) << 8 | 690 (u_int)tm->tm_mday) + 691 ((u_int)tm->tm_sec << 8 | 693 ((u_int)(1900 + tm->tm_year) + 694 ((u_int)tm->tm_hour << 8 | 695 (u_int)tm->tm_min)); 728 x = (u_int)tm [all...] |
/system/core/adb/ |
H A D | adb_trace.cpp | 52 struct tm now;
|
/system/core/healthd/ |
H A D | healthd_mode_charger.cpp | 195 struct timespec tm; local 196 clock_gettime(CLOCK_MONOTONIC, &tm); 197 return tm.tv_sec * MSEC_PER_SEC + (tm.tv_nsec / NSEC_PER_MSEC); 325 struct tm* time_info = localtime(&rawtime);
|