Home
last modified time | relevance | path

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

123

/cts/tests/tests/telephony/current/src/android/telephony/cts/
DPhoneStateListenerTest.java81 private final Object mLock = new Object(); field in PhoneStateListenerTest
155 synchronized(mLock) { in testOnServiceStateChanged()
157 mLock.notify(); in testOnServiceStateChanged()
170 synchronized (mLock) { in testOnServiceStateChanged()
172 mLock.wait(WAIT_TIME); in testOnServiceStateChanged()
193 synchronized(mLock) { in testOnUnRegisterFollowedByRegister()
195 mLock.notify(); in testOnUnRegisterFollowedByRegister()
208 synchronized (mLock) { in testOnUnRegisterFollowedByRegister()
210 mLock.wait(WAIT_TIME); in testOnUnRegisterFollowedByRegister()
222 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/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/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/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/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()
DAccessibilitySoftKeyboardModesTest.java52 private final Object mLock = new Object(); field in AccessibilitySoftKeyboardModesTest
54 synchronized (mLock) {
56 mLock.notifyAll();
134 synchronized(mLock) { in waitForCallbackValueWithLock()
139 mLock.wait(timeoutTimeMillis - SystemClock.uptimeMillis()); in waitForCallbackValueWithLock()
/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/tests/tests/media/src/android/media/cts/
DPresetReverbTest.java174 synchronized(mLock) { in test3_0ControlStatusListener()
184 mLock.wait(); in test3_0ControlStatusListener()
199 synchronized(mLock) { in test3_1EnableStatusListener()
211 mLock.wait(); in test3_1EnableStatusListener()
226 synchronized(mLock) { in test3_2ParameterChangedListener()
238 mLock.wait(); in test3_2ParameterChangedListener()
282 mLock.wait(); in waitForLooperInitialization_l()
326 synchronized(mLock) { in createListenerLooper()
332 synchronized(mLock) { in createListenerLooper()
335 mLock.notify(); in createListenerLooper()
[all …]
DBassBoostTest.java212 synchronized(mLock) { in test3_0ControlStatusListener()
222 mLock.wait(); in test3_0ControlStatusListener()
237 synchronized(mLock) { in test3_1EnableStatusListener()
249 mLock.wait(); in test3_1EnableStatusListener()
264 synchronized(mLock) { in test3_2ParameterChangedListener()
275 mLock.wait(); in test3_2ParameterChangedListener()
319 mLock.wait(); in waitForLooperInitialization_l()
364 synchronized(mLock) { in createListenerLooper()
370 synchronized(mLock) { in createListenerLooper()
373 mLock.notify(); in createListenerLooper()
[all …]
DEqualizerTest.java238 synchronized(mLock) { in test3_0ControlStatusListener()
248 mLock.wait(); in test3_0ControlStatusListener()
260 synchronized(mLock) { in test3_1EnableStatusListener()
272 mLock.wait(); in test3_1EnableStatusListener()
284 synchronized(mLock) { in test3_2ParameterChangedListener()
296 mLock.wait(); in test3_2ParameterChangedListener()
340 mLock.wait(); in waitForLooperInitialization_l()
384 synchronized(mLock) { in createListenerLooper()
390 synchronized(mLock) { in createListenerLooper()
393 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 …]
DEnvReverbTest.java333 synchronized(mLock) { in test3_0ControlStatusListener()
343 mLock.wait(); in test3_0ControlStatusListener()
358 synchronized(mLock) { in test3_1EnableStatusListener()
370 mLock.wait(); in test3_1EnableStatusListener()
385 synchronized(mLock) { in test3_2ParameterChangedListener()
397 mLock.wait(); in test3_2ParameterChangedListener()
441 mLock.wait(); in waitForLooperInitialization_l()
485 synchronized(mLock) { in createListenerLooper()
491 synchronized(mLock) { in createListenerLooper()
494 mLock.notify(); in createListenerLooper()
[all …]
DAudioEffectTest.java178 synchronized(mLock) { in test1_5AuxiliaryOnMediaPlayer()
194 mLock.wait(1000); in test1_5AuxiliaryOnMediaPlayer()
213 synchronized(mLock) { in test1_6AuxiliaryOnMediaPlayerFailure()
231 mLock.wait(); in test1_6AuxiliaryOnMediaPlayerFailure()
738 synchronized(mLock) { in test4_2ControlStatusListener()
748 mLock.wait(); in test4_2ControlStatusListener()
763 synchronized(mLock) { in test4_3EnableStatusListener()
777 mLock.wait(); in test4_3EnableStatusListener()
792 synchronized(mLock) { in test4_4ParameterChangedListener()
807 mLock.wait(); in test4_4ParameterChangedListener()
[all …]
DVirtualizerTest.java219 synchronized(mLock) { in test3_0ControlStatusListener()
229 mLock.wait(); in test3_0ControlStatusListener()
245 synchronized(mLock) { in test3_1EnableStatusListener()
257 mLock.wait(); in test3_1EnableStatusListener()
273 synchronized(mLock) { in test3_2ParameterChangedListener()
285 mLock.wait(); in test3_2ParameterChangedListener()
579 mLock.wait(); in waitForLooperInitialization_l()
623 synchronized(mLock) { in createListenerLooper()
629 synchronized(mLock) { in createListenerLooper()
632 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/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/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/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/uirendering27/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.kt59 private val mLock = java.lang.Object() in hashCode() constant in android.uirendering.cts.testinfrastructure.DrawActivity
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/uirendering/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.kt60 private val mLock = java.lang.Object() in hashCode() constant
108 synchronized(mLock) { in hashCode()
119 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.java52 private final Object mLock = new Object(); field in TextureViewCtsActivity
199 synchronized (mLock) { in waitForSurface()
201 mLock.wait(TIME_OUT_MS); in waitForSurface()
275 synchronized (mLock) { in waitForSurfaceUpdateCount()
277 mLock.wait(TIME_OUT_MS); in waitForSurfaceUpdateCount()
303 synchronized (mLock) { in onSurfaceTextureAvailable()
307 mLock.notifyAll(); in onSurfaceTextureAvailable()
317 synchronized (mLock) { in onSurfaceTextureDestroyed()
319 mLock.notifyAll(); in onSurfaceTextureDestroyed()
326 synchronized (mLock) { in onSurfaceTextureUpdated()
[all …]
/cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/
DSyncAdapter.java30 private final Object mLock = new Object(); field in SyncAdapter
37 synchronized (mLock) { in setNewDelegate()
49 synchronized (mLock) { in getCopyOfDelegate()

123