Home
last modified time | relevance | path

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

/third_party/protobuf/src/google/protobuf/util/
Dtime_util.cc51 static const int kNanosPerSecond = 1000000000; variable
65 if (nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { in CreateNormalized()
66 seconds += nanos / kNanosPerSecond; in CreateNormalized()
67 nanos = nanos % kNanosPerSecond; in CreateNormalized()
72 nanos += kNanosPerSecond; in CreateNormalized()
85 if (nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { in CreateNormalized()
86 seconds += nanos / kNanosPerSecond; in CreateNormalized()
87 nanos = nanos % kNanosPerSecond; in CreateNormalized()
92 nanos -= kNanosPerSecond; in CreateNormalized()
95 nanos += kNanosPerSecond; in CreateNormalized()
[all …]
/third_party/skia/third_party/externals/oboe/src/common/
DAudioClock.h35 return (time.tv_sec * kNanosPerSecond) + time.tv_nsec;
48 time.tv_sec = nanoTime / kNanosPerSecond;
49 time.tv_nsec = nanoTime - (time.tv_sec * kNanosPerSecond);
65 time.tv_sec = nanoseconds / kNanosPerSecond;
66 time.tv_nsec = nanoseconds - (time.tv_sec * kNanosPerSecond);
DStabilizedCallback.cpp53 int64_t idealStartTimeNanos = (mFrameCount * kNanosPerSecond) / oboeStream->getSampleRate(); in onAudioReady()
63 int64_t numFramesAsNanos = (numFrames * kNanosPerSecond) / oboeStream->getSampleRate(); in onAudioReady()
DAudioStream.cpp170 int64_t burstInNanos = getFramesPerBurst() * kNanosPerSecond / getSampleRate(); in waitForAvailableFrames()
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/
Dkernel_timeout.h130 static const int64_t kNanosPerSecond = 1000 * 1000 * 1000; in MakeAbsTimespec() local
145 int64_t seconds = (std::min)(n / kNanosPerSecond, in MakeAbsTimespec()
148 abstime.tv_nsec = static_cast<decltype(abstime.tv_nsec)>(n % kNanosPerSecond); in MakeAbsTimespec()
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/
Dget_current_time_posix.inc14 const int64_t kNanosPerSecond = 1000 * 1000 * 1000;
18 return (int64_t{ts.tv_sec} * kNanosPerSecond +
/third_party/skia/third_party/externals/oboe/src/opensles/
DAudioStreamBuffered.cpp106 int64_t nanosPerBuffer = (kNanosPerSecond * mLastBackgroundSize) / getSampleRate(); in predictNextCallbackTime()
173 sleepForNanos = (getFramesPerBurst() * kNanosPerSecond) / getSampleRate(); in transfer()
/third_party/protobuf/src/google/protobuf/util/internal/
Dconstants.h65 const int32 kNanosPerSecond = 1000000000; variable
Dprotostream_objectsource.cc346 if (nanos < 0 || nanos >= kNanosPerSecond) { in RenderTimestamp()
370 if (nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { in RenderDuration()
1147 StringPrintf(format, static_cast<double>(nanos) / kNanosPerSecond); in FormatNanos()
Dprotostream_objectwriter.cc146 if (i_nanos > kNanosPerSecond || i_nanos < 0) { in GetNanosFromStringPiece()
1084 nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { in RenderDuration()
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/
DInputStreamCallbackAnalyzer.cpp56 audioStream->waitForAvailableFrames(mMinimumFramesBeforeRead, oboe::kNanosPerSecond); in onAudioReady()
DNativeAudioContext.cpp433 auto err = oboeStream->waitForAvailableFrames(mMinimumFramesBeforeRead, kNanosPerSecond); in runBlockingIO()
/third_party/skia/third_party/externals/oboe/include/oboe/
DDefinitions.h53 constexpr int64_t kNanosPerSecond = kNanosPerMillisecond * kMillisPerSecond; variable
/third_party/skia/third_party/externals/oboe/samples/hello-oboe/src/main/cpp/
DHelloOboeEngine.cpp59 … int64_t frameTimeDelta = (frameIndexDelta * oboe::kNanosPerSecond) / (mStream->getSampleRate()); in getCurrentOutputLatencyMillis()
/third_party/skia/third_party/externals/oboe/src/aaudio/
DAudioStreamAAudio.cpp640 int64_t frameTimeDelta = (frameIndexDelta * oboe::kNanosPerSecond) / getSampleRate(); in calculateLatencyMillis()