Home
last modified time | relevance | path

Searched refs:nanoseconds (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/WellKnownTypes/
DDurationPartial.cs65 internal static bool IsNormalized(long seconds, int nanoseconds) in IsNormalized() argument
69 nanoseconds < MinNanoseconds || nanoseconds > MaxNanoseconds) in IsNormalized()
75 return Math.Sign(seconds) * Math.Sign(nanoseconds) != -1; in IsNormalized()
164 internal static Duration Normalize(long seconds, int nanoseconds) in Normalize() argument
167 int extraSeconds = nanoseconds / NanosecondsPerSecond; in Normalize()
169 nanoseconds -= extraSeconds * NanosecondsPerSecond; in Normalize()
172 if (seconds < 0 && nanoseconds > 0) in Normalize()
175 nanoseconds -= NanosecondsPerSecond; in Normalize()
177 else if (seconds > 0 && nanoseconds < 0) in Normalize()
180 nanoseconds += NanosecondsPerSecond; in Normalize()
[all …]
DTimestampPartial.cs48 private static bool IsNormalized(long seconds, int nanoseconds) => in IsNormalized() argument
49 nanoseconds >= 0 && in IsNormalized()
50 nanoseconds <= MaxNanos && in IsNormalized()
154 … int nanoseconds = (int) (dateTime.Ticks % TimeSpan.TicksPerSecond) * Duration.NanosecondsPerTick; in FromDateTime()
155 …turn new Timestamp { Seconds = secondsSinceBclEpoch - BclSecondsAtUnixEpoch, Nanos = nanoseconds }; in FromDateTime()
173 internal static Timestamp Normalize(long seconds, int nanoseconds) in Normalize() argument
175 int extraSeconds = nanoseconds / Duration.NanosecondsPerSecond; in Normalize()
177 nanoseconds -= extraSeconds * Duration.NanosecondsPerSecond; in Normalize()
179 if (nanoseconds < 0) in Normalize()
181 nanoseconds += Duration.NanosecondsPerSecond; in Normalize()
[all …]
/frameworks/opt/gamesdk/src/swappy/
DSwappy.h57 std::chrono::nanoseconds refreshPeriod,
58 std::chrono::nanoseconds appOffset,
59 std::chrono::nanoseconds sfOffset,
69 std::chrono::nanoseconds refreshPeriod,
70 std::chrono::nanoseconds appOffset,
71 std::chrono::nanoseconds sfOffset);
95 FrameDuration(std::chrono::nanoseconds cpuTime, std::chrono::nanoseconds gpuTime) : in FrameDuration()
101 std::chrono::nanoseconds getCpuTime() const { return mCpuTime; } in getCpuTime()
102 std::chrono::nanoseconds getGpuTime() const { return mGpuTime; } in getGpuTime()
103 std::chrono::nanoseconds getTime(bool pipeline) const { in getTime()
[all …]
DChoreographerFilter.h29 using Worker = std::function<std::chrono::nanoseconds()>;
31 explicit ChoreographerFilter(std::chrono::nanoseconds refreshPeriod,
32 std::chrono::nanoseconds appToSfDelay,
58 std::chrono::nanoseconds mWorkDuration;
60 const std::chrono::nanoseconds mRefreshPeriod;
61 const std::chrono::nanoseconds mAppToSfDelay;
DSwappy.cpp43 using std::chrono::nanoseconds;
49 constexpr std::chrono::nanoseconds Swappy::FrameDuration::MAX_DURATION;
50 constexpr std::chrono::nanoseconds Swappy::FRAME_HYSTERESIS;
105 using std::chrono::nanoseconds; in init()
110 nanoseconds(vsyncPeriodNanos), in init()
111 nanoseconds(appVsyncOffsetNanos), in init()
112 nanoseconds(sfVsyncOffsetNanos)); in init()
115 void Swappy::init(JavaVM *vm, nanoseconds refreshPeriod, nanoseconds appOffset, nanoseconds sfOffse… in init()
382 nanoseconds refreshPeriod, in Swappy()
383 nanoseconds appOffset, in Swappy()
[all …]
DChoreographerFilter.cpp40 Timer(std::chrono::nanoseconds refreshPeriod, std::chrono::nanoseconds appToSfDelay) in Timer()
65 std::chrono::nanoseconds delta = (point - (mBaseTime + mRefreshPeriod)); in addTimestamp()
76 void sleep(std::chrono::nanoseconds offset) { in sleep()
91 const std::chrono::nanoseconds mRefreshPeriod;
92 const std::chrono::nanoseconds mAppToSfDelay;
103 ChoreographerFilter::ChoreographerFilter(std::chrono::nanoseconds refreshPeriod, in ChoreographerFilter()
104 std::chrono::nanoseconds appToSfDelay, in ChoreographerFilter()
DSettings.h43 void setRefreshPeriod(std::chrono::nanoseconds period);
47 std::chrono::nanoseconds getRefreshPeriod() const;
57 std::chrono::nanoseconds
58 mRefreshPeriod GUARDED_BY(mMutex) = std::chrono::nanoseconds{12'345'678}; in GUARDED_BY()
DEGL.h48 explicit EGL(std::chrono::nanoseconds refreshPeriod, ConstructorTag) in EGL()
51 static std::unique_ptr<EGL> create(std::chrono::nanoseconds refreshPeriod);
58 std::chrono::nanoseconds getFencePendingTime() { return mFenceWaiter.getFencePendingTime(); } in getFencePendingTime()
69 const std::chrono::nanoseconds mRefreshPeriod;
100 std::chrono::nanoseconds getFencePendingTime();
112 std::atomic<std::chrono::nanoseconds> mFencePendingTime;
DFrameStatistics.h37 std::chrono::nanoseconds refreshPeriod) : in FrameStatistics()
47 static constexpr std::chrono::nanoseconds LOG_EVERY_N_NS = 1s;
58 const std::chrono::nanoseconds mRefreshPeriod;
DSettings.cpp37 void Settings::setRefreshPeriod(std::chrono::nanoseconds period) { in setRefreshPeriod()
64 std::chrono::nanoseconds Settings::getRefreshPeriod() const { in getRefreshPeriod()
/frameworks/av/media/libaaudio/src/utility/
DAudioClock.h82 static int sleepForNanos(int64_t nanoseconds, clockid_t clockId = CLOCK_MONOTONIC) {
83 if (nanoseconds > 0) {
85 time.tv_sec = nanoseconds / AAUDIO_NANOS_PER_SECOND;
87 time.tv_nsec = nanoseconds - (time.tv_sec * AAUDIO_NANOS_PER_SECOND);
/frameworks/native/services/surfaceflinger/
DRegionSamplingThread.h49 std::chrono::nanoseconds mSamplingOffset;
55 std::chrono::nanoseconds mSamplingPeriod;
59 std::chrono::nanoseconds mSamplingTimerTimeout;
121 std::chrono::nanoseconds lastSampleTime GUARDED_BY(mThreadControlMutex);
DRegionSamplingThread.cpp58 return std::to_string(std::chrono::duration_cast<std::chrono::nanoseconds>(t).count()); in toNsString()
82 mSamplingOffset = std::chrono::nanoseconds(samplingOffsetNsRaw); in EnvironmentTimingTunables()
83 mSamplingPeriod = std::chrono::nanoseconds(samplingPeriodNsRaw); in EnvironmentTimingTunables()
84 mSamplingTimerTimeout = std::chrono::nanoseconds(samplingTimerTimeoutNsRaw); in EnvironmentTimingTunables()
90 std::chrono::nanoseconds targetSamplingOffset) in SamplingOffsetCallback()
151 const std::chrono::nanoseconds mTargetSamplingOffset;
235 auto now = std::chrono::nanoseconds(systemTime(SYSTEM_TIME_MONOTONIC)); in doSample()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DTimestampTest.cs69 public void ToDateTime_OutOfRange(long seconds, int nanoseconds) in ToDateTime_OutOfRange() argument
71 var value = new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in ToDateTime_OutOfRange()
81 public void ToDateTime_ValidBoundaries(long seconds, int nanoseconds) in ToDateTime_ValidBoundaries() argument
83 var value = new Timestamp { Seconds = seconds, Nanos = nanoseconds }; in ToDateTime_ValidBoundaries()
DDurationTest.cs106 public void ToTimeSpan_Invalid(long seconds, int nanoseconds) in ToTimeSpan_Invalid() argument
108 var duration = new Duration { Seconds = seconds, Nanos = nanoseconds }; in ToTimeSpan_Invalid()
117 public void ToTimeSpan_Valid(long seconds, int nanoseconds) in ToTimeSpan_Valid() argument
120 var duration = new Duration { Seconds = seconds, Nanos = nanoseconds }; in ToTimeSpan_Valid()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/main/java/com/google/protobuf/util/
DTimeUtil.java221 public static Timestamp createTimestampFromNanos(long nanoseconds) { in createTimestampFromNanos() argument
222 return Timestamps.fromNanos(nanoseconds); in createTimestampFromNanos()
231 public static Duration createDurationFromNanos(long nanoseconds) { in createDurationFromNanos() argument
232 return Durations.fromNanos(nanoseconds); in createDurationFromNanos()
DDurations.java214 public static Duration fromNanos(long nanoseconds) { in fromNanos() argument
216 nanoseconds / NANOS_PER_SECOND, (int) (nanoseconds % NANOS_PER_SECOND)); in fromNanos()
/frameworks/native/services/surfaceflinger/Scheduler/
DSchedulerUtils.h41 static constexpr std::chrono::nanoseconds TIME_EPSILON_NS = 100ms;
45 static constexpr std::chrono::nanoseconds OBSOLETE_TIME_EPSILON_NS = 100ms;
/frameworks/opt/gamesdk/samples/bouncyball/app/src/main/cpp/
DSettings.cpp57 std::chrono::nanoseconds Settings::getRefreshPeriod() const { in getRefreshPeriod()
58 return std::chrono::nanoseconds(Swappy_getRefreshPeriodNanos()); in getRefreshPeriod()
DRenderer.h86 std::chrono::nanoseconds refreshPeriod = std::chrono::nanoseconds{0};
/frameworks/native/libs/vr/libpdx/
Dencoder_performance_test.cpp105 using SerializeTestSignature = std::chrono::nanoseconds(MessageWriter* writer,
111 using DeserializeTestSignature = std::chrono::nanoseconds(
118 std::chrono::nanoseconds SerializeTestRunner(MessageWriter* writer, in SerializeTestRunner()
135 std::chrono::nanoseconds DeserializeTestRunner( in DeserializeTestRunner()
157 std::chrono::nanoseconds SerializeBaseTest(MessageWriter* writer, in SerializeBaseTest()
176 std::chrono::nanoseconds DeserializeBaseTest( in DeserializeBaseTest()
229 std::bind(static_cast<std::chrono::nanoseconds (*)( in AddSerializationTest()
241 std::bind(static_cast<std::chrono::nanoseconds (*)( in AddDeserializationTest()
259 std::bind(static_cast<std::chrono::nanoseconds (*)( in AddTest()
264 std::bind(static_cast<std::chrono::nanoseconds (*)( in AddTest()
/frameworks/av/media/libaaudio/examples/utils/
DAAudioExampleUtils.h85 void convertNanosecondsToTimespec(int64_t nanoseconds, struct timespec *time) { in convertNanosecondsToTimespec() argument
86 time->tv_sec = nanoseconds / NANOS_PER_SECOND; in convertNanosecondsToTimespec()
88 time->tv_nsec = nanoseconds - (time->tv_sec * NANOS_PER_SECOND); in convertNanosecondsToTimespec()
/frameworks/opt/gamesdk/samples/tuningfork/tftestapp/app/src/main/cpp/
DRenderer.h79 std::chrono::nanoseconds refreshPeriod = std::chrono::nanoseconds{0};
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dclock_ns.h38 static inline double NsToSec(int64_t nanoseconds) { in NsToSec() argument
39 return nanoseconds / static_cast<double>(kNanosPerSecond); in NsToSec()
/frameworks/av/media/libaaudio/examples/write_sine/src/
Dwrite_sine_callback.cpp196 || ((timestamp->nanoseconds < (timestamp - 1)->nanoseconds)))); in testOpenPlayClose()
200 (long long) timestamp->nanoseconds, in testOpenPlayClose()

123