/cts/tests/tests/opengl/src/android/opengl/cts/ |
OpenGLES20ActivityOne.java | 89 public OpenGLES20View(Context context, int type, int index, CountDownLatch latch) { 95 mRenderer = new RendererOneShaderTest(latch); 97 mRenderer = new RendererTwoShaderTest(latch); 99 mRenderer = new RendererThreeShaderTest(latch); 101 mRenderer = new RendererFourShaderTest(latch); 103 mRenderer = new RendererFiveShaderTest(latch); 105 mRenderer = new RendererSixShaderTest(latch); 107 mRenderer = new RendererSevenShaderTest(latch); 109 mRenderer = new RendererEightShaderTest(latch); 111 mRenderer = new RendererNineShaderTest(latch); [all...] |
RendererEightShaderTest.java | 25 public RendererEightShaderTest(CountDownLatch latch) { 26 super(latch);
|
RendererNineShaderTest.java | 25 public RendererNineShaderTest(CountDownLatch latch) { 26 super(latch);
|
RendererOneProgramTest.java | 26 public RendererOneProgramTest(CountDownLatch latch) { 27 super(latch);
|
NativeRendererOneColorBufferTest.java | 57 public NativeRendererOneColorBufferTest(Context context, CountDownLatch latch) { 58 super(latch); 61 public NativeRendererOneColorBufferTest(Context context, float[] color, CountDownLatch latch) { 62 super(latch);
|
RendererBase.java | 42 public RendererBase(CountDownLatch latch) { 43 mLatch = latch;
|
RendererElevenShaderTest.java | 27 public RendererElevenShaderTest(CountDownLatch latch) { 28 super(latch);
|
RendererFiveShaderTest.java | 27 public RendererFiveShaderTest(CountDownLatch latch) { 28 super(latch);
|
RendererFourShaderTest.java | 27 public RendererFourShaderTest(CountDownLatch latch) { 28 super(latch);
|
RendererSevenShaderTest.java | 25 public RendererSevenShaderTest(CountDownLatch latch) { 26 super(latch);
|
RendererSixShaderTest.java | 25 public RendererSixShaderTest(CountDownLatch latch) { 26 super(latch);
|
RendererTenShaderTest.java | 26 public RendererTenShaderTest(CountDownLatch latch) { 27 super(latch);
|
RendererTwelveShaderTest.java | 27 public RendererTwelveShaderTest(CountDownLatch latch) { 28 super(latch);
|
OpenGLES20NativeActivityOne.java | 88 public OpenGLES20View(Context context, int category, int testCase, CountDownLatch latch) { 91 mRenderer = new GL2Renderer(category, testCase, latch); 114 public GL2Renderer(int category, int testcase, CountDownLatch latch) { 117 mLatch = latch;
|
/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)) {
|
/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));
|
/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...] |
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();
|
/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);
|
/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...] |
/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...] |
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
TextToSpeechTests.java | 141 final CountDownLatch latch = new CountDownLatch(1); local 142 doCountDown(latch).when(mock).onSynthesizeText(LittleMock.<SynthesisRequest>anyObject(), 146 awaitCountDown(latch, 5, TimeUnit.SECONDS); 154 final CountDownLatch latch = new CountDownLatch(1); local 155 doCountDown(latch).when(listener).onInit(errorCode); 160 awaitCountDown(latch, 5, TimeUnit.SECONDS); 168 public static CountDownBehaviour doCountDown(final CountDownLatch latch) { 175 latch.countDown(); 189 latch.countDown(); 199 public static void awaitCountDown(CountDownLatch latch, long timeout, TimeUnit unit [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
SensorManagerTestVerifier.java | 220 CountDownLatch latch = mFlushLatch; local 222 if(latch != null) { 223 latch.countDown(); 229 CountDownLatch latch = mFlushLatch; local 230 if(latch != null) { 235 Assert.assertTrue(message, latch.await(WAIT_TIMEOUT_IN_SECONDS, TimeUnit.SECONDS));
|
/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);
|