/system/core/liblog/ |
H A D | logd_writer.c | 48 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, 127 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, argument 177 header.realtime.tv_sec = ts->tv_sec; 178 header.realtime.tv_nsec = ts->tv_nsec;
|
H A D | stderr_write.c | 48 static int stderrWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, 150 static int stderrWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, argument 170 log_msg.entry.sec = ts->tv_sec; 171 log_msg.entry.nsec = ts->tv_nsec;
|
H A D | logger_write.c | 247 struct timespec ts; local 258 clock_gettime(android_log_clockid(), &ts); local 347 /* simulate clock_gettime(CLOCK_REALTIME, &ts); */ 351 ts.tv_sec = tv.tv_sec; 352 ts.tv_nsec = tv.tv_usec * 1000; 361 retval = (*node->write)(log_id, &ts, vec, nr); 370 (void)(*node->write)(log_id, &ts, vec, nr);
|
H A D | local_logger.c | 45 static int writeToLocalWrite(log_id_t logId, struct timespec* ts, 289 static int writeToLocalWrite(log_id_t logId, struct timespec* ts, argument 311 element->timestamp.tv_sec = ts->tv_sec; 312 element->timestamp.tv_nsec = ts->tv_nsec;
|
H A D | logger.h | 50 int (*write)(log_id_t logId, struct timespec* ts, struct iovec* vec,
|
/system/core/storaged/ |
H A D | storaged_utils.cpp | 46 struct timespec ts; local 49 int ret = clock_gettime(CLOCK_MONOTONIC, &ts); 68 stats->end_time = (uint64_t)ts.tv_sec * SEC_TO_MSEC + 69 ts.tv_nsec / (MSEC_TO_USEC * USEC_TO_NSEC);
|
/system/media/audio_utils/ |
H A D | echo_reference.c | 333 struct timespec ts = {0, 0}; local 335 clock_gettime(CLOCK_REALTIME, &ts); 337 ts.tv_sec += timeoutMs/1000; 338 ts.tv_nsec += (timeoutMs%1000) * 1000000; 339 if (ts.tv_nsec >= 1000000000) { 340 ts.tv_nsec -= 1000000000; 341 ts.tv_sec += 1; 344 pthread_cond_timedwait(&er->cond, &er->lock, &ts);
|
/system/bt/osi/src/ |
H A D | wakelock.cc | 228 struct timespec ts; local 229 if (clock_gettime(CLOCK_ID, &ts) == -1) { 235 return (ts.tv_sec * 1000LL) + (ts.tv_nsec / 1000000LL);
|
H A D | alarm.cc | 362 struct timespec ts; local 363 if (clock_gettime(CLOCK_ID, &ts) == -1) { 369 return (ts.tv_sec * 1000LL) + (ts.tv_nsec / 1000000LL);
|
/system/core/init/ |
H A D | util.cpp | 203 timespec ts; local 204 clock_gettime(CLOCK_BOOTTIME, &ts); 205 return boot_clock::time_point(std::chrono::seconds(ts.tv_sec) + 206 std::chrono::nanoseconds(ts.tv_nsec));
|
/system/core/libnetutils/ |
H A D | dhcpclient.c | 53 struct timespec ts; local 55 if (clock_gettime(CLOCK_MONOTONIC, &ts)) { 58 return (((msecs_t) ts.tv_sec) * ((msecs_t) 1000)) + 59 (((msecs_t) ts.tv_nsec) / ((msecs_t) 1000000));
|
/system/core/logcat/tests/ |
H A D | logcat_test.cpp | 135 log_time ts(CLOCK_MONOTONIC); 136 if (__android_log_btwrite(0, EVENT_TYPE_LONG, &ts, sizeof(ts)) >= 0) { 255 fprintf(stderr, "ts=\"%s\"\n", buffer + 2); 450 log_time ts(CLOCK_MONOTONIC); 452 ASSERT_LT(0, __android_log_btwrite(0, EVENT_TYPE_LONG, &ts, sizeof(ts))); 474 if (ts == tx) { 487 log_time ts(CLOCK_MONOTONIC); 489 ASSERT_LT(0, __android_log_btwrite(0, EVENT_TYPE_LONG, &ts, sizeo [all...] |
/system/update_engine/common/ |
H A D | utils_unittest.cc | 294 struct timespec ts; local 297 ts = (struct timespec) {.tv_sec = 0, .tv_nsec = 0}; 298 EXPECT_EQ(base::Time::UnixEpoch(), utils::TimeFromStructTimespec(&ts)); 301 ts = (struct timespec) {.tv_sec = 1000 * 1000 * 1000, 307 utils::TimeFromStructTimespec(&ts));
|
H A D | utils.h | 49 base::Time TimeFromStructTimespec(struct timespec *ts);
|
H A D | utils.cc | 927 Time TimeFromStructTimespec(struct timespec *ts) { argument 928 int64_t us = static_cast<int64_t>(ts->tv_sec) * Time::kMicrosecondsPerSecond + 929 static_cast<int64_t>(ts->tv_nsec) / Time::kNanosecondsPerMicrosecond;
|
/system/connectivity/wifilogd/tests/ |
H A D | os_unittest.cpp | 31 inline void PrintTo(const timespec& ts, ::std::ostream* os) { argument 32 *os << "[secs:" << ts.tv_sec << " " 33 << "nsecs:" << ts.tv_nsec << "]";
|
/system/core/logd/ |
H A D | LogTags.cpp | 552 struct timespec ts; local 553 clock_gettime(android_log_clockid(), &ts); local 558 .realtime.tv_sec = (uint32_t)ts.tv_sec, 559 .realtime.tv_nsec = (uint32_t)ts.tv_nsec,
|
/system/core/logd/tests/ |
H A D | logd_test.cpp | 885 log_time ts(CLOCK_MONOTONIC); 898 0, __android_log_btwrite(0, EVENT_TYPE_LONG, &ts, sizeof(ts))); 947 if (ts == tx) {
|
/system/core/fs_mgr/ |
H A D | fs_mgr.cpp | 96 struct timespec ts; local 99 ret = clock_gettime(CLOCK_MONOTONIC, &ts); 105 return ts.tv_sec;
|
/system/bt/btif/src/ |
H A D | btif_dm.cc | 3326 uint64_t ts = local 3329 0, ts, cod, device_type);
|