/system/chre/core/tests/ |
D | sensor_request_test.cc | 21 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/ |
D | time_impl.h | 28 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 …]
|
D | time.h | 27 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/ |
D | platform_sensor_util_test.cc | 24 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/ |
D | sensor_request.h | 250 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;
|
D | wifi_scan_request.h | 88 const Nanoseconds& maxScanAge, 100 const Nanoseconds& getMaxScanAge() const; 117 Nanoseconds mMaxScanAge;
|
D | timer_pool.h | 62 TimerHandle setTimer(const Nanoapp *nanoapp, Nanoseconds duration, 92 Nanoseconds expirationTime; 95 Nanoseconds duration;
|
/system/chre/platform/slpi/ |
D | platform_sensor_util.cc | 28 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()
|
D | system_time.cc | 27 Nanoseconds SystemTime::getMonotonicTime() { in getMonotonicTime()
|
D | system_timer.cc | 48 Nanoseconds delay) { in set()
|
D | platform_sensor.cc | 813 isOneShot ? Nanoseconds(minInterval) : chreRequest.getInterval(), in populateSensorRequest() 814 isOneShot ? Nanoseconds(0) : chreRequest.getLatency()); in populateSensorRequest() 821 Nanoseconds batchingInterval = in populateSensorRequest()
|
/system/chre/platform/linux/ |
D | system_time.cc | 28 Nanoseconds SystemTime::getMonotonicTime() { in getMonotonicTime() 33 return Nanoseconds(UINT64_MAX); in getMonotonicTime() 36 return Seconds(timeNow.tv_sec) + Nanoseconds(timeNow.tv_nsec); in getMonotonicTime()
|
D | system_timer.cc | 78 Nanoseconds delay) { in set() 82 delay = Nanoseconds(1); in set()
|
/system/chre/core/ |
D | sensor_request.cc | 202 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()
|
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 | 32 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/ |
D | system_time.h | 40 static Nanoseconds getMonotonicTime(); 48 static Nanoseconds getUptime();
|
D | system_timer.h | 77 bool set(SystemTimerCallback *callback, void *data, Nanoseconds delay);
|
/system/chre/platform/slpi/include/chre/platform/slpi/ |
D | platform_sensor_util.h | 35 uint16_t intervalToSmgrSamplingRate(Nanoseconds interval); 44 uint32_t intervalToSmgrQ16ReportRate(Nanoseconds interval);
|
/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; 58 SensorRequest sensorRequest(nanoapp, sensorMode, Nanoseconds(interval), in chreSensorConfigure() 59 Nanoseconds(latency)); in chreSensorConfigure()
|
D | chre_api_re.cc | 44 chre::Nanoseconds(duration), cookie, oneShot); in chreTimerSet()
|
/system/chre/apps/wifi_world/ |
D | wifi_world.cc | 40 const Nanoseconds kWifiScanInterval = Nanoseconds(Seconds(10));
|