HomeSort by relevance Sort by last modified time
    Searched defs:latch (Results 1 - 25 of 39) sorted by null

1 2

  /external/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
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)) {
  /libcore/luni/src/test/java/libcore/java/lang/ref/
FinalizeTest.java 100 CountDownLatch latch = new CountDownLatch(5); local
101 createSlowFinalizer( 1, latch);
102 createSlowFinalizer(1000, latch);
103 createSlowFinalizer(2000, latch);
104 createSlowFinalizer(4000, latch);
105 createSlowFinalizer(8000, latch);
107 latch.await();
110 public void createSlowFinalizer(final long millis, final CountDownLatch latch) {
115 latch.countDown();
  /external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
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.countDown()
    [all...]
  /packages/apps/Dialer/tests/src/com/android/dialer/util/
FakeAsyncTaskExecutor.java 190 final CountDownLatch latch = new CountDownLatch(1); local
195 latch.countDown();
202 Assert.assertTrue(latch.await(mTimeoutMs, TimeUnit.MILLISECONDS));
  /external/guava/guava/src/com/google/common/util/concurrent/
Uninterruptibles.java 47 * Invokes {@code latch.}{@link CountDownLatch#await() await()}
50 public static void awaitUninterruptibly(CountDownLatch latch) {
55 latch.await();
70 * {@code latch.}{@link CountDownLatch#await(long, TimeUnit)
73 public static boolean awaitUninterruptibly(CountDownLatch latch,
83 return latch.await(remainingNanos, NANOSECONDS);
  /external/guava/guava-testlib/src/com/google/common/testing/
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) {
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);
171 String.format("Latch failed to count down within %d second timeout", timeoutSeconds))
    [all...]
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
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));
  /cts/tests/tests/content/src/android/content/cts/
ContentResolverSyncTestCase.java 92 private CountDownLatch setNewLatch(CountDownLatch latch) {
94 getMockSyncAdapter().setLatch(latch);
95 return latch;
101 CountDownLatch latch = setNewLatch(new CountDownLatch(1)); local
107 if (!latch.await(latchTimeoutMs, TimeUnit.MILLISECONDS)) {
108 fail("should not time out waiting on latch");
122 CountDownLatch latch = setNewLatch(new CountDownLatch(1)); local
131 latch.await(latchTimeoutMillis, TimeUnit.MILLISECONDS);
138 CountDownLatch latch = setNewLatch(new CountDownLatch(1)); local
147 latch.await(latchTimeoutMillis, TimeUnit.MILLISECONDS)
    [all...]
  /libcore/luni/src/main/java/java/net/
InetAddress.java 693 final CountDownLatch latch = new CountDownLatch(sourceAddresses.size()); local
703 while (latch.getCount() > 0) {
704 latch.countDown();
709 latch.countDown();
714 latch.await();
    [all...]
  /frameworks/base/tests/TtsTests/src/com/android/speech/tts/
TextToSpeechTests.java 167 final CountDownLatch latch = new CountDownLatch(1); local
168 doCountDown(latch).when(mock).onSynthesizeText(LittleMock.<SynthesisRequest>anyObject(),
172 awaitCountDown(latch, 5, TimeUnit.SECONDS);
180 final CountDownLatch latch = new CountDownLatch(1); local
181 doCountDown(latch).when(listener).onInit(errorCode);
186 awaitCountDown(latch, 5, TimeUnit.SECONDS);
194 public static CountDownBehaviour doCountDown(final CountDownLatch latch) {
201 latch.countDown();
215 latch.countDown();
225 public static void awaitCountDown(CountDownLatch latch, long timeout, TimeUnit unit
    [all...]
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/database/
NoNullCursorAsyncQueryHandlerTest.java 57 final CountDownLatch latch = new CountDownLatch(1); local
73 latch.countDown();
80 latch.await(5, TimeUnit.SECONDS);
87 final CountDownLatch latch = new CountDownLatch(1); local
100 latch.countDown();
107 latch.await(5, TimeUnit.SECONDS);
114 final CountDownLatch latch = new CountDownLatch(1); local
127 latch.countDown();
134 latch.await(5, TimeUnit.SECONDS);
  /cts/tests/tests/net/src/android/net/cts/
TrafficStatsTest.java 53 final CountDownLatch latch = new CountDownLatch(1); local
61 latch.countDown();
65 latch.await(5, TimeUnit.SECONDS);
  /cts/tests/tests/accounts/src/android/accounts/cts/
AccountManagerTest.java 300 final CountDownLatch latch = new CountDownLatch(1); local
326 latch.countDown();
341 latch.await(LATCH_TIMEOUT_MS, TimeUnit.MILLISECONDS);
657 final CountDownLatch latch = new CountDownLatch(1); local
677 latch.countDown();
696 latch.await(LATCH_TIMEOUT_MS, TimeUnit.MILLISECONDS);
748 final CountDownLatch latch = new CountDownLatch(1); local
768 latch.countDown();
788 latch.await(LATCH_TIMEOUT_MS, TimeUnit.MILLISECONDS);
900 final CountDownLatch latch = new CountDownLatch(1); local
980 final CountDownLatch latch = new CountDownLatch(1); local
1051 final CountDownLatch latch = new CountDownLatch(1); local
1109 final CountDownLatch latch = new CountDownLatch(1); local
1150 final CountDownLatch latch = new CountDownLatch(1); local
    [all...]
  /external/guava/guava-tests/test/com/google/common/testing/
GcFinalizationTest.java 29 final CountDownLatch latch = new CountDownLatch(1); local
31 protected void finalize() { latch.countDown(); }
34 GcFinalization.await(latch);
35 assertEquals(0, latch.getCount());
114 final CountDownLatch latch = new CountDownLatch(1); local
116 GcFinalization.await(latch);
  /external/llvm/lib/Analysis/
LoopInfo.cpp 239 BasicBlock *latch = getLoopLatch(); local
240 if (latch == NULL)
244 latch->getTerminator()->getMetadata("llvm.loop.parallel");
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/
AccountTypeManager.java 245 /* A latch that ensures that asynchronous initialization completes before data is used */
357 CountDownLatch latch = mInitializationLatch; local
358 if (latch == null) {
363 latch.await();
    [all...]
  /packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
LocalDataTest.java 197 OnContentDirtyLatch latch = new OnContentDirtyLatch(); local
198 sub.addContentListener(latch);
202 latch.isOnContentDirtyBeCalled(DEFAULT_TIMEOUT);
  /frameworks/base/core/java/android/inputmethodservice/
IInputMethodWrapper.java 229 CountDownLatch latch = new CountDownLatch(1); local
231 fd, fout, args, latch));
233 if (!latch.await(5, TimeUnit.SECONDS)) {
  /frameworks/base/graphics/java/android/renderscript/
Mesh.java 617 private void latch() { method in class:Mesh.TriangleMeshBuilder
657 latch(); method
681 latch(); method
  /frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
LoadTestsAutoTest.java 135 final CountDownLatch latch = new CountDownLatch(1); local
141 latch.countDown();
148 if (!latch.await(MAX_GC_WAIT_SEC, TimeUnit.SECONDS)) {
  /frameworks/base/core/java/android/view/
ViewDebug.java 602 final CountDownLatch latch = new CountDownLatch(1); local
616 latch.countDown();
622 if (!latch.await(CAPTURE_TIMEOUT, TimeUnit.MILLISECONDS)) {
748 final CountDownLatch latch = new CountDownLatch(1); local
759 latch.countDown();
765 latch.await(CAPTURE_TIMEOUT, TimeUnit.MILLISECONDS);
1436 final CountDownLatch latch = new CountDownLatch(1); local
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
MediaRecorderTest.java 83 final CountDownLatch latch = new CountDownLatch(1); local
88 latch.countDown();
93 assertTrue(latch.await(10, TimeUnit.SECONDS));
  /prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/lib/gcc/arm-eabi/4.6.x-google/plugin/include/
cfgloop.h 113 /* Basic block of loop latch. */
114 struct basic_block_def *latch; variable in typeref:struct:basic_block_def
137 /* The number of times the latch of the loop is executed. This can be an
380 /* Assumptions under that the loop ends before reaching the latch,
  /prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/lib/gcc/arm-linux-androideabi/4.6.x-google/plugin/include/
cfgloop.h 113 /* Basic block of loop latch. */
114 struct basic_block_def *latch; variable in typeref:struct:basic_block_def
137 /* The number of times the latch of the loop is executed. This can be an
380 /* Assumptions under that the loop ends before reaching the latch,
  /prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/lib/gcc/arm-eabi/4.6.x-google/plugin/include/
cfgloop.h 113 /* Basic block of loop latch. */
114 struct basic_block_def *latch; variable in typeref:struct:basic_block_def
137 /* The number of times the latch of the loop is executed. This can be an
380 /* Assumptions under that the loop ends before reaching the latch,

Completed in 1160 milliseconds

1 2