Home
last modified time | relevance | path

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

12

/system/chre/util/include/chre/util/
Dtime_impl.h26 constexpr uint64_t Seconds::toRawNanoseconds() const { in toRawNanoseconds() function
50 : mMilliseconds(nanoseconds.toRawNanoseconds() / in Milliseconds()
53 constexpr uint64_t Milliseconds::toRawNanoseconds() const { in toRawNanoseconds() function
83 : mMicroseconds(nanoseconds.toRawNanoseconds() / in Microseconds()
86 constexpr uint64_t Microseconds::toRawNanoseconds() const { in toRawNanoseconds() function
109 : mNanoseconds(seconds.toRawNanoseconds()) {} in Nanoseconds()
112 : mNanoseconds(milliseconds.toRawNanoseconds()) {} in Nanoseconds()
115 : mNanoseconds(microseconds.toRawNanoseconds()) {} in Nanoseconds()
117 constexpr uint64_t Nanoseconds::toRawNanoseconds() const { in toRawNanoseconds() function
130 return Nanoseconds(secs.toRawNanoseconds() + nanos.toRawNanoseconds());
[all …]
Dtime.h62 constexpr uint64_t toRawNanoseconds() const;
101 constexpr uint64_t toRawNanoseconds() const;
150 constexpr uint64_t toRawNanoseconds() const;
208 constexpr uint64_t toRawNanoseconds() const;
Dscope_timer_impl.h30 (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.cc70 .interval = Milliseconds(80).toRawNanoseconds(),
71 .latency = Seconds(4).toRawNanoseconds(),
100 .interval = Milliseconds(80).toRawNanoseconds(),
101 .latency = Seconds(4).toRawNanoseconds(),
110 .interval = Milliseconds(80).toRawNanoseconds(),
111 .latency = Seconds(4).toRawNanoseconds(),
120 .interval = Milliseconds(200).toRawNanoseconds(),
121 .latency = Seconds(4).toRawNanoseconds(),
130 .interval = Milliseconds(200).toRawNanoseconds(),
140 .interval = Milliseconds(200).toRawNanoseconds(),
[all …]
/system/chre/apps/audio_stress_test/
Daudio_stress_test.cc115 source.minBufferDuration <= kBufferDuration.toRawNanoseconds() && in discoverAudioHandle()
116 source.maxBufferDuration >= kBufferDuration.toRawNanoseconds() && in discoverAudioHandle()
134 lastAudioDuration.toRawNanoseconds()); in checkTestPassing()
144 kBufferDuration.toRawNanoseconds(), in requestAudioForCurrentTestState()
145 kBufferDuration.toRawNanoseconds())) { in requestAudioForCurrentTestState()
148 LOGI("Enabled audio for %" PRIu64, testStateDuration.toRawNanoseconds()); in requestAudioForCurrentTestState()
155 LOGI("Disabled audio for %" PRIu64, testStateDuration.toRawNanoseconds()); in requestAudioForCurrentTestState()
165 gTimerHandle = chreTimerSet(kStressPlan[gTestPosition].toRawNanoseconds(), in advanceTestPosition()
/system/chre/core/tests/
Daudio_util_test.cc27 EXPECT_EQ(duration.toRawNanoseconds(), 500000000ull); in TEST()
33 EXPECT_EQ(duration.toRawNanoseconds(), 1000000000ull); in TEST()
39 EXPECT_EQ(duration.toRawNanoseconds(), 100000000000ull); in TEST()
/system/chre/apps/test/common/permission_test/src/
Dpermission_test.cc59 if (chreGnssLocationSessionStartAsync(kGnssMinInterval.toRawNanoseconds(), in checkGnssApis()
60 kGnssMinInterval.toRawNanoseconds(), in checkGnssApis()
68 if (chreGnssMeasurementSessionStartAsync(kGnssMinInterval.toRawNanoseconds(), in checkGnssApis()
/system/chre/platform/linux/
Dplatform_audio.cc52 (SystemTime::getMonotonicTime() - samplingTime).toRawNanoseconds(); in audioSourceCallback()
87 handle, numSamples, eventDelay.toRawNanoseconds()); in requestAudioDataEvent()
118 source->minBufferDuration.toRawNanoseconds(); in getAudioSource()
120 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 (SystemTime::getMonotonicTime() - samplingTime).toRawNanoseconds(); in audioReadCallback()
114 .toRawNanoseconds(); in PlatformAudio()
117 .toRawNanoseconds(); in PlatformAudio()
/system/chre/core/include/chre/core/
Daudio_util.h65 return static_cast<uint32_t>((sampleRate * duration.toRawNanoseconds()) / in getSampleCountFromRateAndDuration()
/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()
Dpw_tokenized_log.cc46 chre::SystemTime::getMonotonicTime().toRawNanoseconds(); in pw_TokenizerHandleEncodedMessageWithPayload()
Dplatform_sensor_manager.cc90 request.getInterval().toRawNanoseconds(), in configureSensor()
91 request.getLatency().toRawNanoseconds()); in configureSensor()
Dchre_api_re.cc30 return chre::SystemTime::getMonotonicTime().toRawNanoseconds(); in chreGetTime()
Dlog_buffer_manager.cc112 uint64_t timeNs = SystemTime::getMonotonicTime().toRawNanoseconds(); in logVa()
/system/chre/core/
Devent_loop.cc359 timeSince.toRawNanoseconds() / kOneMinuteInNanoseconds; in logStateToBuffer()
361 kIntervalWakeupBucket.toRawNanoseconds() / kOneMinuteInNanoseconds; in logStateToBuffer()
522 duration.toRawNanoseconds() / kIntervalWakeupBucket.toRawNanoseconds()); in handleNanoappWakeupBuckets()
Dsensor_request_manager.cc35 uint64_t requestedInterval = sensorRequest.getInterval().toRawNanoseconds(); in isSensorRequestValid()
564 request.getInterval().toRawNanoseconds(), in logStateToBuffer()
565 request.getLatency().toRawNanoseconds(), request.getInstanceId()); in logStateToBuffer()
577 log.timestamp.toRawNanoseconds(), log.instanceId, in logStateToBuffer()
583 log.interval.toRawNanoseconds(), in logStateToBuffer()
584 log.latency.toRawNanoseconds()); in logStateToBuffer()
868 currentLatency = request.getLatency().toRawNanoseconds(); in configurePlatformSensor()
/system/chre/apps/unload_tester/
Dunload_tester.cc57 constexpr uint64_t kTimerDuration = Seconds(2).toRawNanoseconds(); in nanoappStart()
/system/chre/apps/test/common/chre_stress_test/src/
Dchre_stress_test_manager.cc356 constexpr uint64_t kTimerDelayNs = Seconds(60).toRawNanoseconds(); in handleGnssLocationStartCommand()
373 constexpr uint64_t kTimerDelayNs = Seconds(60).toRawNanoseconds(); in handleGnssMeasurementStartCommand()
515 setTimer(kWifiScanInterval.toRawNanoseconds(), true /* oneShot */, in requestDelayedWifiScan()
/system/chre/platform/slpi/
Dplatform_audio.cc114 eventDelay.toRawNanoseconds()); in requestAudioDataEvent()
/system/chre/platform/slpi/see/
Dplatform_sensor_manager.cc171 Nanoseconds delay(5 * Seconds(60).toRawNanoseconds()); // 5 minutes in handleMissingSensor()
341 ceilf(Seconds(1).toRawNanoseconds() / maxSampleRate)); in addSensor()
724 kOneSecondInNanoseconds / request.getInterval().toRawNanoseconds()), in configureSensor()
733 static_cast<uint32_t>(request.getLatency().toRawNanoseconds() / in configureSensor()
/system/chre/apps/power_test/common/
Drequest_manager.cc134 chreTimerSet(delay.toRawNanoseconds(), timerType, false /* oneShot */); in requestTimer()
144 enable, type, delay.toRawNanoseconds()); in requestTimer()

12