Home
last modified time | relevance | path

Searched refs:intervalInNanos (Results 1 – 4 of 4) sorted by relevance

/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/src/
DRecurrentTimer.cpp68 void RecurrentTimer::registerTimerCallback(int64_t intervalInNanos, in registerTimerCallback() argument
81 mCallbackInfoById[callbackId]->intervalInNanos, intervalInNanos); in registerTimerCallback()
86 int64_t nextTimeInNanos = ceil(uptimeNanos() / intervalInNanos) * intervalInNanos; in registerTimerCallback()
90 info->intervalInNanos = intervalInNanos; in registerTimerCallback()
133 (nowNanos - callbackInfo->nextTimeInNanos) / callbackInfo->intervalInNanos + 1; in handleMessage()
134 callbackInfo->nextTimeInNanos += intervalCount * callbackInfo->intervalInNanos; in handleMessage()
/hardware/interfaces/automotive/vehicle/aidl/impl/utils/common/include/
DRecurrentTimer.h51 void registerTimerCallback(int64_t intervalInNanos, std::shared_ptr<Callback> callback);
64 int64_t intervalInNanos; member
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/hardware/src/
DFakeVehicleHardware.cpp1769 float sampleRateHz = 1'000'000'000. / refreshInfo.intervalInNanos; in genFakeDataHelp()
2267 void FakeVehicleHardware::refreshTimestampForInterval(int64_t intervalInNanos) { in refreshTimestampForInterval() argument
2274 if (mActionByIntervalInNanos.find(intervalInNanos) == mActionByIntervalInNanos.end()) { in refreshTimestampForInterval()
2276 intervalInNanos); in refreshTimestampForInterval()
2280 ActionForInterval actionForInterval = mActionByIntervalInNanos[intervalInNanos]; in refreshTimestampForInterval()
2301 int64_t intervalInNanos = static_cast<int64_t>(1'000'000'000. / sampleRateHz); in registerRefreshLocked() local
2304 .intervalInNanos = intervalInNanos, in registerRefreshLocked()
2308 if (mActionByIntervalInNanos.find(intervalInNanos) != mActionByIntervalInNanos.end()) { in registerRefreshLocked()
2311 mActionByIntervalInNanos[intervalInNanos].propIdAreaIdsToRefresh.insert(propIdAreaId); in registerRefreshLocked()
2317 [this, intervalInNanos] { refreshTimestampForInterval(intervalInNanos); }); in registerRefreshLocked()
[all …]
/hardware/interfaces/automotive/vehicle/aidl/impl/fake_impl/hardware/include/
DFakeVehicleHardware.h149 int64_t intervalInNanos; member
299 void refreshTimestampForInterval(int64_t intervalInNanos) EXCLUDES(mLock);