Home
last modified time | relevance | path

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

/system/chre/util/include/chre/util/
Dtime_impl.h27 constexpr uint64_t Seconds::toRawNanoseconds() const { in toRawNanoseconds() function
51 nanoseconds.toRawNanoseconds() / kOneMillisecondInNanoseconds) {} in Milliseconds()
53 constexpr uint64_t Milliseconds::toRawNanoseconds() const { in toRawNanoseconds() function
82 nanoseconds.toRawNanoseconds() / kOneMicrosecondInNanoseconds) {} in Microseconds()
84 constexpr uint64_t Microseconds::toRawNanoseconds() const { in toRawNanoseconds() function
107 : mNanoseconds(seconds.toRawNanoseconds()) {} in Nanoseconds()
110 : mNanoseconds(milliseconds.toRawNanoseconds()) {} in Nanoseconds()
113 : mNanoseconds(microseconds.toRawNanoseconds()) {} in Nanoseconds()
115 constexpr uint64_t Nanoseconds::toRawNanoseconds() const { in toRawNanoseconds() function
128 return Nanoseconds(secs.toRawNanoseconds() + nanos.toRawNanoseconds());
[all …]
Dtime.h61 constexpr uint64_t toRawNanoseconds() const;
100 constexpr uint64_t toRawNanoseconds() const;
149 constexpr uint64_t toRawNanoseconds() const;
207 constexpr uint64_t toRawNanoseconds() const;
Dscope_timer_impl.h30 mName, (stopTime - mStartTime).toRawNanoseconds()); in ~ScopeTimer()
/system/chre/util/tests/
Dtime_test.cc42 EXPECT_EQ(t.toRawNanoseconds(), 5 * kOneSecondInNanoseconds); in TEST()
47 EXPECT_EQ(t.toRawNanoseconds(), UINT64_MAX); in TEST()
89 EXPECT_EQ(t.toRawNanoseconds(), 5 * kOneMillisecondInNanoseconds); in TEST()
94 EXPECT_EQ(t.toRawNanoseconds(), UINT64_MAX); in TEST()
117 EXPECT_EQ(t.toRawNanoseconds(), 5 * kOneMicrosecondInNanoseconds); in TEST()
122 EXPECT_EQ(t.toRawNanoseconds(), UINT64_MAX); in TEST()
133 EXPECT_EQ(t.toRawNanoseconds(), 0); in TEST()
138 EXPECT_EQ(t.toRawNanoseconds(), 5); in TEST()
144 EXPECT_EQ(tNano.toRawNanoseconds(), 5 * kOneSecondInNanoseconds); in TEST()
150 EXPECT_EQ(tNano.toRawNanoseconds(), 5 * kOneMillisecondInNanoseconds); in TEST()
[all …]
/system/chre/apps/sensor_world/
Dsensor_world.cc69 .interval = Milliseconds(80).toRawNanoseconds(),
70 .latency = Seconds(4).toRawNanoseconds(),
93 .interval = Milliseconds(80).toRawNanoseconds(),
94 .latency = Seconds(4).toRawNanoseconds(),
101 .interval = Milliseconds(80).toRawNanoseconds(),
102 .latency = Seconds(4).toRawNanoseconds(),
109 .interval = Milliseconds(200).toRawNanoseconds(),
110 .latency = Seconds(4).toRawNanoseconds(),
117 .interval = Milliseconds(200).toRawNanoseconds(),
125 .interval = Milliseconds(200).toRawNanoseconds(),
[all …]
/system/chre/apps/audio_stress_test/
Daudio_stress_test.cc114 && source.minBufferDuration <= kBufferDuration.toRawNanoseconds() in discoverAudioHandle()
115 && source.maxBufferDuration >= kBufferDuration.toRawNanoseconds() in discoverAudioHandle()
133 lastAudioDuration.toRawNanoseconds()); in checkTestPassing()
142 if (!chreAudioConfigureSource(gAudioHandle, true, kBufferDuration.toRawNanoseconds(), in requestAudioForCurrentTestState()
143 kBufferDuration.toRawNanoseconds())) { in requestAudioForCurrentTestState()
146 LOGI("Enabled audio for %" PRIu64, testStateDuration.toRawNanoseconds()); in requestAudioForCurrentTestState()
153 LOGI("Disabled audio for %" PRIu64, testStateDuration.toRawNanoseconds()); in requestAudioForCurrentTestState()
163 gTimerHandle = chreTimerSet(kStressPlan[gTestPosition].toRawNanoseconds(), in advanceTestPosition()
/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()
372 uint64_t slpiTime = SystemTime::getMonotonicTime().toRawNanoseconds(); in populateSensorDataHeader()
898 if (status.interval != request.getInterval().toRawNanoseconds()) { in updateSamplingStatus()
900 status.interval = request.getInterval().toRawNanoseconds(); in updateSamplingStatus()
902 if (status.latency != request.getLatency().toRawNanoseconds()) { in updateSamplingStatus()
904 status.latency = request.getLatency().toRawNanoseconds(); in updateSamplingStatus()
1174 uint64_t cappedInterval = chreRequest.getInterval().toRawNanoseconds(); in populateSensorRequest()
/system/chre/core/tests/
Daudio_request_manager_test.cc27 EXPECT_EQ(duration.toRawNanoseconds(), 500000000); in TEST()
33 EXPECT_EQ(duration.toRawNanoseconds(), 1000000000); in TEST()
39 EXPECT_EQ(duration.toRawNanoseconds(), 100000000000); in TEST()
/system/chre/platform/linux/
Dplatform_audio.cc52 .toRawNanoseconds(); in audioSourceCallback()
89 eventDelay.toRawNanoseconds()); in requestAudioDataEvent()
120 source->minBufferDuration.toRawNanoseconds(); in getAudioSource()
122 source->maxBufferDuration.toRawNanoseconds(); in getAudioSource()
Dsystem_timer.cc81 if (delay.toRawNanoseconds() == 0) { in set()
88 return setInternal(delay.toRawNanoseconds()); in set()
/system/chre/platform/android/
Dplatform_audio.cc50 .toRawNanoseconds(); in audioReadCallback()
114 kAndroidAudioMinBufferSize, kAndroidAudioSampleRate).toRawNanoseconds(); in PlatformAudio()
116 bufferSize, kAndroidAudioSampleRate).toRawNanoseconds(); in PlatformAudio()
/system/chre/platform/linux/include/chre/target_platform/
Dcondition_variable_impl.h38 mutex, std::chrono::nanoseconds(timeout.toRawNanoseconds())); in wait_for()
/system/chre/platform/shared/
Dpal_system_api.cc35 return SystemTime::getMonotonicTime().toRawNanoseconds(); in palSystemApiGetCurrentTime()
Dchre_api_re.cc29 return chre::SystemTime::getMonotonicTime().toRawNanoseconds(); in chreGetTime()
/system/chre/apps/unload_tester/
Dunload_tester.cc54 constexpr uint64_t kTimerDuration = Seconds(2).toRawNanoseconds(); in nanoappStart()
/system/chre/platform/slpi/
Dplatform_audio.cc111 handle, numSamples, eventDelay.toRawNanoseconds()); in requestAudioDataEvent()
/system/chre/core/include/chre/core/
Daudio_request_manager.h141 return static_cast<uint32_t>((sampleRate * duration.toRawNanoseconds()) in getSampleCountFromRateAndDuration()
/system/chre/apps/wwan_world/
Dwwan_world.cc144 gCellInfoTimerHandle = chreTimerSet(kCellInfoInterval.toRawNanoseconds(), in nanoappStart()
/system/chre/core/
Dsensor_request_manager.cc32 uint64_t requestedInterval = sensorRequest.getInterval().toRawNanoseconds(); in isSensorRequestValid()
425 request.getInterval().toRawNanoseconds(), in logStateToBuffer()
426 request.getLatency().toRawNanoseconds(), in logStateToBuffer()
/system/chre/apps/wifi_world/
Dwifi_world.cc123 gWifiScanTimerHandle = chreTimerSet(kWifiScanInterval.toRawNanoseconds(), in requestDelayedWifiScan()
/system/chre/platform/slpi/see/
Dplatform_sensor.cc436 ceilf(Seconds(1).toRawNanoseconds() / attr.maxSampleRate)); in addSensor()
734 kOneSecondInNanoseconds / request.getInterval().toRawNanoseconds()), in applyRequest()
738 : static_cast<uint32_t>(request.getLatency().toRawNanoseconds() in applyRequest()
Dsee_helper.cc941 ceilf(Seconds(1).toRawNanoseconds() / event.sample_rate)); in decodeSnsStdSensorPhysicalConfigEvent()