Home
last modified time | relevance | path

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

/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DUserLifecycleTests.java279 final CountDownLatch switchLatch = new CountDownLatch(1); in ephemeralUserStopped() local
280 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() argument
370 if (switchLatch != null && userId == newUserId) { in registerUserSwitchObserver()
371 switchLatch.countDown(); in registerUserSwitchObserver()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java1720 final CountDownLatch switchLatch = new CountDownLatch(1);
1726 switchLatch.countDown();
1740 switched = switchLatch.await(USER_OPERATION_TIMEOUT_MS, TimeUnit.MILLISECONDS);