Home
last modified time | relevance | path

Searched refs:mLock (Results 1 – 25 of 73) sorted by relevance

123

/cts/tests/tests/telephony/current/src/android/telephony/cts/
DPhoneStateListenerTest.java102 private final Object mLock = new Object(); field in PhoneStateListenerTest
179 synchronized (mLock) { in testOnServiceStateChanged()
181 mLock.notify(); in testOnServiceStateChanged()
187 synchronized (mLock) { in testOnServiceStateChanged()
189 mLock.wait(WAIT_TIME); in testOnServiceStateChanged()
209 synchronized (mLock) { in testOnUnRegisterFollowedByRegister()
211 mLock.notify(); in testOnUnRegisterFollowedByRegister()
217 synchronized (mLock) { in testOnUnRegisterFollowedByRegister()
219 mLock.wait(WAIT_TIME); in testOnUnRegisterFollowedByRegister()
231 synchronized (mLock) { in testOnUnRegisterFollowedByRegister()
[all …]
DCellLocationTest.java41 private final Object mLock = new Object(); field in CellLocationTest
93 synchronized (mLock) { in testCellLocation()
95 mLock.notify(); in testCellLocation()
108 synchronized (mLock) { in testCellLocation()
110 mLock.wait(); in testCellLocation()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestImsService.java51 private final Object mLock = new Object(); field in TestImsService
103 synchronized (mLock) { in readyForFeatureCreation()
110 synchronized (mLock) { in enableIms()
118 synchronized (mLock) { in disableIms()
126 synchronized (mLock) { in createRcsFeature()
131 synchronized (mLock) { in createRcsFeature()
137 synchronized (mLock) { in createRcsFeature()
144 synchronized (mLock) { in createRcsFeature()
160 synchronized (mLock) { in createMmTelFeature()
165 synchronized (mLock) { in createMmTelFeature()
[all …]
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechWrapper.java144 private final Lock mLock = new ReentrantLock(); field in TextToSpeechWrapper.InitWaitListener
145 private final Condition mDone = mLock.newCondition();
149 mLock.lock(); in onInit()
154 mLock.unlock(); in onInit()
160 mLock.lock(); in waitForInit()
170 mLock.unlock(); in waitForInit()
179 private final Lock mLock = new ReentrantLock(); field in TextToSpeechWrapper.UtteranceWaitListener
180 private final Condition mDone = mLock.newCondition();
196 mLock.lock(); in onDone()
202 mLock.unlock(); in onDone()
[all …]
/cts/tests/app/app/src/android/app/stubs/
DKeyboardShortcutsActivity.java34 private final Lock mLock = new ReentrantLock(); field in KeyboardShortcutsActivity
35 private final Condition mSignalOnProvideKeyboardShortcuts = mLock.newCondition();
36 private final Condition mSignalOnActivityDeFocused = mLock.newCondition();
47 mLock.lock(); in waitForMenuToBeOpen()
51 mLock.unlock(); in waitForMenuToBeOpen()
59 mLock.lock(); in onWindowFocusChanged()
63 mLock.unlock(); in onWindowFocusChanged()
72 mLock.lock(); in waitForKeyboardShortcutsToBeRequested()
76 mLock.unlock(); in waitForKeyboardShortcutsToBeRequested()
85 mLock.lock(); in onProvideKeyboardShortcuts()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DTestProcessClient.java41 private Object mLock = new Object(); field in TestProcessClient
87 synchronized (mLock) { in TestProcessClient()
89 mLock.wait(CONNECT_TIMEOUT_MS); in TestProcessClient()
107 synchronized (mLock) { in run()
110 mLock.wait(timeoutMs); in run()
128 synchronized (mLock) { in close()
141 synchronized (mLock) { in onServiceConnected()
143 mLock.notify(); in onServiceConnected()
149 synchronized (mLock) { in onServiceDisconnected()
154 mLock.notify(); in onServiceDisconnected()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DPresetReverbTest.java175 synchronized(mLock) { in test3_0ControlStatusListener()
185 mLock.wait(); in test3_0ControlStatusListener()
200 synchronized(mLock) { in test3_1EnableStatusListener()
212 mLock.wait(); in test3_1EnableStatusListener()
227 synchronized(mLock) { in test3_2ParameterChangedListener()
239 mLock.wait(); in test3_2ParameterChangedListener()
283 mLock.wait(); in waitForLooperInitialization_l()
327 synchronized(mLock) { in createListenerLooper()
333 synchronized(mLock) { in createListenerLooper()
336 mLock.notify(); in createListenerLooper()
[all …]
DBassBoostTest.java213 synchronized(mLock) { in test3_0ControlStatusListener()
223 mLock.wait(); in test3_0ControlStatusListener()
238 synchronized(mLock) { in test3_1EnableStatusListener()
250 mLock.wait(); in test3_1EnableStatusListener()
265 synchronized(mLock) { in test3_2ParameterChangedListener()
276 mLock.wait(); in test3_2ParameterChangedListener()
320 mLock.wait(); in waitForLooperInitialization_l()
365 synchronized(mLock) { in createListenerLooper()
371 synchronized(mLock) { in createListenerLooper()
374 mLock.notify(); in createListenerLooper()
[all …]
DMediaDrmMockTest.java647 private Object mLock = new Object(); field in MediaDrmMockTest
659 synchronized(mLock) { in onEvent()
666 mLock.notify(); in onEvent()
699 synchronized(mLock) { in testEventNoSessionNoData()
700 mLock.notify(); in testEventNoSessionNoData()
713 synchronized(mLock) { in testEventNoSessionNoData()
715 mLock.wait(1000); in testEventNoSessionNoData()
724 synchronized(mLock) { in testEventNoSessionNoData()
726 mLock.wait(1000); in testEventNoSessionNoData()
773 synchronized(mLock) { in testEventWithSessionAndData()
[all …]
DEqualizerTest.java239 synchronized(mLock) { in test3_0ControlStatusListener()
249 mLock.wait(); in test3_0ControlStatusListener()
261 synchronized(mLock) { in test3_1EnableStatusListener()
273 mLock.wait(); in test3_1EnableStatusListener()
285 synchronized(mLock) { in test3_2ParameterChangedListener()
297 mLock.wait(); in test3_2ParameterChangedListener()
341 mLock.wait(); in waitForLooperInitialization_l()
385 synchronized(mLock) { in createListenerLooper()
391 synchronized(mLock) { in createListenerLooper()
394 mLock.notify(); in createListenerLooper()
[all …]
DEnvReverbTest.java334 synchronized(mLock) { in test3_0ControlStatusListener()
344 mLock.wait(); in test3_0ControlStatusListener()
359 synchronized(mLock) { in test3_1EnableStatusListener()
371 mLock.wait(); in test3_1EnableStatusListener()
386 synchronized(mLock) { in test3_2ParameterChangedListener()
398 mLock.wait(); in test3_2ParameterChangedListener()
442 mLock.wait(); in waitForLooperInitialization_l()
486 synchronized(mLock) { in createListenerLooper()
492 synchronized(mLock) { in createListenerLooper()
495 mLock.notify(); in createListenerLooper()
[all …]
DAudioEffectTest.java179 synchronized(mLock) { in test1_5AuxiliaryOnMediaPlayer()
195 mLock.wait(1000); in test1_5AuxiliaryOnMediaPlayer()
214 synchronized(mLock) { in test1_6AuxiliaryOnMediaPlayerFailure()
232 mLock.wait(); in test1_6AuxiliaryOnMediaPlayerFailure()
739 synchronized(mLock) { in test4_2ControlStatusListener()
749 mLock.wait(); in test4_2ControlStatusListener()
764 synchronized(mLock) { in test4_3EnableStatusListener()
778 mLock.wait(); in test4_3EnableStatusListener()
793 synchronized(mLock) { in test4_4ParameterChangedListener()
808 mLock.wait(); in test4_4ParameterChangedListener()
[all …]
DVirtualizerTest.java220 synchronized(mLock) { in test3_0ControlStatusListener()
230 mLock.wait(); in test3_0ControlStatusListener()
246 synchronized(mLock) { in test3_1EnableStatusListener()
258 mLock.wait(); in test3_1EnableStatusListener()
274 synchronized(mLock) { in test3_2ParameterChangedListener()
286 mLock.wait(); in test3_2ParameterChangedListener()
580 mLock.wait(); in waitForLooperInitialization_l()
624 synchronized(mLock) { in createListenerLooper()
630 synchronized(mLock) { in createListenerLooper()
633 mLock.notify(); in createListenerLooper()
[all …]
DVisualizerTest.java169 synchronized(mLock) { in test2_1ListenerCapture()
180 synchronized(mLock) { in test2_1ListenerCapture()
185 mLock.wait(); in test2_1ListenerCapture()
196 synchronized(mLock) { in test2_1ListenerCapture()
201 mLock.wait(); in test2_1ListenerCapture()
487 mLock.wait(); in waitForLooperInitialization_l()
505 synchronized(mLock) { in createListenerLooper()
510 synchronized(mLock) { in createListenerLooper()
514 mLock.notify(); in createListenerLooper()
522 synchronized(mLock) { in createListenerLooper()
[all …]
/cts/tests/tests/telephony/sdk28/src/android/telephony/sdk28/cts/
DPhoneStateListenerTest.java42 private final Object mLock = new Object(); field in PhoneStateListenerTest
87 synchronized(mLock) { in testOnUnRegisterFollowedByRegister()
89 mLock.notify(); in testOnUnRegisterFollowedByRegister()
102 synchronized (mLock) { in testOnUnRegisterFollowedByRegister()
104 mLock.wait(WAIT_TIME); in testOnUnRegisterFollowedByRegister()
116 synchronized (mLock) { in testOnUnRegisterFollowedByRegister()
118 mLock.wait(WAIT_TIME); in testOnUnRegisterFollowedByRegister()
125 synchronized (mLock) { in testOnUnRegisterFollowedByRegister()
127 mLock.wait(WAIT_TIME); in testOnUnRegisterFollowedByRegister()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityBackgroundTestActivity.java86 private final Object mLock; field in ConnectivityBackgroundTestActivity
105 mLock = new Object(); in ConnectivityBackgroundTestActivity()
190 synchronized (mLock) { in stopAnyExistingTestingThread()
328 synchronized (mLock) { in onReceive()
330 mLock.notify(); in onReceive()
334 synchronized (mLock) { in onReceive()
336 mLock.notify(); in onReceive()
340 synchronized (mLock) { in onReceive()
342 mLock.notify(); in onReceive()
346 synchronized (mLock) { in onReceive()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DGestureDetectionStubAccessibilityService.java28 private final Object mLock = new Object(); field in GestureDetectionStubAccessibilityService
81 synchronized (mLock) { in onAccessibilityEvent()
85 mLock.notifyAll(); in onAccessibilityEvent()
97 synchronized (mLock) { in clearEvents()
103 synchronized (mLock) { in getEventsSize()
109 synchronized (mLock) { in getEvent()
116 synchronized (mLock) { in waitUntilEvent()
121 mLock.wait(EVENT_RECOGNIZE_TIMEOUT_MS); in waitUntilEvent()
/cts/tests/tests/media/libaudiojni/
DGate.h63 std::unique_lock<std::mutex> l(mLock); in wait()
76 std::lock_guard<std::mutex> l(mLock); in closeGate()
84 std::lock_guard<std::mutex> l(mLock); in openGate()
97 std::lock_guard<std::mutex> l(mLock); in terminate()
106 std::lock_guard<std::mutex> l(mLock); in isOpen()
112 std::lock_guard<std::mutex> l(mLock); in waiters()
122 std::mutex mLock; variable
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DDirectActionsSession.java42 private final ReentrantLock mLock = new ReentrantLock(); field in DirectActionsSession
43 private final Condition mCondition = mLock.newCondition();
94 mLock.lock(); in onHandleAssist()
99 mLock.unlock(); in onHandleAssist()
106 mLock.lock(); in onDirectActionsInvalidated()
111 mLock.unlock(); in onDirectActionsInvalidated()
117 mLock.lock(); in executeWithAssist()
130 mLock.unlock(); in executeWithAssist()
139 mLock.lock(); in getDirectActions()
146 mLock.unlock(); in getDirectActions()
[all …]
/cts/tests/tests/netsecpolicy/src/android/security/
DNetworkSecurityPolicyTestBase.java281 private final Object mLock = new Object(); field in NetworkSecurityPolicyTestBase.SettableFuture
288 synchronized (mLock) { in set()
292 mLock.notifyAll(); in set()
298 synchronized (mLock) { in setException()
302 mLock.notifyAll(); in setException()
309 synchronized (mLock) { in cancel()
315 mLock.notifyAll(); in cancel()
322 synchronized (mLock) { in get()
324 mLock.wait(); in get()
333 synchronized (mLock) { in get()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DTestLogService.java36 private static final Object mLock = new Object(); field in TestLogService
70 synchronized (mLock) { in registerClient()
88 synchronized (mLock) { in getResultsForClient()
98 synchronized (mLock) { in getResultsForClient()
107 synchronized (mLock) { in record()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.kt59 private val mLock = java.lang.Object() in hashCode() constant in android.uirendering.cts.testinfrastructure.DrawActivity
107 synchronized(mLock) { in hashCode()
118 mLock.wait(TIME_OUT_MS) in hashCode()
129 synchronized(mLock) { in hashCode()
135 mLock.wait(TIME_OUT_MS) in hashCode()
149 synchronized(mLock) { in hashCode()
153 mLock.notify() in hashCode()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.kt59 private val mLock = java.lang.Object() in hashCode() constant
109 synchronized(mLock) { in hashCode()
120 mLock.wait(TIME_OUT_MS) in hashCode()
130 synchronized(mLock) { in hashCode()
136 mLock.wait(TIME_OUT_MS) in hashCode()
150 synchronized(mLock) { in hashCode()
154 mLock.notify() in hashCode()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewCtsActivity.java53 private final Object mLock = new Object(); field in TextureViewCtsActivity
200 synchronized (mLock) { in waitForSurface()
202 mLock.wait(TIME_OUT_MS); in waitForSurface()
277 synchronized (mLock) { in waitForSurfaceUpdateCount()
279 mLock.wait(TIME_OUT_MS); in waitForSurfaceUpdateCount()
305 synchronized (mLock) { in onSurfaceTextureAvailable()
309 mLock.notifyAll(); in onSurfaceTextureAvailable()
319 synchronized (mLock) { in onSurfaceTextureDestroyed()
321 mLock.notifyAll(); in onSurfaceTextureDestroyed()
328 synchronized (mLock) { in onSurfaceTextureUpdated()
[all …]
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java82 private final Object mLock = new Object(); field in AppWidgetTest
689 synchronized (mLock) { in testOnProvidersChanged()
691 mLock.notifyAll(); in testOnProvidersChanged()
796 synchronized (mLock) { in testUpdateAppWidgetViaComponentName()
798 mLock.notifyAll(); in testUpdateAppWidgetViaComponentName()
873 synchronized (mLock) { in testUpdateAppWidgetViaWidgetId()
875 mLock.notifyAll(); in testUpdateAppWidgetViaWidgetId()
960 synchronized (mLock) { in testUpdateAppWidgetViaWidgetIds()
962 mLock.notifyAll(); in testUpdateAppWidgetViaWidgetIds()
1039 synchronized (mLock) { in testPartiallyUpdateAppWidgetViaWidgetId()
[all …]

123