Searched refs:switchLatch (Results 1 – 2 of 2) sorted by relevance
279 final CountDownLatch switchLatch = new CountDownLatch(1); in ephemeralUserStopped() local280 registerUserSwitchObserver(switchLatch, null, startUser); in ephemeralUserStopped()287 switchLatch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS); in ephemeralUserStopped()364 private void registerUserSwitchObserver(final CountDownLatch switchLatch, in registerUserSwitchObserver() argument370 if (switchLatch != null && userId == newUserId) { in registerUserSwitchObserver()371 switchLatch.countDown(); in registerUserSwitchObserver()
1720 final CountDownLatch switchLatch = new CountDownLatch(1);1726 switchLatch.countDown();1740 switched = switchLatch.await(USER_OPERATION_TIMEOUT_MS, TimeUnit.MILLISECONDS);