/system/chre/core/tests/ |
D | sensor_request_test.cc | 21 using chre::Nanoseconds; 49 EXPECT_EQ(request.getInterval(), Nanoseconds(CHRE_SENSOR_INTERVAL_DEFAULT)); in TEST() 50 EXPECT_EQ(request.getLatency(), Nanoseconds(CHRE_SENSOR_LATENCY_DEFAULT)); in TEST() 56 Nanoseconds(0), Nanoseconds(0)); in TEST() 58 Nanoseconds(0), Nanoseconds(0)); in TEST() 62 EXPECT_EQ(mergedRequest.getInterval(), Nanoseconds(0)); in TEST() 63 EXPECT_EQ(mergedRequest.getLatency(), Nanoseconds(0)); in TEST() 69 Nanoseconds(0), Nanoseconds(0)); in TEST() 71 Nanoseconds(0), Nanoseconds(0)); in TEST() 75 EXPECT_EQ(mergedRequest.getInterval(), Nanoseconds(0)); in TEST() [all …]
|
D | audio_request_manager_test.cc | 22 using chre::Nanoseconds; 25 Nanoseconds duration = in TEST() 31 Nanoseconds duration = in TEST() 37 Nanoseconds duration = in TEST() 45 Nanoseconds(62500)); in TEST() 52 Nanoseconds(6250000)); in TEST() 59 Nanoseconds(62500000)); in TEST()
|
/system/chre/util/include/chre/util/ |
D | time_impl.h | 49 constexpr Milliseconds::Milliseconds(Nanoseconds nanoseconds) in Milliseconds() 80 constexpr Microseconds::Microseconds(Nanoseconds nanoseconds) in Microseconds() 100 constexpr Nanoseconds::Nanoseconds() in Nanoseconds() function 103 constexpr Nanoseconds::Nanoseconds(uint64_t nanoseconds) in Nanoseconds() function 106 constexpr Nanoseconds::Nanoseconds(Seconds seconds) in Nanoseconds() function 109 constexpr Nanoseconds::Nanoseconds(Milliseconds milliseconds) in Nanoseconds() function 112 constexpr Nanoseconds::Nanoseconds(Microseconds microseconds) in Nanoseconds() function 115 constexpr uint64_t Nanoseconds::toRawNanoseconds() const { in toRawNanoseconds() 119 constexpr bool Nanoseconds::operator==(const Nanoseconds& nanos) const { 123 constexpr bool Nanoseconds::operator!=(const Nanoseconds& nanos) const { [all …]
|
D | time.h | 45 class Nanoseconds; variable 92 constexpr Milliseconds(Nanoseconds nanoseconds); 141 constexpr Microseconds(Nanoseconds nanoseconds); 174 class Nanoseconds { 179 constexpr Nanoseconds(); 184 constexpr explicit Nanoseconds(uint64_t nanoseconds); 189 constexpr Nanoseconds(Seconds seconds); 194 constexpr Nanoseconds(Milliseconds milliseconds); 199 constexpr Nanoseconds(Microseconds microseconds); 214 constexpr bool operator==(const Nanoseconds& nanos) const; [all …]
|
/system/chre/util/tests/ |
D | time_test.cc | 24 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() 42 Nanoseconds(CHRE_SENSOR_INTERVAL_DEFAULT), in SensorRequest() 43 Nanoseconds(CHRE_SENSOR_LATENCY_DEFAULT)) {} in SensorRequest() 45 SensorRequest::SensorRequest(SensorMode mode, Nanoseconds interval, in SensorRequest() 46 Nanoseconds latency) in SensorRequest() 50 Nanoseconds interval, Nanoseconds latency) in SensorRequest() 55 if (interval != Nanoseconds(CHRE_SENSOR_INTERVAL_DEFAULT)) { in SensorRequest() [all …]
|
D | audio_request_manager.cc | 64 Nanoseconds(deliveryInterval)); in configureSource() 119 Milliseconds(Nanoseconds(source.minBufferDuration)).getMilliseconds(), in logStateToBuffer() 120 Milliseconds(Nanoseconds(source.maxBufferDuration)).getMilliseconds(), in logStateToBuffer() 128 Milliseconds(Nanoseconds(request.deliveryInterval)) in logStateToBuffer() 154 audioSource.sampleRate, Nanoseconds(bufferDuration)); in validateConfigureSourceArguments() 167 Nanoseconds deliveryInterval) { in doConfigureSource() 221 Nanoseconds deliveryInterval) { in createAudioRequest() 236 Nanoseconds timeNow = SystemTime::getMonotonicTime(); in createAudioRequest() 237 Nanoseconds nextEventTimestamp = timeNow + deliveryInterval; in createAudioRequest() 278 uint32_t handle, uint32_t numSamples, Nanoseconds deliveryInterval, in findAudioRequestByConfiguration() [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()
|
D | timer_pool.cc | 33 Nanoseconds duration, SystemCallbackFunction *callback, in setSystemTimer() 47 uint32_t instanceId, Nanoseconds duration, in setTimer() 222 Nanoseconds currentTime = SystemTime::getMonotonicTime(); in handleExpiredTimersAndScheduleNextLocked() 246 Nanoseconds duration = currentTimerRequest.expirationTime - currentTime; in handleExpiredTimersAndScheduleNextLocked()
|
/system/chre/platform/slpi/smgr/tests/ |
D | platform_sensor_util_test.cc | 24 using chre::Nanoseconds; 28 uint16_t rate = intervalToSmgrSamplingRate(Nanoseconds(0)); in TEST() 33 constexpr Nanoseconds kFiftyHertzInterval = Milliseconds(20); in TEST() 39 constexpr Nanoseconds kZeroPointFiveHertzInterval = Seconds(2); in TEST() 45 constexpr Nanoseconds kOneNanoHzInterval = Seconds(1e9); in TEST() 51 constexpr Nanoseconds kTwentyMHzInterval = Nanoseconds(50); in TEST() 57 uint32_t rate = intervalToSmgrQ16ReportRate(Nanoseconds(0)); in TEST() 62 constexpr Nanoseconds kTenHertzInterval = Milliseconds(20); in TEST() 68 constexpr Nanoseconds kZeroPointFiveHertzInterval = Seconds(2); in TEST() 74 uint32_t rate = intervalToSmgrQ16ReportRate(Nanoseconds(1)); in TEST()
|
/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); 91 Nanoseconds getInterval() const { in getInterval() 99 Nanoseconds getLatency() const { in getLatency() 123 Nanoseconds mInterval; 127 Nanoseconds mLatency;
|
D | audio_request_manager.h | 116 static constexpr Nanoseconds getDurationFromSampleCountAndRate( in getDurationFromSampleCountAndRate() 122 return Nanoseconds((sampleCount * kOneSecondInNanoseconds) / sampleRate); in getDurationFromSampleCountAndRate() 135 uint32_t sampleRate, Nanoseconds duration) { in getSampleCountFromRateAndDuration() 158 AudioRequest(uint32_t numSamples, Nanoseconds deliveryInterval, in AudioRequest() 159 Nanoseconds nextEventTimestamp) in AudioRequest() 171 Nanoseconds deliveryInterval; 174 Nanoseconds nextEventTimestamp; 270 uint32_t numSamples, Nanoseconds deliveryInterval); 293 Nanoseconds deliveryInterval); 326 uint32_t handle, uint32_t numSamples, Nanoseconds deliveryInterval,
|
D | timer_pool.h | 61 const Nanoapp *nanoapp, Nanoseconds duration, const void *cookie, in setNanoappTimer() 85 Nanoseconds duration, SystemCallbackFunction *callback, 122 Nanoseconds expirationTime; 125 Nanoseconds duration; 194 uint32_t instanceId, Nanoseconds duration,
|
D | wifi_scan_request.h | 88 const Nanoseconds& maxScanAge, 100 const Nanoseconds& getMaxScanAge() const; 117 Nanoseconds mMaxScanAge;
|
/system/chre/apps/audio_stress_test/ |
D | audio_stress_test.cc | 35 using chre::Nanoseconds; 41 constexpr Nanoseconds kBufferDuration = Nanoseconds(Seconds(2)); 85 Nanoseconds gLastAudioTimestamp; 130 auto lastAudioDuration = Nanoseconds(chreGetTime()) - gLastAudioTimestamp; in checkTestPassing() 138 bool requestAudioForCurrentTestState(const Nanoseconds& testStateDuration) { in requestAudioForCurrentTestState() 170 Nanoseconds timerDuration = kStressPlan[gTestPosition++]; in advanceTestPosition() 189 gLastAudioTimestamp = Nanoseconds(audioDataEvent->timestamp); in handleAudioDataEvent() 212 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/slpi/smgr/ |
D | platform_sensor_util.cc | 30 uint16_t intervalToSmgrSamplingRate(Nanoseconds interval) { in intervalToSmgrSamplingRate() 41 } else if (interval != Nanoseconds(0)) { in intervalToSmgrSamplingRate() 52 uint32_t intervalToSmgrQ16ReportRate(Nanoseconds interval) { in intervalToSmgrQ16ReportRate() 58 if (interval != Nanoseconds(0)) { in intervalToSmgrQ16ReportRate()
|
/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(5); 87 constexpr Nanoseconds kDefaultSeeRespTimeout = Seconds(1); 90 constexpr Nanoseconds kDefaultSeeIndTimeout = Seconds(2); 323 Nanoseconds timeoutResp = kDefaultSeeRespTimeout, 324 Nanoseconds timeoutInd = kDefaultSeeIndTimeout) { 418 Nanoseconds timeoutResp); 451 Nanoseconds timeoutResp = kDefaultSeeRespTimeout, 452 Nanoseconds timeoutInd = kDefaultSeeIndTimeout); 469 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 | 25 using chre::Nanoseconds; 156 Nanoseconds(interval), Nanoseconds(latency)); in chreSensorConfigure()
|
/system/chre/platform/slpi/include/chre/platform/slpi/smgr/ |
D | platform_sensor_util.h | 35 uint16_t intervalToSmgrSamplingRate(Nanoseconds interval); 44 uint32_t intervalToSmgrQ16ReportRate(Nanoseconds interval);
|
D | smr_helper.h | 39 constexpr Nanoseconds kDefaultSmrTimeout = Seconds(2); 43 constexpr Nanoseconds kDefaultSmrWaitTimeout = Seconds(5); 65 Nanoseconds timeout = kDefaultSmrTimeout); 138 Nanoseconds timeout = kDefaultSmrTimeout) { 251 Nanoseconds timeout, smr_err *result);
|
/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()
|