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

1 2 3 4 5 6 7 8 9

  /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...]
NativeRendererOneColorBufferTest.java 57 public NativeRendererOneColorBufferTest(Context context, CountDownLatch latch) {
58 super(latch);
61 public NativeRendererOneColorBufferTest(Context context, float[] color, CountDownLatch latch) {
62 super(latch);
RendererEightShaderTest.java 25 public RendererEightShaderTest(CountDownLatch latch) {
26 super(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);
RendererNineShaderTest.java 25 public RendererNineShaderTest(CountDownLatch latch) {
26 super(latch);
RendererOneProgramTest.java 26 public RendererOneProgramTest(CountDownLatch latch) {
27 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);
  /external/oprofile/events/ppc64/power7/
events 23 event:0X0011 counters:1 um:zero minimum:10000 name:PM_RUN_CYC_GRP1 : (Group 1 pm_utilization) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop.
27 event:0X0015 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP1 : (Group 1 pm_utilization) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle loop. Gating by the run latch filters out the idle loop.
35 event:0X0025 counters:5 um:zero minimum:10000 name:PM_RUN_CYC_GRP2 : (Group 2 pm_branch1) Processor Cycles gated by the run latch. Operating systems use the run latch to indicate when they are doing useful work. The run latch is typically cleared in the OS idle lo (…)
    [all...]
  /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...]
  /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));
ListenableFutureTaskTest.java 87 // thread because the task will block on the task latch after unblocking
88 // the run latch.
95 // Finish the task by unblocking the task latch. Then wait for the
96 // listener to be called by blocking on the listener latch.
107 // Start up the task and unblock the latch to finish the task.
  /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();
  /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/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-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...]
  /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...]
  /external/llvm/lib/Transforms/Scalar/
LoopRotation.cpp 84 // Simplify the loop latch before attempting to rotate the header
217 BasicBlock *Latch = L->getLoopLatch();
218 if (!Latch || Latch->hasAddressTaken())
221 BranchInst *Jmp = dyn_cast<BranchInst>(Latch->getTerminator());
225 BasicBlock *LastExit = Latch->getSinglePredecessor();
233 if (!shouldSpeculateInstrs(Latch->begin(), Jmp))
236 DEBUG(dbgs() << "Folding loop latch " << Latch->getName() << " into "
239 // Hoist the instructions from Latch into LastExit
    [all...]
  /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...]
  /external/mockwebserver/src/test/java/com/google/mockwebserver/
CustomDispatcherTest.java 62 final CountDownLatch latch = new CountDownLatch(1); local
67 latch.await();
80 latch.countDown();

Completed in 895 milliseconds

1 2 3 4 5 6 7 8 9