Home
last modified time | relevance | path

Searched refs:mLatch (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/tests/content/src/android/content/cts/
DMockSyncAdapter.java39 private CountDownLatch mLatch; field in MockSyncAdapter
72 mLatch = null; in clearData()
75 public void setLatch(CountDownLatch mLatch) { in setLatch() argument
76 this.mLatch = mLatch; in setLatch()
96 if (null != mLatch) { in startSync()
97 mLatch.countDown(); in startSync()
110 if (null != mLatch) { in cancelSync()
111 mLatch.countDown(); in cancelSync()
125 if (null != mLatch) { in initialize()
126 mLatch.countDown(); in initialize()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/jobscheduler/
DMockJobService.java68 private CountDownLatch mLatch; field in MockJobService.TestEnvironment
83 final boolean executed = mLatch.await(DEFAULT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in awaitExecution()
93 return !mLatch.await(DEFAULT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in awaitTimeout()
99 mLatch.countDown(); in notifyExecution()
105 mLatch = new CountDownLatch(1); in setExpectedExecutions()
107 mLatch = new CountDownLatch(numExecutions); in setExpectedExecutions()
113 mLatch = null; in setUp()
/cts/tests/JobScheduler/src/android/jobscheduler/
DMockJobService.java68 private CountDownLatch mLatch; field in MockJobService.TestEnvironment
87 final boolean executed = mLatch.await(DEFAULT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in awaitExecution()
97 return !mLatch.await(DEFAULT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in awaitTimeout()
103 mLatch.countDown(); in notifyExecution()
109 mLatch = new CountDownLatch(1); in setExpectedExecutions()
111 mLatch = new CountDownLatch(numExecutions); in setExpectedExecutions()
117 mLatch = null; in setUp()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCameraUtils.java62 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/media/src/android/media/cts/
DScannerNotificationReceiver.java33 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/
DOpenGLES20NativeActivityOne.java45 private CountDownLatch mLatch = new CountDownLatch(1); field in OpenGLES20NativeActivityOne
59 view = new OpenGLES20View(this, viewType, viewIndex, mLatch); in onCreate()
66 result = mLatch.await(10L, TimeUnit.SECONDS); in waitForFrameDrawn()
112 private CountDownLatch mLatch; field in GL2Renderer
117 mLatch = latch; in GL2Renderer()
131 mLatch.countDown(); in onSurfaceChanged()
DOpenGLES20ActivityTwo.java33 private CountDownLatch mLatch = new CountDownLatch(1); field in OpenGLES20ActivityTwo
43 result = mLatch.await(10L, TimeUnit.SECONDS); in waitForFrameDrawn()
51 view = new OpenGLES20View(this,type,i, vertexColors, mLatch); in setView()
57 view = new OpenGLES20View(this, type, i, f, mLatch) ; in setView()
DRendererBase.java39 protected CountDownLatch mLatch; field in RendererBase
43 mLatch = latch; in RendererBase()
65 mLatch.countDown(); in onDrawFrame()
DOpenGLES20NativeActivityTwo.java33 private CountDownLatch mLatch = new CountDownLatch(1); field in OpenGLES20NativeActivityTwo
43 result = mLatch.await(10L, TimeUnit.SECONDS); in waitForFrameDrawn()
51 view = new OpenGLES20View(this,type,i, vertexColors, mLatch); in setView()
DOpenGLES20ActivityOne.java38 private CountDownLatch mLatch = new CountDownLatch(1); field in OpenGLES20ActivityOne
49 view = new OpenGLES20View(this, viewType, viewIndex, mLatch); in onCreate()
64 result = mLatch.await(10L, TimeUnit.SECONDS); in waitForFrameDrawn()
DRendererNineShaderTest.java40 mLatch.countDown(); in onSurfaceCreated()
DRendererEightShaderTest.java39 mLatch.countDown(); in onSurfaceCreated()
DRendererOneProgramTest.java38 mLatch.countDown(); in onSurfaceCreated()
DRendererTwelveShaderTest.java42 mLatch.countDown(); in onSurfaceCreated()
DRendererElevenShaderTest.java41 mLatch.countDown(); in onSurfaceCreated()
/cts/tools/cts-holo-generation/src/com/android/cts/holo_capture/
DCaptureActivity.java28 private CountDownLatch mLatch = new CountDownLatch(1); field in CaptureActivity
31 mLatch.await(); in waitForCompletion()
49 mLatch.countDown(); in onActivityResult()
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/
DVoiceSettingsTestBase.java39 private CountDownLatch mLatch; field in VoiceSettingsTestBase
71 mLatch = new CountDownLatch(1); in registerBroadcastReceiver()
85 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in startTestAndWaitForBroadcast()
101 mLatch.countDown(); in onReceive()
/cts/tests/tests/graphics2/src/android/graphics2/cts/
DTextureViewCameraActivity.java48 private final CountDownLatch mLatch = new CountDownLatch(1); field in TextureViewCameraActivity
68 mLatch.countDown(); in onSurfaceTextureAvailable()
100 mLatch.countDown(); in onSurfaceTextureUpdated()
110 return mLatch.await(timeoutInSecs, TimeUnit.SECONDS); in waitForCompletion()
/cts/tests/tests/alarmclock/src/android/alarmclock/cts/
DAlarmClockTestBase.java41 private CountDownLatch mLatch; field in AlarmClockTestBase
64 mLatch = new CountDownLatch(1); in registerBroadcastReceiver()
114 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in runTest()
141 mLatch.countDown(); in onReceive()
/cts/tests/app/src/android/app/cts/
DActivityManagerMemoryClassLaunchActivity.java35 private final CountDownLatch mLatch = new CountDownLatch(1); field in ActivityManagerMemoryClassLaunchActivity
68 mLatch.await(5, TimeUnit.SECONDS); in getResult()
/cts/tests/tests/security/src/android/security/cts/
DClonedSecureRandomTest.java64 private volatile CountDownLatch mLatch; field in ClonedSecureRandomTest
73 mLatch.countDown();
131 mLatch = new CountDownLatch(1); in testCheckForDuplicateOutput()
134 if (!mLatch.await(ANSWER_TIMEOUT_SECONDS, TimeUnit.SECONDS)) { in testCheckForDuplicateOutput()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionTest.java45 private final CountDownLatch mLatch = new CountDownLatch(1); field in VoiceInteractionTest
76 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in testAll()
148 mLatch.countDown(); in onReceive()
/cts/hostsidetests/theme/app/src/android/theme/app/
DGenerateImagesActivity.java45 private final CountDownLatch mLatch = new CountDownLatch(1); field in GenerateImagesActivity
193 mLatch.countDown(); in finish()
198 mLatch.await(); in waitForCompletion()
/cts/suite/cts/deviceTests/browserbench/src/com/android/cts/browser/
DBrowserBenchTest.java67 private CountDownLatch mLatch; field in BrowserBenchTest
107 mLatch.countDown(); in setUp()
151 mLatch = new CountDownLatch(1); in doTest()
157 boolean ok = mLatch.await(BROWSER_COMPLETION_TIMEOUT_IN_MS, TimeUnit.MILLISECONDS); in doTest()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DKeyManagementTest.java134 private final CountDownLatch mLatch = new CountDownLatch(1); field in KeyManagementTest.KeyChainAliasFuture
140 mLatch.countDown(); in alias()
154 assertTrue("Chooser timeout", mLatch.await(KEYCHAIN_TIMEOUT_MS, TimeUnit.MILLISECONDS)); in get()

12