HomeSort by relevance Sort by last modified time
    Searched refs:ticker (Results 1 - 25 of 103) sorted by null

1 2 3 4 5

  /external/guava/guava-gwt/test-super/com/google/common/testing/super/com/google/common/testing/
FakeTickerTest.java 35 FakeTicker ticker = new FakeTicker(); local
36 assertEquals(0, ticker.read());
37 assertSame(ticker, ticker.advance(10));
38 assertEquals(10, ticker.read());
39 ticker.advance(1, TimeUnit.MILLISECONDS);
40 assertEquals(1000010L, ticker.read());
44 FakeTicker ticker = new FakeTicker(); local
45 assertSame(ticker, ticker.setAutoIncrementStep(10, TimeUnit.NANOSECONDS))
49 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(10, TimeUnit.NANOSECONDS); local
56 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(1, TimeUnit.MILLISECONDS); local
63 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(3, TimeUnit.SECONDS); local
70 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(10, TimeUnit.NANOSECONDS); local
84 FakeTicker ticker = new FakeTicker(); local
    [all...]
  /external/jemalloc/include/jemalloc/internal/
ticker.h 24 void ticker_init(ticker_t *ticker, int32_t nticks);
25 void ticker_copy(ticker_t *ticker, const ticker_t *other);
26 int32_t ticker_read(const ticker_t *ticker);
27 bool ticker_ticks(ticker_t *ticker, int32_t nticks);
28 bool ticker_tick(ticker_t *ticker);
33 ticker_init(ticker_t *ticker, int32_t nticks)
36 ticker->tick = nticks;
37 ticker->nticks = nticks;
41 ticker_copy(ticker_t *ticker, const ticker_t *other)
44 *ticker = *other
    [all...]
  /external/guava/guava-testlib/test/com/google/common/testing/
FakeTickerTest.java 46 FakeTicker ticker = new FakeTicker(); local
47 assertEquals(0, ticker.read());
48 assertSame(ticker, ticker.advance(10));
49 assertEquals(10, ticker.read());
50 ticker.advance(1, TimeUnit.MILLISECONDS);
51 assertEquals(1000010L, ticker.read());
55 FakeTicker ticker = new FakeTicker(); local
56 assertSame(ticker, ticker.setAutoIncrementStep(10, TimeUnit.NANOSECONDS))
60 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(10, TimeUnit.NANOSECONDS); local
67 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(1, TimeUnit.MILLISECONDS); local
74 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(3, TimeUnit.SECONDS); local
81 FakeTicker ticker = new FakeTicker().setAutoIncrementStep(10, TimeUnit.NANOSECONDS); local
95 FakeTicker ticker = new FakeTicker(); local
106 final FakeTicker ticker = new FakeTicker(); local
128 final FakeTicker ticker = local
    [all...]
  /external/jemalloc/test/unit/
ticker.c 7 ticker_t ticker; local
10 ticker_init(&ticker, NTICKS);
13 assert_u_eq(ticker_read(&ticker), NTICKS - j,
14 "Unexpected ticker value (i=%d, j=%d)", i, j);
15 assert_false(ticker_tick(&ticker),
16 "Unexpected ticker fire (i=%d, j=%d)", i, j);
18 assert_u32_eq(ticker_read(&ticker), 0,
19 "Expected ticker depletion");
20 assert_true(ticker_tick(&ticker),
21 "Expected ticker fire (i=%d)", i)
32 ticker_t ticker; local
    [all...]
  /external/guava/guava-tests/test/com/google/common/base/
StopwatchTest.java 37 private final FakeTicker ticker = new FakeTicker(); field in class:StopwatchTest
38 private final Stopwatch stopwatch = new Stopwatch(ticker);
98 ticker.advance(1);
101 ticker.advance(2);
104 ticker.advance(3);
109 ticker.advance(1);
112 ticker.advance(2);
116 ticker.advance(3);
121 ticker.advance(78);
125 ticker.advance(345)
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
StopwatchTest.java 36 private final FakeTicker ticker = new FakeTicker(); field in class:StopwatchTest
37 private final Stopwatch stopwatch = new Stopwatch(ticker);
97 ticker.advance(1);
100 ticker.advance(2);
103 ticker.advance(3);
108 ticker.advance(1);
111 ticker.advance(2);
115 ticker.advance(3);
120 ticker.advance(78);
124 ticker.advance(345)
    [all...]
  /external/guava/guava-tests/test/com/google/common/cache/
CacheExpirationTest.java 50 FakeTicker ticker = new FakeTicker(); local
56 .ticker(ticker)
58 checkExpiration(cache, loader, ticker, removalListener);
62 FakeTicker ticker = new FakeTicker(); local
68 .ticker(ticker)
70 checkExpiration(cache, loader, ticker, removalListener);
74 FakeTicker ticker, CountingRemovalListener<String, Integer> removalListener) {
86 CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker);
99 FakeTicker ticker = new FakeTicker(); local
111 FakeTicker ticker = new FakeTicker(); local
172 FakeTicker ticker = new FakeTicker(); local
213 FakeTicker ticker = new FakeTicker(); local
225 FakeTicker ticker = new FakeTicker(); local
237 FakeTicker ticker = new FakeTicker(); local
251 FakeTicker ticker = new FakeTicker(); local
303 FakeTicker ticker = new FakeTicker(); local
350 FakeTicker ticker = new FakeTicker(); local
    [all...]
CacheRefreshTest.java 32 FakeTicker ticker = new FakeTicker(); local
38 .ticker(ticker)
47 ticker.advance(1, MILLISECONDS);
57 ticker.advance(1, MILLISECONDS);
67 ticker.advance(1, MILLISECONDS);
75 ticker.advance(1, MILLISECONDS);
83 ticker.advance(1, MILLISECONDS);
91 ticker.advance(1, MILLISECONDS);
CacheBuilderGwtTest.java 139 .ticker(fakeTicker)
156 .ticker(fakeTicker)
184 .ticker(fakeTicker)
282 .ticker(fakeTicker)
379 .ticker(fakeTicker)
397 .ticker(fakeTicker)
415 .ticker(fakeTicker)
433 .ticker(fakeTicker)
455 .ticker(fakeTicker)
473 .ticker(fakeTicker
    [all...]
LocalCacheTest.java 35 import com.google.common.base.Ticker;
167 assertSame(NULL_TICKER, map.ticker);
405 Ticker testTicker = new Ticker() {
411 LocalCache<Object, Object> map = makeLocalCache(createCacheBuilder().ticker(testTicker));
412 assertSame(testTicker, map.ticker);
862 FakeTicker ticker = new FakeTicker(); local
867 .ticker(ticker)
878 ticker.advance(1)
1004 FakeTicker ticker = new FakeTicker(); local
2125 FakeTicker ticker = new FakeTicker(); local
2164 FakeTicker ticker = new FakeTicker(); local
2393 Ticker ticker = new SerializableTicker(); local
2449 Ticker ticker = new SerializableTicker(); local
    [all...]
CacheTesting.java 414 static void expireEntries(Cache<?, ?> cache, long expiringTime, FakeTicker ticker) {
415 checkNotNull(ticker);
416 expireEntries(toLocalCache(cache), expiringTime, ticker);
420 LocalCache<?, ?> cchm, long expiringTime, FakeTicker ticker) {
426 ticker.advance(2 * expiringTime, TimeUnit.MILLISECONDS);
428 long now = ticker.read();
CacheLoadingTest.java 211 FakeTicker ticker = new FakeTicker(); local
226 .ticker(ticker)
243 ticker.advance(1, MILLISECONDS);
251 ticker.advance(1, MILLISECONDS);
259 ticker.advance(1, MILLISECONDS);
271 FakeTicker ticker = new FakeTicker(); local
286 .ticker(ticker)
303 ticker.advance(1, MILLISECONDS)
745 FakeTicker ticker = new FakeTicker(); local
1024 FakeTicker ticker = new FakeTicker(); local
1346 FakeTicker ticker = new FakeTicker(); local
1618 FakeTicker ticker = new FakeTicker(); local
    [all...]
  /external/guava/guava/src/com/google/common/base/
Stopwatch.java 64 * {@link #createUnstarted(Ticker)} or {@link #createStarted(Ticker)} to
65 * supply a fake or mock ticker.
77 private final Ticker ticker; field in class:Stopwatch
98 public static Stopwatch createUnstarted(Ticker ticker) {
99 return new Stopwatch(ticker);
118 public static Stopwatch createStarted(Ticker ticker) {
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
Stopwatch.java 63 * {@link #createUnstarted(Ticker)} or {@link #createStarted(Ticker)} to
64 * supply a fake or mock ticker.
76 private final Ticker ticker; field in class:Stopwatch
97 public static Stopwatch createUnstarted(Ticker ticker) {
98 return new Stopwatch(ticker);
117 public static Stopwatch createStarted(Ticker ticker) {
    [all...]
  /external/caliper/caliper/src/main/java/com/google/caliper/worker/
RuntimeWorker.java 29 import com.google.common.base.Ticker;
45 protected final Ticker ticker; field in class:RuntimeWorker
52 Method method, Random random, Ticker ticker,
57 this.ticker = ticker;
105 @BenchmarkMethod Method method, Random random, Ticker ticker,
107 super(benchmark, method, random, ticker, workerOptions)
    [all...]
MacrobenchmarkWorker.java 30 import com.google.common.base.Ticker;
48 Ticker ticker, @WorkerOptions Map<String, String> workerOptions) {
50 this.stopwatch = Stopwatch.createUnstarted(ticker);
  /cts/suite/cts/utils/
grapher.py 22 import matplotlib.ticker as ticker namespace
  /external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
LocalCache.java 24 import com.google.common.base.Ticker;
60 private final Ticker ticker; field in class:LocalCache
81 this.ticker = firstNonNull(builder.ticker, Ticker.systemTicker());
119 Timestamped<V> oldValue = cachingHashMap.put(key, new Timestamped<V>(value, ticker));
235 return ticker.read();
245 long startTime = ticker.read();
261 statsCounter.recordLoadException(ticker.read() - startTime)
305 private final Ticker ticker; field in class:LocalCache.Timestamped
    [all...]
CacheBuilder.java 29 import com.google.common.base.Ticker;
200 static final Ticker NULL_TICKER = new Ticker() {
230 Ticker ticker; field in class:CacheBuilder
453 * @throws IllegalStateException if a ticker was already set
455 public CacheBuilder<K, V> ticker(Ticker ticker) { method in class:CacheBuilder
456 checkState(this.ticker == null)
    [all...]
  /external/guava/guava/src/com/google/common/cache/
CacheBuilder.java 31 import com.google.common.base.Ticker;
206 static final Ticker NULL_TICKER = new Ticker() {
236 Ticker ticker; field in class:CacheBuilder
698 * @throws IllegalStateException if a ticker was already set
700 public CacheBuilder<K, V> ticker(Ticker ticker) { method in class:CacheBuilder
701 checkState(this.ticker == null)
    [all...]
LocalCache.java 33 import com.google.common.base.Ticker;
215 final Ticker ticker; field in class:LocalCache
256 ticker = builder.getTicker(recordsTime());
    [all...]
  /external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/
group-constructors.js 56 var ticker = function(tf) {
70 underlyingPlayer = scope.timeline.play(new scope.Animation(null, ticker, group._timing));
  /packages/apps/Email/src/com/android/email/
EmailNotificationController.java 122 * @param ticker Text displayed when the notification is first shown. May be {@code null}.
132 String ticker, CharSequence title, String contentText, Intent intent,
141 // NOTE: the ticker is not shown for notifications in the Holo UX
149 .setTicker(ticker)
164 * @param ticker Text displayed when the notification is first shown. May be {@code null}.
170 private void showNotification(long accountId, String ticker, String title,
173 ticker, title, contentText, intent, null, true,
461 final String ticker = local
464 showNotification(accountId, ticker, title, accountName, intent,
482 final String ticker = mContext.getString(R.string.password_expired_ticker) local
505 String ticker = local
521 final String ticker = local
538 final String ticker = local
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/cache/super/com/google/common/cache/
CacheBuilderTest.java 27 import com.google.common.base.Ticker;
169 Ticker testTicker = Ticker.systemTicker();
171 new CacheBuilder<Object, Object>().ticker(testTicker);
174 builder.ticker(testTicker);
  /external/jemalloc/
Android.mk 99 src/ticker.c \
237 test/unit/ticker.c \

Completed in 2224 milliseconds

1 2 3 4 5