Home
last modified time | relevance | path

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

/packages/apps/TV/tests/unit/src/com/android/tv/
DCurrentPositionMediatorTest.java20 import static com.android.tv.TimeShiftManager.REQUEST_TIMEOUT_MS;
48 long seekToTimeMs = System.currentTimeMillis() - REQUEST_TIMEOUT_MS * 3; in testOnSeekRequested()
56 long seekToTimeMs = System.currentTimeMillis() - REQUEST_TIMEOUT_MS * 3; in testOnCurrentPositionChangedInvalidInput()
57 long newCurrentTimeMs = seekToTimeMs + REQUEST_TIMEOUT_MS; in testOnCurrentPositionChangedInvalidInput()
67 long seekToTimeMs = System.currentTimeMillis() - REQUEST_TIMEOUT_MS * 3; in testOnCurrentPositionChangedValidInput()
68 long newCurrentTimeMs = seekToTimeMs + REQUEST_TIMEOUT_MS - 1; in testOnCurrentPositionChangedValidInput()
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java113 static final long REQUEST_TIMEOUT_MS = TimeUnit.SECONDS.toMillis(3); field in TimeShiftManager
1300 boolean isValid = Math.abs(currentPositionMs - mCurrentPositionMs) < REQUEST_TIMEOUT_MS; in onCurrentPositionChanged()
1301 boolean isTimeout = currentTimeMs > mSeekRequestTimeMs + REQUEST_TIMEOUT_MS; in onCurrentPositionChanged()