Home
last modified time | relevance | path

Searched refs:Deadline (Results 1 – 25 of 52) sorted by relevance

123

/external/grpc-grpc-java/context/src/test/java/io/grpc/
DDeadlineTest.java64 Deadline d = Deadline.after(0, TimeUnit.SECONDS); in defaultTickerIsSystemTicker()
66 Deadline reference = Deadline.after(0, TimeUnit.SECONDS, ticker); in defaultTickerIsSystemTicker()
74 Deadline d = Deadline.after(10, TimeUnit.DAYS, ticker); in timeCanOverflow()
76 assertTrue(Deadline.after(0, TimeUnit.DAYS, ticker).isBefore(d)); in timeCanOverflow()
86 Deadline d = Deadline.after(-10, TimeUnit.DAYS, ticker); in timeCanUnderflow()
88 assertTrue(d.isBefore(Deadline.after(0, TimeUnit.DAYS, ticker))); in timeCanUnderflow()
94 Deadline d = Deadline.after(-300 * 365, TimeUnit.DAYS, ticker); in deadlineClamps()
95 Deadline d2 = Deadline.after(300 * 365, TimeUnit.DAYS, ticker); in deadlineClamps()
98 Deadline d3 = Deadline.after(-200 * 365, TimeUnit.DAYS, ticker); in deadlineClamps()
106 Deadline deadline = Deadline.after(0, TimeUnit.SECONDS, ticker); in immediateDeadlineIsExpired()
[all …]
DContextTest.java592 final Deadline sooner = Deadline.after(100, TimeUnit.MILLISECONDS); in earlierParentDeadlineTakesPrecedenceOverLaterChildDeadline()
593 final Deadline later = Deadline.after(1, TimeUnit.MINUTES); in earlierParentDeadlineTakesPrecedenceOverLaterChildDeadline()
620 Deadline sooner = Deadline.after(1, TimeUnit.HOURS); in earlierChldDeadlineTakesPrecedenceOverLaterParentDeadline()
621 Deadline later = Deadline.after(1, TimeUnit.DAYS); in earlierChldDeadlineTakesPrecedenceOverLaterParentDeadline()
630 Deadline deadline = Deadline.after(1, TimeUnit.HOURS); in forkingContextDoesNotCarryDeadline()
638 Deadline deadline = Deadline.after(1, TimeUnit.HOURS); in cancellationDoesNotExpireDeadline()
646 Context base = Context.current().withDeadline(Deadline.after(1, TimeUnit.SECONDS), scheduler); in absoluteDeadlineTriggersAndPropagates()
661 Context base = Context.current().withDeadline(Deadline.after(1, TimeUnit.SECONDS), scheduler); in relativeDeadlineTriggersAndPropagates()
676 Context base = Context.current().withDeadline(Deadline.after(2, TimeUnit.SECONDS), scheduler); in innerDeadlineCompletesBeforeOuter()
677 Context child = base.withDeadline(Deadline.after(1, TimeUnit.SECONDS), scheduler); in innerDeadlineCompletesBeforeOuter()
[all …]
/external/grpc-grpc-java/context/src/main/java/io/grpc/
DDeadline.java33 public final class Deadline implements Comparable<Deadline> { class
46 public static Deadline after(long duration, TimeUnit units) { in after()
51 static Deadline after(long duration, TimeUnit units, Ticker ticker) { in after()
53 return new Deadline(ticker, units.toNanos(duration), true); in after()
60 private Deadline(Ticker ticker, long offset, boolean baseInstantAlreadyExpired) { in Deadline() method in Deadline
64 private Deadline(Ticker ticker, long baseInstant, long offset, in Deadline() method in Deadline
91 public boolean isBefore(Deadline other) { in isBefore()
99 public Deadline minimum(Deadline other) { in minimum()
109 public Deadline offset(long offset, TimeUnit units) { in offset()
114 return new Deadline(ticker, deadlineNanos, units.toNanos(offset), isExpired()); in offset()
[all …]
DContext.java271 return withDeadline(Deadline.after(duration, unit), scheduler); in withDeadlineAfter()
299 public CancellableContext withDeadline(Deadline deadline, in withDeadline()
450 public Deadline getDeadline() { in getDeadline()
695 private final Deadline deadline;
716 private CancellableContext(Context parent, Deadline deadline,
719 Deadline parentDeadline = parent.getDeadline();
842 public Deadline getDeadline() {
/external/grpc-grpc-java/context/src/test/java/io/grpc/testing/
DDeadlineSubject.java27 import io.grpc.Deadline;
36 public final class DeadlineSubject extends ComparableSubject<DeadlineSubject, Deadline> {
37 private static final Subject.Factory<DeadlineSubject, Deadline> deadlineFactory =
40 public static Subject.Factory<DeadlineSubject, Deadline> deadline() { in deadline()
44 private DeadlineSubject(FailureMetadata metadata, Deadline subject) { in DeadlineSubject()
56 public void of(Deadline expected) { in isWithin()
57 Deadline actual = actual(); in isWithin()
91 public abstract void of(Deadline expectedDeadline);
124 private static final class Factory implements Subject.Factory<DeadlineSubject, Deadline> {
126 public DeadlineSubject createSubject(FailureMetadata metadata, Deadline that) {
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DCallOptionsTest.java47 private final Deadline.Ticker ticker = new FakeTicker();
48 private final Deadline sampleDeadline = Deadline.after(1, NANOSECONDS, ticker);
100 allSet.withDeadline(Deadline.after(314, NANOSECONDS)).withDeadline(sampleDeadline))) in noStrayModifications()
111 Deadline deadline = Deadline.after(10, SECONDS); in mutation()
135 Deadline actual = CallOptions.DEFAULT.withDeadlineAfter(1, MINUTES).getDeadline(); in withDeadlineAfter()
136 Deadline expected = Deadline.after(1, MINUTES); in withDeadlineAfter()
234 private static class FakeTicker extends Deadline.Ticker {
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DClientCallImpl.java41 import io.grpc.Deadline;
233 Deadline effectiveDeadline = effectiveDeadline(); in start()
297 Deadline effectiveDeadline, @Nullable Deadline outerCallDeadline, in logIfContextNarrowedTimeout()
298 @Nullable Deadline callDeadline) { in logIfContextNarrowedTimeout()
341 private ScheduledFuture<?> startDeadlineTimer(Deadline deadline) { in startDeadlineTimer()
349 private Deadline effectiveDeadline() { in effectiveDeadline()
355 private static Deadline min(@Nullable Deadline deadline0, @Nullable Deadline deadline1) { in min()
560 Deadline deadline = effectiveDeadline(); in closed()
DClientStream.java20 import io.grpc.Deadline;
94 void setDeadline(@Nonnull Deadline deadline); in setDeadline()
DNoopClientStream.java21 import io.grpc.Deadline;
85 public void setDeadline(@Nonnull Deadline deadline) {} in setDeadline()
DForwardingClientStream.java22 import io.grpc.Deadline;
101 public void setDeadline(Deadline deadline) { in setDeadline()
DServiceConfigInterceptor.java31 import io.grpc.Deadline;
366 Deadline newDeadline = Deadline.after(info.timeoutNanos, TimeUnit.NANOSECONDS); in interceptCall()
367 Deadline existingDeadline = callOptions.getDeadline(); in interceptCall()
/external/grpc-grpc-java/examples/android/clientcache/app/src/main/java/io/grpc/clientcacheexample/
DSafeMethodCachingInterceptor.java11 import io.grpc.Deadline;
69 private final Deadline maxAgeDeadline;
71 public Value(MessageLite response, Deadline maxAgeDeadline) { in Value()
185 private Deadline deadline;
219 deadline = Deadline.after(maxAge, TimeUnit.SECONDS);
221 deadline = Deadline.after(defaultMaxAge, TimeUnit.SECONDS);
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DCallOptionsTest.cs40 Assert.AreEqual(deadline, options.WithDeadline(deadline).Deadline.Value); in WithMethods()
60 Assert.IsNull(options.Deadline); in WithMethods()
72 Assert.AreEqual(DateTime.MaxValue, new CallOptions().Normalize().Deadline.Value); in Normalize()
77 …reEqual(deadline, new CallOptions(propagationToken: propagationToken1).Normalize().Deadline.Value); in Normalize()
DContextPropagationTest.cs111 Assert.IsTrue(context.Deadline < deadline.AddMinutes(1)); in PropagateDeadline()
112 Assert.IsTrue(context.Deadline > deadline.AddMinutes(-1)); in PropagateDeadline()
140 Assert.AreEqual(DateTime.MaxValue, context.Deadline); in SuppressDeadlinePropagation()
DTimeoutsTest.cs62 Assert.AreEqual(DateTime.MaxValue, context.Deadline); in InfiniteDeadline()
83 … Assert.IsTrue(Math.Abs((clientDeadline - context.Deadline).TotalMilliseconds) < 5000); in DeadlineTransferredToServer()
/external/grpc-grpc-java/interop-testing/src/test/java/io/grpc/stub/
DStubConfigTest.java31 import io.grpc.Deadline;
71 Deadline deadline = Deadline.after(2, NANOSECONDS); in testConfigureDeadline()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DClientCallImplTest.java49 import io.grpc.Deadline;
693 ArgumentCaptor<Deadline> deadlineCaptor = ArgumentCaptor.forClass(Deadline.class); in contextDeadlineShouldBePropagatedToStream()
718 ArgumentCaptor<Deadline> deadlineCaptor = ArgumentCaptor.forClass(Deadline.class); in contextDeadlineShouldOverrideLargerCallOptionsDeadline()
743 ArgumentCaptor<Deadline> deadlineCaptor = ArgumentCaptor.forClass(Deadline.class); in contextDeadlineShouldNotOverrideSmallerCallOptionsDeadline()
762 ArgumentCaptor<Deadline> deadlineCaptor = ArgumentCaptor.forClass(Deadline.class); in callOptionsDeadlineShouldBePropagatedToStream()
780 verify(stream, never()).setDeadline(any(Deadline.class)); in noDeadlineShouldBePropagatedToStream()
791 baseCallOptions.withDeadline(Deadline.after(1, TimeUnit.SECONDS)), in expiredDeadlineCancelsStream_CallOptions()
839 baseCallOptions.withDeadline(Deadline.after(1, TimeUnit.SECONDS)), in streamCancelAbortsDeadlineTimer()
DServiceConfigInterceptorTest.java27 import io.grpc.Deadline;
245 Deadline existingDeadline = Deadline.after(1000, TimeUnit.NANOSECONDS); in nearerDeadlineKept_existing()
263 Deadline existingDeadline = Deadline.after(1234567890, TimeUnit.NANOSECONDS); in nearerDeadlineKept_new()
/external/grpc-grpc/src/csharp/Grpc.Core/
DContextPropagationToken.cs47 & ~ContextPropagationFlags.Deadline & ~ContextPropagationFlags.Cancellation;
150 Deadline = 1, enumerator
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DCallOptions.java49 private Deadline deadline;
121 public CallOptions withDeadline(@Nullable Deadline deadline) { in withDeadline()
132 return withDeadline(Deadline.after(duration, unit)); in withDeadlineAfter()
139 public Deadline getDeadline() { in getDeadline()
/external/syzkaller/vendor/golang.org/x/net/context/
Dpre_go17.go20 func (*emptyCtx) Deadline() (deadline time.Time, ok bool) { func
205 if cur, ok := parent.Deadline(); ok && cur.Before(deadline) {
239 func (c *timerCtx) Deadline() (deadline time.Time, ok bool) { func
Dpre_go19.go19 Deadline() (deadline time.Time, ok bool) methodSpec
/external/grpc-grpc-java/interop-testing/src/test/java/io/grpc/testing/integration/
DCascadingTest.java29 import io.grpc.Deadline;
187 final SettableFuture<Deadline> finalDeadline = SettableFuture.create(); in testDeadlinePropagation()
215 Deadline initialDeadline = Deadline.after(1, TimeUnit.MINUTES); in testDeadlinePropagation()
/external/grpc-grpc-java/stub/src/main/java/io/grpc/stub/
DAbstractStub.java26 import io.grpc.Deadline;
113 public final S withDeadline(@Nullable Deadline deadline) { in withDeadline()
/external/u-boot/doc/driver-model/
DMIGRATION.txt13 Deadline: 2018.05
30 Deadline: 2018.09

123