Home
last modified time | relevance | path

Searched refs:kNanosPerSecond (Results 1 – 5 of 5) sorted by relevance

/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dclock_ns.h10 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/
Dtest_session_id.cpp26 constexpr int64_t kNanosPerSecond = 1000000000; variable
56 AAudioStream_write(aaudioStream1, buffer.get(), kNumFrames, kNanosPerSecond)); in checkSessionIdNone()
110 buffer.get(), kNumFrames, kNanosPerSecond)); in checkSessionIdAllocate()
113 buffer.get(), kNumFrames, kNanosPerSecond)); in checkSessionIdAllocate()
139 buffer.get(), kNumFrames, kNanosPerSecond)); in checkSessionIdAllocate()
142 buffer.get(), kNumFrames, kNanosPerSecond)); in checkSessionIdAllocate()
Dtest_attributes.cpp30 constexpr int64_t kNanosPerSecond = 1000000000; variable
113 AAudioStream_read(aaudioStream, buffer.get(), kNumFrames, kNanosPerSecond)); in checkAttributes()
116 AAudioStream_write(aaudioStream, buffer.get(), kNumFrames, kNanosPerSecond)); in checkAttributes()
/frameworks/base/core/jni/
Dandroid_hardware_display_DisplayManagerGlobal.cpp35 const constexpr int64_t kNanosPerSecond = 1000 * 1000 * 1000; in android_hardware_display_DisplayManagerGlobal_signalNativeCallbacks() local
36 const nsecs_t vsyncPeriod = kNanosPerSecond / refreshRate; in android_hardware_display_DisplayManagerGlobal_signalNativeCallbacks()
/frameworks/native/libs/vr/libpdx_default_transport/
Dpdx_benchmarks.cpp69 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 …]