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

12

/system/core/liblog/tests/
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);
H A Dlog_read_test.cpp41 struct timespec ts; local
42 clock_gettime(CLOCK_MONOTONIC, &ts);
43 std::string buf = android::base::StringPrintf("pid=%u ts=%ld.%09ld", pid,
44 ts.tv_sec, ts.tv_nsec);
H A Dliblog_benchmark.cpp143 struct timespec ts; local
144 clock_gettime(android_log_clockid(), &ts); local
155 header.realtime.tv_sec = ts.tv_sec;
156 header.realtime.tv_nsec = ts.tv_nsec;
219 struct timespec ts; local
220 clock_gettime(android_log_clockid(), &ts); local
241 buffer->header.realtime.tv_sec = ts.tv_sec;
242 buffer->header.realtime.tv_nsec = ts.tv_nsec;
293 struct timespec ts; local
294 clock_gettime(android_log_clockid(), &ts); local
367 struct timespec ts; local
368 clock_gettime(android_log_clockid(), &ts); local
439 struct timespec ts; local
440 clock_gettime(android_log_clockid(), &ts); local
611 log_time ts; local
[all...]
H A Dliblog_test.cpp188 log_time ts(CLOCK_MONOTONIC);
189 EXPECT_LT(0, __android_log_btwrite(0, EVENT_TYPE_LONG, &ts, sizeof(ts)));
248 if (ts == tx) {
339 log_time ts(CLOCK_MONOTONIC);
340 EXPECT_LT(0, __android_log_btwrite(0, EVENT_TYPE_LONG, &ts, sizeof(ts)));
367 if (ts == tx) {
417 log_time ts(android_log_clockid());
419 log_time ts(CLOCK_REALTIM
1725 count_matching_ts(log_time ts) argument
[all...]
/system/core/libutils/
H A DSystemClock.cpp60 struct timespec ts; local
61 int err = clock_gettime(CLOCK_BOOTTIME, &ts);
68 return seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec;
/system/bt/btif/src/
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...]
H A Dbtif_debug_conn.cc31 uint64_t ts; member in struct:conn_event_t
40 static char* format_ts(const uint64_t ts, char* buffer, int len) { argument
41 const uint64_t ms = ts / 1000;
73 evt->ts = time_gettimeofday_us();
87 if (connection_events[dump_event].ts == 0) dprintf(fd, " None\n");
89 while (connection_events[dump_event].ts) {
91 dprintf(fd, " %s %s %s", format_ts(evt->ts, ts_buffer, sizeof(ts_buffer)),
/system/media/audio_utils/include/audio_utils/
H A Dclock.h74 audio_utils_time_string_t ts; local
76 audio_utils_ns_to_string(ns, ts.time, sizeof(ts.time));
77 return ts;
82 * \param ts input timespec to convert.
85 static inline int64_t audio_utils_ns_from_timespec(const struct timespec *ts) argument
87 return ts->tv_sec * 1000000000LL + ts->tv_nsec;
/system/core/include/utils/
H A DCondition.h119 struct timespec ts; local
121 clock_gettime(CLOCK_MONOTONIC, &ts);
126 ts.tv_sec = t.tv_sec;
127 ts.tv_nsec = t.tv_usec*1000;
133 ts.tv_nsec += static_cast<long>(reltime%1000000000);
134 if (reltime_sec < INT64_MAX && ts.tv_nsec >= 1000000000) {
135 ts.tv_nsec -= 1000000000;
139 int64_t time_sec = ts.tv_sec;
146 ts.tv_sec = (time_sec > LONG_MAX) ? LONG_MAX : static_cast<long>(time_sec);
148 return -pthread_cond_timedwait(&mCond, &mutex.mMutex, &ts);
[all...]
H A DMutex.h143 const struct timespec ts = { local
147 return -pthread_mutex_timedlock(&mMutex, &ts);
/system/core/libutils/include/utils/
H A DCondition.h119 struct timespec ts; local
121 clock_gettime(CLOCK_MONOTONIC, &ts);
126 ts.tv_sec = t.tv_sec;
127 ts.tv_nsec = t.tv_usec*1000;
133 ts.tv_nsec += static_cast<long>(reltime%1000000000);
134 if (reltime_sec < INT64_MAX && ts.tv_nsec >= 1000000000) {
135 ts.tv_nsec -= 1000000000;
139 int64_t time_sec = ts.tv_sec;
146 ts.tv_sec = (time_sec > LONG_MAX) ? LONG_MAX : static_cast<long>(time_sec);
148 return -pthread_cond_timedwait(&mCond, &mutex.mMutex, &ts);
[all...]
H A DMutex.h143 const struct timespec ts = { local
147 return -pthread_mutex_timedlock(&mMutex, &ts);
/system/core/libutils/tests/
H A DSystemClock_test.cpp47 timespec ts; local
48 ts.tv_sec = 0;
49 ts.tv_nsec = SLEEP_MS * MS_IN_NS;
50 auto nanosleepErr = TEMP_FAILURE_RETRY(nanosleep(&ts, nullptr));
/system/libhwbinder/
H A DBufferedTextOutput.cpp100 ThreadState* ts = (ThreadState*) thread_store_get( &tls ); local
101 if (ts) return ts;
102 ts = new ThreadState;
103 thread_store_set( &tls, ts, threadDestructor );
104 return ts;
266 ThreadState* ts = getThreadState(); local
267 if (ts) {
268 while (ts->states.size() <= (size_t)mIndex) ts
[all...]
/system/connectivity/wifilogd/
H A Draw_os.cpp34 int RawOs::ClockGettime(clockid_t clock_id, struct timespec* ts) const {
35 return clock_gettime(clock_id, ts);
/system/extras/simpleperf/
H A Denvironment.h78 timespec ts; local
80 clock_gettime(CLOCK_MONOTONIC, &ts);
81 return ts.tv_sec * 1000000000ULL + ts.tv_nsec;
/system/core/base/
H A Dproperties.cpp104 static void DurationToTimeSpec(timespec& ts, std::chrono::nanoseconds d) { argument
107 ts.tv_sec = s.count();
108 ts.tv_nsec = ns.count();
113 static void UpdateTimeSpec(timespec& ts, argument
118 ts = { 0, 0 };
120 DurationToTimeSpec(ts, remaining_timeout);
141 timespec ts; local
142 UpdateTimeSpec(ts, absolute_timeout);
143 if (!__system_property_wait(nullptr, global_serial, &global_serial, &ts)) return nullptr;
159 timespec ts; local
[all...]
/system/core/liblog/
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 Dfake_writer.c30 static int fakeWrite(log_id_t log_id, struct timespec* ts, struct iovec* vec,
75 static int fakeWrite(log_id_t log_id, struct timespec* ts __unused,
/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/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.c82 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) {
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/
H A Dperf.h134 struct timespec ts; local
136 clock_gettime(CLOCK_MONOTONIC, &ts);
137 return ts.tv_sec * 1000000000ULL + ts.tv_nsec;
/system/extras/sane_schedstat/
H A Dsane_schedstat.c113 unsigned long long ts; local
122 if (!b || sscanf(b, "timestamp %llu\n", &ts) != 1) {

Completed in 1398 milliseconds

12