Home
last modified time | relevance | path

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

/system/chre/util/tests/
Dtime_test.cc26 using chre::kOneSecondInNanoseconds;
33 EXPECT_EQ(kOneSecondInNanoseconds, 1e9); in TEST()
42 EXPECT_EQ(t.toRawNanoseconds(), 5 * kOneSecondInNanoseconds); in TEST()
46 Seconds t(UINT64_MAX / kOneSecondInNanoseconds + 1); in TEST()
144 EXPECT_EQ(tNano.toRawNanoseconds(), 5 * kOneSecondInNanoseconds); in TEST()
173 EXPECT_EQ(t.toRawNanoseconds(), 5 * kOneSecondInNanoseconds + 6); in TEST()
178 EXPECT_EQ(t.toRawNanoseconds(), 5 * kOneSecondInNanoseconds - 1); in TEST()
/system/chre/platform/slpi/
Dsystem_time_util.cc31 nsec = (seconds * kOneSecondInNanoseconds); in getNanosecondsFromQTimerTicks()
33 nsec += (ticks * kOneSecondInNanoseconds) / kClockFreq; in getNanosecondsFromQTimerTicks()
/system/chre/platform/linux/
Daudio_source.cc27 static_cast<uint64_t>(minBufferDuration * kOneSecondInNanoseconds)), in AudioSource()
29 static_cast<uint64_t>(maxBufferDuration * kOneSecondInNanoseconds)) { in AudioSource()
Dsystem_timer.cc30 constexpr uint64_t kOneSecondInNanoseconds = 1000000000; variable
33 ts->tv_sec = ns / kOneSecondInNanoseconds; in NanosecondsToTimespec()
34 ts->tv_nsec = ns % kOneSecondInNanoseconds; in NanosecondsToTimespec()
/system/chre/apps/chqts/src/general_test/
Dbasic_audio_test.cc22 using nanoapp_testing::kOneSecondInNanoseconds;
52 (kOneSecondInNanoseconds / kMaxAudioSampleRate) * 10;
57 constexpr uint64_t kMaxBufferDuration = kOneSecondInNanoseconds * 120;
128 constexpr uint64_t kRequiredBufferDuration = 2 * kOneSecondInNanoseconds; in validateMinimumAudioSource()
Dbasic_sensor_test_base.cc29 using nanoapp_testing::kOneSecondInNanoseconds;
125 kOneSecondInNanoseconds)) { in checkPassiveConfigure()
130 mSensorHandle, mode, kOneSecondInNanoseconds, in checkPassiveConfigure()
136 mSensorHandle, mode, kOneSecondInNanoseconds, in checkPassiveConfigure()
137 kOneSecondInNanoseconds)) { in checkPassiveConfigure()
209 kOneSecondInNanoseconds, /* interval */ in startTest()
Dtimer_set_test.cc29 using nanoapp_testing::kOneSecondInNanoseconds;
51 static uint64_t kLongDuration = kOneSecondInNanoseconds;
82 if (timestamp > (expectedTime + kOneSecondInNanoseconds)) { in processEvent()
Dheap_exhaustion_stability_test.cc28 using nanoapp_testing::kOneSecondInNanoseconds;
55 static const uint64_t kExhaustionDuration = 5 * kOneSecondInNanoseconds;
Dtest.cc83 request.timeoutNs / nanoapp_testing::kOneSecondInNanoseconds); in validateChreAsyncResult()
/system/chre/apps/chqts/src/shared/
Dtime_util.h31 constexpr uint64_t kOneSecondInNanoseconds(1000000000);
/system/chre/core/include/chre/core/
Daudio_request_manager.h122 return Nanoseconds((sampleCount * kOneSecondInNanoseconds) / sampleRate); in getDurationFromSampleCountAndRate()
142 / kOneSecondInNanoseconds); in getSampleCountFromRateAndDuration()
/system/chre/util/include/chre/util/
Dtime_impl.h31 return (mSeconds > (UINT64_MAX / kOneSecondInNanoseconds)) ? UINT64_MAX in toRawNanoseconds()
32 : mSeconds * kOneSecondInNanoseconds; in toRawNanoseconds()
Dtime.h31 constexpr uint64_t kOneSecondInNanoseconds(1000000000);
/system/chre/host/msm/daemon/
Dchre_daemon.cc265 constexpr uint64_t kOneSecondInNanoseconds = 1000000000; in getTimeOffset() local
270 if (qTimerNanos > UINT64_MAX / kOneSecondInNanoseconds) { in getTimeOffset()
275 qTimerNanos *= kOneSecondInNanoseconds; in getTimeOffset()
280 (remainder * kOneSecondInNanoseconds + qTimerFreq / 2) / qTimerFreq; in getTimeOffset()
/system/chre/platform/slpi/see/
Dplatform_sensor.cc801 kOneSecondInNanoseconds / request.getInterval().toRawNanoseconds()), in applyRequest()