HomeSort by relevance Sort by last modified time
    Searched refs:latch (Results 51 - 75 of 579) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/autotest/client/cros/
httpd_unittest.py 81 latch = test_server.add_wait_url('/quitquitquit')
84 while not latch.is_set():
86 latch.wait(1)
  /external/autotest/client/site_tests/login_ChromeProfileSanitary/
login_ChromeProfileSanitary.py 70 latch = self._testServer.add_wait_url(self._wait_path)
74 latch.wait(timeout)
75 if not latch.is_set():
  /external/droiddriver/src/io/appium/droiddriver/actions/view/
CloseKeyboardAction.java 61 final CountDownLatch latch = new CountDownLatch(1); local
67 latch.countDown();
78 if (!latch.await(getTimeoutMillis(), TimeUnit.MILLISECONDS)) {
  /frameworks/support/fragment/tests/java/android/support/v4/app/
NestedFragmentRestoreTest.java 71 final CountDownLatch latch = new CountDownLatch(1); local
76 latch.countDown();
87 assertTrue("timeout waiting for recreate", latch.await(10, TimeUnit.SECONDS));
  /cts/tests/sensor/src/android/hardware/cts/helpers/
TestSensorManager.java 107 CountDownLatch latch = listener.getLatchForSensorEvents(eventCount); local
127 return latch;
170 CountDownLatch latch = mTestSensorEventListener.getLatchForFlushCompleteEvent(); local
174 return latch;
  /cts/tests/tests/opengl/src/android/opengl/cts/
OpenGLES20NativeActivityOne.java 91 public OpenGLES20View(Context context, int category, int testCase, CountDownLatch latch) {
94 mRenderer = new GL2Renderer(category, testCase, latch);
117 public GL2Renderer(int category, int testcase, CountDownLatch latch) {
120 mLatch = latch;
RendererBase.java 43 public RendererBase(CountDownLatch latch) {
44 mLatch = latch;
RendererTwoShaderTest.java 33 public RendererTwoShaderTest(CountDownLatch latch) {
34 super(latch);
  /external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
AbstractCheckedFutureTest.java 71 createCheckedFuture(Boolean.TRUE, null, latch);
98 createCheckedFuture(Boolean.TRUE, null, latch);
135 createCheckedFuture(Boolean.TRUE, new Exception("Error"), latch);
143 latch.countDown();
  /frameworks/base/core/tests/coretests/src/android/transition/
SlideTransitionTest.java 58 TransitionLatch latch = setVisibilityInTransition(slideOut, R.id.square1, View.INVISIBLE); local
59 assertTrue(latch.startLatch.await(200, TimeUnit.MILLISECONDS));
65 assertTrue(latch.endLatch.await(400, TimeUnit.MILLISECONDS));
75 latch = setVisibilityInTransition(slideIn, R.id.square1, View.VISIBLE);
76 assertTrue(latch.startLatch.await(200, TimeUnit.MILLISECONDS));
82 assertTrue(latch.endLatch.await(400, TimeUnit.MILLISECONDS));
94 TransitionLatch latch = new TransitionLatch(); local
95 transition.addListener(latch);
103 return latch;
  /frameworks/base/tests/TtsTests/src/com/android/speech/tts/
TextToSpeechTests.java 190 final CountDownLatch latch = new CountDownLatch(1); local
191 doCountDown(latch).when(mock).onSynthesizeText(Mockito.<SynthesisRequest>anyObject(),
195 awaitCountDown(latch, 5, TimeUnit.SECONDS);
203 final CountDownLatch latch = new CountDownLatch(1); local
204 doCountDown(latch).when(listener).onInit(errorCode);
209 awaitCountDown(latch, 5, TimeUnit.SECONDS);
217 public static CountDownBehaviour doCountDown(final CountDownLatch latch) {
224 latch.countDown();
238 latch.countDown();
248 public static void awaitCountDown(CountDownLatch latch, long timeout, TimeUnit unit
    [all...]
  /cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
BatteryStatsJobDurationTests.java 57 CountDownLatch latch = SimpleJobService.resetCountDownLatch(); local
59 if (!latch.await(5, TimeUnit.SECONDS)) {
BatteryStatsBgVsFgActions.java 169 CountDownLatch latch = new CountDownLatch(1); local
197 latch.countDown();
202 waitForReceiver(ctx, 59_000, latch, null);
219 CountDownLatch latch = SimpleJobService.resetCountDownLatch(); local
225 waitForReceiver(null, 60_000, latch, null);
287 CountDownLatch latch = new CountDownLatch(1); local
293 latch.countDown();
298 waitForReceiver(null, 60_000, latch, null);
303 CountDownLatch latch = new CountDownLatch(1); local
309 latch.countDown()
    [all...]
  /cts/tests/tests/uirendering/src/android/uirendering/cts/util/
WebViewReadyHelper.java 14 public WebViewReadyHelper(WebView webview, CountDownLatch latch) {
16 mLatch = latch;
  /cts/tests/vr/src/android/vr/cts/
RendererProtectedTexturesTest.java 45 public RendererProtectedTexturesTest(CountDownLatch latch) {
46 super(latch);
  /frameworks/base/services/autofill/java/com/android/server/autofill/
AutofillManagerServiceShellCommand.java 173 final CountDownLatch latch = new CountDownLatch(1); local
177 latch.countDown();
180 return requestSessionCommon(pw, latch, () -> mService.destroySessions(userId, receiver));
189 final CountDownLatch latch = new CountDownLatch(1); local
198 latch.countDown();
201 return requestSessionCommon(pw, latch, () -> mService.listSessions(userId, receiver));
222 private int requestSessionCommon(PrintWriter pw, CountDownLatch latch,
227 final boolean received = latch.await(5, TimeUnit.SECONDS);
  /frameworks/base/services/tests/servicestests/src/com/android/server/am/
TaskStackChangedListenerTest.java 98 final CountDownLatch latch = new CountDownLatch(1); local
113 latch.countDown();
118 waitForCallback(latch);
126 final CountDownLatch latch = new CountDownLatch(1); local
133 latch.countDown();
137 waitForCallback(latch);
233 private void waitForCallback(CountDownLatch latch) {
235 final boolean result = latch.await(2, TimeUnit.SECONDS);
  /packages/apps/Launcher3/tests/src/com/android/launcher3/util/
Condition.java 25 final CountDownLatch latch = new CountDownLatch(1); local
37 latch.await(1, TimeUnit.SECONDS);
  /cts/tests/app/src/android/app/cts/
Instrumentation_ActivityMonitorTest.java 152 final CountDownLatch latch = new CountDownLatch(1); local
162 latch.countDown();
166 if (!latch.await(TIMEOUT_FOR_ACTIVITY_LAUNCH_MS, TimeUnit.MILLISECONDS)) {
203 final CountDownLatch latch = new CountDownLatch(1); local
213 latch.countDown();
217 if (!latch.await(TIMEOUT_FOR_ACTIVITY_LAUNCH_MS, TimeUnit.MILLISECONDS)) {
254 final CountDownLatch latch = new CountDownLatch(1); local
264 latch.countDown();
268 if (!latch.await(TIMEOUT_FOR_ACTIVITY_LAUNCH_MS, TimeUnit.MILLISECONDS)) {
  /cts/tests/tests/content/src/android/content/cts/
ContentResolverSyncTestCase.java 93 private CountDownLatch setNewLatch(CountDownLatch latch) {
95 getMockSyncAdapter().setLatch(latch);
96 return latch;
102 CountDownLatch latch = setNewLatch(new CountDownLatch(1)); local
108 if (!latch.await(INITIAL_SYNC_TIMEOUT_MS, TimeUnit.MILLISECONDS)) {
109 fail("should not time out waiting on latch");
123 CountDownLatch latch = setNewLatch(new CountDownLatch(1)); local
132 latch.await(latchTimeoutMillis, TimeUnit.MILLISECONDS);
139 CountDownLatch latch = setNewLatch(new CountDownLatch(1)); local
148 latch.await(latchTimeoutMillis, TimeUnit.MILLISECONDS)
    [all...]
  /external/mockwebserver/src/test/java/com/google/mockwebserver/
CustomDispatcherTest.java 62 final CountDownLatch latch = new CountDownLatch(1); local
67 latch.await();
80 latch.countDown();
  /external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
CustomDispatcherTest.java 62 final CountDownLatch latch = new CountDownLatch(1); local
67 latch.await();
80 latch.countDown();
  /packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
TestJobListener.java 34 private final CountDownLatch latch = new CountDownLatch(1); field in class:TestJobListener
47 latch.countDown();
140 latch.await(500, TimeUnit.MILLISECONDS);
  /cts/tests/tests/webkit/src/android/webkit/cts/
PostMessageTest.java 137 final CountDownLatch latch = new CountDownLatch(messageCount); local
147 int i = messageCount - (int)latch.getCount();
149 latch.countDown();
155 boolean ignore = latch.await(TIMEOUT, java.util.concurrent.TimeUnit.MILLISECONDS);
  /external/guava/guava/src/com/google/common/util/concurrent/
Uninterruptibles.java 49 * Invokes {@code latch.}{@link CountDownLatch#await() await()}
52 public static void awaitUninterruptibly(CountDownLatch latch) {
57 latch.await();
72 * {@code latch.}{@link CountDownLatch#await(long, TimeUnit)
75 public static boolean awaitUninterruptibly(CountDownLatch latch,
85 return latch.await(remainingNanos, NANOSECONDS);

Completed in 803 milliseconds

1 23 4 5 6 7 8 91011>>