/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/location/common/src/android/location/cts/common/ |
D | GetCurrentLocationCapture.java | 15 private final CountDownLatch mLatch; field in GetCurrentLocationCapture 20 mLatch = new CountDownLatch(1); in GetCurrentLocationCapture() 28 return mLatch.await(timeoutMs, TimeUnit.MILLISECONDS); in hasLocation() 32 if (mLatch.await(timeoutMs, TimeUnit.MILLISECONDS)) { in getLocation() 41 if (mLatch.getCount() == 0) { in accept() 46 mLatch.countDown(); in accept()
|
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/ |
D | CameraUtils.java | 61 private final CountDownLatch mLatch = new CountDownLatch(1); field in CameraUtils.CameraCallback 72 mLatch.countDown(); in onOpened() 78 mLatch.countDown(); in onDisconnected() 84 mLatch.countDown(); in onError() 88 mLatch.await(OPEN_TIMEOUT_SECONDS, TimeUnit.SECONDS); in waitForResult()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WaitForResultActivity.java | 41 private CountDownLatch mLatch; field in WaitForResultActivity 49 mLatch = new CountDownLatch(1); in startActivityToWaitForResult() 62 assertThat(mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS)).isTrue(); in waitForActivityResult() 77 mLatch.countDown(); in onActivityResult() 102 mLatch = new CountDownLatch(1); in startServiceToWaitForResult() 112 mLatch.countDown(); in startServiceToWaitForResult() 126 assertThat(mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS)).isTrue(); in waitForServiceResult()
|
/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/autofillservice/src/android/autofillservice/cts/testcore/ |
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()
|
/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/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/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/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/app/app/src/android/app/stubs/ |
D | OrientationTestUtils.java | 97 private final AtomicReference<CountDownLatch> mLatch = new AtomicReference(); field in OrientationTestUtils.Observer 107 assertTrue(mLatch.compareAndSet(null, latch)); in startObserving() 115 assertTrue(mLatch.get().await(TIMEOUT_SEC, TimeUnit.SECONDS)); in await() 117 mLatch.set(null); in await() 127 final CountDownLatch latch = mLatch.get(); in onObserved()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BlockingCallback.java | 44 private final CountDownLatch mLatch = new CountDownLatch(1); field in BlockingCallback 50 mLatch.countDown(); in callbackTriggered() 70 if (!mLatch.await(timeout, unit)) { in await()
|
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 | OneTimeDeviceConfigListener.java | 44 private final CountDownLatch mLatch = new CountDownLatch(1); field in OneTimeDeviceConfigListener 64 mLatch.countDown(); in onPropertiesChanged() 74 final boolean updated = mLatch.await(mTimeoutMs, TimeUnit.MILLISECONDS); in assertCalled()
|
/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 | 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 | 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()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/ |
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/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | UserActionCallback.java | 53 private final CountDownLatch mLatch; field in UserActionCallback 74 Log.d(TAG, "Counting down latch (id " + System.identityHashCode(mLatch) 75 + ", current count " + mLatch.getCount() + ") on thread " 77 mLatch.countDown(); 92 mLatch = new CountDownLatch(mExpectedSize); in UserActionCallback() 176 boolean received = mLatch.await(BROADCAST_TIMEOUT, TimeUnit.MILLISECONDS); in waitForBroadcasts()
|
/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();
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowContextTests.java | 140 callbacks.mLatch = new CountDownLatch(1); in testWindowContextRegisterComponentCallbacks() 146 assertTrue(callbacks.mLatch.await(4, TimeUnit.SECONDS)); in testWindowContextRegisterComponentCallbacks() 301 final CountDownLatch mLatch = new CountDownLatch(1); field in WindowContextTests.TestActivity 306 mLatch.countDown(); in onConfigurationChanged() 311 assertThat(mLatch.await(4, TimeUnit.SECONDS)).isTrue(); in waitAndAssertConfigurationChanged() 355 private CountDownLatch mLatch = new CountDownLatch(1); field in WindowContextTests.TestWindowService 388 mLatch.countDown(); in onConfigurationChanged() 392 mLatch = new CountDownLatch(1); in resetLatch() 397 assertThat(mLatch.await(4, TimeUnit.SECONDS)).isTrue(); in waitAndAssertConfigurationChanged() 412 private CountDownLatch mLatch = new CountDownLatch(1); field in WindowContextTests.TestComponentCallbacks [all …]
|
/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()
|