Home
last modified time | relevance | path

Searched refs:Nanoseconds (Results 1 – 25 of 56) sorted by relevance

123

/system/chre/core/tests/
Dsensor_request_test.cc21 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 …]
Daudio_request_manager_test.cc22 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/
Dtime_impl.h49 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 …]
Dtime.h45 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/
Dtime_test.cc24 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/
Dsensor_request.cc26 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 …]
Daudio_request_manager.cc64 Nanoseconds(deliveryInterval)); in configureSource()
124 Nanoseconds timeSinceLastAudioEvent = SystemTime::getMonotonicTime() in logStateToBuffer()
131 Milliseconds(Nanoseconds(source.minBufferDuration)).getMilliseconds(), in logStateToBuffer()
132 Milliseconds(Nanoseconds(source.maxBufferDuration)).getMilliseconds(), in logStateToBuffer()
140 Milliseconds(Nanoseconds(request.deliveryInterval)) in logStateToBuffer()
166 audioSource.sampleRate, Nanoseconds(bufferDuration)); in validateConfigureSourceArguments()
179 Nanoseconds deliveryInterval) { in doConfigureSource()
233 Nanoseconds deliveryInterval) { in createAudioRequest()
248 Nanoseconds timeNow = SystemTime::getMonotonicTime(); in createAudioRequest()
249 Nanoseconds nextEventTimestamp = timeNow + deliveryInterval; in createAudioRequest()
[all …]
Dwifi_scan_request.cc36 Nanoseconds(UINT64_MAX) /* maxScanAge */, in WifiScanRequest()
41 const Nanoseconds& maxScanAge, in WifiScanRequest()
53 const Nanoseconds& WifiScanRequest::getMaxScanAge() const { in getMaxScanAge()
Dtimer_pool.cc33 Nanoseconds duration, SystemCallbackFunction *callback, in setSystemTimer()
47 uint32_t instanceId, Nanoseconds duration, in setTimer()
222 Nanoseconds currentTime = SystemTime::getMonotonicTime(); in handleExpiredTimersAndScheduleNextLocked()
245 Nanoseconds duration = currentTimerRequest.expirationTime - currentTime; in handleExpiredTimersAndScheduleNextLocked()
/system/chre/platform/slpi/smgr/tests/
Dplatform_sensor_util_test.cc24 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/
Dsensor_request.h54 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;
Daudio_request_manager.h116 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;
187 Nanoseconds lastEventTimestamp;
273 uint32_t numSamples, Nanoseconds deliveryInterval);
296 Nanoseconds deliveryInterval);
[all …]
Dtimer_pool.h61 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,
Dwifi_scan_request.h88 const Nanoseconds& maxScanAge,
100 const Nanoseconds& getMaxScanAge() const;
117 Nanoseconds mMaxScanAge;
/system/chre/apps/audio_stress_test/
Daudio_stress_test.cc35 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/
Dsystem_time.cc28 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/
Dplatform_sensor_util.cc30 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/
Daudio_source.h56 const Nanoseconds minBufferDuration;
59 const Nanoseconds maxBufferDuration;
71 Nanoseconds eventDelay;
/system/chre/platform/slpi/include/chre/platform/slpi/see/
Dsee_helper.h84 constexpr Nanoseconds kDefaultSeeWaitTimeout = Seconds(30);
87 constexpr Nanoseconds kDefaultSeeRespTimeout = Seconds(1);
90 constexpr Nanoseconds kDefaultSeeIndTimeout = Seconds(2);
310 Nanoseconds timeoutResp = kDefaultSeeRespTimeout,
311 Nanoseconds timeoutInd = kDefaultSeeIndTimeout) {
405 Nanoseconds timeoutResp);
438 Nanoseconds timeoutResp = kDefaultSeeRespTimeout,
439 Nanoseconds timeoutInd = kDefaultSeeIndTimeout);
456 bool waitForInd(bool reqSent, Nanoseconds timeoutInd);
/system/chre/platform/shared/
Dsystem_time.cc21 Nanoseconds gStartTime(0);
27 Nanoseconds SystemTime::getUptime() { in getUptime()
/system/chre/platform/slpi/include/chre/platform/slpi/smgr/
Dplatform_sensor_util.h35 uint16_t intervalToSmgrSamplingRate(Nanoseconds interval);
44 uint32_t intervalToSmgrQ16ReportRate(Nanoseconds interval);
Dsmr_helper.h39 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/
Dsystem_time.h40 static Nanoseconds getMonotonicTime();
48 static Nanoseconds getUptime();
/system/chre/platform/slpi/
Dsystem_time.cc36 Nanoseconds SystemTime::getMonotonicTime() { in getMonotonicTime()
37 return Nanoseconds(getNanosecondsFromQTimerTicks(uTimetick_Get())); in getMonotonicTime()
/system/chre/pal/tests/src/
Dwifi_pal_impl_test.cc42 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);
200 chre::Nanoseconds timeoutNs) { in waitForAsyncResponseAssertSuccess()

123