Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/backup/internal/
H A 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()
/aosp12/system/chre/java/test/settings/src/com/google/android/chre/test/setting/
H A DContextHubSettingsTestExecutor.java65 private CountDownLatch mCountDownLatch; field in ContextHubSettingsTestExecutor
113 if (valid && mCountDownLatch != null) { in onMessageFromNanoApp()
114 mCountDownLatch.countDown(); in onMessageFromNanoApp()
122 if (mCountDownLatch != null) { in onHubReset()
123 mCountDownLatch.countDown(); in onHubReset()
145 mCountDownLatch = new CountDownLatch(1); in setupTestAssertSuccess()
160 mCountDownLatch.await(TEST_TIMEOUT_SECONDS, TimeUnit.SECONDS); in setupTestAssertSuccess()
179 mCountDownLatch = new CountDownLatch(1); in startTestAssertSuccess()
193 mCountDownLatch.await(TEST_TIMEOUT_SECONDS, TimeUnit.SECONDS); in startTestAssertSuccess()
/aosp12/frameworks/base/services/robotests/src/com/android/server/location/gnss/
H A DNtpTimeHelperTest.java54 private CountDownLatch mCountDownLatch; field in NtpTimeHelperTest
62 mCountDownLatch = new CountDownLatch(1); in setUp()
66 mCountDownLatch.countDown(); in setUp()
86 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_cachedAgeLow_injectTime()
102 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isFalse(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
112 assertThat(mCountDownLatch.await(2, TimeUnit.SECONDS)).isTrue(); in handleInjectNtpTime_injectTimeFailed_injectTimeDelayed()
121 mCountDownLatch.await(1, TimeUnit.SECONDS); in waitForTasksToBePostedOnHandlerAndRunThem()
/aosp12/system/chre/java/test/stress/src/com/google/android/chre/test/stress/
H A DContextHubStressTestExecutor.java66 private CountDownLatch mCountDownLatch; field in ContextHubStressTestExecutor
111 if (valid && mCountDownLatch != null) { in onMessageFromNanoApp()
112 mCountDownLatch.countDown(); in onMessageFromNanoApp()
120 if (mCountDownLatch != null) { in onHubReset()
121 mCountDownLatch.countDown(); in onHubReset()
170 mCountDownLatch = new CountDownLatch(1); in runStressTest()
178 mCountDownLatch.await(timeout, unit); in runStressTest()
228 mCountDownLatch = new CountDownLatch(1); in runWifiScanMonitorRestartTest()
232 mCountDownLatch.await(30, TimeUnit.SECONDS); in runWifiScanMonitorRestartTest()
/aosp12/packages/apps/Settings/src/com/android/settings/panel/
H A DPanelSlicesLoaderCountdownLatch.java42 private final CountDownLatch mCountDownLatch; field in PanelSlicesLoaderCountdownLatch
47 mCountDownLatch = new CountDownLatch(countdownSize); in PanelSlicesLoaderCountdownLatch()
59 mCountDownLatch.countDown(); in markSliceLoaded()
77 if ((mCountDownLatch.getCount() == 0) && !slicesReadyToLoad) { in isPanelReadyToLoad()
/aosp12/frameworks/base/keystore/java/android/security/
H A DGenerateRkpKey.java58 private CountDownLatch mCountDownLatch; field in GenerateRkpKey
64 mCountDownLatch.countDown();
68 mCountDownLatch.countDown();
92 mCountDownLatch = new CountDownLatch(1); in bindAndSendCommand()
98 mCountDownLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS); in bindAndSendCommand()
/aosp12/system/chre/java/test/audio_concurrency/src/com/google/android/chre/test/audioconcurrency/
H A DContextHubAudioConcurrencyTestExecutor.java63 private CountDownLatch mCountDownLatch; field in ContextHubAudioConcurrencyTestExecutor
109 if (valid && mCountDownLatch != null) { in onMessageFromNanoApp()
110 mCountDownLatch.countDown(); in onMessageFromNanoApp()
135 mCountDownLatch = new CountDownLatch(1); in run()
138 mCountDownLatch.await(TEST_TIMEOUT_SECONDS, TimeUnit.SECONDS); in run()
148 mCountDownLatch = new CountDownLatch(1); in run()
151 mCountDownLatch.await(TEST_TIMEOUT_SECONDS, TimeUnit.SECONDS); in run()
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage/
H A DUsageStatsServiceTest.java102 listener.mCountDownLatch.await(TIMEOUT, TimeUnit.MILLISECONDS); in testUsageEventListener()
118 CountDownLatch mCountDownLatch; field in UsageStatsServiceTest.TestUsageEventListener
124 if (mCountDownLatch != null && userId == mExpectedUserId in onUsageEvent()
126 mCountDownLatch.countDown(); in onUsageEvent()
133 mCountDownLatch = new CountDownLatch(1); in setExpectation()
139 mCountDownLatch = null; in reset()
/aosp12/packages/modules/ExtServices/java/tests/src/android/ext/services/displayhash/
H A DDisplayHashingServiceImplTest.java141 private CountDownLatch mCountDownLatch = new CountDownLatch(1); field in DisplayHashingServiceImplTest.SyncDisplayHashResultCallback
144 mCountDownLatch = new CountDownLatch(1); in reset()
149 mCountDownLatch.await(DISPLAY_HASH_WAIT_TIME_S, TimeUnit.SECONDS); in getDisplayHash()
157 mCountDownLatch.await(DISPLAY_HASH_WAIT_TIME_S, TimeUnit.SECONDS); in getError()
166 mCountDownLatch.countDown(); in onDisplayHashResult()
172 mCountDownLatch.countDown(); in onDisplayHashError()
/aosp12/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
H A DFileDeleteUiTest.java69 if (mCountDownLatch != null) {
70 mCountDownLatch.countDown();
76 private CountDownLatch mCountDownLatch; field in FileDeleteUiTest
111 mCountDownLatch = new CountDownLatch(1); in setUp()
117 mCountDownLatch = null; in tearDown()
172 mCountDownLatch.await(WAIT_TIME_SECONDS, TimeUnit.SECONDS); in testDeleteAllDocument()
H A DCancelFromNotificationUiTest.java67 mCountDownLatch.countDown();
72 private CountDownLatch mCountDownLatch; field in CancelFromNotificationUiTest
110 mCountDownLatch = new CountDownLatch(1); in setUp()
115 mCountDownLatch.countDown(); in tearDown()
116 mCountDownLatch = null; in tearDown()
183 mCountDownLatch.await(WAIT_TIME_SECONDS, TimeUnit.SECONDS); in testCopyDocument_CancelFromNotification()
238 mCountDownLatch.await(WAIT_TIME_SECONDS, TimeUnit.SECONDS); in ignored_testMoveDocument_CancelFromNotification()
H A DFileCopyUiTest.java84 if (mCountDownLatch != null) {
85 mCountDownLatch.countDown();
91 private CountDownLatch mCountDownLatch; field in FileCopyUiTest
214 mCountDownLatch = null; in tearDown()
380 mCountDownLatch = new CountDownLatch(1); in copyFiles()
393 mCountDownLatch.await(WAIT_TIME_SECONDS, TimeUnit.SECONDS); in copyFiles()
507 mCountDownLatch = new CountDownLatch(1); in testRecursiveCopyDocuments_InternalStorageToDownloadsProvider()
531 mCountDownLatch.await(WAIT_TIME_SECONDS, TimeUnit.SECONDS); in testRecursiveCopyDocuments_InternalStorageToDownloadsProvider()
/aosp12/packages/apps/Settings/src/com/android/settings/dashboard/
H A DUiBlockerController.java42 private CountDownLatch mCountDownLatch; field in UiBlockerController
52 mCountDownLatch = new CountDownLatch(keys.size()); in UiBlockerController()
71 mCountDownLatch.await(mTimeoutMillis, TimeUnit.MILLISECONDS); in start()
95 mCountDownLatch.countDown(); in countDown()
/aosp12/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A 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()
/aosp12/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
H A 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()
/aosp12/frameworks/rs/tests/java_api/RsMinimalTest/src/com/android/rs/minimaltest/
H A 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()
/aosp12/frameworks/base/tests/ActivityManagerPerfTests/utils/src/com/android/frameworks/perftests/am/util/
H A DCountDownResultReceiver.java25 private CountDownLatch mCountDownLatch; field in CountDownResultReceiver
29 mCountDownLatch = countDownLatch; in CountDownResultReceiver()
34 mCountDownLatch.countDown(); in onReceiveResult()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/display/
H A DBrightnessLevelPreferenceControllerTest.java66 private CountDownLatch mCountDownLatch; field in BrightnessLevelPreferenceControllerTest
79 mCountDownLatch = new CountDownLatch(1); in setUp()
157 mCountDownLatch.await(WAIT_TIME_SEC, TimeUnit.SECONDS); // Wait to ensure value is written in testHandlePreferenceChanged_minValue()
169 mCountDownLatch.await(WAIT_TIME_SEC, TimeUnit.SECONDS); // Wait to ensure value is written in testHandlePreferenceChanged_maxValue()
181 mCountDownLatch.await(WAIT_TIME_SEC, TimeUnit.SECONDS); // Wait to ensure value is written in testHandlePreferenceChanged_midValue()
192 mCountDownLatch.countDown(); in registerContentObserver()
/aosp12/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
H A DContextHubGeneralTestExecutor.java69 private CountDownLatch mCountDownLatch; field in ContextHubGeneralTestExecutor
198 mCountDownLatch = new CountDownLatch(1); in init()
228 success = mCountDownLatch.await(timeoutSeconds, TimeUnit.SECONDS); in run()
240 mCountDownLatch.countDown(); in pass()
299 mCountDownLatch.countDown(); in assertEquals()
311 mCountDownLatch.countDown(); in assertTrue()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
H A DHibernatedAppsItemManagerTest.java64 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in HibernatedAppsItemManagerTest
99 mCountDownLatch.await(CALLBACK_TIMEOUT_MS, TimeUnit.MILLISECONDS); in getSummary_getsRightCountForHibernatedPackage()
112 mCountDownLatch.await(CALLBACK_TIMEOUT_MS, TimeUnit.MILLISECONDS); in getSummary_getsRightCountForUnusedAutoRevokedPackage()
126 mCountDownLatch.await(CALLBACK_TIMEOUT_MS, TimeUnit.MILLISECONDS); in getSummary_getsRightCountForUsedAutoRevokedPackage()
173 mCountDownLatch.countDown(); in onHibernatedAppsCountLoaded()
/aosp12/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
H A DMainActivity.kt43 private var mCountDownLatch: CountDownLatch? = null
71 mCountDownLatch = CountDownLatch(1)
77 return mCountDownLatch!!
116 mCountDownLatch?.countDown()
/aosp12/packages/modules/Connectivity/service/src/com/android/server/connectivity/
H A 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()
/aosp12/packages/apps/Car/Calendar/tests/unit/src/com/android/car/calendar/common/
H A DEventsLiveDataTest.java548 CountDownLatch mCountDownLatch; field in EventsLiveDataTest.TestHandler
569 mCountDownLatch = new CountDownLatch(expectedMessageCount); in setExpectedMessageCount()
573 awaitAndAssertDone(mCountDownLatch); in awaitExpectedMessages()
579 if (mCountDownLatch != null) { in sendMessageAtTime()
580 mCountDownLatch.countDown(); in sendMessageAtTime()
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayHashController.java441 private final CountDownLatch mCountDownLatch = new CountDownLatch(1); field in DisplayHashController.SyncCommand
447 mCountDownLatch.countDown(); in run()
453 mCountDownLatch.await(WAIT_TIME_S, TimeUnit.SECONDS); in run()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A DWifiShellCommand.java168 private final CountDownLatch mCountDownLatch; field in WifiShellCommand.WifiScorer
174 mCountDownLatch = countDownLatch; in WifiScorer()
180 mCountDownLatch.countDown(); in onStart()
190 mCountDownLatch.countDown(); in onSetScoreUpdateObserver()

12