Home
last modified time | relevance | path

Searched refs:Ticker (Results 1 – 25 of 56) sorted by relevance

123

/external/guava/guava/src/com/google/common/base/
DTicker.java31 public abstract class Ticker { class
33 protected Ticker() {} in Ticker() method in Ticker
43 public static Ticker systemTicker() { in systemTicker()
47 private static final Ticker SYSTEM_TICKER =
48 new Ticker() {
DStopwatch.java93 private final Ticker ticker;
112 public static Stopwatch createUnstarted(Ticker ticker) { in createUnstarted()
130 public static Stopwatch createStarted(Ticker ticker) { in createStarted()
135 this.ticker = Ticker.systemTicker(); in Stopwatch()
138 Stopwatch(Ticker ticker) { in Stopwatch()
/external/guava/android/guava/src/com/google/common/base/
DTicker.java31 public abstract class Ticker { class
33 protected Ticker() {} in Ticker() method in Ticker
43 public static Ticker systemTicker() { in systemTicker()
47 private static final Ticker SYSTEM_TICKER =
48 new Ticker() {
DStopwatch.java91 private final Ticker ticker;
110 public static Stopwatch createUnstarted(Ticker ticker) { in createUnstarted()
128 public static Stopwatch createStarted(Ticker ticker) { in createStarted()
133 this.ticker = Ticker.systemTicker(); in Stopwatch()
136 Stopwatch(Ticker ticker) { in Stopwatch()
/external/dagger2/java/dagger/producers/monitoring/
DTimingProductionComponentMonitor.java20 import com.google.common.base.Ticker;
34 private final Ticker ticker;
37 TimingProductionComponentMonitor(ProductionComponentTimingRecorder recorder, Ticker ticker) { in TimingProductionComponentMonitor()
50 private final Ticker ticker;
53 this(recorderFactory, Ticker.systemTicker()); in Factory()
56 Factory(ProductionComponentTimingRecorder.Factory recorderFactory, Ticker ticker) { in Factory()
DTimingProducerMonitor.java22 import com.google.common.base.Ticker;
36 ProducerTimingRecorder recorder, Ticker ticker, Stopwatch componentStopwatch) { in TimingProducerMonitor()
/external/grpc-grpc-java/context/src/main/java/io/grpc/
DDeadline.java51 static Deadline after(long duration, TimeUnit units, Ticker ticker) { in after()
56 private final Ticker ticker;
60 private Deadline(Ticker ticker, long offset, boolean baseInstantAlreadyExpired) { in Deadline()
64 private Deadline(Ticker ticker, long baseInstant, long offset, in Deadline()
160 abstract static class Ticker { class in Deadline
165 private static class SystemTicker extends Ticker {
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/
DMaxConnectionIdleManager.java31 private static final Ticker systemTicker = new Ticker() {
39 private final Ticker ticker;
54 MaxConnectionIdleManager(long maxConnectionIdleInNanos, Ticker ticker) { in MaxConnectionIdleManager()
127 interface Ticker { interface in MaxConnectionIdleManager
DKeepAliveEnforcer.java33 private final Ticker ticker;
45 KeepAliveEnforcer(boolean permitWithoutCalls, long minTime, TimeUnit unit, Ticker ticker) { in KeepAliveEnforcer()
104 interface Ticker { interface in KeepAliveEnforcer
109 static class SystemTicker implements Ticker {
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DMaxConnectionIdleManagerTest.java26 import io.grpc.netty.MaxConnectionIdleManager.Ticker;
39 private final Ticker ticker = new Ticker() {
105 TestMaxConnectionIdleManager(long maxConnectionIdleInNanos, Ticker ticker) { in TestMaxConnectionIdleManager()
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
DRuntimeWorker.java29 import com.google.common.base.Ticker;
45 protected final Ticker ticker;
52 Method method, Random random, Ticker ticker, in RuntimeWorker()
105 @BenchmarkMethod Method method, Random random, Ticker ticker, in Micro()
131 @BenchmarkMethod Method method, Random random, Ticker ticker, in Pico()
DWorkerModule.java24 import com.google.common.base.Ticker;
126 static Ticker provideTicker() { in provideTicker()
127 return Ticker.systemTicker(); in provideTicker()
DMacrobenchmarkWorker.java30 import com.google.common.base.Ticker;
48 Ticker ticker, @WorkerOptions Map<String, String> workerOptions) { in MacrobenchmarkWorker()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DKeepAliveManager.java38 private final Ticker ticker;
134 Ticker ticker, long keepAliveTimeInNanos, long keepAliveTimeoutInNanos, in KeepAliveManager()
291 abstract static class Ticker { class in KeepAliveManager
296 private static class SystemTicker extends Ticker {
/external/setupcompat/main/java/com/google/android/setupcompat/internal/
DClockProvider.java47 private static final Ticker SYSTEM_TICKER = () -> System.nanoTime();
48 private static Ticker ticker = SYSTEM_TICKER;
DTicker.java25 public interface Ticker { interface
/external/guava/android/guava/src/com/google/common/cache/
DCacheBuilder.java28 import com.google.common.base.Ticker;
216 static final Ticker NULL_TICKER =
217 new Ticker() {
252 @NullableDecl Ticker ticker;
762 public CacheBuilder<K, V> ticker(Ticker ticker) { in ticker()
768 Ticker getTicker(boolean recordsTime) { in getTicker()
772 return recordsTime ? Ticker.systemTicker() : NULL_TICKER; in getTicker()
/external/guava/android/guava-testlib/src/com/google/common/testing/
DFakeTicker.java23 import com.google.common.base.Ticker;
40 public class FakeTicker extends Ticker {
/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java28 import com.google.common.base.Ticker;
215 static final Ticker NULL_TICKER =
216 new Ticker() {
251 @Nullable Ticker ticker;
862 public CacheBuilder<K, V> ticker(Ticker ticker) { in ticker()
868 Ticker getTicker(boolean recordsTime) { in getTicker()
872 return recordsTime ? Ticker.systemTicker() : NULL_TICKER; in getTicker()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DFakeClock.java21 import com.google.common.base.Ticker;
56 private final Ticker ticker =
57 new Ticker() {
207 public Ticker getTicker() { in getTicker()
/external/guava/guava-testlib/src/com/google/common/testing/
DFakeTicker.java24 import com.google.common.base.Ticker;
41 public class FakeTicker extends Ticker {
/external/grpc-grpc-java/testing/src/main/java/io/grpc/testing/
DGrpcCleanupRule.java24 import com.google.common.base.Ticker;
79 GrpcCleanupRule setTicker(Ticker ticker) { in setTicker()
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DLocalCache.java24 import com.google.common.base.Ticker;
59 private final Ticker ticker;
81 this.ticker = firstNonNull(builder.ticker, Ticker.systemTicker()); in LocalCache()
308 private final Ticker ticker;
312 public Timestamped(V value, Ticker ticker) { in Timestamped()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DNanoTimeGranularityTester.java23 import com.google.common.base.Ticker;
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DCallOptionsTest.java47 private final Deadline.Ticker ticker = new FakeTicker();
234 private static class FakeTicker extends Deadline.Ticker {

123