Home
last modified time | relevance | path

Searched refs:await (Results 1 – 25 of 92) sorted by relevance

1234

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAbstractScheduledServiceTest.java77 service.runFirstBarrier.await(); in testFailOnExceptionFromRun()
78 service.runSecondBarrier.await(); in testFailOnExceptionFromRun()
107 service.runFirstBarrier.await(); in testFailOnExceptionFromShutDown()
109 service.runSecondBarrier.await(); in testFailOnExceptionFromShutDown()
123 service.runFirstBarrier.await(); in testRunOneIterationCalledMultipleTimes()
125 service.runSecondBarrier.await(); in testRunOneIterationCalledMultipleTimes()
127 service.runFirstBarrier.await(); in testRunOneIterationCalledMultipleTimes()
129 service.runSecondBarrier.await(); in testRunOneIterationCalledMultipleTimes()
139 service.runFirstBarrier.await(); in testExecutorOnlyCalledOnce()
141 service.runSecondBarrier.await(); in testExecutorOnlyCalledOnce()
[all …]
DListenableFutureTaskTest.java50 taskLatch.await();
92 runLatch.await(); in testListenerDoesNotRunUntilTaskCompletes()
101 assertTrue(listenerLatch.await(5, TimeUnit.SECONDS)); in testListenerDoesNotRunUntilTaskCompletes()
111 runLatch.await(); in testListenerCalledOnException()
121 assertTrue(listenerLatch.await(5, TimeUnit.SECONDS)); in testListenerCalledOnException()
133 listenerLatch.await(5, TimeUnit.SECONDS); in testListenerCalledOnCancelFromNotRunning()
143 runLatch.await(); in testListenerCalledOnCancelFromRunning()
152 listenerLatch.await(5, TimeUnit.SECONDS); in testListenerCalledOnCancelFromRunning()
DListenableFutureTester.java72 assertTrue(latch.await(5, TimeUnit.SECONDS)); in testCompletedFuture()
84 assertTrue(latch.await(5, TimeUnit.SECONDS)); in testCancelledFuture()
99 assertTrue(latch.await(5, TimeUnit.SECONDS)); in testFailedFuture()
DAbstractExecutionThreadServiceTest.java71 enterRun.await(); // to avoid stopping the service until run() is invoked in testServiceStartStop()
84 enterRun.await(); // to avoid stopping the service until run() is invoked in testServiceStopIdempotence()
140 exitRun.await(); in run()
269 enterRun.await(); in run()
313 started.await(); in testStopWhileStarting_runNotCalled()
338 enterRun.await(); in testDefaultService()
DJdkFutureAdaptersTest.java137 submitSuccessful.await(); in testListenInPoolThreadCustomExecutorInterrupted()
183 allowGetToComplete.await(1, SECONDS); in get()
242 assertTrue(earlyListener.wasRun.await(1, SECONDS)); in testListenInPoolThreadRunsListenerAfterRuntimeException()
247 assertTrue(lateListener.wasRun.await(1, SECONDS)); in testListenInPoolThreadRunsListenerAfterRuntimeException()
DExecutionListTest.java52 assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); in testRunOnPopulatedList()
74 okayToRun.await(); in testExecute_idempotentConcurrently()
105 assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); in testAddAfterRun()
DSerializingExecutorTest.java191 barrier.await(); in testTaskThrowsError()
201 barrier.await(10, TimeUnit.SECONDS); in testTaskThrowsError()
204 barrier.await(10, TimeUnit.SECONDS); in testTaskThrowsError()
DJSR166TestCase.java916 latch.await(); in latchAwaitingStringTask()
925 await(latch);
929 public void await(CountDownLatch latch) {
931 assertTrue(latch.await(LONG_DELAY_MS, MILLISECONDS));
937 public void await(Semaphore semaphore) {
1172 public int await() {
1174 return super.await(2 * LONG_DELAY_MS, MILLISECONDS);
/external/guice/core/test/com/google/inject/internal/
DCycleDetectingLockTest.java45 signal3.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
61 signal2.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
62 signal3.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
76 signal1.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
89 signal1.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
90 signal2.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DAbstractListenableFutureTest.java96 assertTrue(successLatch.await(10, TimeUnit.SECONDS)); in testGetBlocksUntilValueAvailable()
158 assertTrue(successLatch.await(200, TimeUnit.MILLISECONDS)); in testCanceledFutureThrowsCancellation()
194 assertTrue(successLatch.await(200, TimeUnit.MILLISECONDS)); in testListenersNotifiedOnError()
195 assertTrue(listenerLatch.await(200, TimeUnit.MILLISECONDS)); in testListenersNotifiedOnError()
241 listenerLatch.await(500, TimeUnit.MILLISECONDS); in testAllListenersCompleteSuccessfully()
DMockFutureListener.java62 Assert.assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); in assertSuccess()
78 Assert.assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); in assertException()
91 Assert.assertFalse(countDownLatch.await(1L, TimeUnit.SECONDS)); in assertTimeout()
/external/guava/guava-testlib/src/com/google/common/testing/
DGcFinalization.java165 public static void await(CountDownLatch latch) { in await() method in GcFinalization
178 if (latch.await(1L, SECONDS)) { in await()
231 await(done); in awaitDone()
291 await(finalizerRan); in awaitFullGc()
/external/blktrace/btt/
Diostat.c87 double dt, nios, avgrq_sz, p_util, nrqm, await, svctm; in __dump_stats() local
109 await = ((nios + nrqm) > 0.0) ? TO_MSEC(sp->wait) / (nios+nrqm) : 0.0; in __dump_stats()
129 fprintf(iostat_ofp, "%7.2lf ", await); in __dump_stats()
155 asp->await += await; in __dump_stats()
176 fprintf(iostat_ofp, "%7.2lf ", asp->await / asp->n); in __dump_stats_t()
/external/sl4a/Utils/src/com/googlecode/android_scripting/future/
DFutureResult.java44 mLatch.await(); in get()
50 mLatch.await(timeout, unit); in get()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DPing.java55 latch.await(); in roundTripTime()
65 if (latch.await(timeout, unit)) { in roundTripTime()
/external/apache-http/src/org/apache/http/impl/conn/tsccm/
DWaitingThread.java142 public boolean await(Date deadline) in await() method in WaitingThread
164 this.cond.await(); in await()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DTextToSpeechFacade.java59 mOnInitLock.await(); in ttsSpeak()
67 mOnInitLock.await(); in ttsIsSpeaking()
/external/guice/core/test/com/google/inject/
DBindingOrderTest.java76 ready.await(); in testBindingWithExtraThreads()
90 done.await(); in testBindingWithExtraThreads()
/external/mockito/src/test/java/org/mockitousage/serialization/
DParallelSerializationTest.java43 barrier_that_will_wait_until_threads_are_ready.await(); in single_mock_being_serialized_in_different_classloaders_by_multiple_threads()
54 barrier_that_will_wait_until_threads_are_ready.await(); in single_mock_being_serialized_in_different_classloaders_by_multiple_threads()
/external/guice/extensions/service/test/com/google/inject/service/
DSingleServiceIntegrationTest.java44 assertTrue(startLatch.await(2, TimeUnit.SECONDS)); in testAsyncServiceLifecycle()
52 assertTrue(stopLatch.await(2, TimeUnit.SECONDS)); in testAsyncServiceLifecycle()
/external/webrtc/talk/app/webrtc/java/testcommon/src/org/webrtc/
DPeerConnectionTest.java435 public boolean await() { in await() method in PeerConnectionTest.SdpObserverLatch
437 assertTrue(latch.await(1000, TimeUnit.MILLISECONDS)); in await()
574 assertTrue(sdpLatch.await());
589 assertTrue(sdpLatch.await());
599 assertTrue(sdpLatch.await());
613 assertTrue(sdpLatch.await());
619 assertTrue(sdpLatch.await());
640 assertTrue(sdpLatch.await());
/external/okhttp/okhttp-ws-tests/src/main/java/com/squareup/okhttp/ws/
DAutobahnTester.java119 if (!latch.await(30, TimeUnit.SECONDS)) { in runTest()
157 if (!latch.await(10, TimeUnit.SECONDS)) { in getTestCount()
191 if (!latch.await(10, TimeUnit.SECONDS)) { in updateReports()
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/
DExecutorFactoryTest.java81 barrier.await(); in testExecutorOnOtherThread()
91 barrier.await(); in testExecutorOnOtherThread()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCallTest.java635 callback.await(request.httpUrl()) in get_Async()
689 callback.await(server.url("/a")).assertBody("abc"); in connectionPooling_Async()
692 callback.await(server.url("/b")).assertBody("def"); in connectionPooling_Async()
695 callback.await(server.url("/c")).assertBody("ghi"); in connectionPooling_Async()
723 callback.await(server.url("/b")).assertCode(200).assertBody("def"); in connectionReuseWhenResponseBodyConsumed_Async()
787 RecordedResponse response = callback.await(request.httpUrl()); in asyncCallEngineInitialized()
878 callback.await(request.httpUrl()).assertHandshake(); in tls_Async()
970 callback.await(request.httpUrl()).assertBody("abc"); in recoverFromTlsHandshakeFailure_Async()
1074 callback.await(request.httpUrl()) in post_Async()
1236 callback.await(request1.httpUrl()).assertCode(200).assertBody("A"); in conditionalCacheHit_Async()
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ui/
DFullScreenTask.java155 p.mLatch.await(); in setViewProperty()
175 p.mLatch.await(); in setList()
314 p.mLatch.await(); in setLayout()
324 p.mLatch.await(); in setTitle()

1234