Home
last modified time | relevance | path

Searched refs:Seconds (Results 1 – 19 of 19) sorted by relevance

/system/chre/platform/slpi/smgr/tests/
Dplatform_sensor_util_test.cc25 using chre::Seconds;
39 constexpr Nanoseconds kZeroPointFiveHertzInterval = Seconds(2); in TEST()
45 constexpr Nanoseconds kOneNanoHzInterval = Seconds(1e9); in TEST()
68 constexpr Nanoseconds kZeroPointFiveHertzInterval = Seconds(2); in TEST()
/system/chre/util/include/chre/util/
Dtime_impl.h24 constexpr Seconds::Seconds(uint64_t seconds) in Seconds() function
27 constexpr uint64_t Seconds::toRawNanoseconds() const { in toRawNanoseconds()
35 constexpr uint64_t Seconds::getMilliseconds() const { in getMilliseconds()
106 constexpr Nanoseconds::Nanoseconds(Seconds seconds) in Nanoseconds()
127 constexpr Nanoseconds operator+(const Seconds& secs, const Nanoseconds& nanos) {
Dtime.h48 class Seconds {
53 constexpr explicit Seconds(uint64_t seconds);
189 constexpr Nanoseconds(Seconds seconds);
234 constexpr Nanoseconds operator+(const Seconds& secs, const Nanoseconds& nanos);
/system/chre/util/tests/
Dtime_test.cc21 using chre::Seconds;
41 Seconds t(5); in TEST()
46 Seconds t(UINT64_MAX / kOneSecondInNanoseconds + 1); in TEST()
51 Seconds t(5); in TEST()
56 Seconds t(UINT64_MAX / kOneSecondInMilliseconds + 1); in TEST()
142 Seconds tSec(5); in TEST()
172 Nanoseconds t = Seconds(5) + Nanoseconds(6); in TEST()
177 Nanoseconds t = Seconds(5) + Nanoseconds(UINT64_MAX); in TEST()
/system/chre/apps/sensor_world/
Dsensor_world.cc33 using chre::Seconds;
70 .latency = Seconds(4).toRawNanoseconds(),
94 .latency = Seconds(4).toRawNanoseconds(),
102 .latency = Seconds(4).toRawNanoseconds(),
110 .latency = Seconds(4).toRawNanoseconds(),
133 .interval = Seconds(2).toRawNanoseconds(),
141 .interval = Seconds(2).toRawNanoseconds(),
149 .interval = Seconds(2).toRawNanoseconds(),
158 .latency = Seconds(4).toRawNanoseconds(),
166 .latency = Seconds(4).toRawNanoseconds(),
[all …]
/system/chre/platform/slpi/include/chre/platform/slpi/see/
Disland_vote_client.h72 static constexpr Seconds kSeeMaxBigImageDuration = Seconds(300);
Dsee_helper.h84 constexpr Nanoseconds kDefaultSeeWaitTimeout = Seconds(5);
87 constexpr Nanoseconds kDefaultSeeRespTimeout = Seconds(1);
90 constexpr Nanoseconds kDefaultSeeIndTimeout = Seconds(2);
/system/chre/apps/audio_stress_test/
Daudio_stress_test.cc36 using chre::Seconds;
41 constexpr Nanoseconds kBufferDuration = Nanoseconds(Seconds(2));
50 constexpr Seconds kMaxAudioGap = Seconds(300);
/system/chre/platform/slpi/smgr/
Dplatform_sensor_util.cc45 (Seconds(1).toRawNanoseconds() / interval.toRawNanoseconds()); in intervalToSmgrSamplingRate()
59 freq = (Seconds(1).toRawNanoseconds() << 16) / interval.toRawNanoseconds(); in intervalToSmgrQ16ReportRate()
Dplatform_sensor.cc99 constexpr uint64_t kDefaultInterval = Seconds(1).toRawNanoseconds();
103 ((1ULL << 32) * Seconds(1).toRawNanoseconds()) / TIMETICK_NOMINAL_FREQ_HZ;
343 Seconds(1).toRawNanoseconds() / sensorInfo.MaxSampleRate); in addSensor()
365 return (ticks * Seconds(1).toRawNanoseconds()) / TIMETICK_NOMINAL_FREQ_HZ; in getNanosecondsFromSmgrTicks()
/system/chre/platform/linux/
Dsystem_time.cc39 return Seconds(static_cast<uint64_t>(timeNow.tv_sec)) in getMonotonicTime()
/system/chre/apps/wifi_world/
Dwifi_world.cc27 using chre::Seconds;
47 constexpr Nanoseconds kWifiScanInterval = Nanoseconds(Seconds(10));
/system/chre/platform/slpi/include/chre/platform/slpi/smgr/
Dsmr_helper.h39 constexpr Nanoseconds kDefaultSmrTimeout = Seconds(2);
43 constexpr Nanoseconds kDefaultSmrWaitTimeout = Seconds(5);
/system/chre/platform/slpi/see/
Disland_vote_client.cc30 constexpr Seconds IslandVoteClient::kSeeMaxBigImageDuration;
Dplatform_sensor.cc160 if (SystemTime::getMonotonicTime() < Seconds(45)) { in handleMissingSensor()
436 ceilf(Seconds(1).toRawNanoseconds() / attr.maxSampleRate)); in addSensor()
Dsee_helper.cc941 ceilf(Seconds(1).toRawNanoseconds() / event.sample_rate)); in decodeSnsStdSensorPhysicalConfigEvent()
/system/chre/apps/unload_tester/
Dunload_tester.cc54 constexpr uint64_t kTimerDuration = Seconds(2).toRawNanoseconds(); in nanoappStart()
/system/chre/platform/slpi/
Dhost_link.cc642 constexpr Seconds kOpportunisticTimeSyncPeriod = Seconds(60 * 60 * 1); in chre_slpi_get_message_to_host()
850 constexpr Seconds kClockDriftTimeSyncPeriod = Seconds(60 * 60 * 6); // 6 hours in handleTimeSyncMessage()
/system/chre/apps/wwan_world/
Dwwan_world.cc34 const Nanoseconds kCellInfoInterval = Nanoseconds(Seconds(10));