Home
last modified time | relevance | path

Searched refs:latch (Results 1 – 25 of 116) sorted by relevance

12345

/cts/tests/tests/opengl/src/android/opengl/cts/
DOpenGLES20ActivityOne.java96 public OpenGLES20View(Context context, int type, int index, CountDownLatch latch) { in OpenGLES20View() argument
102 mRenderer = new RendererOneShaderTest(latch); in OpenGLES20View()
104 mRenderer = new RendererTwoShaderTest(latch); in OpenGLES20View()
106 mRenderer = new RendererThreeShaderTest(latch); in OpenGLES20View()
108 mRenderer = new RendererFourShaderTest(latch); in OpenGLES20View()
110 mRenderer = new RendererFiveShaderTest(latch); in OpenGLES20View()
112 mRenderer = new RendererSixShaderTest(latch); in OpenGLES20View()
114 mRenderer = new RendererSevenShaderTest(latch); in OpenGLES20View()
116 mRenderer = new RendererEightShaderTest(latch); in OpenGLES20View()
118 mRenderer = new RendererNineShaderTest(latch); in OpenGLES20View()
[all …]
DNativeRendererOneColorBufferTest.java57 public NativeRendererOneColorBufferTest(Context context, CountDownLatch latch) { in NativeRendererOneColorBufferTest() argument
58 super(latch); in NativeRendererOneColorBufferTest()
61 public NativeRendererOneColorBufferTest(Context context, float[] color, CountDownLatch latch) { in NativeRendererOneColorBufferTest() argument
62 super(latch); in NativeRendererOneColorBufferTest()
DRendererNineShaderTest.java25 public RendererNineShaderTest(CountDownLatch latch) { in RendererNineShaderTest() argument
26 super(latch); in RendererNineShaderTest()
DRendererEightShaderTest.java25 public RendererEightShaderTest(CountDownLatch latch) { in RendererEightShaderTest() argument
26 super(latch); in RendererEightShaderTest()
/cts/tests/sensor/src/android/hardware/cts/helpers/
DTestSensorEventListener.java107 for (CountDownLatch latch : mEventLatches) { in onSensorChanged()
108 latch.countDown(); in onSensorChanged()
109 if (latch.getCount() == 0 && !mTestSensorEventListenerWakeLock.isHeld()) { in onSensorChanged()
130 CountDownLatch latch = new CountDownLatch(eventCount); in getLatchForSensorEvents() local
132 mEventLatches.add(latch); in getLatchForSensorEvents()
134 return latch; in getLatchForSensorEvents()
142 CountDownLatch latch = new CountDownLatch(1); in getLatchForFlushCompleteEvent() local
144 mFlushLatches.add(latch); in getLatchForFlushCompleteEvent()
146 return latch; in getLatchForFlushCompleteEvent()
160 for (CountDownLatch latch : mFlushLatches) { in onFlushCompleted()
[all …]
DSuspendStateMonitor.java44 CountDownLatch latch = new CountDownLatch(1); in waitForWakeUp() local
46 mWaitForWakeUpLatch.add(latch); in waitForWakeUp()
50 latch.await(); in waitForWakeUp()
53 boolean countZero = latch.await(numSeconds, TimeUnit.SECONDS); in waitForWakeUp()
70 for (CountDownLatch latch : mWaitForWakeUpLatch) { in run()
71 latch.countDown(); in run()
DActivityResultMultiplexedLatch.java54 mEntry.latch.await(); in await()
70 public final CountDownLatch latch = new CountDownLatch(1); field in ActivityResultMultiplexedLatch.Entry
113 entry.latch.countDown(); in onActivityResult()
DTestSensorManager.java107 CountDownLatch latch = listener.getLatchForSensorEvents(eventCount); in registerListener() local
127 return latch; in registerListener()
170 CountDownLatch latch = mTestSensorEventListener.getLatchForFlushCompleteEvent(); in requestFlush() local
174 return latch; in requestFlush()
/cts/tests/app/src/android/app/cts/
DWallpaperManagerTest.java121 CountDownLatch latch = new CountDownLatch(1); in wallpaperChangedBroadcastTest() local
125 latch.countDown(); in wallpaperChangedBroadcastTest()
134 if (!latch.await(5, TimeUnit.SECONDS)) { in wallpaperChangedBroadcastTest()
146 CountDownLatch latch = new CountDownLatch(1); in wallpaperClearBroadcastTest() local
150 latch.countDown(); in wallpaperClearBroadcastTest()
159 if (!latch.await(5, TimeUnit.SECONDS)) { in wallpaperClearBroadcastTest()
203 final CountDownLatch latch = new CountDownLatch(1); in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded() local
204 WallpaperManager.OnColorsChangedListener counter = (colors, whichWp) -> latch.countDown(); in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded()
215 if (!latch.await(5, TimeUnit.SECONDS)) { in addRemoveOnColorsChangedListenerTest_onlyInvokeAdded()
280 final CountDownLatch latch = new CountDownLatch(expected); in verifyColorListenerInvoked() local
[all …]
DNewDocumentTest.java52 private final CountDownLatch latch = new CountDownLatch(1); field in NewDocumentTest.Receiver
61 latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in await()
66 latch.countDown(); in onReceive()
/cts/tests/app/app/src/android/app/stubs/
DOrientationTestUtils.java79 final CountDownLatch latch = new CountDownLatch(1); in startObserving() local
80 assertTrue(mLatch.compareAndSet(null, latch)); in startObserving()
100 final CountDownLatch latch = mLatch.get(); in onObserved() local
101 if (latch != null) { in onObserved()
102 latch.countDown(); in onObserved()
/cts/tests/tests/media/src/android/media/cts/
DMediaBrowser2Test.java109 final CountDownLatch latch = new CountDownLatch(1); in testGetLibraryRoot() local
117 latch.countDown(); in testGetLibraryRoot()
125 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetLibraryRoot()
132 final CountDownLatch latch = new CountDownLatch(1); in testGetItem() local
139 latch.countDown(); in testGetItem()
146 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetItem()
153 final CountDownLatch latch = new CountDownLatch(1); in testGetItemNullResult() local
159 latch.countDown(); in testGetItemNullResult()
166 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testGetItemNullResult()
177 final CountDownLatch latch = new CountDownLatch(1); in testGetChildren() local
[all …]
DMediaController2Test.java272 final CountDownLatch latch = new CountDownLatch(1); in testGetPlaylist() local
283 latch.countDown(); in testGetPlaylist()
301 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetPlaylist()
321 final CountDownLatch latch = new CountDownLatch(1); in testGetPlaylistMetadata() local
329 latch.countDown(); in testGetPlaylistMetadata()
346 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testGetPlaylistMetadata()
363 final CountDownLatch latch = new CountDownLatch(2); in testControllerCallback_onPlaylistMetadataChanged() local
370 latch.countDown(); in testControllerCallback_onPlaylistMetadataChanged()
407 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testControllerCallback_onPlaylistMetadataChanged()
489 final CountDownLatch latch = new CountDownLatch(1); in testGetShuffleMode() local
[all …]
DMediaSession2Test.java267 final CountDownLatch latch = new CountDownLatch(1); in testUpdatePlayer() local
276 latch.countDown(); in testUpdatePlayer()
295 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testUpdatePlayer()
312 final CountDownLatch latch = new CountDownLatch(1); in testSetPlayer_playbackInfo() local
322 latch.countDown(); in testSetPlayer_playbackInfo()
341 assertTrue(latch.await(WAIT_TIME_MS, TimeUnit.MILLISECONDS)); in testSetPlayer_playbackInfo()
452 final CountDownLatch latch = new CountDownLatch(1); in testSessionCallback_onPlaylistChanged() local
466 latch.countDown(); in testSessionCallback_onPlaylistChanged()
476 assertTrue(latch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)); in testSessionCallback_onPlaylistChanged()
521 final CountDownLatch latch = new CountDownLatch(1); in testGetShuffleMode() local
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultipleTimesTimeListener.java33 private final CountDownLatch latch; field in MultipleTimesTimeListener
44 this.latch = new CountDownLatch(times); in MultipleTimesTimeListener()
49 latch.countDown(); in onTimeChanged()
53 final boolean set = latch.await(FILL_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in assertAutoFilled()
DOneTimeSpinnerListener.java36 private final CountDownLatch latch = new CountDownLatch(1); field in OneTimeSpinnerListener
47 final boolean set = latch.await(FILL_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in assertAutoFilled()
57 latch.countDown(); in onItemSelected()
62 latch.countDown(); in onNothingSelected()
DOneTimeCompoundButtonListener.java34 private final CountDownLatch latch = new CountDownLatch(1); field in OneTimeCompoundButtonListener
47 latch.countDown(); in onCheckedChanged()
51 final boolean set = latch.await(FILL_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in assertAutoFilled()
DOneTimeRadioGroupListener.java34 private final CountDownLatch latch = new CountDownLatch(1); field in OneTimeRadioGroupListener
46 latch.countDown(); in onCheckedChanged()
50 final boolean set = latch.await(FILL_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in assertAutoFilled()
DOneTimeDateListener.java33 private final CountDownLatch latch = new CountDownLatch(1); field in OneTimeDateListener
50 latch.countDown(); in onDateChanged()
54 final boolean set = latch.await(FILL_TIMEOUT.ms(), TimeUnit.MILLISECONDS); in assertAutoFilled()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DEventSanitizationTestActivity.java75 final CountDownLatch latch = new CountDownLatch(1); in testNoTriggerEventsWhileUidIdle() local
79 latch.countDown(); in testNoTriggerEventsWhileUidIdle()
91 latch.await(EVENT_TIMEOUT, TimeUnit.SECONDS)); in testNoTriggerEventsWhileUidIdle()
119 final CountDownLatch latch = new CountDownLatch(1); in testNoOnChangeEventsWhileUidIdle() local
123 latch.countDown(); in testNoOnChangeEventsWhileUidIdle()
141 latch.await(EVENT_TIMEOUT, TimeUnit.SECONDS)); in testNoOnChangeEventsWhileUidIdle()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSetTimeTest.java59 final CountDownLatch latch = new CountDownLatch(1); in testSetTimeWithValue() local
63 latch.countDown(); in testSetTimeWithValue()
71 latch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testSetTimeWithValue()
91 final CountDownLatch latch = new CountDownLatch(1); in testSetTimeZoneWithValue() local
96 latch.countDown(); in testSetTimeZoneWithValue()
106 latch.await(TIMEOUT_SEC, TimeUnit.SECONDS)); in testSetTimeZoneWithValue()
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DWakelockLoadTestRunnable.java26 CountDownLatch latch; field in WakelockLoadTestRunnable
29 latch = l; in WakelockLoadTestRunnable()
46 latch.countDown(); in run()
DAtomTests.java166 CountDownLatch latch = new CountDownLatch(1); in testCameraState() local
176 latch.countDown(); in testCameraState()
195 waitForReceiver(context, 10_000, latch, null); in testCameraState()
237 CountDownLatch latch = new CountDownLatch(1); in testGpsScan() local
262 latch.countDown(); in testGpsScan()
267 waitForReceiver(context, 59_000, latch, null); in testGpsScan()
296 CountDownLatch latch = StatsdSyncAdapter.resetCountDownLatch(); in testSyncState() local
307 waitForReceiver(context, 120_000, latch, null); in testSyncState()
313 latch = StatsdSyncAdapter.resetCountDownLatch(); in testSyncState()
315 waitForReceiver(context, 120_000, latch, null); in testSyncState()
[all …]
/cts/tests/vr/src/android/vr/cts/
DRendererRefreshRateTest.java23 public RendererRefreshRateTest(CountDownLatch latch) { in RendererRefreshRateTest() argument
24 super(latch); in RendererRefreshRateTest()
/cts/tests/tests/telephony/src/android/telephony/cts/
DSubscriptionManagerTest.java189 final CountDownLatch latch = waitForNetworkCapabilities(net, caps -> { in testSubscriptionPlansOverrideCongested() local
193 assertTrue(latch.await(10, TimeUnit.SECONDS)); in testSubscriptionPlansOverrideCongested()
198 final CountDownLatch latch = waitForNetworkCapabilities(net, caps -> { in testSubscriptionPlansOverrideCongested() local
202 assertTrue(latch.await(10, TimeUnit.SECONDS)); in testSubscriptionPlansOverrideCongested()
232 final CountDownLatch latch = waitForNetworkCapabilities(net, caps -> { in testSubscriptionPlansOverrideUnmetered() local
236 assertTrue(latch.await(10, TimeUnit.SECONDS)); in testSubscriptionPlansOverrideUnmetered()
241 final CountDownLatch latch = waitForNetworkCapabilities(net, caps -> { in testSubscriptionPlansOverrideUnmetered() local
245 assertTrue(latch.await(10, TimeUnit.SECONDS)); in testSubscriptionPlansOverrideUnmetered()
306 final CountDownLatch latch = new CountDownLatch(1); in waitForNetworkCapabilities() local
314 latch.countDown(); in waitForNetworkCapabilities()
[all …]

12345