/system/chre/util/include/chre/util/ |
D | time_impl.h | 27 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 …]
|
D | time.h | 61 constexpr uint64_t toRawNanoseconds() const; 100 constexpr uint64_t toRawNanoseconds() const; 149 constexpr uint64_t toRawNanoseconds() const; 207 constexpr uint64_t toRawNanoseconds() const;
|
D | scope_timer_impl.h | 30 mName, (stopTime - mStartTime).toRawNanoseconds()); in ~ScopeTimer()
|
/system/chre/util/tests/ |
D | time_test.cc | 42 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/ |
D | sensor_world.cc | 69 .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/ |
D | audio_stress_test.cc | 114 && 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/ |
D | platform_sensor_util.cc | 45 (Seconds(1).toRawNanoseconds() / interval.toRawNanoseconds()); in intervalToSmgrSamplingRate() 59 freq = (Seconds(1).toRawNanoseconds() << 16) / interval.toRawNanoseconds(); in intervalToSmgrQ16ReportRate()
|
D | platform_sensor.cc | 99 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/ |
D | audio_request_manager_test.cc | 27 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/ |
D | platform_audio.cc | 52 .toRawNanoseconds(); in audioSourceCallback() 89 eventDelay.toRawNanoseconds()); in requestAudioDataEvent() 120 source->minBufferDuration.toRawNanoseconds(); in getAudioSource() 122 source->maxBufferDuration.toRawNanoseconds(); in getAudioSource()
|
D | system_timer.cc | 81 if (delay.toRawNanoseconds() == 0) { in set() 88 return setInternal(delay.toRawNanoseconds()); in set()
|
/system/chre/platform/android/ |
D | platform_audio.cc | 50 .toRawNanoseconds(); in audioReadCallback() 114 kAndroidAudioMinBufferSize, kAndroidAudioSampleRate).toRawNanoseconds(); in PlatformAudio() 116 bufferSize, kAndroidAudioSampleRate).toRawNanoseconds(); in PlatformAudio()
|
/system/chre/platform/linux/include/chre/target_platform/ |
D | condition_variable_impl.h | 38 mutex, std::chrono::nanoseconds(timeout.toRawNanoseconds())); in wait_for()
|
/system/chre/platform/shared/ |
D | pal_system_api.cc | 35 return SystemTime::getMonotonicTime().toRawNanoseconds(); in palSystemApiGetCurrentTime()
|
D | chre_api_re.cc | 29 return chre::SystemTime::getMonotonicTime().toRawNanoseconds(); in chreGetTime()
|
/system/chre/apps/unload_tester/ |
D | unload_tester.cc | 54 constexpr uint64_t kTimerDuration = Seconds(2).toRawNanoseconds(); in nanoappStart()
|
/system/chre/platform/slpi/ |
D | platform_audio.cc | 111 handle, numSamples, eventDelay.toRawNanoseconds()); in requestAudioDataEvent()
|
/system/chre/core/include/chre/core/ |
D | audio_request_manager.h | 141 return static_cast<uint32_t>((sampleRate * duration.toRawNanoseconds()) in getSampleCountFromRateAndDuration()
|
/system/chre/apps/wwan_world/ |
D | wwan_world.cc | 144 gCellInfoTimerHandle = chreTimerSet(kCellInfoInterval.toRawNanoseconds(), in nanoappStart()
|
/system/chre/core/ |
D | sensor_request_manager.cc | 32 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/ |
D | wifi_world.cc | 123 gWifiScanTimerHandle = chreTimerSet(kWifiScanInterval.toRawNanoseconds(), in requestDelayedWifiScan()
|
/system/chre/platform/slpi/see/ |
D | platform_sensor.cc | 436 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()
|
D | see_helper.cc | 941 ceilf(Seconds(1).toRawNanoseconds() / event.sample_rate)); in decodeSnsStdSensorPhysicalConfigEvent()
|