Searched refs:kOneSecondInNanoseconds (Results 1 – 15 of 15) sorted by relevance
/system/chre/util/tests/ |
D | time_test.cc | 26 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/ |
D | system_time_util.cc | 31 nsec = (seconds * kOneSecondInNanoseconds); in getNanosecondsFromQTimerTicks() 33 nsec += (ticks * kOneSecondInNanoseconds) / kClockFreq; in getNanosecondsFromQTimerTicks()
|
/system/chre/platform/linux/ |
D | audio_source.cc | 27 static_cast<uint64_t>(minBufferDuration * kOneSecondInNanoseconds)), in AudioSource() 29 static_cast<uint64_t>(maxBufferDuration * kOneSecondInNanoseconds)) { in AudioSource()
|
D | system_timer.cc | 30 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/ |
D | basic_audio_test.cc | 22 using nanoapp_testing::kOneSecondInNanoseconds; 52 (kOneSecondInNanoseconds / kMaxAudioSampleRate) * 10; 57 constexpr uint64_t kMaxBufferDuration = kOneSecondInNanoseconds * 120; 128 constexpr uint64_t kRequiredBufferDuration = 2 * kOneSecondInNanoseconds; in validateMinimumAudioSource()
|
D | basic_sensor_test_base.cc | 29 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()
|
D | timer_set_test.cc | 29 using nanoapp_testing::kOneSecondInNanoseconds; 51 static uint64_t kLongDuration = kOneSecondInNanoseconds; 82 if (timestamp > (expectedTime + kOneSecondInNanoseconds)) { in processEvent()
|
D | heap_exhaustion_stability_test.cc | 28 using nanoapp_testing::kOneSecondInNanoseconds; 55 static const uint64_t kExhaustionDuration = 5 * kOneSecondInNanoseconds;
|
D | test.cc | 83 request.timeoutNs / nanoapp_testing::kOneSecondInNanoseconds); in validateChreAsyncResult()
|
/system/chre/apps/chqts/src/shared/ |
D | time_util.h | 31 constexpr uint64_t kOneSecondInNanoseconds(1000000000);
|
/system/chre/core/include/chre/core/ |
D | audio_request_manager.h | 122 return Nanoseconds((sampleCount * kOneSecondInNanoseconds) / sampleRate); in getDurationFromSampleCountAndRate() 142 / kOneSecondInNanoseconds); in getSampleCountFromRateAndDuration()
|
/system/chre/util/include/chre/util/ |
D | time_impl.h | 31 return (mSeconds > (UINT64_MAX / kOneSecondInNanoseconds)) ? UINT64_MAX in toRawNanoseconds() 32 : mSeconds * kOneSecondInNanoseconds; in toRawNanoseconds()
|
D | time.h | 31 constexpr uint64_t kOneSecondInNanoseconds(1000000000);
|
/system/chre/host/msm/daemon/ |
D | chre_daemon.cc | 265 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/ |
D | platform_sensor.cc | 801 kOneSecondInNanoseconds / request.getInterval().toRawNanoseconds()), in applyRequest()
|