Searched refs:hasExpired (Results 1 – 4 of 4) sorted by relevance
19 import static com.android.car.audio.CarAudioUtils.hasExpired;33 assertThat(hasExpired(0, 100, 200)).isFalse(); in hasExpired_forCurrentTimeBeforeTimeout_returnsFalse()38 assertThat(hasExpired(0, 300, 200)).isTrue(); in hasExpired_forCurrentTimeAfterTimeout_returnsFalse()
21 import static com.android.car.audio.CarAudioUtils.hasExpired;134 if (hasExpired(mContextStartTime.valueAt(index), in getStillActiveContextAndRemoveExpiredContextsLocked()
21 import static com.android.car.audio.CarAudioUtils.hasExpired;235 if (hasExpired(contextStartTime, mClock.uptimeMillis(), mVolumeKeyEventTimeoutMs)) { in getAudioContextStillActive()
23 static boolean hasExpired(long startTimeMs, long currentTimeMs, int timeoutMs) { in hasExpired() method in CarAudioUtils