Home
last modified time | relevance | path

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

12

/cts/tests/tests/telephony/src/android/telephony/cts/
DPhoneStateListenerTest.java47 private final Object mLock = new Object(); field in PhoneStateListenerTest
96 synchronized(mLock) { in testOnServiceStateChanged()
98 mLock.notify(); in testOnServiceStateChanged()
111 synchronized (mLock) { in testOnServiceStateChanged()
113 mLock.wait(); in testOnServiceStateChanged()
133 synchronized(mLock) { in testOnSignalStrengthChanged()
135 mLock.notify(); in testOnSignalStrengthChanged()
148 synchronized (mLock) { in testOnSignalStrengthChanged()
150 mLock.wait(); in testOnSignalStrengthChanged()
170 synchronized(mLock) { in testOnSignalStrengthsChanged()
[all …]
DCellLocationTest.java34 private final Object mLock = new Object(); field in CellLocationTest
85 synchronized (mLock) { in testCellLocation()
87 mLock.notify(); in testCellLocation()
100 synchronized (mLock) { in testCellLocation()
102 mLock.wait(); in testCellLocation()
DTelephonyManagerTest.java42 private final Object mLock = new Object(); field in TelephonyManagerTest
85 synchronized (mLock) { in testListen()
87 mLock.notify(); in testListen()
98 synchronized (mLock) { in testListen()
100 mLock.wait(); in testListen()
120 synchronized (mLock) { in testListen()
121 mLock.wait(TOLERANCE); in testListen()
DMmsTest.java89 private final Object mLock; field in MmsTest.SentReceiver
94 mLock = new Object(); in SentReceiver()
132 synchronized (mLock) { in onReceive()
134 mLock.notify(); in onReceive()
139 synchronized(mLock) { in waitForSuccess()
144 mLock.wait(waitTime); in waitForSuccess()
DSmsManagerTest.java373 private Object mLock; field in SmsManagerTest.SmsBroadcastReceiver
378 mLock = new Object(); in SmsBroadcastReceiver()
410 synchronized (mLock) { in onReceive()
412 mLock.notify(); in onReceive()
418 synchronized(mLock) { in waitForCalls()
425 mLock.wait(waitTime); in waitForCalls()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechWrapper.java113 private final Lock mLock = new ReentrantLock(); field in TextToSpeechWrapper.InitWaitListener
114 private final Condition mDone = mLock.newCondition();
118 mLock.lock(); in onInit()
123 mLock.unlock(); in onInit()
129 mLock.lock(); in waitForInit()
139 mLock.unlock(); in waitForInit()
148 private final Lock mLock = new ReentrantLock(); field in TextToSpeechWrapper.UtteranceWaitListener
149 private final Condition mDone = mLock.newCondition();
157 mLock.lock(); in onDone()
162 mLock.unlock(); in onDone()
[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
Daudio-track-native.cpp76 auto_lock l(mLock); in open()
171 auto_lock l(mLock); in close()
206 auto_lock l(mLock); in setPlayState()
220 auto_lock l(mLock); in getPlayState()
234 auto_lock l(mLock); in getPositionInMsec()
265 auto_lock l(mLock); in flush()
286 auto_lock l(mLock); in write()
302 auto_lock l(mLock); in write()
315 auto_lock l(mLock); in logBufferState()
323 auto_lock l(mLock); in getBuffersPending()
[all …]
Daudio-record-native.cpp80 auto_lock l(mLock); in open()
185 auto_lock l(mLock); in close()
215 auto_lock l(mLock); in setRecordState()
232 auto_lock l(mLock); in getRecordState()
246 auto_lock l(mLock); in getPositionInMsec()
277 auto_lock l(mLock); in flush()
303 auto_lock l(mLock); in read()
338 auto_lock l(mLock); in logBufferState()
346 auto_lock l(mLock); in getBuffersPending()
365 auto_lock l(mLock); in bufferQueueCallback()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DPresetReverbTest.java172 synchronized(mLock) { in test3_0ControlStatusListener()
182 mLock.wait(); in test3_0ControlStatusListener()
197 synchronized(mLock) { in test3_1EnableStatusListener()
209 mLock.wait(); in test3_1EnableStatusListener()
224 synchronized(mLock) { in test3_2ParameterChangedListener()
236 mLock.wait(); in test3_2ParameterChangedListener()
280 mLock.wait(); in waitForLooperInitialization_l()
324 synchronized(mLock) { in createListenerLooper()
330 synchronized(mLock) { in createListenerLooper()
333 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()
363 synchronized(mLock) { in createListenerLooper()
369 synchronized(mLock) { in createListenerLooper()
372 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()
383 synchronized(mLock) { in createListenerLooper()
389 synchronized(mLock) { in createListenerLooper()
392 mLock.notify(); in createListenerLooper()
[all …]
DMediaDrmMockTest.java641 private Object mLock = new Object(); field in MediaDrmMockTest
667 synchronized(mLock) { in testEventNoSessionNoData()
668 mLock.notify(); in testEventNoSessionNoData()
673 synchronized(mLock) { in testEventNoSessionNoData()
681 mLock.notify(); in testEventNoSessionNoData()
692 synchronized(mLock) { in testEventNoSessionNoData()
694 mLock.wait(1000); in testEventNoSessionNoData()
703 synchronized(mLock) { in testEventNoSessionNoData()
705 mLock.wait(1000); in testEventNoSessionNoData()
745 synchronized(mLock) { in testEventWithSessionAndData()
[all …]
DEnvReverbTest.java331 synchronized(mLock) { in test3_0ControlStatusListener()
341 mLock.wait(); in test3_0ControlStatusListener()
356 synchronized(mLock) { in test3_1EnableStatusListener()
368 mLock.wait(); in test3_1EnableStatusListener()
383 synchronized(mLock) { in test3_2ParameterChangedListener()
395 mLock.wait(); in test3_2ParameterChangedListener()
439 mLock.wait(); in waitForLooperInitialization_l()
483 synchronized(mLock) { in createListenerLooper()
489 synchronized(mLock) { in createListenerLooper()
492 mLock.notify(); in createListenerLooper()
[all …]
DAudioEffectTest.java169 synchronized(mLock) { in test1_5AuxiliaryOnMediaPlayer()
185 mLock.wait(1000); in test1_5AuxiliaryOnMediaPlayer()
204 synchronized(mLock) { in test1_6AuxiliaryOnMediaPlayerFailure()
222 mLock.wait(); in test1_6AuxiliaryOnMediaPlayerFailure()
729 synchronized(mLock) { in test4_2ControlStatusListener()
739 mLock.wait(); in test4_2ControlStatusListener()
754 synchronized(mLock) { in test4_3EnableStatusListener()
768 mLock.wait(); in test4_3EnableStatusListener()
783 synchronized(mLock) { in test4_4ParameterChangedListener()
798 mLock.wait(); in test4_4ParameterChangedListener()
[all …]
DVirtualizerTest.java217 synchronized(mLock) { in test3_0ControlStatusListener()
227 mLock.wait(); in test3_0ControlStatusListener()
243 synchronized(mLock) { in test3_1EnableStatusListener()
255 mLock.wait(); in test3_1EnableStatusListener()
271 synchronized(mLock) { in test3_2ParameterChangedListener()
283 mLock.wait(); in test3_2ParameterChangedListener()
577 mLock.wait(); in waitForLooperInitialization_l()
620 synchronized(mLock) { in createListenerLooper()
626 synchronized(mLock) { in createListenerLooper()
629 mLock.notify(); in createListenerLooper()
[all …]
DVisualizerTest.java167 synchronized(mLock) { in test2_1ListenerCapture()
178 synchronized(mLock) { in test2_1ListenerCapture()
183 mLock.wait(); in test2_1ListenerCapture()
194 synchronized(mLock) { in test2_1ListenerCapture()
199 mLock.wait(); in test2_1ListenerCapture()
482 mLock.wait(); in waitForLooperInitialization_l()
500 synchronized(mLock) { in createListenerLooper()
505 synchronized(mLock) { in createListenerLooper()
509 mLock.notify(); in createListenerLooper()
517 synchronized(mLock) { in createListenerLooper()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.java37 private final Point mLock = new Point(); field in DrawActivity
71 synchronized (mLock) { in enqueueRenderSpecAndWait()
73 mLock.wait(TIME_OUT_MS); in enqueueRenderSpecAndWait()
74 point.set(mLock.x, mLock.y); in enqueueRenderSpecAndWait()
154 synchronized (mLock) { in onPreDraw()
155 mLock.set(mViewWrapper.getLeft(), mViewWrapper.getTop()); in onPreDraw()
156 mLock.notify(); in onPreDraw()
/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/tests/widget/src/android/widget/cts/
DSlidingDrawerTest.java51 private Object mLock; field in SlidingDrawerTest
61 mLock = new Object(); in setUp()
294 synchronized (mLock) { in testSetOnDrawerScrollListener()
295 mLock.wait(TEST_TIMEOUT); in testSetOnDrawerScrollListener()
301 synchronized (mLock) { in testSetOnDrawerScrollListener()
302 mLock.wait(TEST_TIMEOUT); in testSetOnDrawerScrollListener()
362 synchronized (mLock) { in onScrollEnded()
365 mLock.notify(); in onScrollEnded()
370 synchronized (mLock) { in onScrollStarted()
372 mLock.notify(); in onScrollStarted()
/cts/tests/tests/nativeopengl/standalone/jni/tests/
DEGLCleanup_test.cpp80 pthread_mutex_init(&mLock, NULL); in ChainedThread()
98 int err = pthread_cond_wait(&mCond, &mLock); in waitForEnd()
121 pthread_mutex_t mLock; member in android::ChainedThread
154 int err = pthread_mutex_lock(&mLock); in lock()
162 int err = pthread_mutex_unlock(&mLock); in unlock()
/cts/tests/tests/hardware/src/android/hardware/multiprocess/
DErrorLoggingService.java301 private final Object mLock = new Object(); field in ErrorLoggingService.ErrorServiceConnection
324 synchronized (mLock) { in close()
403 synchronized (mLock) {
406 mLock.notifyAll();
413 synchronized (mLock) {
422 synchronized (mLock) { in blockingGetBoundService()
430 mLock.wait(); in blockingGetBoundService()
443 synchronized (mLock) { in getBoundService()
460 synchronized (mLock) { in start()
476 synchronized (mLock) { in stop()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java82 private final Object mLock = new Object(); field in AppWidgetTest
676 synchronized (mLock) { in testOnProvidersChanged()
678 mLock.notifyAll(); in testOnProvidersChanged()
785 synchronized (mLock) { in testUpdateAppWidgetViaComponentName()
787 mLock.notifyAll(); in testUpdateAppWidgetViaComponentName()
864 synchronized (mLock) { in testUpdateAppWidgetViaWidgetId()
866 mLock.notifyAll(); in testUpdateAppWidgetViaWidgetId()
953 synchronized (mLock) { in testUpdateAppWidgetViaWidgetIds()
955 mLock.notifyAll(); in testUpdateAppWidgetViaWidgetIds()
1034 synchronized (mLock) { in testPartiallyUpdateAppWidgetViaWidgetId()
[all …]
/cts/tests/tests/drm/src/android/drm/cts/
DDRMTest.java43 private Object mLock = new Object(); field in DRMTest
191 synchronized(mLock) { in executeProcessDrmInfo()
193 mLock.wait(WAIT_TIME); in executeProcessDrmInfo()
239 synchronized (mLock) { in onEvent()
240 mLock.notify(); in onEvent()
/cts/tests/tests/tv/src/android/media/tv/cts/
DBundledTvInputServiceTest.java54 private final Object mLock = new Object(); field in BundledTvInputServiceTest.MockCallback
63 synchronized (mLock) { in onVideoAvailable()
70 synchronized (mLock) { in onVideoUnavailable()

12