Searched refs:latch (Results 1 – 15 of 15) sorted by relevance
57 final CountDownLatch latch = new CountDownLatch(1); in testCursorIsNotNull() local73 latch.countDown(); in testCursorIsNotNull()80 latch.await(5, TimeUnit.SECONDS); in testCursorIsNotNull()87 final CountDownLatch latch = new CountDownLatch(1); in testCursorContainsCorrectCookies() local100 latch.countDown(); in testCursorContainsCorrectCookies()107 latch.await(5, TimeUnit.SECONDS); in testCursorContainsCorrectCookies()114 final CountDownLatch latch = new CountDownLatch(1); in testCursorContainsCorrectColumns() local127 latch.countDown(); in testCursorContainsCorrectColumns()134 latch.await(5, TimeUnit.SECONDS); in testCursorContainsCorrectColumns()
153 public SdpBroadcastReceiver(String[] uuids, CountDownLatch latch) { in SdpBroadcastReceiver() argument166 mLatch = latch; in SdpBroadcastReceiver()302 final CountDownLatch latch = new CountDownLatch(count); in searchAwaitAndValidate() local303 SdpBroadcastReceiver broadcastReceiver = new SdpBroadcastReceiver(uuids, latch); in searchAwaitAndValidate()327 latch.await(); in searchAwaitAndValidate()
630 public SdpBroadcastReceiver(CountDownLatch latch) { in SdpBroadcastReceiver() argument631 mLatch = latch; in SdpBroadcastReceiver()689 final CountDownLatch latch = new CountDownLatch(1); in clientAwaitSdp() local690 SdpBroadcastReceiver broadcastReceiver = new SdpBroadcastReceiver(latch); in clientAwaitSdp()699 latch.await(); in clientAwaitSdp()
144 final CountDownLatch latch = new CountDownLatch(1); in initDialog() local158 latch.countDown(); in initDialog()163 latch.await(TEST_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in initDialog()
190 final CountDownLatch latch = new CountDownLatch(1); in runTask() local195 latch.countDown(); in runTask()202 Assert.assertTrue(latch.await(mTimeoutMs, TimeUnit.MILLISECONDS)); in runTask()
121 if (!observer.latch.await(30, TimeUnit.SECONDS)) { in ensureAvailableSpace()265 public final CountDownLatch latch = new CountDownLatch(1); field in StorageUtils.ObserverLatch269 latch.countDown(); in onRemoveCompleted()
596 private static void waitForAccess(CountDownLatch latch) { in waitForAccess() argument597 if (latch == null) { in waitForAccess()603 latch.await(); in waitForAccess()
2076 private void waitForAccess(CountDownLatch latch) { in waitForAccess() argument2077 if (latch == null) { in waitForAccess()2083 latch.await(); in waitForAccess()
351 CountDownLatch latch = mInitializationLatch; in ensureAccountsLoaded() local352 if (latch == null) { in ensureAccountsLoaded()357 latch.await(); in ensureAccountsLoaded()
467 final CountDownLatch latch = new CountDownLatch(tasks.length); in rapidFire() local479 latch.countDown(); in rapidFire()485 latch.await(); in rapidFire()
184 final CountDownLatch latch = new CountDownLatch(1); in startFaceDetection()199 latch.countDown(); in startFaceDetection()203 latch.await(); in startFaceDetection()
173 if (!observer.latch.await(30, TimeUnit.SECONDS)) { in prepareAndRunDownload()
1dictionary=main:en,locale=en,description=English,date=1414726273, ...