Home
last modified time | relevance | path

Searched refs:mLatch (Results 1 – 25 of 37) 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()
DTriggerContentJobService.java101 private CountDownLatch mLatch; field in TriggerContentJobService.TestEnvironment
125 final boolean executed = mLatch.await(DEFAULT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in awaitExecution()
154 return !mLatch.await(DEFAULT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in awaitTimeout()
160 mLatch.countDown(); in notifyExecution()
166 mLatch = new CountDownLatch(1); in setExpectedExecutions()
168 mLatch = new CountDownLatch(numExecutions); in setExpectedExecutions()
174 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/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()
/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/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/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/libs/deviceutil/src/android/cts/util/
DBroadcastTestBase.java41 private CountDownLatch mLatch; field in BroadcastTestBase
94 mLatch = new CountDownLatch(1); in registerBroadcastReceiver()
105 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in startTestAndWaitForBroadcast()
121 mLatch.countDown(); in onReceive()
/cts/tests/tests/alarmclock/src/android/alarmclock/cts/
DAlarmClockTestBase.java41 private CountDownLatch mLatch; field in AlarmClockTestBase
73 mLatch = new CountDownLatch(1); in registerBroadcastReceiver()
120 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in runTest()
147 mLatch.countDown(); in onReceive()
/cts/tests/app/app/src/android/app/stubs/
DActivityManagerMemoryClassLaunchActivity.java35 private final CountDownLatch mLatch = new CountDownLatch(1); field in ActivityManagerMemoryClassLaunchActivity
68 mLatch.await(5, TimeUnit.SECONDS); in getResult()
/cts/tests/vr/src/android/vr/cts/
DRendererBasicTest.java52 protected CountDownLatch mLatch; field in RendererBasicTest
56 mLatch = latch; in RendererBasicTest()
77 mLatch.countDown(); in onDrawFrame()
DRendererRefreshRateTest.java30 mLatch.countDown(); in onDrawFrame()
/cts/tests/tests/security/src/android/security/cts/
DClonedSecureRandomTest.java62 private volatile CountDownLatch mLatch; field in ClonedSecureRandomTest
71 mLatch.countDown();
129 mLatch = new CountDownLatch(1); in testCheckForDuplicateOutput()
132 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
96 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in testAll()
168 mLatch.countDown(); in onReceive()
/cts/hostsidetests/theme/app/src/android/theme/app/
DGenerateImagesActivity.java49 private final CountDownLatch mLatch = new CountDownLatch(1); field in GenerateImagesActivity
213 mLatch.countDown(); in finish()
223 return mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in waitForCompletion()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DInstrumentedAccessibilityService.java74 private final CountDownLatch mLatch = new CountDownLatch(1); field in InstrumentedAccessibilityService.SyncRunnable
85 mLatch.countDown(); in run()
90 return mLatch.await(mTimeout, TimeUnit.MILLISECONDS); in waitForComplete()

12