Home
last modified time | relevance | path

Searched refs:current_buffer_index (Results 1 – 2 of 2) sorted by relevance

/system/bt/common/
Dstop_watch_legacy.cc34 static int current_buffer_index; variable
43 stopwatch_logs[current_buffer_index].end_timestamp - in RecordLog()
44 stopwatch_logs[current_buffer_index].start_timestamp) in RecordLog()
48 if (current_buffer_index >= LOG_BUFFER_LENGTH) { in RecordLog()
49 current_buffer_index = 0; in RecordLog()
51 stopwatch_logs[current_buffer_index] = std::move(log); in RecordLog()
52 current_buffer_index++; in RecordLog()
61 if (current_buffer_index >= LOG_BUFFER_LENGTH) { in DumpStopWatchLog()
62 current_buffer_index = 0; in DumpStopWatchLog()
64 if (stopwatch_logs[current_buffer_index].message.empty()) { in DumpStopWatchLog()
[all …]
/system/bt/gd/common/
Dstop_watch.cc34 static int current_buffer_index; variable
43 stopwatch_logs[current_buffer_index].end_timestamp - in RecordLog()
44 stopwatch_logs[current_buffer_index].start_timestamp) in RecordLog()
48 if (current_buffer_index >= LOG_BUFFER_LENGTH) { in RecordLog()
49 current_buffer_index = 0; in RecordLog()
51 stopwatch_logs[current_buffer_index] = std::move(log); in RecordLog()
52 current_buffer_index++; in RecordLog()
61 if (current_buffer_index >= LOG_BUFFER_LENGTH) { in DumpStopWatchLog()
62 current_buffer_index = 0; in DumpStopWatchLog()
64 if (stopwatch_logs[current_buffer_index].message.empty()) { in DumpStopWatchLog()
[all …]