Home
last modified time | relevance | path

Searched refs:mLatch (Results 1 – 5 of 5) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DAsyncResultHolder.java35 private final CountDownLatch mLatch; field in AsyncResultHolder
39 mLatch = new CountDownLatch(1); in AsyncResultHolder()
49 if (mLatch.getCount() > 0) { in set()
51 mLatch.countDown(); in set()
66 return mLatch.await(timeOut, TimeUnit.MILLISECONDS) ? mResult : defaultValue; in get()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/
DProvisioningResultListener.java42 private final CountDownLatch mLatch = new CountDownLatch(3); field in ProvisioningResultListener
55 mLatch.countDown(); in onReceive()
59 mLatch.countDown(); in onReceive()
83 return mLatch.await(timeoutSeconds, TimeUnit.SECONDS); in await()
88 mLatch.countDown(); in setPreprovisioningActivityResult()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadScanner.java71 private CountDownLatch mLatch; field in DownloadScanner
84 scanner.mLatch = new CountDownLatch(1); in requestScanBlocking()
87 scanner.mLatch.await(SCAN_TIMEOUT, TimeUnit.MILLISECONDS); in requestScanBlocking()
177 if (mLatch != null) { in onScanCompleted()
178 mLatch.countDown(); in onScanCompleted()
/packages/apps/TV/src/com/android/tv/tuner/setup/
DScanFragment.java250 private CountDownLatch mLatch; field in ScanFragment.ChannelScanTask
345 mLatch = new CountDownLatch(1); in scanChannels()
347 mLatch.await(CHANNEL_SCAN_PERIOD_MS, TimeUnit.MILLISECONDS); in scanChannels()
416 if (mLatch != null) { in onChannelScanDone()
417 mLatch.countDown(); in onChannelScanDone()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DScanManager.java93 private CountDownLatch mLatch; field in ScanManager
178 mLatch.countDown(); in callbackDone()
430 mLatch = new CountDownLatch(1); in resetCountDownLatch()
436 return mLatch.await(OPERATION_TIME_OUT_MILLIS, TimeUnit.MILLISECONDS); in waitForCallback()