Home
last modified time | relevance | path

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

/cts/tests/translation/src/android/translation/cts/
DCtsTranslationService.java67 private CountDownLatch mSessionCreatedLatch; field in CtsTranslationService
100 mSessionCreatedLatch = new CountDownLatch(1); in onConnected()
112 mSessionCreatedLatch = null; in onDisconnected()
116 mSessionCreatedLatch = new CountDownLatch(1); in initSessionCreatedLatch()
120 if (mSessionCreatedLatch == null) { in waitForSessionCreated()
124 boolean reachZeroResult = mSessionCreatedLatch.await(5_000, TimeUnit.MILLISECONDS); in waitForSessionCreated()
129 mSessionCreatedLatch = null; in waitForSessionCreated()
140 if (mSessionCreatedLatch != null) { in onCreateTranslationSession()
141 mSessionCreatedLatch.countDown(); in onCreateTranslationSession()
DCtsContentCaptureService.java55 private final CountDownLatch mSessionCreatedLatch = new CountDownLatch(1); field in CtsContentCaptureService
81 mSessionCreatedLatch.countDown(); in onCreateContentCaptureSession()
141 mSessionCreatedLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in awaitSessionCreated()