Searched refs:timeoutLeft (Results 1 – 4 of 4) sorted by relevance
66 long timeoutLeft = mOperationTimeout; in getOperationStatus() local68 while (!mHasCompletedOperation && timeoutLeft > 0) { in getOperationStatus()70 wait(timeoutLeft); in getOperationStatus()74 timeoutLeft -= System.currentTimeMillis() - waitStartTime; in getOperationStatus()
136 long timeoutLeft = timeoutMs; in waitForAnyOfStates() local138 while ((nextState = mQueuedStates.poll(timeoutLeft, TimeUnit.MILLISECONDS)) != null) { in waitForAnyOfStates()148 timeoutLeft -= (endMs - startMs); in waitForAnyOfStates()
186 long timeoutLeft = timeout; in waitForAnyOfStates() local189 while ((nextState = mRecentStates.poll(timeoutLeft, TimeUnit.MILLISECONDS)) in waitForAnyOfStates()196 timeoutLeft -= (endMs - startMs); in waitForAnyOfStates()
203 long timeoutLeft = timeout; in waitForAnyOfStates() local206 while ((nextState = mRecentStates.poll(timeoutLeft, TimeUnit.MILLISECONDS)) in waitForAnyOfStates()213 timeoutLeft -= (endMs - startMs); in waitForAnyOfStates()