Home
last modified time | relevance | path

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

/system/chre/core/tests/
Dsensor_request_test.cc21 using chre::Nanoseconds;
48 EXPECT_EQ(request.getInterval(), Nanoseconds(CHRE_SENSOR_INTERVAL_DEFAULT)); in TEST()
49 EXPECT_EQ(request.getLatency(), Nanoseconds(CHRE_SENSOR_LATENCY_DEFAULT)); in TEST()
55 Nanoseconds(0), Nanoseconds(0)); in TEST()
57 Nanoseconds(0), Nanoseconds(0)); in TEST()
61 EXPECT_EQ(mergedRequest.getInterval(), Nanoseconds(0)); in TEST()
62 EXPECT_EQ(mergedRequest.getLatency(), Nanoseconds(0)); in TEST()
68 Nanoseconds(0), Nanoseconds(0)); in TEST()
70 Nanoseconds(0), Nanoseconds(0)); in TEST()
74 EXPECT_EQ(mergedRequest.getInterval(), Nanoseconds(0)); in TEST()
[all …]
/system/chre/util/include/chre/util/
Dtime_impl.h28 constexpr Milliseconds::Milliseconds(Nanoseconds nanoseconds) in Milliseconds()
47 constexpr Microseconds::Microseconds(Nanoseconds nanoseconds) in Microseconds()
63 constexpr Nanoseconds::Nanoseconds() in Nanoseconds() function
66 constexpr Nanoseconds::Nanoseconds(uint64_t nanoseconds) in Nanoseconds() function
69 constexpr Nanoseconds::Nanoseconds(Seconds seconds) in Nanoseconds() function
72 constexpr Nanoseconds::Nanoseconds(Milliseconds milliseconds) in Nanoseconds() function
75 constexpr Nanoseconds::Nanoseconds(Microseconds microseconds) in Nanoseconds() function
78 constexpr uint64_t Nanoseconds::toRawNanoseconds() const { in toRawNanoseconds()
82 constexpr bool Nanoseconds::operator==(const Nanoseconds& nanos) const {
86 constexpr bool Nanoseconds::operator!=(const Nanoseconds& nanos) const {
[all …]
Dtime.h27 class Nanoseconds; variable
62 constexpr Milliseconds(Nanoseconds nanoseconds);
97 constexpr Microseconds(Nanoseconds nanoseconds);
122 class Nanoseconds {
127 constexpr Nanoseconds();
132 constexpr explicit Nanoseconds(uint64_t nanoseconds);
137 constexpr Nanoseconds(Seconds seconds);
142 constexpr Nanoseconds(Milliseconds milliseconds);
147 constexpr Nanoseconds(Microseconds microseconds);
162 constexpr bool operator==(const Nanoseconds& nanos) const;
[all …]
/system/chre/platform/slpi/tests/
Dplatform_sensor_util_test.cc24 using chre::Nanoseconds;
28 uint16_t rate = intervalToSmgrSamplingRate(Nanoseconds(0)); in TEST()
33 constexpr Nanoseconds kTenHertzInterval(Milliseconds(20)); in TEST()
39 constexpr Nanoseconds kZeroPointFiveHertzInterval(Seconds(2)); in TEST()
45 uint32_t rate = intervalToSmgrQ16ReportRate(Nanoseconds(0)); in TEST()
50 constexpr Nanoseconds kTenHertzInterval(Milliseconds(20)); in TEST()
56 constexpr Nanoseconds kZeroPointFiveHertzInterval(Seconds(2)); in TEST()
62 uint32_t rate = intervalToSmgrQ16ReportRate(Nanoseconds(1)); in TEST()
/system/chre/core/include/chre/core/
Dsensor_request.h250 SensorRequest(SensorMode mode, Nanoseconds interval, Nanoseconds latency);
262 SensorRequest(Nanoapp *nanoapp, SensorMode mode, Nanoseconds interval,
263 Nanoseconds latency);
286 Nanoseconds getInterval() const;
292 Nanoseconds getLatency() const;
310 Nanoseconds mInterval;
314 Nanoseconds mLatency;
Dwifi_scan_request.h88 const Nanoseconds& maxScanAge,
100 const Nanoseconds& getMaxScanAge() const;
117 Nanoseconds mMaxScanAge;
Dtimer_pool.h62 TimerHandle setTimer(const Nanoapp *nanoapp, Nanoseconds duration,
92 Nanoseconds expirationTime;
95 Nanoseconds duration;
/system/chre/platform/slpi/
Dplatform_sensor_util.cc28 uint16_t intervalToSmgrSamplingRate(Nanoseconds interval) { in intervalToSmgrSamplingRate()
32 } else if (interval != Nanoseconds(0)) { in intervalToSmgrSamplingRate()
40 uint32_t intervalToSmgrQ16ReportRate(Nanoseconds interval) { in intervalToSmgrQ16ReportRate()
42 if (interval != Nanoseconds(0)) { in intervalToSmgrQ16ReportRate()
Dsystem_time.cc27 Nanoseconds SystemTime::getMonotonicTime() { in getMonotonicTime()
Dsystem_timer.cc48 Nanoseconds delay) { in set()
Dplatform_sensor.cc813 isOneShot ? Nanoseconds(minInterval) : chreRequest.getInterval(), in populateSensorRequest()
814 isOneShot ? Nanoseconds(0) : chreRequest.getLatency()); in populateSensorRequest()
821 Nanoseconds batchingInterval = in populateSensorRequest()
/system/chre/platform/linux/
Dsystem_time.cc28 Nanoseconds SystemTime::getMonotonicTime() { in getMonotonicTime()
33 return Nanoseconds(UINT64_MAX); in getMonotonicTime()
36 return Seconds(timeNow.tv_sec) + Nanoseconds(timeNow.tv_nsec); in getMonotonicTime()
Dsystem_timer.cc78 Nanoseconds delay) { in set()
82 delay = Nanoseconds(1); in set()
/system/chre/core/
Dsensor_request.cc202 Nanoseconds(CHRE_SENSOR_INTERVAL_DEFAULT), in SensorRequest()
203 Nanoseconds(CHRE_SENSOR_LATENCY_DEFAULT)) {} in SensorRequest()
206 Nanoseconds interval, in SensorRequest()
207 Nanoseconds latency) in SensorRequest()
211 Nanoseconds interval, in SensorRequest()
212 Nanoseconds latency) in SensorRequest()
261 Nanoseconds SensorRequest::getInterval() const { in getInterval()
265 Nanoseconds SensorRequest::getLatency() const { in getLatency()
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.cc32 TimerHandle TimerPool::setTimer(const Nanoapp *nanoapp, Nanoseconds duration, in setTimer()
167 Nanoseconds currentTime = SystemTime::getMonotonicTime(); in handleExpiredTimersAndScheduleNext()
187 Nanoseconds duration = currentTimerRequest.expirationTime - currentTime; in handleExpiredTimersAndScheduleNext()
/system/chre/platform/include/chre/platform/
Dsystem_time.h40 static Nanoseconds getMonotonicTime();
48 static Nanoseconds getUptime();
Dsystem_timer.h77 bool set(SystemTimerCallback *callback, void *data, Nanoseconds delay);
/system/chre/platform/slpi/include/chre/platform/slpi/
Dplatform_sensor_util.h35 uint16_t intervalToSmgrSamplingRate(Nanoseconds interval);
44 uint32_t intervalToSmgrQ16ReportRate(Nanoseconds interval);
/system/chre/platform/shared/
Dsystem_time.cc21 Nanoseconds gStartTime(0);
27 Nanoseconds SystemTime::getUptime() { in getUptime()
Dchre_api_sensor.cc25 using chre::Nanoseconds;
58 SensorRequest sensorRequest(nanoapp, sensorMode, Nanoseconds(interval), in chreSensorConfigure()
59 Nanoseconds(latency)); in chreSensorConfigure()
Dchre_api_re.cc44 chre::Nanoseconds(duration), cookie, oneShot); in chreTimerSet()
/system/chre/apps/wifi_world/
Dwifi_world.cc40 const Nanoseconds kWifiScanInterval = Nanoseconds(Seconds(10));