/external/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/ |
H A D | Ping.java | 25 private final CountDownLatch latch = new CountDownLatch(1); field in class:Ping 40 latch.countDown(); 46 latch.countDown(); 55 latch.await(); 65 if (latch.await(timeout, unit)) {
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
H A D | ListenableFutureTester.java | 40 private final CountDownLatch latch; field in class:ListenableFutureTester 45 this.latch = new CountDownLatch(1); 51 latch.countDown(); 55 assertEquals(1, latch.getCount()); 69 assertTrue(latch.await(5, TimeUnit.SECONDS)); 81 assertTrue(latch.await(5, TimeUnit.SECONDS)); 96 assertTrue(latch.await(5, TimeUnit.SECONDS));
|
H A D | JSR166TestCase.java | 910 public Callable<String> latchAwaitingStringTask(final CountDownLatch latch) { argument 914 latch.await(); 920 public Runnable awaiter(final CountDownLatch latch) { argument 923 await(latch); 927 public void await(CountDownLatch latch) { argument 929 assertTrue(latch.await(LONG_DELAY_MS, MILLISECONDS));
|
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/ |
H A D | AbstractListenableFutureTest.java | 43 protected CountDownLatch latch; field in class:AbstractListenableFutureTest 49 // Create a latch and a future that waits on the latch. 50 latch = new CountDownLatch(1); 51 future = createListenableFuture(Boolean.TRUE, null, latch); 58 latch.countDown(); 62 * Constructs a listenable future with a value available after the latch 94 latch.countDown(); 113 // The task thread waits for the latch, so we expect a timeout here. 120 latch [all...] |
H A D | AbstractCheckedFutureTest.java | 71 createCheckedFuture(Boolean.TRUE, null, latch); 98 createCheckedFuture(Boolean.TRUE, null, latch); 135 createCheckedFuture(Boolean.TRUE, new Exception("Error"), latch); 143 latch.countDown();
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
H A D | GcFinalization.java | 55 * final CountDownLatch latch = new CountDownLatch(1); 58 * protected void finalize() { latch.countDown(); ... } 61 * GcFinalization.await(latch); 145 * Waits until the given latch has {@linkplain CountDownLatch#countDown counted down} to zero, 150 public static void await(CountDownLatch latch) { argument 151 if (latch.getCount() == 0) { 158 if (latch.getCount() == 0) { 163 if (latch.await(1L, SECONDS)) { 167 throw new RuntimeException("Unexpected interrupt while waiting for latch", ie); 175 * Creates a garbage object that counts down the latch i 178 createUnreachableLatchFinalizer(final CountDownLatch latch) argument [all...] |
/external/guava/guava-tests/test/com/google/common/testing/ |
H A D | GcFinalizationTest.java | 29 final CountDownLatch latch = new CountDownLatch(1); 31 protected void finalize() { latch.countDown(); } 34 GcFinalization.await(latch); 35 assertEquals(0, latch.getCount()); 114 final CountDownLatch latch = new CountDownLatch(1); 116 GcFinalization.await(latch);
|
/external/mockwebserver/src/test/java/com/google/mockwebserver/ |
H A D | CustomDispatcherTest.java | 62 final CountDownLatch latch = new CountDownLatch(1); 67 latch.await(); 80 latch.countDown();
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
H A D | Uninterruptibles.java | 47 * Invokes {@code latch.}{@link CountDownLatch#await() await()} 50 public static void awaitUninterruptibly(CountDownLatch latch) { argument 55 latch.await(); 70 * {@code latch.}{@link CountDownLatch#await(long, TimeUnit) 73 public static boolean awaitUninterruptibly(CountDownLatch latch, argument 83 return latch.await(remainingNanos, NANOSECONDS);
|
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/javatests/src/org/webrtc/ |
H A D | PeerConnectionTest.java | 374 private CountDownLatch latch = new CountDownLatch(1); field in class:PeerConnectionTest.SdpObserverLatch 385 latch.countDown(); 394 latch.countDown(); 399 assertTrue(latch.await(1000, TimeUnit.MILLISECONDS));
|
/external/iproute2/doc/ |
H A D | api-ip6-flowlabels.tex | 166 to latch it with \verb|IPV6_PKTOPTIONS|.
|
/external/droiddriver/libs/ |
H A D | guava-13.0.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/hash/ ... |
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/closure/ |
H A D | compiler.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/debugging/ com/google/debugging/sourcemap/ ... |