/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.h | 48 // Starts the ticker. Returns false if the ticker is already running 51 // Stops the ticker and waits for all callbacks. to be done. This method 54 // Returns false is the ticker is not running
|
worker_thread_ticker.cc | 16 explicit TimerTask(WorkerThreadTicker* ticker) : ticker_(ticker) { 20 // When the ticker is running, the handler list CANNOT be modified.
|
/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...] |
/sdk/templates/other/Daydream/root/res/values/ |
strings.xml.ftl | 5 <string name="pref_dream_text_title">Ticker text</string>
|
/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();
|
/external/guava/guava/src/com/google/common/base/ |
Ticker.java | 33 public abstract class Ticker { 37 protected Ticker() {} 40 * Returns the number of nanoseconds elapsed since this ticker's fixed 46 * A ticker that reads the current time using {@link System#nanoTime}. 50 public static Ticker systemTicker() { 54 private static final Ticker SYSTEM_TICKER = new Ticker() {
|
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...] |
/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-testlib/src/com/google/common/testing/ |
FakeTicker.java | 21 import com.google.common.base.Ticker; 27 * A Ticker whose value can be advanced programmatically in test. 36 public class FakeTicker extends Ticker { 40 /** Advances the ticker value by {@code time} in {@code timeUnit}. */ 45 /** Advances the ticker value by {@code nanoseconds}. */
|
/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...] |
/sdk/apps/NotificationStudio/res/layout/ |
preview.xml | 24 android:id="@+id/ticker" 34 android:layout_below="@id/ticker" 43 android:layout_below="@id/ticker"
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
TickerView.java | 26 Ticker mTicker; 38 public void setTicker(Ticker t) {
|
/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...] |
/frameworks/base/packages/SystemUI/res/layout/ |
system_bar_ticker_compat.xml | 49 android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker"
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
StatusBarNotifications.java | 194 // In this sample, we'll use the same text for the ticker and the expanded notification 197 // choose the ticker text 223 // In this sample, we'll use the same text for the ticker and the expanded notification 248 // In this sample, we'll use the same text for the ticker and the expanded notification 253 text, // the text to display in the ticker
|
NotifyingService.java | 94 // In this sample, we'll use the same text for the ticker and the expanded notification 99 // it is distracting to show the ticker text every time it changes. We strongly suggest
|
/packages/apps/Email/src/com/android/email/ |
NotificationController.java | 163 * @param ticker Text displayed when the notification is first shown. May be {@code null}. 175 String ticker, CharSequence title, String contentText, Intent intent, Bitmap largeIcon, 184 // NOTE: the ticker is not shown for notifications in the Holo UX 193 .setTicker(ticker) 207 * @param ticker Text displayed when the notification is first shown. May be {@code null}. 213 private void showAccountNotification(Account account, String ticker, String title, 215 Notification.Builder builder = createBaseAccountNotificationBuilder(account, ticker, title, 744 String ticker = local 764 String ticker = mContext.getString(R.string.password_expired_ticker); local 785 String ticker = local [all...] |
/sdk/templates/other/Notification/root/src/app_package/ |
NotificationHelper.java.ftl | 70 final String ticker = exampleString; 98 // Set ticker text (preview) information for this notification. 99 .setTicker(ticker)
|
/external/replicaisland/res/layout/ |
mainmenu.xml | 78 android:id="@+id/ticker"
|