Searched refs:mSemaphore (Results 1 – 4 of 4) sorted by relevance
138 private final Semaphore mSemaphore = new Semaphore(0); field in AppFocusServiceTest.AppFocusChangedListener146 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.AppFocusOwnershipCallback167 mSemaphore.release(); in onAppFocusOwnershipLost()173 mSemaphore.release(); in onAppFocusOwnershipGranted()177 mSemaphore.tryAcquire(WAIT_TIMEOUT_MS, TimeUnit.MILLISECONDS); in waitForEvent()181 mSemaphore.drainPermits(); in resetWait()
68 private final Semaphore mSemaphore = new Semaphore(MAX_NUM_OF_THREADS_READ_DICTIONARY, field in AndroidSpellCheckerService161 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()
201 private final Semaphore mSemaphore; field in AssociationSecureChannelTest.ChannelCallback204 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()
72 private final Semaphore mSemaphore = new Semaphore(1); field in DatabaseManager798 mSemaphore.release(); in cacheMetadata()1002 mSemaphore.tryAcquire(LOAD_DATABASE_TIMEOUT, TimeUnit.MILLISECONDS); in loadDatabase()