Searched refs:timeRemaining (Results 1 – 8 of 8) sorted by relevance
/external/grpc-grpc-java/context/src/test/java/io/grpc/ |
D | DeadlineTest.java | 75 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/ |
D | DeadlineSubject.java | 61 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/ |
D | Deadline.java | 123 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/ |
D | ClientCallImpl.java | 304 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()
|
D | AbstractClientStream.java | 127 long effectiveTimeout = max(0, deadline.timeRemaining(TimeUnit.NANOSECONDS)); in setDeadline()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | ClientCallImplTest.java | 696 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/ |
D | BinlogHelper.java | 418 : 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/ |
D | InProcessTransport.java | 685 long effectiveTimeout = max(0, deadline.timeRemaining(TimeUnit.NANOSECONDS));
|