Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 24 of 24) sorted by relevance

/system/bt/btif/src/
Dbtif_sock_thread.c103 static thread_slot_t ts[MAX_THREAD]; variable
202 APPL_TRACE_DEBUG("ts[%d].used:%d", i, ts[i].used); in alloc_thread_slot()
203 if(!ts[i].used) in alloc_thread_slot()
205 ts[i].used = 1; in alloc_thread_slot()
217 ts[h].used = 0; in free_thread_slot()
231 ts[h].cmd_fdr = ts[h].cmd_fdw = -1; in btsock_thread_init()
232 ts[h].used = 0; in btsock_thread_init()
233 ts[h].thread_id = -1; in btsock_thread_init()
234 ts[h].poll_count = 0; in btsock_thread_init()
235 ts[h].callback = NULL; in btsock_thread_init()
[all …]
Dbtif_debug_conn.c31 uint64_t ts; member
40 static char *format_ts(const uint64_t ts, char *buffer, int len) { in format_ts() argument
41 const uint64_t ms = ts / 1000; in format_ts()
72 evt->ts = btif_debug_ts(); in btif_debug_conn_state()
85 if (connection_events[dump_event].ts == 0) in btif_debug_conn_dump()
88 while (connection_events[dump_event].ts) { in btif_debug_conn_dump()
91 format_ts(evt->ts, ts_buffer, sizeof(ts_buffer)), in btif_debug_conn_dump()
/system/core/include/utils/
DCondition.h110 struct timespec ts; in waitRelative() local
111 ts.tv_sec = reltime/1000000000; in waitRelative()
112 ts.tv_nsec = reltime%1000000000; in waitRelative()
113 return -pthread_cond_timedwait_relative_np(&mCond, &mutex.mMutex, &ts); in waitRelative()
115 struct timespec ts; in waitRelative()
117 clock_gettime(CLOCK_REALTIME, &ts); in waitRelative()
122 ts.tv_sec = t.tv_sec; in waitRelative()
123 ts.tv_nsec= t.tv_usec*1000; in waitRelative()
125 ts.tv_sec += reltime/1000000000; in waitRelative()
126 ts.tv_nsec+= reltime%1000000000; in waitRelative()
[all …]
DMutex.h133 const struct timespec ts = { in timedLock() local
137 return -pthread_mutex_timedlock(&mMutex, &ts); in timedLock()
/system/core/liblog/tests/
Dlibc_test.cpp44 struct timespec ts; in TEST() local
45 clock_gettime(CLOCK_MONOTONIC, &ts); in TEST()
46 int value = ts.tv_nsec; in TEST()
105 struct timespec ts; in TEST() local
106 clock_gettime(CLOCK_MONOTONIC, &ts); in TEST()
108 __libc_fatal_no_abort("%u.%09u", (unsigned)ts.tv_sec, (unsigned)ts.tv_nsec); in TEST()
109 snprintf(b, sizeof(b),"%u.%09u", (unsigned)ts.tv_sec, (unsigned)ts.tv_nsec); in TEST()
Dliblog_benchmark.cpp144 log_time ts; in BM_log_latency() local
146 ts = log_time(CLOCK_REALTIME), in BM_log_latency()
147 android_btWriteLog(0, EVENT_TYPE_LONG, &ts, sizeof(ts)))); in BM_log_latency()
169 if (ts != tx) { in BM_log_latency()
177 uint64_t start = ts.nsec(); in BM_log_latency()
224 log_time ts(CLOCK_REALTIME); in BM_log_delay() local
227 android_btWriteLog(0, EVENT_TYPE_LONG, &ts, sizeof(ts))); in BM_log_delay()
249 if (ts != tx) { in BM_log_delay()
Dliblog_test.cpp129 log_time ts(CLOCK_MONOTONIC); in TEST() local
131 ASSERT_LT(0, __android_log_btwrite(0, EVENT_TYPE_LONG, &ts, sizeof(ts))); in TEST()
156 if (ts == tx) { in TEST()
/system/core/libutils/
DSystemClock.cpp112 struct timespec ts; in elapsedRealtimeNano() local
130 ANDROID_ALARM_GET_TIME(ANDROID_ALARM_ELAPSED_REALTIME), &ts); in elapsedRealtimeNano()
133 timestamp = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec; in elapsedRealtimeNano()
139 result = clock_gettime(CLOCK_BOOTTIME, &ts); in elapsedRealtimeNano()
141 timestamp = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec; in elapsedRealtimeNano()
/system/extras/tests/bionic/libc/common/
Dtest_pthread_rwlock.c75 struct timespec ts[1]; in time_now() local
77 clock_gettime(CLOCK_MONOTONIC, ts); in time_now()
78 return (double)ts->tv_sec + ts->tv_nsec/1e9; in time_now()
84 struct timespec ts; in time_sleep() local
87 ts.tv_sec = (time_t)delay; in time_sleep()
88 ts.tv_nsec = (long)((delay - ts.tv_sec)*1e9); in time_sleep()
91 ret = nanosleep(&ts, &ts); in time_sleep()
Dtest_pthread_mutex.c76 struct timespec ts[1]; in time_now() local
78 clock_gettime(CLOCK_MONOTONIC, ts); in time_now()
79 return (double)ts->tv_sec + ts->tv_nsec/1e9; in time_now()
85 struct timespec ts; in time_sleep() local
88 ts.tv_sec = (time_t)delay; in time_sleep()
89 ts.tv_nsec = (long)((delay - ts.tv_sec)*1e9); in time_sleep()
92 ret = nanosleep(&ts, &ts); in time_sleep()
/system/core/libcutils/
Dsocket_network_client.c52 struct timeval ts; in socket_network_client_timeout() local
54 ts.tv_sec = timeout; in socket_network_client_timeout()
55 ts.tv_usec = 0; in socket_network_client_timeout()
92 if ((ret = select(s + 1, &rset, &wset, NULL, (timeout) ? &ts : NULL)) < 0) { in socket_network_client_timeout()
/system/core/libbacktrace/
DThreadEntry.cpp100 timespec ts; in Wait() local
101 clock_gettime(CLOCK_MONOTONIC, &ts); in Wait()
102 ts.tv_sec += 5; in Wait()
107 int ret = pthread_cond_timedwait(&wait_cond_, &wait_mutex_, &ts); in Wait()
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/
Dperf.h134 struct timespec ts; in rdclock() local
136 clock_gettime(CLOCK_MONOTONIC, &ts); in rdclock()
137 return ts.tv_sec * 1000000000ULL + ts.tv_nsec; in rdclock()
/system/extras/tests/bionic/libc/other/
Dtest_zlib.c160 struct timespec ts; in get_time_usec() local
162 if ( clock_gettime( CLOCK_MONOTONIC, &ts ) < 0 ) in get_time_usec()
165 return ts.tv_sec*1e6 + ts.tv_nsec*1e-3; in get_time_usec()
Dtest_jpeg.c223 struct timespec ts; in get_time_usec() local
225 if ( clock_gettime( CLOCK_MONOTONIC, &ts ) < 0 ) in get_time_usec()
228 return ts.tv_sec*1e6 + ts.tv_nsec*1e-3; in get_time_usec()
/system/media/audio_utils/
Decho_reference.c333 struct timespec ts = {0, 0}; in echo_reference_read() local
336 clock_gettime(CLOCK_REALTIME, &ts); in echo_reference_read()
339 ts.tv_sec += timeoutMs/1000; in echo_reference_read()
340 ts.tv_nsec += (timeoutMs%1000) * 1000000; in echo_reference_read()
341 if (ts.tv_nsec >= 1000000000) { in echo_reference_read()
342 ts.tv_nsec -= 1000000000; in echo_reference_read()
343 ts.tv_sec += 1; in echo_reference_read()
347 pthread_cond_timedwait_relative_np(&er->cond, &er->lock, &ts); in echo_reference_read()
349 pthread_cond_timedwait(&er->cond, &er->lock, &ts); in echo_reference_read()
/system/bt/osi/src/
Dalarm.c251 struct timespec ts; in now() local
252 if (clock_gettime(CLOCK_ID, &ts) == -1) { in now()
257 return (ts.tv_sec * 1000LL) + (ts.tv_nsec / 1000000LL); in now()
/system/extras/sane_schedstat/
Dsane_schedstat.c113 unsigned long long ts; in parse() local
122 if (!b || sscanf(b, "timestamp %llu\n", &ts) != 1) { in parse()
/system/core/liblog/
Dlogd_write.c158 struct timespec ts; in __write_to_log_daemon() local
194 clock_gettime(CLOCK_REALTIME, &ts); in __write_to_log_daemon()
202 header.realtime.tv_sec = ts.tv_sec; in __write_to_log_daemon()
203 header.realtime.tv_nsec = ts.tv_nsec; in __write_to_log_daemon()
/system/core/libnetutils/
Ddhcpclient.c55 struct timespec ts; in get_msecs() local
57 if (clock_gettime(CLOCK_MONOTONIC, &ts)) { in get_msecs()
60 return (((msecs_t) ts.tv_sec) * ((msecs_t) 1000)) + in get_msecs()
61 (((msecs_t) ts.tv_nsec) / ((msecs_t) 1000000)); in get_msecs()
/system/core/logcat/tests/
Dlogcat_test.cpp240 log_time ts(CLOCK_MONOTONIC); in TEST() local
242 ASSERT_LT(0, __android_log_btwrite(0, EVENT_TYPE_LONG, &ts, sizeof(ts))); in TEST()
263 if (ts == tx) { in TEST()
/system/core/adb/
Dusb_linux.cpp322 struct timespec ts; in usb_bulk_write() local
351 ts.tv_sec = tv.tv_sec + 5; in usb_bulk_write()
352 ts.tv_nsec = tv.tv_usec * 1000L; in usb_bulk_write()
353 res = pthread_cond_timedwait(&h->notify, &h->lock, &ts); in usb_bulk_write()
/system/core/fs_mgr/
Dfs_mgr.c72 struct timespec ts; in gettime() local
75 ret = clock_gettime(CLOCK_MONOTONIC, &ts); in gettime()
81 return ts.tv_sec; in gettime()
/system/bt/audio_a2dp_hw/
Daudio_a2dp_hw.c239 struct timespec ts; in skt_read() local