Home
last modified time | relevance | path

Searched refs:mSemaphore (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DAppFocusServiceTest.java138 private final Semaphore mSemaphore = new Semaphore(0); field in AppFocusServiceTest.AppFocusChangedListener
146 mSemaphore.release(); in onAppFocusChanged()
150 assertThat(mSemaphore.tryAcquire(WAIT_TIMEOUT_MS, TimeUnit.MILLISECONDS)).isTrue(); in waitForEvent()
154 mSemaphore.drainPermits(); in resetWait()
161 private final Semaphore mSemaphore = new Semaphore(0); field in AppFocusServiceTest.AppFocusOwnershipCallback
167 mSemaphore.release(); in onAppFocusOwnershipLost()
173 mSemaphore.release(); in onAppFocusOwnershipGranted()
177 mSemaphore.tryAcquire(WAIT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitForEvent()
181 mSemaphore.drainPermits(); in resetWait()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerService.java68 private final Semaphore mSemaphore = new Semaphore(MAX_NUM_OF_THREADS_READ_DICTIONARY, field in AndroidSpellCheckerService
161 mSemaphore.acquireUninterruptibly(); in isValidWord()
167 mSemaphore.release(); in isValidWord()
175 mSemaphore.acquireUninterruptibly(); in getSuggestionResults()
187 mSemaphore.release(); in getSuggestionResults()
192 mSemaphore.acquireUninterruptibly(); in hasMainDictionaryForLocale()
198 mSemaphore.release(); in hasMainDictionaryForLocale()
204 mSemaphore.acquireUninterruptibly(MAX_NUM_OF_THREADS_READ_DICTIONARY); in onUnbind()
208 mSemaphore.release(MAX_NUM_OF_THREADS_READ_DICTIONARY); in onUnbind()
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ble/
DAssociationSecureChannelTest.java201 private final Semaphore mSemaphore; field in AssociationSecureChannelTest.ChannelCallback
204 mSemaphore = semaphore; in ChannelCallback()
209 mSemaphore.release(); in onSecureChannelEstablished()
214 mSemaphore.release(); in onEstablishSecureChannelFailure()
219 mSemaphore.release(); in onMessageReceived()
224 mSemaphore.release(); in onMessageReceivedError()
229 mSemaphore.release(); in onDeviceIdReceived()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/
DDatabaseManager.java72 private final Semaphore mSemaphore = new Semaphore(1); field in DatabaseManager
798 mSemaphore.release(); in cacheMetadata()
1002 mSemaphore.tryAcquire(LOAD_DATABASE_TIMEOUT, TimeUnit.MILLISECONDS); in loadDatabase()