Searched refs:ts (Results 26 - 45 of 45) sorted by relevance

12

/system/core/liblog/
H A Dlogd_writer.c48 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 Dstderr_write.c48 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 Dlogger_write.c247 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 Dlocal_logger.c45 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 Dlogger.h50 int (*write)(log_id_t logId, struct timespec* ts, struct iovec* vec,
/system/core/storaged/
H A Dstoraged_utils.cpp46 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 Decho_reference.c333 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 Dwakelock.cc228 struct timespec ts; local
229 if (clock_gettime(CLOCK_ID, &ts) == -1) {
235 return (ts.tv_sec * 1000LL) + (ts.tv_nsec / 1000000LL);
H A Dalarm.cc362 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 Dutil.cpp203 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 Ddhcpclient.c53 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 Dlogcat_test.cpp135 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 Dutils_unittest.cc294 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 Dutils.h49 base::Time TimeFromStructTimespec(struct timespec *ts);
H A Dutils.cc927 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 Dos_unittest.cpp31 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 DLogTags.cpp552 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 Dlogd_test.cpp885 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 Dfs_mgr.cpp96 struct timespec ts; local
99 ret = clock_gettime(CLOCK_MONOTONIC, &ts);
105 return ts.tv_sec;
/system/bt/btif/src/
H A Dbtif_dm.cc3326 uint64_t ts = local
3329 0, ts, cod, device_type);

Completed in 449 milliseconds

12