Home
last modified time | relevance | path

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

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchHistoryManagerTest.java42 private CountDownLatch mLatch ; field in SearchHistoryManagerTest
72 mLatch = new CountDownLatch(2); in testAddHistory()
77 mLatch.countDown(); in testAddHistory()
87 mLatch.await(1, TimeUnit.SECONDS); in testAddHistory()
94 mLatch = new CountDownLatch(2); in testDeleteHistory()
99 mLatch.countDown(); in testDeleteHistory()
106 mLatch.countDown(); in testDeleteHistory()
112 mLatch.await(1, TimeUnit.SECONDS); in testDeleteHistory()
121 mLatch = new CountDownLatch(2); in testDeleteHistory()
123 mLatch.await(1, TimeUnit.SECONDS); in testDeleteHistory()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarLocationServiceTest.java91 private CountDownLatch mLatch; field in CarLocationServiceTest
117 mLatch = new CountDownLatch(1); in setUp()
123 mLatch.countDown(); in setUp()
221 mLatch.await(); in testLoadsLocationWithHeadlessSystemUser()
243 mLatch.await(); in testDoesNotLoadLocationWhenNoFileExists()
258 mLatch.await(); in testDoesNotLoadLocationFromIncompleteFile()
273 mLatch.await(); in testDoesNotLoadLocationFromCorruptFile()
289 mLatch.await(); in testDoesNotLoadIncompleteLocation()
308 mLatch.await(); in testDoesNotLoadOldLocation()
323 mLatch.await(); in testStoresLocationUponShutdownPrepare()
[all …]
/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()
161 if (mLatch != null) { in onScanCompleted()
162 mLatch.countDown(); in onScanCompleted()
183 if (mLatch != null) { in onScanCompleted()
184 mLatch.countDown(); in onScanCompleted()
/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/DocumentsUI/tests/unit/com/android/documentsui/theme/
DThemeOverlayManagerTest.java63 CountDownLatch mLatch; field in ThemeOverlayManagerTest
74 mLatch = new CountDownLatch(1); in setUp()
76 mCallback = result -> mLatch.countDown(); in setUp()
106 mLatch.await(5, TimeUnit.SECONDS); in testApplyOverlays_shouldSetEnabled()
118 mLatch.await(5, TimeUnit.SECONDS); in testApplyOverlays_shouldGetOverlayInfo()
148 mLatch.await(5, TimeUnit.SECONDS); in testDefaultDisabled_applyOverlays_shouldEnabled()
165 mLatch.await(5, TimeUnit.SECONDS); in testDefaultEnabled_applyOverlays_shouldDisabled()
/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/modules/NetworkStack/tests/unit/src/android/net/util/
DPacketReaderTest.java68 protected CountDownLatch mLatch; field in PacketReaderTest
102 mLatch.countDown(); in handlePacket()
108 mLatch.countDown(); in onStart()
114 mLatch.countDown(); in onStop()
141 void resetLatch() { mLatch = new CountDownLatch(1); } in resetLatch()
145 mLatch.await(1000, TimeUnit.MILLISECONDS); in waitForActivity()
/packages/apps/TV/tuner/src/com/android/tv/tuner/setup/
DScanFragment.java261 private CountDownLatch mLatch; field in ScanFragment.ChannelScanTask
343 if (mLatch != null) { in stopScan()
344 mLatch.countDown(); in stopScan()
368 mLatch = new CountDownLatch(1); in scanChannels()
370 mLatch.await(CHANNEL_SCAN_PERIOD_MS, TimeUnit.MILLISECONDS); in scanChannels()
439 if (mLatch != null) { in onChannelScanDone()
440 mLatch.countDown(); in onChannelScanDone()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/testcommon/
DActivityLifecycleWaiter.java29 private final CountDownLatch mLatch = new CountDownLatch(1); field in ActivityLifecycleWaiter
42 mLatch.countDown(); in onActivityLifecycleChanged()
54 mLatch.await(millis, TimeUnit.MILLISECONDS); in waitForStage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
DBaseTimeZoneAdapterTest.java70 private final CountDownLatch mLatch = new CountDownLatch(1); field in BaseTimeZoneAdapterTest.Observer
81 mLatch.countDown(); in onChanged()
85 mLatch.await(2L, TimeUnit.SECONDS); in await()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DScanManager.java101 private CountDownLatch mLatch; field in ScanManager
239 mLatch.countDown(); in callbackDone()
563 mLatch = new CountDownLatch(1); in resetCountDownLatch()
569 return mLatch.await(OPERATION_TIME_OUT_MILLIS, TimeUnit.MILLISECONDS); in waitForCallback()