Searched refs:latch (Results 1 – 4 of 4) sorted by relevance
123 final CountDownLatch latch = new CountDownLatch(1); in switchToUserId() local130 latch.countDown(); in switchToUserId()147 if (!latch.await(USER_SWITCH_TIMEOUT_SECOND, TimeUnit.SECONDS)) { in switchToUserId()
113 deviceAddedMap[device]!!.let { latch -> in <lambda>() method114 latch.await(20, TimeUnit.SECONDS) in <lambda>()115 if (latch.count != 0L) { in <lambda>()
106 CountDownLatch latch = new CountDownLatch(1); in runToNextState() local108 mStateListener = latch::countDown; in runToNextState()112 if (!latch.await(WAIT_TIME_MILLIS, TimeUnit.MILLISECONDS)) { in runToNextState()
88 final CountDownLatch latch = new CountDownLatch(1); in unlockScreenWithPin() local92 latch.countDown(); in unlockScreenWithPin()