Home
last modified time | relevance | path

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

/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DRaceConditionReproducer.java262 final Semaphore waitObject = tryRegisterEvent(event); in onEvent() local
263 if (waitObject != null) { in onEvent()
264 waitUntilCanRegister(event, waitObject); in onEvent()
368 final Semaphore waitObject = new Semaphore(0); in createWaitObjectForPostponedEventLocked() local
370 mPostponedEvents.put(event, waitObject); in createWaitObjectForPostponedEventLocked()
371 return waitObject; in createWaitObjectForPostponedEventLocked()
374 private void waitUntilCanRegister(String event, Semaphore waitObject) { in waitUntilCanRegister() argument
377 waitObject.tryAcquire(LONG_TIMEOUT_MS, TimeUnit.MILLISECONDS)); in waitUntilCanRegister()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DStateMachineTest.java1703 synchronized (waitObject) { in onHalting()
1704 waitObject.notifyAll(); in onHalting()
1713 private static Object waitObject = new Object(); field in StateMachineTest
1731 synchronized (waitObject) { in testStateMachineSharedThread()
1741 waitObject.wait(); in testStateMachineSharedThread()