/system/chre/core/tests/ |
D | sensor_request_test.cc | 22 using chre::Nanoseconds; 28 EXPECT_EQ(request.getInterval(), Nanoseconds(CHRE_SENSOR_INTERVAL_DEFAULT)); in TEST() 29 EXPECT_EQ(request.getLatency(), Nanoseconds(CHRE_SENSOR_LATENCY_DEFAULT)); in TEST() 34 SensorRequest activeContinuous(SensorMode::ActiveContinuous, Nanoseconds(0), in TEST() 35 Nanoseconds(0)); in TEST() 36 SensorRequest activeOneShot(SensorMode::ActiveOneShot, Nanoseconds(0), in TEST() 37 Nanoseconds(0)); in TEST() 41 EXPECT_EQ(mergedRequest.getInterval(), Nanoseconds(0)); in TEST() 42 EXPECT_EQ(mergedRequest.getLatency(), Nanoseconds(0)); in TEST() 47 SensorRequest activeOneShot(SensorMode::ActiveOneShot, Nanoseconds(0), in TEST() [all …]
|
D | audio_util_test.cc | 22 using chre::Nanoseconds; 25 Nanoseconds duration = in TEST() 31 Nanoseconds duration = in TEST() 37 Nanoseconds duration = in TEST() 44 AudioUtil::getSampleCountFromRateAndDuration(16000, Nanoseconds(62500)); in TEST() 50 AudioUtil::getSampleCountFromRateAndDuration(16000, Nanoseconds(6250000)); in TEST() 56 16000, Nanoseconds(62500000)); in TEST()
|
/system/chre/util/include/chre/util/ |
D | time_impl.h | 49 constexpr Milliseconds::Milliseconds(Nanoseconds nanoseconds) in Milliseconds() 82 constexpr Microseconds::Microseconds(Nanoseconds nanoseconds) in Microseconds() 103 constexpr Nanoseconds::Nanoseconds() : mNanoseconds(0) {} in Nanoseconds() function 105 constexpr Nanoseconds::Nanoseconds(uint64_t nanoseconds) in Nanoseconds() function 108 constexpr Nanoseconds::Nanoseconds(Seconds seconds) in Nanoseconds() function 111 constexpr Nanoseconds::Nanoseconds(Milliseconds milliseconds) in Nanoseconds() function 114 constexpr Nanoseconds::Nanoseconds(Microseconds microseconds) in Nanoseconds() function 117 constexpr uint64_t Nanoseconds::toRawNanoseconds() const { in toRawNanoseconds() 121 constexpr bool Nanoseconds::operator==(const Nanoseconds &nanos) const { 125 constexpr bool Nanoseconds::operator!=(const Nanoseconds &nanos) const { [all …]
|
D | time.h | 47 class Nanoseconds; variable 93 constexpr Milliseconds(Nanoseconds nanoseconds); 142 constexpr Microseconds(Nanoseconds nanoseconds); 175 class Nanoseconds { 180 constexpr Nanoseconds(); 185 constexpr explicit Nanoseconds(uint64_t nanoseconds); 190 constexpr Nanoseconds(Seconds seconds); 195 constexpr Nanoseconds(Milliseconds milliseconds); 200 constexpr Nanoseconds(Microseconds microseconds); 215 constexpr bool operator==(const Nanoseconds &nanos) const; [all …]
|
/system/chre/util/tests/ |
D | time_test.cc | 28 using chre::Nanoseconds; 72 Nanoseconds tNano(5 * kOneMillisecondInNanoseconds); in TEST() 110 Nanoseconds tNano(5 * kOneMicrosecondInNanoseconds); in TEST() 132 Nanoseconds t; in TEST() 137 Nanoseconds t(5); in TEST() 143 Nanoseconds tNano(tSec); in TEST() 149 Nanoseconds tNano(tMilli); in TEST() 155 Nanoseconds tNano(tMicro); in TEST() 160 Nanoseconds t1(5), t2(5), t3(6); in TEST() 166 Nanoseconds t1(5), t2(5), t3(6); in TEST() [all …]
|
/system/chre/core/ |
D | sensor_request.cc | 26 Nanoseconds getBatchInterval(const SensorRequest &request) { in getBatchInterval() 30 if (request.getInterval() == Nanoseconds(CHRE_SENSOR_INTERVAL_DEFAULT) || in getBatchInterval() 31 request.getLatency() == Nanoseconds(CHRE_SENSOR_LATENCY_DEFAULT)) { in getBatchInterval() 32 return Nanoseconds(CHRE_SENSOR_BATCH_INTERVAL_DEFAULT); in getBatchInterval() 41 : SensorRequest(SensorMode::Off, Nanoseconds(CHRE_SENSOR_INTERVAL_DEFAULT), in SensorRequest() 42 Nanoseconds(CHRE_SENSOR_LATENCY_DEFAULT)) {} in SensorRequest() 44 SensorRequest::SensorRequest(SensorMode mode, Nanoseconds interval, in SensorRequest() 45 Nanoseconds latency) in SensorRequest() 49 Nanoseconds interval, Nanoseconds latency) in SensorRequest() 56 if (interval != Nanoseconds(CHRE_SENSOR_INTERVAL_DEFAULT)) { in SensorRequest() [all …]
|
D | audio_request_manager.cc | 65 Nanoseconds(deliveryInterval)); in configureSource() 116 Nanoseconds timeSinceLastAudioEvent = in logStateToBuffer() 124 Milliseconds(Nanoseconds(source.minBufferDuration)).getMilliseconds(), in logStateToBuffer() 125 Milliseconds(Nanoseconds(source.maxBufferDuration)).getMilliseconds(), in logStateToBuffer() 133 Milliseconds(Nanoseconds(request.deliveryInterval)) in logStateToBuffer() 160 audioSource.sampleRate, Nanoseconds(bufferDuration)); in validateConfigureSourceArguments() 174 Nanoseconds deliveryInterval) { in doConfigureSource() 230 Nanoseconds deliveryInterval) { in createAudioRequest() 245 Nanoseconds timeNow = SystemTime::getMonotonicTime(); in createAudioRequest() 246 Nanoseconds nextEventTimestamp = timeNow + deliveryInterval; in createAudioRequest() [all …]
|
D | wifi_scan_request.cc | 36 Nanoseconds(UINT64_MAX) /* maxScanAge */, in WifiScanRequest() 41 const Nanoseconds &maxScanAge, in WifiScanRequest() 53 const Nanoseconds &WifiScanRequest::getMaxScanAge() const { in getMaxScanAge()
|
/system/chre/core/include/chre/core/ |
D | sensor_request.h | 54 SensorRequest(SensorMode mode, Nanoseconds interval, Nanoseconds latency); 67 SensorRequest(uint32_t instanceId, SensorMode mode, Nanoseconds interval, 68 Nanoseconds latency); 100 Nanoseconds getInterval() const { in getInterval() 108 void setLatency(Nanoseconds latency) { in setLatency() 116 Nanoseconds getLatency() const { in getLatency() 152 Nanoseconds mInterval; 156 Nanoseconds mLatency;
|
D | audio_request_manager.h | 127 AudioRequest(uint32_t numSamples, Nanoseconds deliveryInterval, in AudioRequest() 128 Nanoseconds nextEventTimestamp) in AudioRequest() 140 Nanoseconds deliveryInterval; 143 Nanoseconds nextEventTimestamp; 156 Nanoseconds lastEventTimestamp; 244 uint32_t numSamples, Nanoseconds deliveryInterval); 266 uint32_t numSamples, Nanoseconds deliveryInterval); 300 Nanoseconds deliveryInterval,
|
D | audio_util.h | 40 static constexpr Nanoseconds getDurationFromSampleCountAndRate( in getDurationFromSampleCountAndRate() 46 return Nanoseconds((sampleCount * kOneSecondInNanoseconds) / sampleRate); in getDurationFromSampleCountAndRate() 59 uint32_t sampleRate, Nanoseconds duration) { in getSampleCountFromRateAndDuration()
|
D | sensor_request_manager.h | 290 Nanoseconds deadlineTimestamp = 292 Nanoseconds(CHRE_SENSOR_FLUSH_COMPLETE_TIMEOUT_NS); 305 SensorRequestLog(Nanoseconds timestampIn, uint32_t instanceIdIn, in SensorRequestLog() 307 Nanoseconds intervalIn, Nanoseconds latencyIn) in SensorRequestLog() 315 Nanoseconds timestamp; 316 Nanoseconds interval; 317 Nanoseconds latency;
|
D | timer_pool.h | 60 TimerHandle setNanoappTimer(const Nanoapp *nanoapp, Nanoseconds duration, in setNanoappTimer() 84 TimerHandle setSystemTimer(Nanoseconds duration, 118 Nanoseconds expirationTime; 119 Nanoseconds duration; 191 TimerHandle setTimer(uint32_t instanceId, Nanoseconds duration,
|
D | wifi_scan_request.h | 82 WifiScanRequest(WifiScanType wifiScanType, const Nanoseconds &maxScanAge, 94 const Nanoseconds &getMaxScanAge() const; 111 Nanoseconds mMaxScanAge;
|
D | wifi_request_manager.h | 179 WifiScanRequestLog(Nanoseconds timestampIn, uint32_t instanceIdIn, in WifiScanRequestLog() 186 Nanoseconds timestamp; 231 Nanoseconds mLastScanRequestTime; 242 Nanoseconds mRangingResponseTimeout;
|
D | event_loop.h | 328 static constexpr Nanoseconds kIntervalWakeupBucket = 329 Nanoseconds(180 * kOneMinuteInNanoseconds); 332 Nanoseconds mTimeLastWakeupBucketCycled;
|
/system/chre/apps/audio_stress_test/ |
D | audio_stress_test.cc | 35 using chre::Nanoseconds; 41 constexpr Nanoseconds kBufferDuration = Nanoseconds(Seconds(2)); 87 Nanoseconds gLastAudioTimestamp; 131 auto lastAudioDuration = Nanoseconds(chreGetTime()) - gLastAudioTimestamp; in checkTestPassing() 139 bool requestAudioForCurrentTestState(const Nanoseconds &testStateDuration) { in requestAudioForCurrentTestState() 172 Nanoseconds timerDuration = kStressPlan[gTestPosition++]; in advanceTestPosition() 191 gLastAudioTimestamp = Nanoseconds(audioDataEvent->timestamp); in handleAudioDataEvent() 213 gLastAudioTimestamp = Nanoseconds(chreGetTime()); in nanoappStart()
|
/system/chre/platform/linux/ |
D | system_time.cc | 28 Nanoseconds SystemTime::getMonotonicTime() { in getMonotonicTime() 33 return Nanoseconds(UINT64_MAX); in getMonotonicTime() 40 Nanoseconds(static_cast<uint64_t>(timeNow.tv_nsec)); in getMonotonicTime()
|
/system/chre/platform/linux/include/chre/platform/linux/ |
D | audio_source.h | 56 const Nanoseconds minBufferDuration; 59 const Nanoseconds maxBufferDuration; 71 Nanoseconds eventDelay;
|
/system/chre/platform/slpi/include/chre/platform/slpi/see/ |
D | see_helper.h | 84 constexpr Nanoseconds kDefaultSeeWaitTimeout = Seconds(30); 87 constexpr Nanoseconds kDefaultSeeRespTimeout = Seconds(1); 90 constexpr Nanoseconds kDefaultSeeIndTimeout = Seconds(2); 307 Nanoseconds timeoutResp = kDefaultSeeRespTimeout, 308 Nanoseconds timeoutInd = kDefaultSeeIndTimeout) { 399 Nanoseconds timeoutResp); 430 Nanoseconds timeoutResp = kDefaultSeeRespTimeout, 431 Nanoseconds timeoutInd = kDefaultSeeIndTimeout); 448 bool waitForInd(bool reqSent, Nanoseconds timeoutInd);
|
/system/chre/platform/shared/ |
D | system_time.cc | 21 Nanoseconds gStartTime(0); 27 Nanoseconds SystemTime::getUptime() { in getUptime()
|
D | chre_api_sensor.cc | 26 using chre::Nanoseconds; 98 Nanoseconds(interval), Nanoseconds(latency)); in chreSensorConfigure()
|
/system/chre/platform/include/chre/platform/ |
D | system_time.h | 40 static Nanoseconds getMonotonicTime(); 48 static Nanoseconds getUptime();
|
/system/chre/platform/slpi/ |
D | system_time.cc | 36 Nanoseconds SystemTime::getMonotonicTime() { in getMonotonicTime() 37 return Nanoseconds(getNanosecondsFromQTimerTicks(uTimetick_Get())); in getMonotonicTime()
|
/system/chre/pal/tests/src/ |
D | wifi_pal_impl_test.cc | 42 using ::chre::Nanoseconds; 50 const Nanoseconds kAsyncResultTimeoutNs = 51 Nanoseconds(CHRE_ASYNC_RESULT_TIMEOUT_NS); 52 const Nanoseconds kScanResultTimeoutNs = 53 Nanoseconds(CHRE_WIFI_SCAN_RESULT_TIMEOUT_NS); 171 chre::Nanoseconds timeoutNs) { in waitForAsyncResponseAssertSuccess()
|