Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioUtilsTest.java19 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()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioPlaybackCallback.java21 import static com.android.car.audio.CarAudioUtils.hasExpired;
134 if (hasExpired(mContextStartTime.valueAt(index), in getStillActiveContextAndRemoveExpiredContextsLocked()
DCarVolume.java21 import static com.android.car.audio.CarAudioUtils.hasExpired;
235 if (hasExpired(contextStartTime, mClock.uptimeMillis(), mVolumeKeyEventTimeoutMs)) { in getAudioContextStillActive()
DCarAudioUtils.java23 static boolean hasExpired(long startTimeMs, long currentTimeMs, int timeoutMs) { in hasExpired() method in CarAudioUtils