Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/backup/internal/
DBackupHandlerTest.java52 private CountDownLatch mCountDownLatch; field in BackupHandlerTest
61 mCountDownLatch = new CountDownLatch(/* count */ 1); in setUp()
75 mCountDownLatch.await(MESSAGE_TIMEOUT_MINUTES, TimeUnit.MINUTES); in testSendMessage_propagatesExceptions()
84 mCountDownLatch.await(MESSAGE_TIMEOUT_MINUTES, TimeUnit.MINUTES); in testPost_propagatesExceptions()
93 mCountDownLatch.await(MESSAGE_TIMEOUT_MINUTES, TimeUnit.MINUTES); in testSendMessage_stopping_doesntPropagateExceptions()
102 mCountDownLatch.await(MESSAGE_TIMEOUT_MINUTES, TimeUnit.MINUTES); in testPost_stopping_doesntPropagateExceptions()
129 mCountDownLatch.countDown(); in dispatchMessage()
/frameworks/base/services/robotests/src/com/android/server/location/gnss/
DNtpTimeHelperTest.java54 private CountDownLatch mCountDownLatch; field in NtpTimeHelperTest
59 mCountDownLatch = new CountDownLatch(1); in setUp()
63 mCountDownLatch.countDown(); in setUp()
80 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_cachedAgeLow_injectTime()
93 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isFalse(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
103 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
112 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/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/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/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/services/autofill/java/com/android/server/autofill/
DSession.java379 private CountDownLatch mCountDownLatch = new CountDownLatch(0); field in Session.AssistDataReceiverImpl
383 mCountDownLatch = new CountDownLatch(isInlineRequest ? 2 : 1); in newAutofillRequestLocked()
388 if (mCountDownLatch.getCount() == 0) { in newAutofillRequestLocked()
392 mCountDownLatch.countDown(); in newAutofillRequestLocked()
400 if (mCountDownLatch.getCount() > 0 || mPendingFillRequest == null) {
510 if (mCountDownLatch.getCount() > 0) {
512 mCountDownLatch.countDown();