Home
last modified time | relevance | path

Searched refs:nsec (Results 1 – 23 of 23) 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/logging/logd/
DLogBufferTest.cpp64 if (expected.nsec != result.nsec) { in CompareLoggerEntries()
66 StringPrintf("nsec: expected %" PRIu32 " vs %" PRIu32, expected.nsec, result.nsec)); in CompareLoggerEntries()
183 .nsec = 323001, in TEST_P()
199 {{.pid = 1, .tid = 2, .sec = 10000, .nsec = 20001, .lid = LOG_ID_MAIN, .uid = 0}, in TEST_P()
201 {{.pid = 10, .tid = 2, .sec = 10000, .nsec = 20002, .lid = LOG_ID_MAIN, .uid = 0}, in TEST_P()
203 {{.pid = 100, .tid = 2, .sec = 10000, .nsec = 20003, .lid = LOG_ID_KERNEL, .uid = 0}, in TEST_P()
205 {{.pid = 10, .tid = 2, .sec = 10000, .nsec = 20004, .lid = LOG_ID_MAIN, .uid = 0}, in TEST_P()
207 {{.pid = 1, .tid = 2, .sec = 10000, .nsec = 20005, .lid = LOG_ID_RADIO, .uid = 0}, in TEST_P()
209 {{.pid = 2, .tid = 2, .sec = 10000, .nsec = 20006, .lid = LOG_ID_RADIO, .uid = 0}, in TEST_P()
211 {{.pid = 3, .tid = 2, .sec = 10000, .nsec = 20007, .lid = LOG_ID_RADIO, .uid = 0}, in TEST_P()
[all …]
DChattyLogBufferTest.cpp25 .pid = 1, .tid = 1, .sec = sec, .nsec = 1, .lid = LOG_ID_MAIN, .uid = 0}; in TEST_P()
93 .pid = 1, .tid = 1, .sec = sec, .nsec = 1, .lid = LOG_ID_MAIN, .uid = 0}; in TEST_P()
133 .pid = 1, .tid = 1, .sec = sec, .nsec = 1, .lid = LOG_ID_EVENTS, .uid = 0}; in TEST_P()
196 logger_entry entry = {.pid = pid, .tid = 1, .sec = sec, .nsec = 1, .lid = lid, .uid = uid}; in TEST_P()
253 .pid = 1, .tid = 1, .sec = sec, .nsec = 1, .lid = LOG_ID_MAIN, .uid = 0}; in TEST_P()
DSerializedLogEntry.h75 entry.nsec = realtime().tv_nsec; in Flush()
DChattyLogBuffer.cpp61 if (elem.realtime().nsec() > (last.realtime().nsec() + 60 * NS_PER_SEC)) return DIFFERENT; in Identical()
265 uint64_t current = element->realtime().nsec() - (EXPIRE_RATELIMIT * NS_PER_SEC); in clear()
269 current > mapElement->realtime().nsec()) { in clear()
Dlogd_test.cpp261 msg->entry.nsec); in dump_log_msg()
681 log_time msg(msg_timeout.entry.sec, msg_timeout.entry.nsec); in TEST()
684 msg_timeout.entry.nsec, (unsigned)start.tv_sec, in TEST()
827 snprintf(name, sizeof(name), "a%" PRIu64, now.nsec()); in TEST()
DLogBufferTest.h89 log_time(entry.sec, entry.nsec), entry.uid, entry.pid, in LogMessages()
DLogReader.cpp211 (int)pid, start.nsec(), static_cast<int64_t>(deadline.time_since_epoch().count())); in onDataAvailable()
DLogKlog.cpp216 signature.nsec()); in LogKlog()
508 if (sig == signature.nsec()) { in log()
DLogBufferElement.cpp279 entry.nsec = realtime_.tv_nsec; in FlushTo()
/system/logging/liblog/include_vndk/log/
Dlog_read.h45 uint32_t nsec; /* nanoseconds */ member
63 uint64_t nsec() const { in nsec() function
64 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
/system/logging/liblog/include/log/
Dlog_read.h45 uint32_t nsec; /* nanoseconds */ member
63 uint64_t nsec() const { in nsec() function
64 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
Dlog_time.h45 explicit log_time(uint32_t sec, uint32_t nsec = 0)
46 : tv_sec(sec), tv_nsec(nsec) { in tv_sec()
138 uint64_t nsec() const { in nsec() function
/system/logging/liblog/
Dpmsg_reader.cpp118 log_msg->entry.nsec = buf.l.realtime.tv_nsec; in PmsgRead()
231 if (log_msg.entry.nsec % ANDROID_LOG_PMSG_FILE_SEQUENCE || in __android_log_pmsg_file_read()
232 (log_msg.entry.nsec / ANDROID_LOG_PMSG_FILE_SEQUENCE) >= in __android_log_pmsg_file_read()
355 if (log_msg.entry.nsec == content->entry.nsec) { in __android_log_pmsg_file_read()
372 if ((node_to_item(node, struct content, node))->entry.nsec < log_msg.entry.nsec) { in __android_log_pmsg_file_read()
416 while (sequence < content->entry.nsec) { in __android_log_pmsg_file_read()
444 sequence = content->entry.nsec + ANDROID_LOG_PMSG_FILE_SEQUENCE; in __android_log_pmsg_file_read()
Dlogprint.cpp504 entry->tv_nsec = buf->nsec; in android_log_processLogBuffer()
983 entry->tv_nsec = buf->nsec; in android_log_processBinaryLogBuffer()
1445 unsigned long nsec; in android_log_formatLogLine() local
1464 nsec = entry->tv_nsec; in android_log_formatLogLine()
1470 nsec = time.tv_nsec; in android_log_formatLogLine()
1474 nsec = NS_PER_SEC - nsec; in android_log_formatLogLine()
1490 len += snprintf(timeBuf + len, sizeof(timeBuf) - len, ".%09ld", nsec); in android_log_formatLogLine()
1492 len += snprintf(timeBuf + len, sizeof(timeBuf) - len, ".%06ld", nsec / US_PER_NSEC); in android_log_formatLogLine()
1494 len += snprintf(timeBuf + len, sizeof(timeBuf) - len, ".%03ld", nsec / MS_PER_NSEC); in android_log_formatLogLine()
/system/logging/liblog/tests/
Dlog_wrap_test.cpp46 log_time start(log_msg.entry.sec, log_msg.entry.nsec); in read_with_wrap()
Dlogprint_test.cpp111 header->nsec = kNsec; in TEST()
Dliblog_benchmark.cpp696 uint64_t start = ts.nsec(); in BM_log_latency()
697 uint64_t end = log_msg.nsec(); in BM_log_latency()
938 snprintf(name, sizeof(name), "a%" PRIu64, now.nsec()); in BM_lookupEventTagNum_logd_new()
/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/fs_mgr/tests/
Dadb-remount-test.sh611 adb_logcat -b all -v nsec -d
615 adb_logcat -b all -v nsec -t ${2}
617 adb_logcat -b all -v nsec -d
1164 L=`adb_logcat -b all -v nsec -t ${T} 2>&1`
1562 L=`adb_logcat -b all -v nsec -t ${T} 2>&1`
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc772 uint32_t nsec; in a2dp_get_presentation_position_cmd() local
773 if (a2dp_ctrl_receive(common, &nsec, sizeof(nsec)) < 0) { in a2dp_get_presentation_position_cmd()
778 timestamp->tv_nsec = nsec; in a2dp_get_presentation_position_cmd()
/system/core/debuggerd/libdebuggerd/
Dtombstone_proto.cpp499 StringPrintf("%s.%03d", timestamp_secs, log_entry.entry.nsec / 1'000'000); in dump_log_file()
Dtombstone.cpp542 log_entry.entry.nsec / 1000000, log_entry.entry.pid, log_entry.entry.tid, prioChar, tag, in dump_log_file()