Searched refs:mSemaphore (Results 1 – 3 of 3) sorted by relevance
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()
192 private final Semaphore mSemaphore; field in SecureBleChannelTest.ChannelCallback194 mSemaphore = semaphore; in ChannelCallback()198 mSemaphore.release(); in onSecureChannelEstablished()203 mSemaphore.release(); in onEstablishSecureChannelFailure()208 mSemaphore.release(); in onMessageReceived()213 mSemaphore.release(); in onMessageReceivedError()218 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()