Searched defs:ts (Results 1 - 25 of 44) sorted by path

12

/system/bt/btif/src/
H A Dbtif_debug_conn.cc30 uint64_t ts; member in struct:conn_event_t
39 static char* format_ts(const uint64_t ts, char* buffer, int len) { argument
40 const uint64_t ms = ts / 1000;
72 evt->ts = time_gettimeofday_us();
85 if (connection_events[dump_event].ts == 0) dprintf(fd, " None\n");
87 while (connection_events[dump_event].ts) {
89 dprintf(fd, " %s %s %s", format_ts(evt->ts, ts_buffer, sizeof(ts_buffer)),
H A Dbtif_dm.cc3237 uint64_t ts = local
3240 0, ts, cod, device_type);
H A Dbtif_sock_thread.cc95 static thread_slot_t ts[MAX_THREAD]; variable
136 APPL_TRACE_DEBUG("ts[%d].used:%d", i, ts[i].used);
137 if (!ts[i].used) {
138 ts[i].used = 1;
148 ts[h].used = 0;
159 ts[h].cmd_fdr = ts[h].cmd_fdw = -1;
160 ts[h].used = 0;
161 ts[
[all...]
/system/bt/osi/src/
H A Dalarm.cc393 struct timespec ts; local
394 if (clock_gettime(CLOCK_ID, &ts) == -1) {
400 return (ts.tv_sec * 1000LL) + (ts.tv_nsec / 1000000LL);
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);
/system/chre/platform/linux/
H A Dsystem_timer.cc32 void NanosecondsToTimespec(uint64_t ns, struct timespec *ts) { argument
33 ts->tv_sec = ns / kOneSecondInNanoseconds;
34 ts->tv_nsec = ns % kOneSecondInNanoseconds;
/system/connectivity/wificond/tests/
H A Dshell_utils.cpp51 struct timespec ts; local
52 clock_gettime(CLOCK_MONOTONIC, &ts);
53 return (int64_t{ts.tv_sec} * kMillisecondsPerSecond) +
54 (ts.tv_nsec / kNanosecondsPerMillisecond);
/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/base/
H A Dchrono_utils.cpp26 timespec ts; local
27 clock_gettime(CLOCK_BOOTTIME, &ts);
28 return boot_clock::time_point(std::chrono::seconds(ts.tv_sec) +
29 std::chrono::nanoseconds(ts.tv_nsec));
H A Dproperties.cpp108 static void DurationToTimeSpec(timespec& ts, const std::chrono::milliseconds d) { argument
111 ts.tv_sec = std::min<std::chrono::seconds::rep>(s.count(), std::numeric_limits<time_t>::max());
112 ts.tv_nsec = ns.count();
118 static void UpdateTimeSpec(timespec& ts, std::chrono::milliseconds relative_timeout, argument
123 ts = { 0, 0 };
126 DurationToTimeSpec(ts, remaining_timeout);
143 timespec ts; local
144 UpdateTimeSpec(ts, relative_timeout, start_time);
145 if (!__system_property_wait(nullptr, global_serial, &global_serial, &ts)) return nullptr;
160 timespec ts; local
[all...]
/system/core/include/utils/
H A DCondition.h121 struct timespec ts; local
123 clock_gettime(CLOCK_MONOTONIC, &ts);
128 ts.tv_sec = t.tv_sec;
129 ts.tv_nsec = t.tv_usec*1000;
135 ts.tv_nsec += static_cast<long>(reltime%1000000000);
136 if (reltime_sec < INT64_MAX && ts.tv_nsec >= 1000000000) {
137 ts.tv_nsec -= 1000000000;
141 int64_t time_sec = ts.tv_sec;
148 ts.tv_sec = (time_sec > LONG_MAX) ? LONG_MAX : static_cast<long>(time_sec);
150 return -pthread_cond_timedwait(&mCond, &mutex.mMutex, &ts);
[all...]
H A DMutex.h194 const struct timespec ts = { local
198 return -pthread_mutex_timedlock(&mMutex, &ts);
/system/core/libbacktrace/
H A DThreadEntry.cpp100 timespec ts; local
101 clock_gettime(CLOCK_MONOTONIC, &ts);
102 ts.tv_sec += 5;
107 int ret = pthread_cond_timedwait(&wait_cond_, &wait_mutex_, &ts);
/system/core/libcutils/
H A Dsocket_network_client_unix.cpp82 struct timeval ts; local
83 ts.tv_sec = timeout;
84 ts.tv_usec = 0;
85 if ((rc = select(s + 1, &r_set, &w_set, NULL, (timeout != 0) ? &ts : NULL)) == -1) {
H A Dtrace-container.cpp118 struct timespec ts; local
119 clock_gettime(clk_id, &ts);
120 return ts.tv_sec * 1000000 + ts.tv_nsec / 1000;
129 uint64_t ts = gettime(CLOCK_MONOTONIC); \
134 pid, tid, ts, tts, name, value); \
143 pid, tid, ts, tts, name_len, name, value); \
/system/core/liblog/
H A Dlocal_logger.c45 static int writeToLocalWrite(log_id_t logId, struct timespec* ts,
290 static int writeToLocalWrite(log_id_t logId, struct timespec* ts, argument
312 element->timestamp.tv_sec = ts->tv_sec;
313 element->timestamp.tv_nsec = ts->tv_nsec;
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 Dlogger_write.c247 struct timespec ts; local
259 clock_gettime(android_log_clockid(), &ts); local
354 /* simulate clock_gettime(CLOCK_REALTIME, &ts); */
358 ts.tv_sec = tv.tv_sec;
359 ts.tv_nsec = tv.tv_usec * 1000;
368 retval = (*node->write)(log_id, &ts, vec, nr);
377 (void)(*node->write)(log_id, &ts, vec, nr);
H A Dpmsg_writer.c40 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec,
99 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, argument
149 header.realtime.tv_sec = ts->tv_sec;
150 header.realtime.tv_nsec = ts->tv_nsec;
215 struct timespec ts; local
226 clock_gettime(android_log_clockid(), &ts); local
252 for (ts.tv_nsec = 0, length = len; length;
253 ts.tv_nsec += ANDROID_LOG_PMSG_FILE_SEQUENCE) {
257 if ((ts.tv_nsec / ANDROID_LOG_PMSG_FILE_SEQUENCE) >=
288 ret = pmsgWrite(logId, &ts, ve
[all...]
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;
/system/core/liblog/tests/
H A Dliblog_benchmark.cpp200 struct timespec ts; local
201 clock_gettime(android_log_clockid(), &ts); local
212 header.realtime.tv_sec = ts.tv_sec;
213 header.realtime.tv_nsec = ts.tv_nsec;
276 struct timespec ts; local
277 clock_gettime(android_log_clockid(), &ts); local
299 buffer->header.realtime.tv_sec = ts.tv_sec;
300 buffer->header.realtime.tv_nsec = ts.tv_nsec;
351 struct timespec ts; local
352 clock_gettime(android_log_clockid(), &ts); local
426 struct timespec ts; local
427 clock_gettime(android_log_clockid(), &ts); local
499 struct timespec ts; local
500 clock_gettime(android_log_clockid(), &ts); local
696 log_time ts; local
[all...]
H A Dliblog_test.cpp190 log_time ts(CLOCK_MONOTONIC);
191 EXPECT_LT(0, __android_log_btwrite(0, EVENT_TYPE_LONG, &ts, sizeof(ts)));
255 if (ts == tx) {
346 log_time ts(CLOCK_MONOTONIC);
347 EXPECT_LT(0, __android_log_btwrite(0, EVENT_TYPE_LONG, &ts, sizeof(ts)));
374 if (ts == tx) {
424 log_time ts(android_log_clockid());
426 log_time ts(CLOCK_REALTIM
1733 count_matching_ts(log_time ts) argument
[all...]
H A Dlog_read_test.cpp42 struct timespec ts; local
43 clock_gettime(CLOCK_MONOTONIC, &ts);
44 std::string buf = android::base::StringPrintf("pid=%u ts=%ld.%09ld", pid,
45 ts.tv_sec, ts.tv_nsec);
H A Dlog_time_test.cpp30 struct timespec ts; local
31 clock_gettime(CLOCK_MONOTONIC, &ts);
32 log_time tl(ts);
34 EXPECT_EQ(tl, ts);
35 EXPECT_GE(tl, ts);
36 EXPECT_LE(tl, ts);
/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));

Completed in 235 milliseconds

12