Home
last modified time | relevance | path

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

/system/chre/util/include/chre/util/
Dtime_impl.h24 constexpr Seconds::Seconds(uint64_t seconds) : mSeconds(seconds) {} in Seconds() function
26 constexpr uint64_t Seconds::toRawNanoseconds() const { in toRawNanoseconds()
35 constexpr uint64_t Seconds::getMilliseconds() const { in getMilliseconds()
108 constexpr Nanoseconds::Nanoseconds(Seconds seconds) in Nanoseconds()
129 constexpr Nanoseconds operator+(const Seconds &secs, const Nanoseconds &nanos) {
Dtime.h49 class Seconds {
54 constexpr explicit Seconds(uint64_t seconds);
190 constexpr Nanoseconds(Seconds seconds);
235 constexpr Nanoseconds operator+(const Seconds &secs, const Nanoseconds &nanos);
/system/chre/util/tests/
Dtime_test.cc29 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;
71 .latency = Seconds(4).toRawNanoseconds(),
101 .latency = Seconds(4).toRawNanoseconds(),
111 .latency = Seconds(4).toRawNanoseconds(),
121 .latency = Seconds(4).toRawNanoseconds(),
170 .interval = Seconds(2).toRawNanoseconds(),
180 .interval = Seconds(2).toRawNanoseconds(),
190 .interval = Seconds(2).toRawNanoseconds(),
201 .latency = Seconds(4).toRawNanoseconds(),
211 .latency = Seconds(4).toRawNanoseconds(),
[all …]
/system/chre/platform/shared/include/chre/platform/shared/
Ddram_vote_client.h66 static constexpr Seconds kMaxDramDuration = Seconds(300);
/system/chre/platform/slpi/include/chre/platform/slpi/see/
Disland_vote_client.h74 static constexpr Seconds kSeeMaxBigImageDuration = Seconds(300);
Dsee_helper.h84 constexpr Nanoseconds kDefaultSeeWaitTimeout = Seconds(30);
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/linux/
Dsystem_time.cc39 return Seconds(static_cast<uint64_t>(timeNow.tv_sec)) + in getMonotonicTime()
/system/chre/platform/slpi/see/
Disland_vote_client.cc30 constexpr Seconds IslandVoteClient::kSeeMaxBigImageDuration;
Dplatform_sensor_manager.cc170 if (SystemTime::getMonotonicTime() < (kDefaultSeeWaitTimeout + Seconds(15))) { in handleMissingSensor()
171 Nanoseconds delay(5 * Seconds(60).toRawNanoseconds()); // 5 minutes in handleMissingSensor()
341 ceilf(Seconds(1).toRawNanoseconds() / maxSampleRate)); in addSensor()
Dsee_helper.cc963 ceilf(Seconds(1).toRawNanoseconds() / event.sample_rate)); in decodeSnsStdSensorPhysicalConfigEvent()
/system/chre/apps/unload_tester/
Dunload_tester.cc57 constexpr uint64_t kTimerDuration = Seconds(2).toRawNanoseconds(); in nanoappStart()
/system/chre/apps/test/common/permission_test/src/
Dpermission_test.cc40 constexpr Nanoseconds kGnssMinInterval = Seconds(1);
/system/chre/apps/test/common/chre_stress_test/src/
Dchre_stress_test_manager.cc35 constexpr chre::Nanoseconds kWifiScanInterval = chre::Seconds(5);
356 constexpr uint64_t kTimerDelayNs = Seconds(60).toRawNanoseconds(); in handleGnssLocationStartCommand()
373 constexpr uint64_t kTimerDelayNs = Seconds(60).toRawNanoseconds(); in handleGnssMeasurementStartCommand()
/system/chre/apps/wifi_world/
Dwifi_world.cc28 using chre::Seconds;
52 constexpr Nanoseconds kWifiScanInterval = Nanoseconds(Seconds(10));
/system/chre/pal/tests/src/
Dgnss_pal_impl_test.cc45 using ::chre::Seconds;
56 const Nanoseconds kGnssEventTimeoutNs = Seconds(60);
Dwifi_pal_impl_test.cc43 using ::chre::Seconds;
/system/chre/apps/power_test/common/
Drequest_manager.cc269 bool success = requestTimer(enable, TimerType::WIFI, Seconds(1)); in requestBreakIt()
272 success &= requestTimer(enable, TimerType::CELL, Seconds(1)); in requestBreakIt()
/system/chre/platform/slpi/
Dhost_link.cc637 constexpr Seconds kOpportunisticTimeSyncPeriod = Seconds(60 * 60 * 1); in chre_slpi_get_message_to_host()
927 constexpr Seconds kClockDriftTimeSyncPeriod = in handleTimeSyncMessage()
928 Seconds(60 * 60 * 6); // 6 hours in handleTimeSyncMessage()
/system/chre/apps/wwan_world/
Dwwan_world.cc34 const Nanoseconds kCellInfoInterval = Nanoseconds(Seconds(10));