Home
last modified time | relevance | path

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

/packages/services/Car/experimental/service/src/com/android/experimentalcar/
DTouchDriverAwarenessSupplier.java217 int curPermits = mCurrentPermits.updateAndGet(cur -> Math.max(0, cur - 1)); in consumePermitLocked() local
218 logd("Permit consumed to: " + curPermits); in consumePermitLocked()
227 (float) curPermits / mConfig.getMaxPermits())); in consumePermitLocked()
236 int curPermits = mCurrentPermits.updateAndGet( in handlePermitRefreshLocked() local
238 logd("Permit refreshed to: " + curPermits); in handlePermitRefreshLocked()
239 if (curPermits == mConfig.getMaxPermits()) { in handlePermitRefreshLocked()
245 (float) curPermits / mConfig.getMaxPermits())); in handlePermitRefreshLocked()