/cts/tests/tests/assist/common/src/android/assist/common/ |
D | AutoResetLatch.java | 28 private CountDownLatch mLatch; field in AutoResetLatch 36 mLatch = new CountDownLatch(count); in AutoResetLatch() 41 mLatch.await(); in await() 43 mLatch = new CountDownLatch(mCount); in await() 49 return mLatch.await(timeout, unit); in await() 51 mLatch = new CountDownLatch(mCount); in await() 56 mLatch.countDown(); in countDown()
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | TriggerContentJobService.java | 110 private CountDownLatch mLatch; field in TriggerContentJobService.TestEnvironment 135 final boolean executed = mLatch.await(DEFAULT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in awaitExecution() 164 return !mLatch.await(DEFAULT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in awaitTimeout() 170 mLatch.countDown(); in notifyExecution() 176 mLatch = new CountDownLatch(1); in setExpectedExecutions() 178 mLatch = new CountDownLatch(numExecutions); in setExpectedExecutions() 184 mLatch = null; in setUp()
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/ |
D | TriggerContentJobService.java | 110 private CountDownLatch mLatch; field in TriggerContentJobService.TestEnvironment 135 final boolean executed = mLatch.await(DEFAULT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in awaitExecution() 164 return !mLatch.await(DEFAULT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in awaitTimeout() 170 mLatch.countDown(); in notifyExecution() 176 mLatch = new CountDownLatch(1); in setExpectedExecutions() 178 mLatch = new CountDownLatch(numExecutions); in setExpectedExecutions() 184 mLatch = null; in setUp()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | OrientationTestUtils.java | 70 private final AtomicReference<CountDownLatch> mLatch = new AtomicReference(); field in OrientationTestUtils.Observer 80 assertTrue(mLatch.compareAndSet(null, latch)); in startObserving() 88 assertTrue(mLatch.get().await(TIMEOUT_SEC, TimeUnit.SECONDS)); in await() 90 mLatch.set(null); in await() 100 final CountDownLatch latch = mLatch.get(); in onObserved()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CameraUtils.java | 62 private final CountDownLatch mLatch = new CountDownLatch(1); field in CameraUtils.CameraCallback 73 mLatch.countDown(); in onOpened() 79 mLatch.countDown(); in onDisconnected() 85 mLatch.countDown(); in onError() 89 mLatch.await(OPEN_TIMEOUT_SECONDS, TimeUnit.SECONDS); in waitForResult()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | MockSyncAdapter.java | 40 private volatile CountDownLatch mLatch; field in MockSyncAdapter 73 mLatch = null; in clearData() 76 public void setLatch(CountDownLatch mLatch) { in setLatch() argument 77 this.mLatch = mLatch; in setLatch() 132 final CountDownLatch latch = mLatch; in countDownLatch()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | MultipleTimesTextWatcher.java | 40 private final CountDownLatch mLatch; field in MultipleTimesTextWatcher 49 this.mLatch = new CountDownLatch(times); in MultipleTimesTextWatcher() 58 Log.v(TAG, "onTextChanged(" + mLatch.getCount() + "): " + mName + " = " + s); in onTextChanged() 59 mLatch.countDown(); in onTextChanged() 67 final boolean set = mLatch.await(FILL_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in assertAutoFilled()
|
D | MultipleTimesRadioGroupListener.java | 34 private final CountDownLatch mLatch; field in MultipleTimesRadioGroupListener 43 mLatch = new CountDownLatch(times); in MultipleTimesRadioGroupListener() 48 mLatch.countDown(); in onCheckedChanged() 52 final boolean set = mLatch.await(FILL_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in assertAutoFilled()
|
D | OneTimeCancellationSignalListener.java | 32 private final CountDownLatch mLatch = new CountDownLatch(1); field in OneTimeCancellationSignalListener 40 final boolean called = mLatch.await(mTimeoutMs, TimeUnit.MILLISECONDS); in assertOnCancelCalled() 47 mLatch.countDown(); in onCancel()
|
D | TrampolineForResultActivity.java | 33 private final CountDownLatch mLatch = new CountDownLatch(1); field in TrampolineForResultActivity 52 final boolean called = mLatch.await(1000, TimeUnit.MILLISECONDS); in assertResult() 65 mLatch.countDown(); in onActivityResult()
|
/cts/tests/tests/role/src/android/app/role/cts/ |
D | WaitForResultActivity.java | 36 private CountDownLatch mLatch; field in WaitForResultActivity 41 mLatch = new CountDownLatch(1); in startActivityToWaitForResult() 48 mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForActivityResult() 57 mLatch.countDown(); in onActivityResult()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | OpenGLES20NativeActivityOne.java | 45 private CountDownLatch mLatch = new CountDownLatch(1); field in OpenGLES20NativeActivityOne 62 view = new OpenGLES20View(this, viewType, viewIndex, mLatch); in onCreate() 69 result = mLatch.await(10L, TimeUnit.SECONDS); in waitForFrameDrawn() 115 private CountDownLatch mLatch; field in GL2Renderer 120 mLatch = latch; in GL2Renderer() 134 mLatch.countDown(); in onSurfaceChanged()
|
D | RendererBase.java | 40 protected CountDownLatch mLatch; field in RendererBase 44 mLatch = latch; in RendererBase() 67 mLatch.countDown(); in onDrawFrame()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ScannerNotificationReceiver.java | 33 private CountDownLatch mLatch = new CountDownLatch(1); field in ScannerNotificationReceiver 42 mLatch.countDown(); in onReceive() 47 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in waitForBroadcast() 55 mLatch = new CountDownLatch(1); in reset()
|
/cts/tools/cts-holo-generation/src/com/android/cts/holo_capture/ |
D | CaptureActivity.java | 28 private CountDownLatch mLatch = new CountDownLatch(1); field in CaptureActivity 31 mLatch.await(); in waitForCompletion() 49 mLatch.countDown(); in onActivityResult()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | ContentSuggestionsActivity.java | 37 private final CountDownLatch mLatch = new CountDownLatch(1); field in ContentSuggestionsActivity 53 mLatch.countDown(); in onActivityResult() 57 final boolean called = mLatch.await(2, TimeUnit.SECONDS); in isContentSuggestionsEnabled()
|
D | AutofillActivity.java | 35 private final CountDownLatch mLatch = new CountDownLatch(1); field in AutofillActivity 50 mLatch.countDown(); in onActivityResult() 54 final boolean called = mLatch.await(2, TimeUnit.SECONDS); in isAutofillEnabled()
|
D | PrintActivity.java | 36 private final CountDownLatch mLatch = new CountDownLatch(1); field in PrintActivity 57 mLatch.countDown(); in onActivityResult() 61 final boolean called = mLatch.await(4, TimeUnit.SECONDS); in getErrorMessage()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | CallbackAsserter.java | 40 final CountDownLatch mLatch = new CountDownLatch(1); field in CallbackAsserter 50 if (mLatch.await(timeoutSeconds, TimeUnit.SECONDS)) { in assertCalled() 101 mLatch.countDown(); in BroadcastAsserter() 124 mLatch.countDown(); in ContentObserverAsserter()
|
D | BroadcastTestBase.java | 39 private CountDownLatch mLatch; field in BroadcastTestBase 94 mLatch = new CountDownLatch(1); in registerBroadcastReceiver() 105 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in startTestAndWaitForBroadcast() 121 mLatch.countDown(); in onReceive()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | CallbackAsserter.java | 39 final CountDownLatch mLatch = new CountDownLatch(1); field in CallbackAsserter 49 if (mLatch.await(timeoutSeconds, TimeUnit.SECONDS)) { in assertCalled() 100 mLatch.countDown(); in BroadcastAsserter() 123 mLatch.countDown(); in ContentObserverAsserter()
|
D | BroadcastTestBase.java | 39 private CountDownLatch mLatch; field in BroadcastTestBase 94 mLatch = new CountDownLatch(1); in registerBroadcastReceiver() 105 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in startTestAndWaitForBroadcast() 121 mLatch.countDown(); in onReceive()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | IsolatedProcessTest.java | 52 private CountDownLatch mLatch; field in IsolatedProcessTest 64 mLatch.countDown(); 70 mLatch = new CountDownLatch(1); in setUp() 74 mLatch.await(BIND_SERVICE_TIMEOUT, TimeUnit.MILLISECONDS)); in setUp()
|
/cts/tests/tests/location/src/android/location/cts/ |
D | EmergencyCallWifiTest.java | 54 private CountDownLatch mLatch; field in EmergencyCallWifiTest 68 mLatch = new CountDownLatch(1); in testWifiScan() 71 mLatch.await(WIFI_SCAN_TIMEOUT_SEC, TimeUnit.SECONDS); in testWifiScan() 105 mLatch.countDown(); in onReceive()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | WebViewReadyHelper.java | 16 private final CountDownLatch mLatch; field in WebViewReadyHelper 21 mLatch = latch; in WebViewReadyHelper() 53 mLatch.countDown();
|