Searched refs:kNanosPerSecond (Results 1 – 9 of 9) sorted by relevance
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/ |
D | time_util.cc | 48 static const int kNanosPerSecond = 1000000000; variable 64 if (nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { in CreateNormalized() 65 seconds += nanos / kNanosPerSecond; in CreateNormalized() 66 nanos = nanos % kNanosPerSecond; in CreateNormalized() 71 nanos += kNanosPerSecond; in CreateNormalized() 84 if (nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { in CreateNormalized() 85 seconds += nanos / kNanosPerSecond; in CreateNormalized() 86 nanos = nanos % kNanosPerSecond; in CreateNormalized() 91 nanos -= kNanosPerSecond; in CreateNormalized() 94 nanos += kNanosPerSecond; in CreateNormalized() [all …]
|
/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 …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/ |
D | constants.h | 65 const int32 kNanosPerSecond = 1000000000; variable
|
D | protostream_objectwriter.cc | 125 if (i_nanos > kNanosPerSecond || i_nanos < 0) { in GetNanosFromStringPiece() 954 nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { in RenderDuration()
|
D | protostream_objectsource.cc | 328 if (nanos < 0 || nanos >= kNanosPerSecond) { in RenderTimestamp() 352 if (nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { in RenderDuration() 1105 StringPrintf(format, static_cast<double>(nanos) / kNanosPerSecond); in FormatNanos()
|