/system/chre/util/tests/ |
D | time_test.cc | 25 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 | 41 nsec = (seconds * kOneSecondInNanoseconds); in getNanosecondsFromQTimerTicks() 43 nsec += (ticks * kOneSecondInNanoseconds) / kClockFreq; in getNanosecondsFromQTimerTicks()
|
/system/chre/platform/linux/sim/ |
D | audio_source.cc | 27 static_cast<uint64_t>(minBufferDuration * kOneSecondInNanoseconds)), in AudioSource() 29 static_cast<uint64_t>(maxBufferDuration * kOneSecondInNanoseconds)) { in AudioSource()
|
/system/chre/core/include/chre/core/ |
D | audio_util.h | 46 return Nanoseconds((sampleCount * kOneSecondInNanoseconds) / sampleRate); in getDurationFromSampleCountAndRate() 66 kOneSecondInNanoseconds); in getSampleCountFromRateAndDuration()
|
/system/chre/apps/test/chqts/src/general_test/ |
D | basic_audio_test.cc | 32 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()
|
D | basic_sensor_test_base.cc | 31 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()
|
D | timer_set_test.cc | 33 using nanoapp_testing::kOneSecondInNanoseconds; 55 static uint64_t kLongDuration = kOneSecondInNanoseconds; 90 if (timestamp > (expectedTime + kOneSecondInNanoseconds)) { in processEvent()
|
D | basic_flush_async_test.cc | 31 using nanoapp_testing::kOneSecondInNanoseconds; 41 constexpr uint64_t kFlushTestLatencyNs = 2 * kOneSecondInNanoseconds; in setUp()
|
D | heap_exhaustion_stability_test.cc | 31 using nanoapp_testing::kOneSecondInNanoseconds; 58 static const uint64_t kExhaustionDuration = 5 * kOneSecondInNanoseconds;
|
D | test.cc | 85 request.timeoutNs / nanoapp_testing::kOneSecondInNanoseconds); in validateChreAsyncResult()
|
D | basic_wifi_test.cc | 84 constexpr uint32_t kTimeoutWiggleRoomNs = 2 * chre::kOneSecondInNanoseconds; 87 constexpr uint64_t kOnDemandScanTimeoutNs = 7 * chre::kOneSecondInNanoseconds; 428 kOnDemandScanTimeoutNs / chre::kOneSecondInNanoseconds); in handleChreWifiAsyncEvent()
|
D | basic_ble_test.cc | 94 if (chreTimerSet(chre::kOneSecondInNanoseconds, nullptr, true) == in handleBleAsyncResult()
|
/system/chre/host/msm/daemon/ |
D | fastrpc_daemon.cc | 203 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/ |
D | system_timer.cc | 31 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/ |
D | app_manager.h | 171 3 * chre::kOneSecondInNanoseconds; 173 5 * chre::kOneSecondInNanoseconds;
|
D | ble_scanner.h | 52 60 * chre::kOneSecondInNanoseconds;
|
/system/chre/apps/test/pts/audio_enable_disable_test/src/ |
D | audio_enable_disable_test.cc | 116 gTimerHandle = chreTimerSet(20 * kOneSecondInNanoseconds, in handleMessageFromHost() 143 gTimerHandle = chreTimerSet(5 * kOneSecondInNanoseconds, in handleAudioDataEvent()
|
/system/chre/apps/test/chqts/src/shared/ |
D | time_util.h | 31 constexpr uint64_t kOneSecondInNanoseconds(1000000000);
|
/system/chre/apps/ble_world/ |
D | ble_world.cc | 67 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/ |
D | chre_audio_concurrency_test_manager.cc | 197 mTimerHandle = chreTimerSet(durationSeconds * kOneSecondInNanoseconds, in setTimeoutTimer() 230 kOneSecondInNanoseconds)) { in validateAudioDataEvent() 245 kOneSecondInNanoseconds / static_cast<double>(data->sampleRate); in validateAudioDataEvent()
|
/system/chre/test/simulation/inc/ |
D | test_base.h | 46 return 5 * kOneSecondInNanoseconds; in getTimeoutNs()
|
/system/chre/apps/nearby/third_party/contexthub/chre/util/include/chre/util/ |
D | time_impl.h | 30 return (mSeconds > (UINT64_MAX / kOneSecondInNanoseconds)) in toRawNanoseconds() 32 : mSeconds * kOneSecondInNanoseconds; in toRawNanoseconds()
|
D | time.h | 36 constexpr uint64_t kOneSecondInNanoseconds(1000000000);
|
/system/chre/util/include/chre/util/ |
D | time_impl.h | 30 return (mSeconds > (UINT64_MAX / kOneSecondInNanoseconds)) in toRawNanoseconds() 32 : mSeconds * kOneSecondInNanoseconds; in toRawNanoseconds()
|
D | time.h | 36 constexpr uint64_t kOneSecondInNanoseconds(1000000000);
|