Home
last modified time | relevance | path

Searched refs:nsec (Results 1 – 21 of 21) sorted by relevance

/system/chre/platform/slpi/
Dsystem_time_util.cc26 uint64_t nsec = 0; in getNanosecondsFromQTimerTicks() local
31 nsec = (seconds * kOneSecondInNanoseconds); in getNanosecondsFromQTimerTicks()
33 nsec += (ticks * kOneSecondInNanoseconds) / kClockFreq; in getNanosecondsFromQTimerTicks()
34 return nsec; in getNanosecondsFromQTimerTicks()
/system/core/liblog/include_vndk/log/
Dlog_read.h64 int32_t nsec; /* nanoseconds */ member
80 int32_t nsec; /* nanoseconds */ member
97 int32_t nsec; /* nanoseconds */ member
114 uint32_t nsec; /* nanoseconds */ member
150 return (entry.sec == T.entry.sec) && (entry.nsec == T.entry.nsec);
157 ((entry.sec == T.entry.sec) && (entry.nsec < T.entry.nsec));
164 ((entry.sec == T.entry.sec) && (entry.nsec > T.entry.nsec));
169 uint64_t nsec() const { in nsec() function
170 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
/system/core/liblog/include/log/
Dlog_read.h64 int32_t nsec; /* nanoseconds */ member
80 int32_t nsec; /* nanoseconds */ member
97 int32_t nsec; /* nanoseconds */ member
114 uint32_t nsec; /* nanoseconds */ member
150 return (entry.sec == T.entry.sec) && (entry.nsec == T.entry.nsec);
157 ((entry.sec == T.entry.sec) && (entry.nsec < T.entry.nsec));
164 ((entry.sec == T.entry.sec) && (entry.nsec > T.entry.nsec));
169 uint64_t nsec() const { in nsec() function
170 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
Dlog_time.h55 explicit log_time(uint32_t sec, uint32_t nsec = 0)
56 : tv_sec(sec), tv_nsec(nsec) { in tv_sec()
145 uint64_t nsec() const { in nsec() function
/system/core/liblog/
Dpmsg_reader.cpp225 log_msg->entry_v4.nsec = buf.l.realtime.tv_nsec; in pmsgRead()
349 if ((transp.logMsg.entry.nsec % ANDROID_LOG_PMSG_FILE_SEQUENCE) || in __android_log_pmsg_file_read()
350 ((transp.logMsg.entry.nsec / ANDROID_LOG_PMSG_FILE_SEQUENCE) >= in __android_log_pmsg_file_read()
473 if (transp.logMsg.entry.nsec == content->entry.nsec) { in __android_log_pmsg_file_read()
490 if ((node_to_item(node, struct content, node))->entry.nsec < transp.logMsg.entry.nsec) { in __android_log_pmsg_file_read()
534 while (sequence < content->entry.nsec) { in __android_log_pmsg_file_read()
562 sequence = content->entry.nsec + ANDROID_LOG_PMSG_FILE_SEQUENCE; in __android_log_pmsg_file_read()
Dlogprint.cpp501 entry->tv_nsec = buf->nsec; in android_log_processLogBuffer()
1008 entry->tv_nsec = buf->nsec; in android_log_processBinaryLogBuffer()
1538 unsigned long nsec; in android_log_formatLogLine() local
1557 nsec = entry->tv_nsec; in android_log_formatLogLine()
1565 nsec = time.tv_nsec; in android_log_formatLogLine()
1570 nsec = NS_PER_SEC - nsec; in android_log_formatLogLine()
1586 len += snprintf(timeBuf + len, sizeof(timeBuf) - len, ".%09ld", nsec); in android_log_formatLogLine()
1588 len += snprintf(timeBuf + len, sizeof(timeBuf) - len, ".%06ld", nsec / US_PER_NSEC); in android_log_formatLogLine()
1590 len += snprintf(timeBuf + len, sizeof(timeBuf) - len, ".%03ld", nsec / MS_PER_NSEC); in android_log_formatLogLine()
Dlogger_read.cpp399 (oldest->logMsg.entry.nsec > transp->logMsg.entry.nsec)))) { in android_logger_list_read()
Dstderr_write.cpp169 log_msg.entry.nsec = ts->tv_nsec; in stderrWrite()
/system/connectivity/wifilogd/
Dcommand_processor.cpp44 uint32_t NsecToUsec(uint32_t nsec);
120 uint32_t NsecToUsec(uint32_t nsec) { return nsec / 1000; } in NsecToUsec() argument
/system/bt/btif/src/
Dbtif_a2dp_control.cc300 uint32_t nsec = delay_report_stats.timestamp.tv_nsec; in btif_a2dp_recv_ctrl_data() local
301 UIPC_Send(*a2dp_uipc, UIPC_CH_ID_AV_CTRL, 0, (uint8_t*)&nsec, in btif_a2dp_recv_ctrl_data()
302 sizeof(nsec)); in btif_a2dp_recv_ctrl_data()
/system/core/logd/
DLogReader.cpp93 log_time(CLOCK_REALTIME).nsec(); in onDataAvailable()
213 logMask, (int)pid, sequence.nsec(), timeout); in onDataAvailable()
DLogBufferElement.cpp255 entry.nsec = mRealTime.tv_nsec; in flushTo()
DLogKlog.cpp217 signature.nsec()); in LogKlog()
556 if (sig == signature.nsec()) { in log()
DLogBuffer.cpp152 if (elem->getRealTime().nsec() > in identical()
153 (last->getRealTime().nsec() + 60 * NS_PER_SEC)) in identical()
/system/core/liblog/tests/
Dlog_wrap_test.cpp49 log_time start(log_msg.entry.sec, log_msg.entry.nsec); in read_with_wrap()
Dliblog_benchmark.cpp729 uint64_t start = ts.nsec(); in BM_log_latency()
730 uint64_t end = log_msg.nsec(); in BM_log_latency()
1006 snprintf(name, sizeof(name), "a%" PRIu64, now.nsec()); in BM_lookupEventTagNum_logd_new()
/system/core/fs_mgr/tests/
Dadb-remount-test.sh433 adb_logcat -b all -v nsec -d >&2
437 adb_logcat -b all -v nsec -t ${2} >&2
439 adb_logcat -b all -v nsec -d >&2
801 L=`adb_logcat -b all -v nsec -t ${T} 2>&1`
1115 L=`adb_logcat -b all -v nsec -t ${T} 2>&1`
/system/core/logd/tests/
Dlogd_test.cpp273 msg->entry.sec, msg->entry.nsec); in dump_log_msg()
782 log_time msg(msg_timeout.entry.sec, msg_timeout.entry.nsec); in TEST()
785 msg_timeout.entry.nsec, (unsigned)start.tv_sec, in TEST()
925 snprintf(name, sizeof(name), "a%" PRIu64, now.nsec()); in TEST()
/system/core/debuggerd/libdebuggerd/
Dtombstone.cpp564 log_entry.entry.nsec / 1000000, log_entry.entry.pid, log_entry.entry.tid, 'I', in dump_log_file()
597 log_entry.entry.nsec / 1000000, log_entry.entry.pid, log_entry.entry.tid, prioChar, tag, in dump_log_file()
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc773 uint32_t nsec; in a2dp_get_presentation_position_cmd() local
774 if (a2dp_ctrl_receive(common, &nsec, sizeof(nsec)) < 0) { in a2dp_get_presentation_position_cmd()
779 timestamp->tv_nsec = nsec; in a2dp_get_presentation_position_cmd()
/system/netd/resolv/
Dres_send.cpp143 static struct timespec evConsTime(time_t sec, long nsec) { in evConsTime() argument
147 x.tv_nsec = nsec; in evConsTime()