Home
last modified time | relevance | path

Searched refs:mCountDownLatch (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/robotests/src/com/android/server/location/
DNtpTimeHelperTest.java38 private CountDownLatch mCountDownLatch; field in NtpTimeHelperTest
43 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()
/frameworks/base/tests/ActivityManagerPerfTests/utils/src/com/android/frameworks/perftests/am/util/
DCountDownResultReceiver.java25 private CountDownLatch mCountDownLatch; field in CountDownResultReceiver
29 mCountDownLatch = countDownLatch; in CountDownResultReceiver()
34 mCountDownLatch.countDown(); in onReceiveResult()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUnitTest.java66 private CountDownLatch mCountDownLatch; field in UnitTest
76 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()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUnitTest.java69 private CountDownLatch mCountDownLatch; field in UnitTest
79 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()
/frameworks/rs/tests/java_api/RsMinimalTest/src/com/android/rs/minimaltest/
DUnitTest.java66 private CountDownLatch mCountDownLatch; field in UnitTest
76 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()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkDiagnostics.java124 private final CountDownLatch mCountDownLatch; field in NetworkDiagnostics
145 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()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java142 private CountDownLatch mCountDownLatch; field in NotificationEntryManagerTest
145 private final CountDownLatch mCountDownLatch; field in NotificationEntryManagerTest.TestableNotificationEntryManager
149 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()