Home
last modified time | relevance | path

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

12

/cts/tests/tests/opengl/src/android/opengl/cts/
DOpenGLES20ActivityOne.java89 public OpenGLES20View(Context context, int type, int index, CountDownLatch latch) { in OpenGLES20View() argument
95 mRenderer = new RendererOneShaderTest(latch); in OpenGLES20View()
97 mRenderer = new RendererTwoShaderTest(latch); in OpenGLES20View()
99 mRenderer = new RendererThreeShaderTest(latch); in OpenGLES20View()
101 mRenderer = new RendererFourShaderTest(latch); in OpenGLES20View()
103 mRenderer = new RendererFiveShaderTest(latch); in OpenGLES20View()
105 mRenderer = new RendererSixShaderTest(latch); in OpenGLES20View()
107 mRenderer = new RendererSevenShaderTest(latch); in OpenGLES20View()
109 mRenderer = new RendererEightShaderTest(latch); in OpenGLES20View()
111 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()
DOpenGLES20NativeActivityOne.java88 public OpenGLES20View(Context context, int category, int testCase, CountDownLatch latch) { in OpenGLES20View() argument
91 mRenderer = new GL2Renderer(category, testCase, latch); in OpenGLES20View()
114 public GL2Renderer(int category, int testcase, CountDownLatch latch) { in GL2Renderer() argument
117 mLatch = latch; in GL2Renderer()
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()
DRendererOneProgramTest.java26 public RendererOneProgramTest(CountDownLatch latch) { in RendererOneProgramTest() argument
27 super(latch); in RendererOneProgramTest()
DRendererTwelveShaderTest.java27 public RendererTwelveShaderTest(CountDownLatch latch) { in RendererTwelveShaderTest() argument
28 super(latch); in RendererTwelveShaderTest()
DRendererElevenShaderTest.java27 public RendererElevenShaderTest(CountDownLatch latch) { in RendererElevenShaderTest() argument
28 super(latch); in RendererElevenShaderTest()
DRendererTenShaderTest.java26 public RendererTenShaderTest(CountDownLatch latch) { in RendererTenShaderTest() argument
27 super(latch); in RendererTenShaderTest()
DRendererFourShaderTest.java27 public RendererFourShaderTest(CountDownLatch latch) { in RendererFourShaderTest() argument
28 super(latch); in RendererFourShaderTest()
DRendererSevenShaderTest.java25 public RendererSevenShaderTest(CountDownLatch latch) { in RendererSevenShaderTest() argument
26 super(latch); in RendererSevenShaderTest()
DRendererSixShaderTest.java25 public RendererSixShaderTest(CountDownLatch latch) { in RendererSixShaderTest() argument
26 super(latch); in RendererSixShaderTest()
DRendererFiveShaderTest.java27 public RendererFiveShaderTest(CountDownLatch latch) { in RendererFiveShaderTest() argument
28 super(latch); in RendererFiveShaderTest()
DRendererBase.java42 public RendererBase(CountDownLatch latch) { in RendererBase() argument
43 mLatch = latch; in RendererBase()
DRendererTwoShaderTest.java33 public RendererTwoShaderTest(CountDownLatch latch) { in RendererTwoShaderTest() argument
34 super(latch); in RendererTwoShaderTest()
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/
DTestSensorEventListener.java104 for (CountDownLatch latch : mEventLatches) { in onSensorChanged()
105 latch.countDown(); in onSensorChanged()
106 if (latch.getCount() == 0 && !mTestSensorEventListenerWakeLock.isHeld()) { in onSensorChanged()
127 CountDownLatch latch = new CountDownLatch(eventCount); in getLatchForSensorEvents() local
129 mEventLatches.add(latch); in getLatchForSensorEvents()
131 return latch; in getLatchForSensorEvents()
139 CountDownLatch latch = new CountDownLatch(1); in getLatchForFlushCompleteEvent() local
141 mFlushLatches.add(latch); in getLatchForFlushCompleteEvent()
143 return latch; in getLatchForFlushCompleteEvent()
157 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()
169 CountDownLatch latch = mTestSensorEventListener.getLatchForFlushCompleteEvent(); in requestFlush() local
173 return latch; in requestFlush()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java449 final CountDownLatch latch = new CountDownLatch(1); in testAddAccountWithCallbackAndHandler() local
476 latch.countDown(); in testAddAccountWithCallbackAndHandler()
491 latch.await(LATCH_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testAddAccountWithCallbackAndHandler()
1072 final CountDownLatch latch = new CountDownLatch(1); in testGetAuthTokenWithCallback_Options_Handler_DefaultToken_Success()
1088 latch.countDown(); in testGetAuthTokenWithCallback_Options_Handler_DefaultToken_Success()
1102 latch.await(LATCH_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testGetAuthTokenWithCallback_Options_Handler_DefaultToken_Success()
1132 final CountDownLatch latch = new CountDownLatch(1); in testGetAuthTokenWithCallback_Options_Handler_CustomToken_Success()
1148 latch.countDown(); in testGetAuthTokenWithCallback_Options_Handler_CustomToken_Success()
1162 latch.await(LATCH_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testGetAuthTokenWithCallback_Options_Handler_CustomToken_Success()
1193 final CountDownLatch latch = new CountDownLatch(1); in testGetAuthTokenWithCallbackAndHandler() local
[all …]
/cts/tests/tests/content/src/android/content/cts/
DContentResolverSyncTestCase.java92 private CountDownLatch setNewLatch(CountDownLatch latch) { in setNewLatch() argument
94 getMockSyncAdapter().setLatch(latch); in setNewLatch()
95 return latch; in setNewLatch()
101 CountDownLatch latch = setNewLatch(new CountDownLatch(1)); in addAccountAndVerifyInitSync() local
107 if (!latch.await(latchTimeoutMs, TimeUnit.MILLISECONDS)) { in addAccountAndVerifyInitSync()
122 CountDownLatch latch = setNewLatch(new CountDownLatch(1)); in cancelSync() local
131 latch.await(latchTimeoutMillis, TimeUnit.MILLISECONDS); in cancelSync()
138 CountDownLatch latch = setNewLatch(new CountDownLatch(1)); in requestSync() local
147 latch.await(latchTimeoutMillis, TimeUnit.MILLISECONDS); in requestSync()
/cts/tests/tests/widget/src/android/widget/cts/
DQuickContactBadgeTest.java41 final CountDownLatch latch = new CountDownLatch(1); in testPrioritizedMimetype() local
61 latch.countDown(); in testPrioritizedMimetype()
74 assertTrue(latch.await(1, TimeUnit.SECONDS)); in testPrioritizedMimetype()
/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_QuickContactsTest.java46 final CountDownLatch latch = new CountDownLatch(2); in testPrioritizedMimeTypeAndExcludedMimeTypes() local
69 latch.countDown(); in testPrioritizedMimeTypeAndExcludedMimeTypes()
81 assertTrue(latch.await(1, TimeUnit.SECONDS)); in testPrioritizedMimeTypeAndExcludedMimeTypes()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/jobscheduler/
DConstraintTestActivity.java82 final CountDownLatch latch = new CountDownLatch(1); in sendBroadcastAndBlockForResult() local
86 latch.countDown(); in sendBroadcastAndBlockForResult()
90 return latch.await(5, TimeUnit.SECONDS); in sendBroadcastAndBlockForResult()
/cts/tests/tests/webkit/src/android/webkit/cts/
DPostMessageTest.java136 final CountDownLatch latch = new CountDownLatch(messageCount); in testMessageChannel() local
146 int i = messageCount - (int)latch.getCount(); in testMessageChannel()
148 latch.countDown(); in testMessageChannel()
154 boolean ignore = latch.await(TIMEOUT, java.util.concurrent.TimeUnit.MILLISECONDS); in testMessageChannel()

12