Searched refs:mLatch (Results 1 - 6 of 6) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DAsyncResultHolder.java35 private final CountDownLatch mLatch; field in class:AsyncResultHolder
39 mLatch = new CountDownLatch(1);
49 if (mLatch.getCount() > 0) {
51 mLatch.countDown();
66 return mLatch.await(timeOut, TimeUnit.MILLISECONDS) ? mResult : defaultValue;
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/
H A DProvisioningResultListener.java42 private final CountDownLatch mLatch = new CountDownLatch(3); field in class:ProvisioningResultListener
55 mLatch.countDown();
59 mLatch.countDown();
83 return mLatch.await(timeoutSeconds, TimeUnit.SECONDS);
88 mLatch.countDown();
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/testcommon/
H A DActivityLifecycleWaiter.java28 private final CountDownLatch mLatch = new CountDownLatch(1); field in class:ActivityLifecycleWaiter
41 mLatch.countDown();
53 mLatch.await(millis, TimeUnit.MILLISECONDS);
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadScanner.java71 private CountDownLatch mLatch; field in class:DownloadScanner
84 scanner.mLatch = new CountDownLatch(1);
87 scanner.mLatch.await(SCAN_TIMEOUT, TimeUnit.MILLISECONDS);
177 if (mLatch != null) {
178 mLatch.countDown();
/packages/apps/TV/src/com/android/tv/tuner/setup/
H A DScanFragment.java259 private CountDownLatch mLatch; field in class:ScanFragment.ChannelScanTask
336 if (mLatch != null) {
337 mLatch.countDown();
361 mLatch = new CountDownLatch(1);
363 mLatch.await(CHANNEL_SCAN_PERIOD_MS, TimeUnit.MILLISECONDS);
428 if (mLatch != null) {
429 mLatch.countDown();
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
H A DScanManager.java97 private CountDownLatch mLatch; field in class:ScanManager
195 mLatch.countDown();
491 mLatch = new CountDownLatch(1);
494 // Returns true if mLatch reaches 0, false if timeout or interrupted.
497 return mLatch.await(OPERATION_TIME_OUT_MILLIS, TimeUnit.MILLISECONDS);

Completed in 225 milliseconds