/system/chre/util/include/chre/util/ |
D | time_impl.h | 26 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 …]
|
D | time.h | 62 constexpr uint64_t toRawNanoseconds() const; 101 constexpr uint64_t toRawNanoseconds() const; 150 constexpr uint64_t toRawNanoseconds() const; 208 constexpr uint64_t toRawNanoseconds() const;
|
D | scope_timer_impl.h | 30 (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 | 70 .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/ |
D | audio_stress_test.cc | 115 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/ |
D | audio_util_test.cc | 27 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/ |
D | permission_test.cc | 59 if (chreGnssLocationSessionStartAsync(kGnssMinInterval.toRawNanoseconds(), in checkGnssApis() 60 kGnssMinInterval.toRawNanoseconds(), in checkGnssApis() 68 if (chreGnssMeasurementSessionStartAsync(kGnssMinInterval.toRawNanoseconds(), in checkGnssApis()
|
/system/chre/platform/linux/ |
D | platform_audio.cc | 52 (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()
|
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 (SystemTime::getMonotonicTime() - samplingTime).toRawNanoseconds(); in audioReadCallback() 114 .toRawNanoseconds(); in PlatformAudio() 117 .toRawNanoseconds(); in PlatformAudio()
|
/system/chre/core/include/chre/core/ |
D | audio_util.h | 65 return static_cast<uint32_t>((sampleRate * duration.toRawNanoseconds()) / in getSampleCountFromRateAndDuration()
|
/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 | pw_tokenized_log.cc | 46 chre::SystemTime::getMonotonicTime().toRawNanoseconds(); in pw_TokenizerHandleEncodedMessageWithPayload()
|
D | platform_sensor_manager.cc | 90 request.getInterval().toRawNanoseconds(), in configureSensor() 91 request.getLatency().toRawNanoseconds()); in configureSensor()
|
D | chre_api_re.cc | 30 return chre::SystemTime::getMonotonicTime().toRawNanoseconds(); in chreGetTime()
|
D | log_buffer_manager.cc | 112 uint64_t timeNs = SystemTime::getMonotonicTime().toRawNanoseconds(); in logVa()
|
/system/chre/core/ |
D | event_loop.cc | 359 timeSince.toRawNanoseconds() / kOneMinuteInNanoseconds; in logStateToBuffer() 361 kIntervalWakeupBucket.toRawNanoseconds() / kOneMinuteInNanoseconds; in logStateToBuffer() 522 duration.toRawNanoseconds() / kIntervalWakeupBucket.toRawNanoseconds()); in handleNanoappWakeupBuckets()
|
D | sensor_request_manager.cc | 35 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/ |
D | unload_tester.cc | 57 constexpr uint64_t kTimerDuration = Seconds(2).toRawNanoseconds(); in nanoappStart()
|
/system/chre/apps/test/common/chre_stress_test/src/ |
D | chre_stress_test_manager.cc | 356 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/ |
D | platform_audio.cc | 114 eventDelay.toRawNanoseconds()); in requestAudioDataEvent()
|
/system/chre/platform/slpi/see/ |
D | platform_sensor_manager.cc | 171 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/ |
D | request_manager.cc | 134 chreTimerSet(delay.toRawNanoseconds(), timerType, false /* oneShot */); in requestTimer() 144 enable, type, delay.toRawNanoseconds()); in requestTimer()
|