Home
last modified time | relevance | path

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

/external/grpc-grpc-java/context/src/test/java/io/grpc/
DDeadlineTest.java75 assertEquals(10, d.timeRemaining(TimeUnit.DAYS)); in timeCanOverflow()
87 assertEquals(-10, d.timeRemaining(TimeUnit.DAYS)); in timeCanUnderflow()
113 assertTrue(d.timeRemaining(TimeUnit.NANOSECONDS) > 0); in shortDeadlineEventuallyExpires()
118 assertEquals(-1, d.timeRemaining(TimeUnit.MILLISECONDS)); in shortDeadlineEventuallyExpires()
123 assertEquals(10, Deadline.after(10, TimeUnit.MINUTES, ticker).timeRemaining(TimeUnit.MINUTES)); in deadlineMatchesLongValue()
130 assertEquals(-1000, d.timeRemaining(TimeUnit.MILLISECONDS)); in pastDeadlineIsExpired()
/external/grpc-grpc-java/context/src/test/java/io/grpc/testing/
DDeadlineSubject.java61 BigInteger actualTimeRemaining = BigInteger.valueOf(actual.timeRemaining(NANOSECONDS)); in isWithin()
62 BigInteger expectedTimeRemaining = BigInteger.valueOf(expected.timeRemaining(NANOSECONDS)); in isWithin()
/external/grpc-grpc-java/context/src/main/java/io/grpc/
DDeadline.java123 public long timeRemaining(TimeUnit unit) { in timeRemaining() method in Deadline
145 return timeRemaining(TimeUnit.NANOSECONDS) + " ns from now"; in toString()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DClientCallImpl.java304 long effectiveTimeout = max(0, effectiveDeadline.timeRemaining(TimeUnit.NANOSECONDS)); in logIfContextNarrowedTimeout()
310 long callTimeout = callDeadline.timeRemaining(TimeUnit.NANOSECONDS); in logIfContextNarrowedTimeout()
342 long remainingNanos = deadline.timeRemaining(TimeUnit.NANOSECONDS); in startDeadlineTimer()
DAbstractClientStream.java127 long effectiveTimeout = max(0, deadline.timeRemaining(TimeUnit.NANOSECONDS)); in setDeadline()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DClientCallImplTest.java696 assertTimeoutBetween(deadlineCaptor.getValue().timeRemaining(TimeUnit.MILLISECONDS), 600, 1000); in contextDeadlineShouldBePropagatedToStream()
721 assertTimeoutBetween(deadlineCaptor.getValue().timeRemaining(TimeUnit.MILLISECONDS), 600, 1000); in contextDeadlineShouldOverrideLargerCallOptionsDeadline()
746 assertTimeoutBetween(deadlineCaptor.getValue().timeRemaining(TimeUnit.MILLISECONDS), 600, 1000); in contextDeadlineShouldNotOverrideSmallerCallOptionsDeadline()
765 assertTimeoutBetween(deadlineCaptor.getValue().timeRemaining(TimeUnit.MILLISECONDS), 600, 1000); in callOptionsDeadlineShouldBePropagatedToStream()
/external/grpc-grpc-java/services/src/main/java/io/grpc/services/
DBinlogHelper.java418 : Durations.fromNanos(deadline.timeRemaining(TimeUnit.NANOSECONDS)); in getClientInterceptor()
518 : Durations.fromNanos(deadline.timeRemaining(TimeUnit.NANOSECONDS));
/external/grpc-grpc-java/core/src/main/java/io/grpc/inprocess/
DInProcessTransport.java685 long effectiveTimeout = max(0, deadline.timeRemaining(TimeUnit.NANOSECONDS));