Searched refs:latch (Results 1 - 20 of 20) sorted by relevance

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
H A DPing.java25 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 DListenableFutureTester.java40 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 DJSR166TestCase.java910 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 DAbstractListenableFutureTest.java43 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 DAbstractCheckedFutureTest.java71 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 DGcFinalization.java55 * 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 DGcFinalizationTest.java29 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 DCustomDispatcherTest.java62 final CountDownLatch latch = new CountDownLatch(1);
67 latch.await();
80 latch.countDown();
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
H A DCustomDispatcherTest.java61 final CountDownLatch latch = new CountDownLatch(1);
66 latch.await();
79 latch.countDown();
/external/guava/guava/src/com/google/common/util/concurrent/
H A DUninterruptibles.java47 * 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/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
H A DAsyncApiTest.java316 final CountDownLatch latch = new CountDownLatch(1);
328 latch.countDown();
333 latch.await();
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/javatests/src/org/webrtc/
H A DPeerConnectionTest.java392 private CountDownLatch latch = new CountDownLatch(1); field in class:PeerConnectionTest.SdpObserverLatch
405 latch.countDown();
416 latch.countDown();
421 assertTrue(latch.await(1000, TimeUnit.MILLISECONDS));
/external/iproute2/doc/
H A Dapi-ip6-flowlabels.tex166 to latch it with \verb|IPV6_PKTOPTIONS|.
/external/owasp/sanitizer/tools/findbugs/lib/
H A Dfindbugs.jarMETA-INF/ META-INF/MANIFEST.MF default.xsl edu/ edu/umd/ edu/umd/cs/ edu/ ...
/external/owasp/sanitizer/distrib/lib/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ...
/external/owasp/sanitizer/lib/guava-libraries/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/collect/ ...
/external/chromium_org/third_party/android_platform/webview/
H A Dframeworks.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/location/ android/location/Address$1.class ...
/external/chromium_org/third_party/checkstyle/
H A Dcheckstyle-5.7-all.jarMETA-INF/MANIFEST.MF META-INF/ checkstyle_packages.xml checkstylecompilation.properties checkstyletask.properties com/ ...
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/closure/
H A Dcompiler.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/javascript/ com/google/javascript/jscomp/ ...
/external/chromium_org/third_party/closure_compiler/compiler/
H A Dcompiler.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/debugging/ com/google/debugging/sourcemap/ ...

Completed in 2002 milliseconds