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

1 2

  /external/chromium/chrome/common/
worker_thread_ticker_unittest.cc 51 WorkerThreadTicker ticker(50);
52 EXPECT_FALSE(ticker.IsRunning());
53 EXPECT_TRUE(ticker.RegisterTickHandler(&callback));
54 EXPECT_TRUE(ticker.UnregisterTickHandler(&callback));
55 EXPECT_TRUE(ticker.Start());
56 EXPECT_FALSE(ticker.RegisterTickHandler(&callback));
57 EXPECT_FALSE(ticker.UnregisterTickHandler(&callback));
58 EXPECT_TRUE(ticker.IsRunning());
59 EXPECT_FALSE(ticker.Start()); // Can't start when it is running.
60 EXPECT_TRUE(ticker.Stop())
    [all...]
worker_thread_ticker.cc 16 explicit TimerTask(WorkerThreadTicker* ticker) : ticker_(ticker) {
20 // When the ticker is running, the handler list CANNOT be modified.
  /external/chromium_org/chrome/common/
worker_thread_ticker_unittest.cc 52 WorkerThreadTicker ticker(50);
53 EXPECT_FALSE(ticker.IsRunning());
54 EXPECT_TRUE(ticker.RegisterTickHandler(&callback));
55 EXPECT_TRUE(ticker.UnregisterTickHandler(&callback));
56 EXPECT_TRUE(ticker.Start());
57 EXPECT_FALSE(ticker.RegisterTickHandler(&callback));
58 EXPECT_FALSE(ticker.UnregisterTickHandler(&callback));
59 EXPECT_TRUE(ticker.IsRunning());
60 EXPECT_FALSE(ticker.Start()); // Can't start when it is running.
61 EXPECT_TRUE(ticker.Stop())
    [all...]
  /external/guava/guava-tests/test/com/google/common/testing/
FakeTickerTest.java 39 FakeTicker ticker = new FakeTicker(); local
40 assertEquals(0, ticker.read());
41 assertSame(ticker, ticker.advance(10));
42 assertEquals(10, ticker.read());
43 ticker.advance(1, TimeUnit.MILLISECONDS);
44 assertEquals(1000010L, ticker.read());
50 final FakeTicker ticker = new FakeTicker(); local
60 // adds two nanoseconds to the ticker
63 ticker.advance(1L)
    [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);
87 ticker.advance(1);
90 ticker.advance(2);
93 ticker.advance(3);
98 ticker.advance(1);
101 ticker.advance(2);
105 ticker.advance(3);
110 ticker.advance(78);
114 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);
LocalCacheTest.java 36 import com.google.common.base.Ticker;
137 assertSame(NULL_TICKER, map.ticker);
371 Ticker testTicker = new Ticker() {
377 LocalCache<Object, Object> map = makeLocalCache(createCacheBuilder().ticker(testTicker));
378 assertSame(testTicker, map.ticker);
818 FakeTicker ticker = new FakeTicker(); local
823 .ticker(ticker)
834 ticker.advance(1)
960 FakeTicker ticker = new FakeTicker(); local
2038 FakeTicker ticker = new FakeTicker(); local
2077 FakeTicker ticker = new FakeTicker(); local
2306 Ticker ticker = new SerializableTicker(); local
2362 Ticker ticker = new SerializableTicker(); local
    [all...]
CacheLoadingTest.java 207 FakeTicker ticker = new FakeTicker(); local
221 .ticker(ticker)
238 ticker.advance(1, MILLISECONDS);
246 ticker.advance(1, MILLISECONDS);
254 ticker.advance(1, MILLISECONDS);
266 FakeTicker ticker = new FakeTicker(); local
280 .ticker(ticker)
297 ticker.advance(1, MILLISECONDS)
737 FakeTicker ticker = new FakeTicker(); local
1013 FakeTicker ticker = new FakeTicker(); local
1257 FakeTicker ticker = new FakeTicker(); local
1501 FakeTicker ticker = new FakeTicker(); local
    [all...]
CacheTesting.java 408 static void expireEntries(Cache<?, ?> cache, long expiringTime, FakeTicker ticker) {
409 expireEntries(toLocalCache(cache), expiringTime, ticker);
413 LocalCache<?, ?> cchm, long expiringTime, FakeTicker ticker) {
419 ticker.advance(2 * expiringTime, TimeUnit.MILLISECONDS);
421 long now = ticker.read();
CacheBuilderTest.java 30 import com.google.common.base.Ticker;
349 @GwtIncompatible("ticker")
351 Ticker testTicker = Ticker.systemTicker();
353 new CacheBuilder<Object, Object>().ticker(testTicker);
356 builder.ticker(testTicker);
  /external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
Stopwatch.java 61 * #Stopwatch(Ticker) alternate constructor} to supply a fake or mock ticker.
73 private final Ticker ticker; field in class:Stopwatch
83 this(Ticker.systemTicker());
90 public Stopwatch(Ticker ticker) {
91 this.ticker = checkNotNull(ticker);
112 startTick = ticker.read()
    [all...]
  /external/guava/guava/src/com/google/common/base/
Stopwatch.java 62 * #Stopwatch(Ticker) alternate constructor} to supply a fake or mock ticker.
74 private final Ticker ticker; field in class:Stopwatch
84 this(Ticker.systemTicker());
91 public Stopwatch(Ticker ticker) {
92 this.ticker = checkNotNull(ticker);
113 startTick = ticker.read()
    [all...]
  /cts/suite/cts/utils/
grapher.py 22 import matplotlib.ticker as ticker namespace
  /external/guava/guava/src/com/google/common/cache/
CacheBuilder.java 33 import com.google.common.base.Ticker;
190 static final Ticker NULL_TICKER = new Ticker() {
220 Ticker ticker; field in class:CacheBuilder
649 * @throws IllegalStateException if a ticker was already set
652 public CacheBuilder<K, V> ticker(Ticker ticker) { method in class:CacheBuilder
653 checkState(this.ticker == null)
    [all...]
LocalCache.java 30 import com.google.common.base.Ticker;
213 final Ticker ticker; field in class:LocalCache
253 ticker = builder.getTicker(recordsTime());
    [all...]
  /packages/apps/Email/src/com/android/email/
NotificationController.java 125 * @param ticker Text displayed when the notification is first shown. May be {@code null}.
136 String ticker, CharSequence title, String contentText, Intent intent, Bitmap largeIcon,
145 // NOTE: the ticker is not shown for notifications in the Holo UX
154 .setTicker(ticker)
169 * @param ticker Text displayed when the notification is first shown. May be {@code null}.
175 private void showNotification(long accountId, String ticker, String title,
178 ticker, title, contentText, intent, null, null, true,
456 String ticker = local
459 showNotification(accountId, ticker, title, accountName, intent,
476 String ticker = mContext.getString(R.string.password_expired_ticker) local
497 String ticker = local
511 String ticker = local
525 String ticker = local
    [all...]
  /external/chromium/base/
time_win.cc 388 TickFunctionType ticker) {
390 tick_function = ticker;
time.h 550 static TickFunctionType SetMockTickFunction(TickFunctionType ticker);
  /external/chromium_org/base/time/
time_win.cc 462 TickFunctionType ticker) {
465 tick_function = ticker;
time.h 683 static TickFunctionType SetMockTickFunction(TickFunctionType ticker);
  /frameworks/base/location/java/com/android/internal/location/
GpsNetInitiatedHandler.java 391 String ticker = String.format(context.getString(R.string.gpsNotifTicker), local
394 return ticker;
  /packages/apps/Mms/src/com/android/mms/transaction/
MessagingNotification.java 345 public MmsSmsDeliveryInfo(CharSequence ticker, long timeMillis) {
346 mTicker = ticker;
374 * @param ticker text displayed ticker-style across the notification, typically formatted
385 CharSequence ticker, long timeMillis, String title,
392 mTicker = ticker;
769 CharSequence ticker = buildTickerMessage local
    [all...]
  /external/guava/guava/src/com/google/common/collect/
MapMaker.java 29 import com.google.common.base.Ticker;
138 Ticker ticker; field in class:MapMaker
529 Ticker getTicker() {
530 return firstNonNull(ticker, Ticker.systemTicker());
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
Ticker.java 39 public abstract class Ticker {
153 public Ticker(Context context, View sb) {
160 mTickerView = sb.findViewById(R.id.ticker);

Completed in 3582 milliseconds

1 2