Searched refs:kNanosPerSecond (Results 1 – 5 of 5) sorted by relevance
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
D | clock_ns.h | 10 constexpr int64_t kNanosPerSecond = 1000000000ll; variable 28 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; in GetSystemClockNs() 34 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; in GetSystemClockRawNs() 39 return nanoseconds / static_cast<double>(kNanosPerSecond); in NsToSec() 52 t.tv_sec = ns / kNanosPerSecond; in NsToTimespec() 53 remainder = ns % kNanosPerSecond; in NsToTimespec() 56 remainder += kNanosPerSecond; in NsToTimespec()
|
/frameworks/av/media/libaaudio/tests/ |
D | test_session_id.cpp | 25 constexpr int64_t kNanosPerSecond = 1000000000; variable 54 ASSERT_EQ(kNumFrames, AAudioStream_write(aaudioStream1, buffer, kNumFrames, kNanosPerSecond)); in checkSessionIdNone() 109 buffer, kNumFrames, kNanosPerSecond)); in checkSessionIdAllocate() 112 buffer, kNumFrames, kNanosPerSecond)); in checkSessionIdAllocate() 138 buffer, kNumFrames, kNanosPerSecond)); in checkSessionIdAllocate() 141 buffer, kNumFrames, kNanosPerSecond)); in checkSessionIdAllocate()
|
D | test_full_queue.cpp | 26 constexpr int64_t kNanosPerSecond = 1000000000; variable 27 constexpr int64_t kTimeoutNanos = kNanosPerSecond / 2;
|
D | test_attributes.cpp | 25 constexpr int64_t kNanosPerSecond = 1000000000; variable 97 AAudioStream_read(aaudioStream, buffer, kNumFrames, kNanosPerSecond)); in checkAttributes() 100 AAudioStream_write(aaudioStream, buffer, kNumFrames, kNanosPerSecond)); in checkAttributes()
|
/frameworks/native/libs/vr/libpdx_default_transport/ |
D | pdx_benchmarks.cpp | 69 constexpr uint64_t kNanosPerSecond = 1000000000LLU; variable 74 return kNanosPerSecond * t.tv_sec + t.tv_nsec; in GetClockNs() 119 return static_cast<double>(cpu_time_ns_) / kNanosPerSecond; in cpu_time_s() 122 return static_cast<double>(wait_ns_) / kNanosPerSecond; in wait_s() 798 if (iteration_delta_ns > (kNanosPerSecond / 100)) { in ClientCommand() 803 kNanosPerSecond) in ClientCommand() 814 kNanosPerSecond; in ClientCommand() 879 static_cast<double>(total_time_ns) / kNanosPerSecond; in ClientCommand() 887 static_cast<double>(min_sample_time_ns) / kNanosPerSecond; in ClientCommand() 892 static_cast<double>(max_sample_time_ns) / kNanosPerSecond; in ClientCommand() [all …]
|