Home
last modified time | relevance | path

Searched refs:sLatch (Results 1 – 9 of 9) sorted by relevance

/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DMyDrawable.java33 private static CountDownLatch sLatch; field in MyDrawable
50 sLatch.countDown(); in draw()
55 if (sLatch == null) { in getAutofilledBounds()
59 if (!sLatch.await(Timeouts.FILL_TIMEOUT.ms(), TimeUnit.MILLISECONDS)) { in getAutofilledBounds()
69 if (sLatch == null) { in assertDrawableNotDrawn()
73 if (sLatch.await(Timeouts.DRAWABLE_TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in assertDrawableNotDrawn()
79 sLatch = new CountDownLatch(1); in initStatus()
85 sLatch = null; in clearStatus()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DStatsdJobService.java47 private static CountDownLatch sLatch; field in StatsdJobService
60 if (sLatch != null) {
61 sLatch.countDown();
69 if (sLatch == null || sLatch.getCount() == 0) { in resetCountDownLatch()
70 sLatch = new CountDownLatch(1); in resetCountDownLatch()
73 return sLatch; in resetCountDownLatch()
DStatsdSyncAdapter.java42 private static CountDownLatch sLatch; field in StatsdSyncAdapter
61 if (sLatch != null) { in onPerformSync()
62 sLatch.countDown(); in onPerformSync()
83 if (sLatch == null || sLatch.getCount() == 0) { in resetCountDownLatch()
84 sLatch = new CountDownLatch(1); in resetCountDownLatch()
87 return sLatch; in resetCountDownLatch()
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/functions/
DActivityCreationSynchronizer.java29 private static volatile CountDownLatch sLatch = new CountDownLatch(1); field in ActivityCreationSynchronizer
38 sLatch.countDown(); in onCreate()
47 sLatch = new CountDownLatch(1); in reset()
61 return sLatch.await(timeout, unit); in waitForActivityCreated()
/cts/tests/tests/telecom/CallScreeningServiceTestApp/src/android/telecom/cts/screeningtestapp/
DCtsPostCallActivity.java37 private static CountDownLatch sLatch = new CountDownLatch(1); field in CtsPostCallActivity
48 sLatch.countDown(); in onCreate()
61 sLatch = new CountDownLatch(1); in resetPostCallActivity()
68 return sLatch.await(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in waitForActivity()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DInCallServiceStateValidator.java37 private static CountDownLatch sLatch = new CountDownLatch(1); field in InCallServiceStateValidator
57 sLatch.await(3000, TimeUnit.MILLISECONDS); in getService()
61 sLatch = new CountDownLatch(1); in getService()
126 sLatch.countDown(); in onBind()
/cts/common/device-side/bedstead/activitycontext/src/main/java/com/android/activitycontext/
DActivityContext.java90 private static CountDownLatch sLatch; field in ActivityContext
259 sLatch = new CountDownLatch(1); in getWithContextInternal()
269 if (!sLatch.await(5, TimeUnit.MINUTES)) { in getWithContextInternal()
315 sLatch.countDown(); in onResume()
/cts/tests/tests/content/src/android/content/cts/
DActivityRequireContentUriPermissionFromCallerTest.java122 private static CountDownLatch sLatch; field in ActivityRequireContentUriPermissionFromCallerTest
466 sLatch.await(10, TimeUnit.SECONDS)); in assertActivityWasInvoked()
470 sLatch = new CountDownLatch(1); in resetTestResults()
505 sLatch.countDown(); in onReceive()
/cts/tests/tests/app/src/android/app/cts/
DComponentCallerTest.java1698 TestResults.sLatch.await(10, TimeUnit.SECONDS)); in assertActivityWasInvoked()
1713 static CountDownLatch sLatch; field in TestResults
1730 sLatch = new CountDownLatch(1); in reset()
1757 TestResults.sLatch.countDown(); in onReceive()
1779 TestResults.sLatch.countDown(); in performTest()
1819 TestResults.sLatch.countDown(); in onStart()
1830 TestResults.sLatch.countDown(); in onNewIntent()
1844 TestResults.sLatch.countDown(); in onNewIntent()
1874 TestResults.sLatch.countDown(); in onActivityResult()
1889 TestResults.sLatch.countDown(); in onActivityResult()