Searched refs:mCountDownLatch (Results 1 – 7 of 7) sorted by relevance
38 private CountDownLatch mCountDownLatch; field in NtpTimeHelperTest43 mCountDownLatch = new CountDownLatch(1); in setUp()47 mCountDownLatch.countDown(); in setUp()64 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_cachedAgeLow_injectTime()77 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isFalse(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()87 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()96 mCountDownLatch.await(1, TimeUnit.SECONDS); in waitForTasksToBePostedOnHandlerAndRunThem()
25 private CountDownLatch mCountDownLatch; field in CountDownResultReceiver29 mCountDownLatch = countDownLatch; in CountDownResultReceiver()34 mCountDownLatch.countDown(); in onReceiveResult()
66 private CountDownLatch mCountDownLatch; field in UnitTest76 mCountDownLatch = null; in UnitTest()111 mCountDownLatch.countDown(); in createRenderScript()115 mCountDownLatch = new CountDownLatch(1); in createRenderScript()158 if (mCountDownLatch != null) { in runTest()160 boolean success = mCountDownLatch.await(5 * 60, TimeUnit.SECONDS); in runTest()
69 private CountDownLatch mCountDownLatch; field in UnitTest79 mCountDownLatch = null; in UnitTest()114 mCountDownLatch.countDown(); in createRenderScript()118 mCountDownLatch = new CountDownLatch(1); in createRenderScript()161 if (mCountDownLatch != null) { in runTest()163 boolean success = mCountDownLatch.await(5 * 60, TimeUnit.SECONDS); in runTest()
124 private final CountDownLatch mCountDownLatch; field in NetworkDiagnostics145 if (mCountDownLatch != null) { in recordSuccess()146 mCountDownLatch.countDown(); in recordSuccess()154 if (mCountDownLatch != null) { in recordFailure()155 mCountDownLatch.countDown(); in recordFailure()236 mCountDownLatch = new CountDownLatch(totalMeasurementCount()); in NetworkDiagnostics()326 mCountDownLatch.await(mDeadlineTime - now(), TimeUnit.MILLISECONDS); in waitForMeasurements()387 final long unfinished = mCountDownLatch.getCount(); in dump()475 mCountDownLatch.countDown(); in ensureMeasurementNecessary()
142 private CountDownLatch mCountDownLatch; field in NotificationEntryManagerTest145 private final CountDownLatch mCountDownLatch; field in NotificationEntryManagerTest.TestableNotificationEntryManager149 mCountDownLatch = new CountDownLatch(1); in TestableNotificationEntryManager()161 mCountDownLatch.countDown(); in onAsyncInflationFinished()165 return mCountDownLatch; in getCountDownLatch()228 mCountDownLatch = new CountDownLatch(1); in setUp()268 mCountDownLatch.countDown(); in testAddNotification()276 assertTrue(mCountDownLatch.await(10, TimeUnit.SECONDS)); in testAddNotification()