Home
last modified time | relevance | path

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

/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java431 final Semaphore completionSemaphore = new Semaphore(0); in enable() local
442 completionSemaphore.release(); in enable()
452 success = completionSemaphore.tryAcquire(ENABLE_DISABLE_TIMEOUT, TimeUnit.MILLISECONDS); in enable()
474 final Semaphore completionSemaphore = new Semaphore(0); in disable() local
485 completionSemaphore.release(); in disable()
495 success = completionSemaphore.tryAcquire(ENABLE_DISABLE_TIMEOUT, TimeUnit.MILLISECONDS); in disable()
523 final Semaphore completionSemaphore = new Semaphore(0); in discoverable() local
534 completionSemaphore.release(); in discoverable()
544 success = completionSemaphore.tryAcquire(DISCOVERABLE_UNDISCOVERABLE_TIMEOUT, in discoverable()
573 final Semaphore completionSemaphore = new Semaphore(0); in undiscoverable() local
[all …]