Home
last modified time | relevance | path

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

12

/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/tests/content/src/android/content/cts/
DMockSyncAdapter.java39 private volatile 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()
125 final CountDownLatch latch = mLatch; in countDownLatch()
/cts/tests/JobScheduler/src/android/jobscheduler/
DTriggerContentJobService.java110 private CountDownLatch mLatch; field in TriggerContentJobService.TestEnvironment
135 final boolean executed = mLatch.await(DEFAULT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in awaitExecution()
164 return !mLatch.await(DEFAULT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in awaitTimeout()
170 mLatch.countDown(); in notifyExecution()
176 mLatch = new CountDownLatch(1); in setExpectedExecutions()
178 mLatch = new CountDownLatch(numExecutions); in setExpectedExecutions()
184 mLatch = null; in setUp()
DMockJobService.java297 private CountDownLatch mLatch; field in MockJobService.TestEnvironment
350 final boolean executed = mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in awaitExecution()
367 return !mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in awaitTimeout()
397 mLatch.countDown(); in notifyExecution()
413 mLatch = new CountDownLatch(1); in setExpectedExecutions()
415 mLatch = new CountDownLatch(numExecutions); in setExpectedExecutions()
462 mLatch = null; in setUp()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultipleTimesTextWatcher.java38 private final CountDownLatch mLatch; field in MultipleTimesTextWatcher
47 this.mLatch = new CountDownLatch(times); in MultipleTimesTextWatcher()
56 Log.v(TAG, "onTextChanged(" + mLatch.getCount() + "): " + mName + " = " + s); in onTextChanged()
57 mLatch.countDown(); in onTextChanged()
65 final boolean set = mLatch.await(FILL_TIMEOUT_MS, TimeUnit.MILLISECONDS); in assertAutoFilled()
DMultipleTimesRadioGroupListener.java34 private final CountDownLatch mLatch; field in MultipleTimesRadioGroupListener
43 mLatch = new CountDownLatch(times); in MultipleTimesRadioGroupListener()
48 mLatch.countDown(); in onCheckedChanged()
52 final boolean set = mLatch.await(FILL_TIMEOUT_MS, TimeUnit.MILLISECONDS); in assertAutoFilled()
DOneTimeSettingsListener.java18 private final CountDownLatch mLatch = new CountDownLatch(1); field in OneTimeSettingsListener
32 mLatch.countDown(); in onChange()
42 final boolean updated = mLatch.await(5, TimeUnit.SECONDS); in assertCalled()
/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
62 view = new OpenGLES20View(this, viewType, viewIndex, mLatch); in onCreate()
69 result = mLatch.await(10L, TimeUnit.SECONDS); in waitForFrameDrawn()
115 private CountDownLatch mLatch; field in GL2Renderer
120 mLatch = latch; in GL2Renderer()
134 mLatch.countDown(); in onSurfaceChanged()
DRendererBase.java40 protected CountDownLatch mLatch; field in RendererBase
44 mLatch = latch; in RendererBase()
67 mLatch.countDown(); in onDrawFrame()
DOpenGLES20ActivityTwo.java35 private CountDownLatch mLatch = new CountDownLatch(1); field in OpenGLES20ActivityTwo
45 result = mLatch.await(10L, TimeUnit.SECONDS); in waitForFrameDrawn()
60 view = new OpenGLES20View(this, type, i, vertexColors, mLatch); in setView()
DOpenGLES20NativeActivityTwo.java36 private CountDownLatch mLatch = new CountDownLatch(1); field in OpenGLES20NativeActivityTwo
46 result = mLatch.await(10L, TimeUnit.SECONDS); in waitForFrameDrawn()
61 view = new OpenGLES20View(this,type,i, vertexColors, mLatch); in setView()
DOpenGLES20ActivityOne.java38 private CountDownLatch mLatch = new CountDownLatch(1); field in OpenGLES20ActivityOne
52 view = new OpenGLES20View(this, viewType, viewIndex, mLatch); in onCreate()
71 result = mLatch.await(10L, TimeUnit.SECONDS); in waitForFrameDrawn()
/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/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAutofillActivity.java35 private final CountDownLatch mLatch = new CountDownLatch(1); field in AutofillActivity
50 mLatch.countDown(); in onActivityResult()
54 final boolean called = mLatch.await(2, TimeUnit.SECONDS); in isAutofillEnabled()
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DWebViewReadyHelper.java11 private final CountDownLatch mLatch; field in WebViewReadyHelper
16 mLatch = latch; in WebViewReadyHelper()
43 mLatch.countDown();
/cts/tests/tests/security/src/android/security/cts/
DIsolatedProcessTest.java52 private CountDownLatch mLatch; field in IsolatedProcessTest
64 mLatch.countDown();
70 mLatch = new CountDownLatch(1); in setUp()
74 mLatch.await(BIND_SERVICE_TIMEOUT, TimeUnit.MILLISECONDS)); in setUp()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBroadcastTestBase.java39 private CountDownLatch mLatch; field in BroadcastTestBase
92 mLatch = new CountDownLatch(1); in registerBroadcastReceiver()
103 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in startTestAndWaitForBroadcast()
119 mLatch.countDown(); in onReceive()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewCameraActivity.java50 private final CountDownLatch mLatch = new CountDownLatch(1); field in TextureViewCameraActivity
68 mLatch.countDown(); in onSurfaceTextureAvailable()
108 mLatch.countDown(); in onSurfaceTextureUpdated()
118 return mLatch.await(timeoutInSecs, TimeUnit.SECONDS); in waitForCompletion()
/cts/tests/tests/alarmclock/src/android/alarmclock/cts/
DAlarmClockTestBase.java41 private CountDownLatch mLatch; field in AlarmClockTestBase
73 mLatch = new CountDownLatch(1); in registerBroadcastReceiver()
124 if (!mLatch.await(TIMEOUT_MS, TimeUnit.MILLISECONDS)) { in runTest()
151 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()
/cts/common/device-side/util/src/com/android/compatibility/common/util/devicepolicy/provisioning/
DSilentProvisioningTestManager.java148 private final CountDownLatch mLatch = new CountDownLatch(1); field in SilentProvisioningTestManager.BlockingReceiver
164 return mLatch.await(TIMEOUT_SECONDS, TimeUnit.SECONDS); in await()
174 mLatch.countDown(); in onReceive()
/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()

12