Home
last modified time | relevance | path

Searched refs:latch (Results 1 – 16 of 16) sorted by relevance

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DAsyncBlockCheckFilterTest.java73 final CountDownLatch latch = new CountDownLatch(1); in testBlockNumber() local
75 latch.countDown(); in testBlockNumber()
80 waitOnLatch(latch); in testBlockNumber()
87 final CountDownLatch latch = new CountDownLatch(1); in testDontBlockNumber() local
89 latch.countDown(); in testDontBlockNumber()
94 waitOnLatch(latch); in testDontBlockNumber()
99 private void waitOnLatch(CountDownLatch latch) { in waitOnLatch() argument
100 while (latch.getCount() > 0) { in waitOnLatch()
102 latch.await(); in waitOnLatch()
DBasicCallTests.java401 final CountDownLatch latch = new CountDownLatch(1); in testIncomingCallBlockCheckTimesoutIsAllowed() local
406 latch.await(TEST_TIMEOUT * 2, TimeUnit.MILLISECONDS); in testIncomingCallBlockCheckTimesoutIsAllowed()
415 latch.countDown(); in testIncomingCallBlockCheckTimesoutIsAllowed()
530 final CountDownLatch latch = new CountDownLatch(tasks.length); in rapidFire() local
542 latch.countDown(); in rapidFire()
548 latch.await(); in rapidFire()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/database/
DNoNullCursorAsyncQueryHandlerTest.java57 final CountDownLatch latch = new CountDownLatch(1); in testCursorIsNotNull() local
73 latch.countDown(); in testCursorIsNotNull()
80 latch.await(5, TimeUnit.SECONDS); in testCursorIsNotNull()
87 final CountDownLatch latch = new CountDownLatch(1); in testCursorContainsCorrectCookies() local
100 latch.countDown(); in testCursorContainsCorrectCookies()
107 latch.await(5, TimeUnit.SECONDS); in testCursorContainsCorrectCookies()
114 final CountDownLatch latch = new CountDownLatch(1); in testCursorContainsCorrectColumns() local
127 latch.countDown(); in testCursorContainsCorrectColumns()
134 latch.await(5, TimeUnit.SECONDS); in testCursorContainsCorrectColumns()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/
DAccountsSettingsFragmentTests.java144 final CountDownLatch latch = new CountDownLatch(1); in initDialog() local
158 latch.countDown(); in initDialog()
163 latch.await(TEST_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in initDialog()
/packages/apps/Dialer/tests/src/com/android/dialer/util/
DFakeAsyncTaskExecutor.java190 final CountDownLatch latch = new CountDownLatch(1); in runTask() local
195 latch.countDown(); in runTask()
202 Assert.assertTrue(latch.await(mTimeoutMs, TimeUnit.MILLISECONDS)); in runTask()
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DSdpManagerTestServer.java153 public SdpBroadcastReceiver(String[] uuids, CountDownLatch latch) { in SdpBroadcastReceiver() argument
166 mLatch = latch; in SdpBroadcastReceiver()
302 final CountDownLatch latch = new CountDownLatch(count); in searchAwaitAndValidate() local
303 SdpBroadcastReceiver broadcastReceiver = new SdpBroadcastReceiver(uuids, latch); in searchAwaitAndValidate()
327 latch.await(); in searchAwaitAndValidate()
DObexTest.java630 public SdpBroadcastReceiver(CountDownLatch latch) { in SdpBroadcastReceiver() argument
631 mLatch = latch; in SdpBroadcastReceiver()
689 final CountDownLatch latch = new CountDownLatch(1); in clientAwaitSdp() local
690 SdpBroadcastReceiver broadcastReceiver = new SdpBroadcastReceiver(latch); in clientAwaitSdp()
699 latch.await(); in clientAwaitSdp()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DStorageUtils.java121 if (!observer.latch.await(30, TimeUnit.SECONDS)) { in ensureAvailableSpace()
265 public final CountDownLatch latch = new CountDownLatch(1); field in StorageUtils.ObserverLatch
269 latch.countDown(); in onRemoveCompleted()
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java164 final CountDownLatch latch = new CountDownLatch(2); in testChangesNotified() local
169 latch.notify(); in testChangesNotified()
177 latch.await(10, TimeUnit.SECONDS); in testChangesNotified()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DAccountTypeManager.java351 CountDownLatch latch = mInitializationLatch; in ensureAccountsLoaded() local
352 if (latch == null) { in ensureAccountsLoaded()
357 latch.await(); in ensureAccountsLoaded()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCallLogProvider.java686 private static void waitForAccess(CountDownLatch latch) { in waitForAccess() argument
687 if (latch == null) { in waitForAccess()
693 latch.await(); in waitForAccess()
DContactsProvider2.java2132 private void waitForAccess(CountDownLatch latch) { in waitForAccess() argument
2133 if (latch == null) { in waitForAccess()
2139 latch.await(); in waitForAccess()
/packages/apps/Gallery/src/com/android/camera/
DCropImage.java184 final CountDownLatch latch = new CountDownLatch(1); in startFaceDetection()
199 latch.countDown(); in startFaceDetection()
203 latch.await(); in startFaceDetection()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DStorageTest.java175 if (!observer.latch.await(30, TimeUnit.SECONDS)) { in prepareAndRunDownload()
/packages/services/Telecomm/libs/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/inputmethods/LatinIME/dictionaries/
Den_US_wordlist.combined.gz