Home
last modified time | relevance | path

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

12

/system/chre/util/tests/
Dtime_test.cc25 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.cc41 nsec = (seconds * kOneSecondInNanoseconds); in getNanosecondsFromQTimerTicks()
43 nsec += (ticks * kOneSecondInNanoseconds) / kClockFreq; in getNanosecondsFromQTimerTicks()
/system/chre/platform/linux/sim/
Daudio_source.cc27 static_cast<uint64_t>(minBufferDuration * kOneSecondInNanoseconds)), in AudioSource()
29 static_cast<uint64_t>(maxBufferDuration * kOneSecondInNanoseconds)) { in AudioSource()
/system/chre/core/include/chre/core/
Daudio_util.h46 return Nanoseconds((sampleCount * kOneSecondInNanoseconds) / sampleRate); in getDurationFromSampleCountAndRate()
66 kOneSecondInNanoseconds); in getSampleCountFromRateAndDuration()
/system/chre/apps/test/chqts/src/general_test/
Dbasic_audio_test.cc32 using nanoapp_testing::kOneSecondInNanoseconds;
62 (kOneSecondInNanoseconds / kMaxAudioSampleRate) * 10;
67 constexpr uint64_t kMaxBufferDuration = kOneSecondInNanoseconds * 120;
137 constexpr uint64_t kRequiredBufferDuration = 2 * kOneSecondInNanoseconds; in validateMinimumAudioSource()
225 kRequiredSampleRate / kOneSecondInNanoseconds); in handleAudioDataEvent()
Dbasic_sensor_test_base.cc31 using nanoapp_testing::kOneSecondInNanoseconds;
138 kOneSecondInNanoseconds); in checkPassiveConfigure()
151 chreSensorConfigure(mSensorHandle, mode, kOneSecondInNanoseconds, in checkPassiveConfigure()
164 chreSensorConfigure(mSensorHandle, mode, kOneSecondInNanoseconds, in checkPassiveConfigure()
165 kOneSecondInNanoseconds); in checkPassiveConfigure()
265 kOneSecondInNanoseconds, /* interval */ in startTest()
Dtimer_set_test.cc33 using nanoapp_testing::kOneSecondInNanoseconds;
55 static uint64_t kLongDuration = kOneSecondInNanoseconds;
90 if (timestamp > (expectedTime + kOneSecondInNanoseconds)) { in processEvent()
Dbasic_flush_async_test.cc31 using nanoapp_testing::kOneSecondInNanoseconds;
41 constexpr uint64_t kFlushTestLatencyNs = 2 * kOneSecondInNanoseconds; in setUp()
Dheap_exhaustion_stability_test.cc31 using nanoapp_testing::kOneSecondInNanoseconds;
58 static const uint64_t kExhaustionDuration = 5 * kOneSecondInNanoseconds;
Dtest.cc85 request.timeoutNs / nanoapp_testing::kOneSecondInNanoseconds); in validateChreAsyncResult()
Dbasic_wifi_test.cc84 constexpr uint32_t kTimeoutWiggleRoomNs = 2 * chre::kOneSecondInNanoseconds;
87 constexpr uint64_t kOnDemandScanTimeoutNs = 7 * chre::kOneSecondInNanoseconds;
428 kOnDemandScanTimeoutNs / chre::kOneSecondInNanoseconds); in handleChreWifiAsyncEvent()
Dbasic_ble_test.cc94 if (chreTimerSet(chre::kOneSecondInNanoseconds, nullptr, true) == in handleBleAsyncResult()
/system/chre/host/msm/daemon/
Dfastrpc_daemon.cc203 constexpr uint64_t kOneSecondInNanoseconds = 1000000000; in getTimeOffset() local
208 if (qTimerNanos > UINT64_MAX / kOneSecondInNanoseconds) { in getTimeOffset()
214 qTimerNanos *= kOneSecondInNanoseconds; in getTimeOffset()
219 (remainder * kOneSecondInNanoseconds + qTimerFreq / 2) / qTimerFreq; in getTimeOffset()
/system/chre/platform/linux/
Dsystem_timer.cc31 constexpr uint64_t kOneSecondInNanoseconds = 1000000000; variable
34 ts->tv_sec = ns / kOneSecondInNanoseconds; in NanosecondsToTimespec()
35 ts->tv_nsec = ns % kOneSecondInNanoseconds; in NanosecondsToTimespec()
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/
Dapp_manager.h171 3 * chre::kOneSecondInNanoseconds;
173 5 * chre::kOneSecondInNanoseconds;
Dble_scanner.h52 60 * chre::kOneSecondInNanoseconds;
/system/chre/apps/test/pts/audio_enable_disable_test/src/
Daudio_enable_disable_test.cc116 gTimerHandle = chreTimerSet(20 * kOneSecondInNanoseconds, in handleMessageFromHost()
143 gTimerHandle = chreTimerSet(5 * kOneSecondInNanoseconds, in handleAudioDataEvent()
/system/chre/apps/test/chqts/src/shared/
Dtime_util.h31 constexpr uint64_t kOneSecondInNanoseconds(1000000000);
/system/chre/apps/ble_world/
Dble_world.cc67 uint64_t gFlushPeriodNs = 7 * chre::kOneSecondInNanoseconds;
75 uint64_t gEnableDisablePeriodNs = 10 * chre::kOneSecondInNanoseconds;
86 uint64_t gReadRssiPeriodNs = 3 * chre::kOneSecondInNanoseconds;
/system/chre/apps/test/common/chre_audio_concurrency_test/src/
Dchre_audio_concurrency_test_manager.cc197 mTimerHandle = chreTimerSet(durationSeconds * kOneSecondInNanoseconds, in setTimeoutTimer()
230 kOneSecondInNanoseconds)) { in validateAudioDataEvent()
245 kOneSecondInNanoseconds / static_cast<double>(data->sampleRate); in validateAudioDataEvent()
/system/chre/test/simulation/inc/
Dtest_base.h46 return 5 * kOneSecondInNanoseconds; in getTimeoutNs()
/system/chre/apps/nearby/third_party/contexthub/chre/util/include/chre/util/
Dtime_impl.h30 return (mSeconds > (UINT64_MAX / kOneSecondInNanoseconds)) in toRawNanoseconds()
32 : mSeconds * kOneSecondInNanoseconds; in toRawNanoseconds()
Dtime.h36 constexpr uint64_t kOneSecondInNanoseconds(1000000000);
/system/chre/util/include/chre/util/
Dtime_impl.h30 return (mSeconds > (UINT64_MAX / kOneSecondInNanoseconds)) in toRawNanoseconds()
32 : mSeconds * kOneSecondInNanoseconds; in toRawNanoseconds()
Dtime.h36 constexpr uint64_t kOneSecondInNanoseconds(1000000000);

12