Home
last modified time | relevance | path

Searched refs:nanoseconds (Results 1 – 25 of 75) sorted by relevance

123

/hardware/google/pixel/power-libperfmgr/aidl/
DPowerHintSession.h40 using std::chrono::nanoseconds;
60 nanoseconds duration;
73 int64_t durationNanos, nanoseconds adpfRate);
110 const nanoseconds kAdpfRate;
DPowerHintSession.cpp41 using std::chrono::nanoseconds;
136 int64_t durationNanos, const nanoseconds adpfRate) in PowerHintSession()
139 mDescriptor->duration = std::chrono::nanoseconds(durationNanos); in PowerHintSession()
266 mDescriptor->duration = std::chrono::nanoseconds(targetDurationNanos); in updateTargetWorkDuration()
445 duration_cast<nanoseconds>(next - now).count(), this, NULL); in updateStaleTimer()
473 duration_cast<nanoseconds>(when - now).count(), this, NULL); in handleMessage()
/hardware/interfaces/neuralnetworks/1.3/utils/src/
DConversions.cpp45 std::chrono::nanoseconds makeNanosFromUint64(uint64_t nanoseconds) { in makeNanosFromUint64() argument
46 constexpr auto kMaxCount = std::chrono::nanoseconds::max().count(); in makeNanosFromUint64()
47 using CommonType = std::common_type_t<std::chrono::nanoseconds::rep, uint64_t>; in makeNanosFromUint64()
48 const auto count = std::min<CommonType>(kMaxCount, nanoseconds); in makeNanosFromUint64()
49 return std::chrono::nanoseconds{static_cast<std::chrono::nanoseconds::rep>(count)}; in makeNanosFromUint64()
52 uint64_t makeUint64FromNanos(std::chrono::nanoseconds nanoseconds) { in makeUint64FromNanos() argument
53 if (nanoseconds < std::chrono::nanoseconds::zero()) { in makeUint64FromNanos()
57 using CommonType = std::common_type_t<std::chrono::nanoseconds::rep, uint64_t>; in makeUint64FromNanos()
58 const auto count = std::min<CommonType>(kMaxCount, nanoseconds.count()); in makeUint64FromNanos()
272 constexpr auto kZeroNano = std::chrono::nanoseconds::zero(); in unvalidatedConvert()
[all …]
/hardware/interfaces/neuralnetworks/1.3/
Dtypes.t115 * measured in nanoseconds.
123 * measured in nanoseconds.
129 * Optional timeout duration measured in nanoseconds.
136 * Timeout duration measured in nanoseconds.
138 uint64_t nanoseconds;
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DEmulatedVehicleHal.h69 constexpr std::chrono::nanoseconds hertzToNanoseconds(float hz) const { in hertzToNanoseconds()
70 return std::chrono::nanoseconds(static_cast<int64_t>(1000000000L / hz)); in hertzToNanoseconds()
DFakeValueGenerator.h42 using Nanos = std::chrono::nanoseconds;
/hardware/interfaces/graphics/composer/2.4/
DIComposerCallback.hal30 * occurred, in nanoseconds.
31 * @param vsyncPeriodNanos is the display vsync period in nanoseconds i.e. the next onVsync_2_4
32 * is expected to be called vsyncPeriodNanos nanoseconds after this call.
/hardware/qcom/sdm845/display/libhistogram/
Dringbuffer_test.cpp28 return std::chrono::duration_cast<std::chrono::nanoseconds>(time).count(); in toNsecs()
45 void increment_by(std::chrono::nanoseconds inc) { fake_time = fake_time + inc.count(); } in increment_by()
343 auto weight0 = std::chrono::duration_cast<std::chrono::nanoseconds>(1h); in TEST_F()
351 auto weight1 = std::chrono::duration_cast<std::chrono::nanoseconds>(2min); in TEST_F()
370 auto eon = std::chrono::nanoseconds(std::numeric_limits<uint64_t>::max()); in TEST_F()
382 auto weight0 = std::chrono::duration_cast<std::chrono::nanoseconds>(1ms); in TEST_F()
383 auto weight1 = std::chrono::duration_cast<std::chrono::nanoseconds>(1h); in TEST_F()
384 auto weight2 = std::chrono::duration_cast<std::chrono::nanoseconds>(1s); in TEST_F()
386 auto weight3 = std::chrono::duration_cast<std::chrono::nanoseconds>(gigasecond(4)); in TEST_F()
Dringbuffer.cpp48 std::chrono::nanoseconds(now - ringbuffer.front().start_timestamp)); in update_cumulative()
123 const auto time_displayed = std::chrono::nanoseconds(end_timestamp - it->start_timestamp); in collect_max()
/hardware/qcom/sm8150/display/libhistogram/
Dringbuffer_test.cpp28 return std::chrono::duration_cast<std::chrono::nanoseconds>(time).count(); in toNsecs()
45 void increment_by(std::chrono::nanoseconds inc) { fake_time = fake_time + inc.count(); } in increment_by()
343 auto weight0 = std::chrono::duration_cast<std::chrono::nanoseconds>(1h); in TEST_F()
351 auto weight1 = std::chrono::duration_cast<std::chrono::nanoseconds>(2min); in TEST_F()
370 auto eon = std::chrono::nanoseconds(std::numeric_limits<uint64_t>::max()); in TEST_F()
382 auto weight0 = std::chrono::duration_cast<std::chrono::nanoseconds>(1ms); in TEST_F()
383 auto weight1 = std::chrono::duration_cast<std::chrono::nanoseconds>(1h); in TEST_F()
384 auto weight2 = std::chrono::duration_cast<std::chrono::nanoseconds>(1s); in TEST_F()
386 auto weight3 = std::chrono::duration_cast<std::chrono::nanoseconds>(gigasecond(4)); in TEST_F()
Dringbuffer.cpp48 std::chrono::nanoseconds(now - ringbuffer.front().start_timestamp)); in update_cumulative()
123 const auto time_displayed = std::chrono::nanoseconds(end_timestamp - it->start_timestamp); in collect_max()
/hardware/qcom/sm7250/display/libhistogram/
Dringbuffer_test.cpp28 return std::chrono::duration_cast<std::chrono::nanoseconds>(time).count(); in toNsecs()
45 void increment_by(std::chrono::nanoseconds inc) { fake_time = fake_time + inc.count(); } in increment_by()
342 auto weight0 = std::chrono::duration_cast<std::chrono::nanoseconds>(1h); in TEST_F()
351 auto weight1 = std::chrono::duration_cast<std::chrono::nanoseconds>(2min); in TEST_F()
373 auto eon = std::chrono::nanoseconds(std::numeric_limits<uint64_t>::max()); in TEST_F()
385 auto weight0 = std::chrono::duration_cast<std::chrono::nanoseconds>(1ms); in TEST_F()
386 auto weight1 = std::chrono::duration_cast<std::chrono::nanoseconds>(1h); in TEST_F()
387 auto weight2 = std::chrono::duration_cast<std::chrono::nanoseconds>(1s); in TEST_F()
389 auto weight3 = std::chrono::duration_cast<std::chrono::nanoseconds>(gigasecond(4)); in TEST_F()
Dringbuffer.cpp50 std::chrono::nanoseconds(now - ringbuffer.front().start_timestamp)); in update_cumulative()
134 const auto time_displayed = std::chrono::nanoseconds(end_timestamp - it->start_timestamp); in collect_max()
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DConcurrentQueue.h106 std::chrono::nanoseconds batchInterval, in run()
150 std::chrono::nanoseconds mBatchInterval;
DRecurrentTimer.h37 using Nanos = std::chrono::nanoseconds;
56 void registerRecurrentEvent(std::chrono::nanoseconds interval, int32_t cookie) { in registerRecurrentEvent()
/hardware/interfaces/gnss/2.1/
DIGnssMeasurementCallback.hal80 * The full inter-signal bias (ISB) in nanoseconds.
109 * The full ISB of GnssClock.referenceSignalTypeForIsb is defined to be 0.0 nanoseconds.
114 * 1-sigma uncertainty associated with the full inter-signal bias in nanoseconds.
119 * The satellite inter-signal bias in nanoseconds.
137 * nanoseconds.
142 * 1-sigma uncertainty associated with the satellite inter-signal bias in nanoseconds.
/hardware/interfaces/sensors/common/default/2.X/multihal/
DScopedWakelock.cpp26 return std::chrono::duration_cast<std::chrono::nanoseconds>( in getTimeNow()
/hardware/interfaces/automotive/can/1.0/default/
DCanSocket.h31 using ReadCallback = std::function<void(const struct canfd_frame&, std::chrono::nanoseconds)>;
DCanBus.h89 void onRead(const struct canfd_frame& frame, std::chrono::nanoseconds timestamp);
DCanSocket.cpp123 const std::chrono::nanoseconds ts(elapsedRealtimeNano()); in readerThread()
/hardware/interfaces/automotive/vehicle/2.0/default/tests/
DRecurrentTimer_test.cpp25 using std::chrono::nanoseconds;
/hardware/interfaces/gnss/2.0/
Dtypes.hal51 * Estimate of the elapsed time since boot value for the corresponding event in nanoseconds.
57 * timestamp, with the reported measurements in nanoseconds (68% confidence).
/hardware/google/graphics/common/libhwc2.1/libdrmresource/utils/
Dworker.cpp64 cond_.wait_for(lk, std::chrono::nanoseconds(max_nanoseconds))) { in WaitForSignalOrExitLocked()
/hardware/interfaces/gnss/1.0/
DIGnssMeasurementCallback.hal224 * 1-Sigma uncertainty associated with the clock's time in nanoseconds.
236 * and the true GPS time since 0000Z, January 6, 1980, in nanoseconds.
266 * bias) in nanoseconds. The uncertainty is represented as an absolute
279 * The clock's drift in nanoseconds (per second).
292 * 1-Sigma uncertainty associated with the clock's drift in nanoseconds (per
374 * Time offset at which the measurement was taken in nanoseconds.
399 * The received GNSS Time-of-Week at the measurement time, in nanoseconds.
401 * measurement time, in nanoseconds. The value is relative to the
424 * measurement time in nanoseconds.
441 * at the measurement time in nanoseconds.
[all …]
/hardware/interfaces/biometrics/fingerprint/aidl/default/tests/
DWorkerThreadTest.cpp84 std::this_thread::sleep_for(std::chrono::nanoseconds(100 - i % 100)); in TEST()

123