/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | PhoneStateListenerTest.java | 81 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 …]
|
D | CellLocationTest.java | 41 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/ |
D | KeyboardShortcutsActivity.java | 34 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/ |
D | TextToSpeechWrapper.java | 144 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/ |
D | TestProcessClient.java | 41 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/ |
D | GestureDetectionStubAccessibilityService.java | 28 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()
|
D | AccessibilitySoftKeyboardModesTest.java | 52 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/ |
D | PhoneStateListenerTest.java | 42 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/ |
D | PresetReverbTest.java | 174 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 …]
|
D | BassBoostTest.java | 212 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 …]
|
D | EqualizerTest.java | 238 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 …]
|
D | MediaDrmMockTest.java | 647 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 …]
|
D | EnvReverbTest.java | 333 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 …]
|
D | AudioEffectTest.java | 178 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 …]
|
D | VirtualizerTest.java | 219 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 …]
|
D | VisualizerTest.java | 169 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/ |
D | Gate.h | 63 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/ |
D | ConnectivityBackgroundTestActivity.java | 86 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/ |
D | DirectActionsSession.java | 42 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/ |
D | NetworkSecurityPolicyTestBase.java | 281 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/ |
D | TestLogService.java | 36 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/ |
D | DrawActivity.kt | 59 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/ |
D | DrawActivity.kt | 60 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/ |
D | TextureViewCtsActivity.java | 52 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/ |
D | SyncAdapter.java | 30 private final Object mLock = new Object(); field in SyncAdapter 37 synchronized (mLock) { in setNewDelegate() 49 synchronized (mLock) { in getCopyOfDelegate()
|