Home
last modified time | relevance | path

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

123456

/cts/tests/tests/telephony/current/src/android/telephony/cts/
DPhoneStateListenerTest.java117 private final Object mLock = new Object(); field in PhoneStateListenerTest
196 synchronized (mLock) { in testOnServiceStateChanged()
198 mLock.notify(); in testOnServiceStateChanged()
204 synchronized (mLock) { in testOnServiceStateChanged()
206 mLock.wait(WAIT_TIME); in testOnServiceStateChanged()
223 synchronized (mLock) { in testOnUnRegisterFollowedByRegister()
225 mLock.notify(); in testOnUnRegisterFollowedByRegister()
231 synchronized (mLock) { in testOnUnRegisterFollowedByRegister()
233 mLock.wait(WAIT_TIME); in testOnUnRegisterFollowedByRegister()
245 synchronized (mLock) { in testOnUnRegisterFollowedByRegister()
[all …]
DTelephonyCallbackTest.java142 private final Object mLock = new Object(); field in TelephonyCallbackTest
242 synchronized (mLock) { in unRegisterTelephonyCallback()
245 mLock.wait(WAIT_TIME); in unRegisterTelephonyCallback()
257 synchronized (mLock) { in onServiceStateChanged()
260 mLock.notify(); in onServiceStateChanged()
275 synchronized (mLock) { in testOnServiceStateChangedByRegisterTelephonyCallback()
277 mLock.wait(WAIT_TIME); in testOnServiceStateChangedByRegisterTelephonyCallback()
303 synchronized (mLock) { in testOnServiceStateChangedByRegisterTelephonyCallbackWithLocationRenounce()
305 mLock.wait(WAIT_TIME); in testOnServiceStateChangedByRegisterTelephonyCallbackWithLocationRenounce()
332 synchronized (mLock) { in testOnServiceStateChangedByRegisterTelephonyCallbackWithCoarseRenounce()
[all …]
DTestDomainSelectionService.java57 protected final Object mLock = new Object(); field in TestDomainSelectionService
90 synchronized (mLock) { in reselectDomain()
100 synchronized (mLock) { in finishSelection()
110 synchronized (mLock) { in dispose()
129 synchronized (mLock) { in onDomainSelection()
141 synchronized (mLock) { in onServiceStateUpdated()
150 synchronized (mLock) { in onBarringInfoUpdated()
174 synchronized (mLock) { in getDomainSelectionService()
185 synchronized (mLock) { in onBind()
199 synchronized (mLock) { in onUnbind()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestImsService.java70 protected final Object mLock = new Object(); field in TestImsService
147 synchronized (mLock) { in readyForFeatureCreation()
154 synchronized (mLock) { in enableImsForSubscription()
163 synchronized (mLock) { in disableImsForSubscription()
173 synchronized (mLock) { in createRcsFeatureForSubscription()
179 synchronized (mLock) { in createRcsFeatureForSubscription()
186 synchronized (mLock) { in createRcsFeatureForSubscription()
192 synchronized (mLock) { in createRcsFeatureForSubscription()
197 synchronized (mLock) { in createRcsFeatureForSubscription()
211 synchronized (mLock) { in createRcsFeatureForSubscription()
[all …]
DTestSipTransport.java57 private final Object mLock = new Object(); field in TestSipTransport
72 synchronized (mLock) { in createSipDelegate()
81 synchronized (mLock) { in destroySipDelegate()
91 synchronized (mLock) { in getDelegates()
97 synchronized (mLock) { in getDelegate()
105 synchronized (mLock) { in isLatchCountDownFinished()
115 synchronized (mLock) { in waitForLatchCountdownAndReset()
122 synchronized (mLock) { in waitForLatchCountdownAndReset()
129 synchronized (mLock) { in countDownLatch()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecAsyncHandler.java48 protected final Lock mLock = new ReentrantLock(); field in CodecAsyncHandler
49 protected final Condition mCondition = mLock.newCondition();
71 mLock.lock(); in clearQueues()
76 mLock.unlock(); in clearQueues()
93 mLock.lock(); in onInputBufferAvailable()
98 mLock.unlock(); in onInputBufferAvailable()
106 mLock.lock(); in onOutputBufferAvailable()
111 mLock.unlock(); in onOutputBufferAvailable()
119 mLock.lock(); in onError()
124 mLock.unlock(); in onError()
[all …]
DCodecAsyncHandlerMultiAccessUnits.java54 mLock.lock(); in clearQueues()
58 mLock.unlock(); in clearQueues()
71 mLock.lock(); in onOutputBuffersAvailable()
76 mLock.unlock(); in onOutputBuffersAvailable()
84 mLock.lock(); in onOutputBufferAvailable()
91 mLock.unlock(); in onOutputBufferAvailable()
98 mLock.lock(); in getOutputs()
109 mLock.unlock(); in getOutputs()
117 mLock.lock(); in getWorkList()
133 mLock.unlock(); in getWorkList()
DCodecTestActivity.java40 private final Lock mLock = new ReentrantLock(); field in CodecTestActivity
41 private final Condition mCondition = mLock.newCondition();
60 mLock.lock(); in surfaceCreated()
62 mLock.unlock(); in surfaceCreated()
73 mLock.lock(); in surfaceDestroyed()
75 mLock.unlock(); in surfaceDestroyed()
81 mLock.lock(); in waitTillSurfaceIsCreated()
87 mLock.unlock(); in waitTillSurfaceIsCreated()
/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/appsearch/testutils/src/android/app/appsearch/testutil/external/testutil/
DTestObserverCallback.java40 private final Object mLock = new Object(); field in TestObserverCallback
50 synchronized (mLock) { in onSchemaChanged()
58 synchronized (mLock) { in onDocumentChanged()
76 synchronized (mLock) { in waitForNotificationCount()
92 mLock.wait(); in waitForNotificationCount()
118 synchronized (mLock) { in clear()
122 mLock.notifyAll(); in clear()
127 synchronized (mLock) { in incrementNotificationCountLocked()
129 mLock.notifyAll(); in incrementNotificationCountLocked()
/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/media/audio/jni/
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/telephony3/src/android/telephony3/cts/
DPhoneStateListenerTest.java46 private final Object mLock = new Object(); field in PhoneStateListenerTest
91 synchronized (mLock) { in testOnUnRegisterFollowedByRegister()
93 mLock.notify(); in testOnUnRegisterFollowedByRegister()
106 synchronized (mLock) { in testOnUnRegisterFollowedByRegister()
108 mLock.wait(WAIT_TIME); in testOnUnRegisterFollowedByRegister()
120 synchronized (mLock) { in testOnUnRegisterFollowedByRegister()
122 mLock.wait(WAIT_TIME); in testOnUnRegisterFollowedByRegister()
129 synchronized (mLock) { in testOnUnRegisterFollowedByRegister()
131 mLock.wait(WAIT_TIME); in testOnUnRegisterFollowedByRegister()
/cts/tests/tests/view/src/android/view/cts/
DSDRTestActivity.java35 private final Object mLock = new Object(); field in SDRTestActivity
96 synchronized (mLock) { in onSurfaceTextureAvailable()
98 mLock.notifyAll(); in onSurfaceTextureAvailable()
107 synchronized (mLock) { in onSurfaceTextureDestroyed()
109 mLock.notifyAll(); in onSurfaceTextureDestroyed()
116 synchronized (mLock) { in onSurfaceTextureUpdated()
117 mLock.notifyAll(); in onSurfaceTextureUpdated()
122 synchronized (mLock) { in waitForSurface()
124 mLock.wait(TIME_OUT_MS); in waitForSurface()
/cts/tests/video/src/android/video/cts/
DCodecTestActivity.java37 private final Lock mLock = new ReentrantLock(); field in CodecTestActivity
38 private final Condition mCondition = mLock.newCondition();
52 mLock.lock(); in surfaceCreated()
54 mLock.unlock(); in surfaceCreated()
65 mLock.lock(); in surfaceDestroyed()
67 mLock.unlock(); in surfaceDestroyed()
73 mLock.lock(); in waitTillSurfaceIsCreated()
79 mLock.unlock(); in waitTillSurfaceIsCreated()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DEasyConnectStatusCallbackTest.java69 private final Object mLock = new Object(); field in EasyConnectStatusCallbackTest
108 synchronized (mLock) {
111 mLock.notify();
118 synchronized (mLock) {
121 mLock.notify();
127 synchronized (mLock) {
129 mLock.notify();
173 synchronized (mLock) { in testConfiguratorInitiatorOnFailure()
178 mLock.wait(TEST_TX_FRAME_RESPONSE_WAIT_TIME_MS); in testConfiguratorInitiatorOnFailure()
206 synchronized (mLock) { in testEnrolleeInitiatorOnFailure()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DTestProcessClient.java52 private Object mLock = new Object(); field in TestProcessClient
119 synchronized (mLock) { in TestProcessClient()
121 mLock.wait(CONNECT_TIMEOUT_MS); in TestProcessClient()
134 synchronized (mLock) { in run()
145 synchronized (mLock) { in close()
164 synchronized (mLock) { in onServiceConnected()
166 mLock.notify(); in onServiceConnected()
172 synchronized (mLock) { in onServiceDisconnected()
175 mLock.notify(); in onServiceDisconnected()
/cts/tests/tests/tv/src/android/media/tv/tuner/cts/
DTunerResourceTestService.java37 private final Object mLock = new Object(); field in TunerResourceTestService
57 synchronized (mLock) { in onUnbind()
91 synchronized (mLock) {
98 synchronized (mLock) {
104 synchronized (mLock) {
110 synchronized (mLock) {
116 synchronized (mLock) {
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DPresetReverbTest.java193 synchronized(mLock) { in test3_0ControlStatusListener()
203 mLock.wait(); in test3_0ControlStatusListener()
219 synchronized(mLock) { in test3_1EnableStatusListener()
231 mLock.wait(); in test3_1EnableStatusListener()
247 synchronized(mLock) { in test3_2ParameterChangedListener()
259 mLock.wait(); in test3_2ParameterChangedListener()
303 mLock.wait(); in waitForLooperInitialization_l()
347 synchronized(mLock) { in createListenerLooper()
353 synchronized(mLock) { in createListenerLooper()
356 mLock.notify(); in createListenerLooper()
[all …]
DBassBoostTest.java233 synchronized(mLock) { in test3_0ControlStatusListener()
243 mLock.wait(); in test3_0ControlStatusListener()
259 synchronized(mLock) { in test3_1EnableStatusListener()
271 mLock.wait(); in test3_1EnableStatusListener()
287 synchronized(mLock) { in test3_2ParameterChangedListener()
298 mLock.wait(); in test3_2ParameterChangedListener()
342 mLock.wait(); in waitForLooperInitialization_l()
387 synchronized(mLock) { in createListenerLooper()
393 synchronized(mLock) { in createListenerLooper()
396 mLock.notify(); in createListenerLooper()
[all …]
/cts/tests/mediapc/src/android/mediapc/cts/
DTestActivity.java39 private final Lock mLock = new ReentrantLock(); field in TestActivity
40 private final Condition mCondition = mLock.newCondition();
54 mLock.lock(); in surfaceCreated()
56 mLock.unlock(); in surfaceCreated()
67 mLock.lock(); in surfaceDestroyed()
69 mLock.unlock(); in surfaceDestroyed()
75 mLock.lock(); in waitTillSurfaceIsCreated()
81 mLock.unlock(); in waitTillSurfaceIsCreated()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityBackgroundTestActivity.java86 private final Object mLock; field in ConnectivityBackgroundTestActivity
105 mLock = new Object(); in ConnectivityBackgroundTestActivity()
193 synchronized (mLock) { in stopAnyExistingTestingThread()
331 synchronized (mLock) { in onReceive()
333 mLock.notify(); in onReceive()
337 synchronized (mLock) { in onReceive()
339 mLock.notify(); in onReceive()
343 synchronized (mLock) { in onReceive()
345 mLock.notify(); in onReceive()
349 synchronized (mLock) { in onReceive()
[all …]
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DDirectActionsSession.java47 private final ReentrantLock mLock = new ReentrantLock(); field in DirectActionsSession
48 private final Condition mCondition = mLock.newCondition();
131 mLock.lock(); in onHandleAssist()
136 mLock.unlock(); in onHandleAssist()
143 mLock.lock(); in onDirectActionsInvalidated()
148 mLock.unlock(); in onDirectActionsInvalidated()
154 mLock.lock(); in executeWithAssist()
167 mLock.unlock(); in executeWithAssist()
176 mLock.lock(); in getDirectActions()
183 mLock.unlock(); in getDirectActions()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DGestureDetectionStubAccessibilityService.java33 protected final Object mLock = new Object(); field in GestureDetectionStubAccessibilityService
106 synchronized (mLock) { in onAccessibilityEvent()
110 mLock.notifyAll(); in onAccessibilityEvent()
122 synchronized (mLock) { in clearEvents()
128 synchronized (mLock) { in getEventsSize()
134 synchronized (mLock) { in getEvent()
141 synchronized (mLock) { in waitUntilEvent()
146 mLock.wait(EVENT_RECOGNIZE_TIMEOUT_MS); in waitUntilEvent()
/cts/hostsidetests/car/app/src/android/car/cts/app/
DCarWatchdogTestActivity.java50 private final Object mLock = new Object(); field in CarWatchdogTestActivity
77 synchronized (mLock) { in onCreate()
120 synchronized (mLock) { in onCreate()
148 synchronized (mLock) { in onNewIntent()
163 synchronized (mLock) { in onNewIntent()
211 synchronized (mLock) { in initManagers()
225 synchronized (mLock) { in addResourceOveruseListener()
258 synchronized (mLock) { in fetchRemainingBytes()
296 private final Object mLock = new Object(); field in CarWatchdogTestActivity.IoOveruseListener
306 synchronized (mLock) { in onOveruse()
[all …]

123456