Home
last modified time | relevance | path

Searched refs:TEST_TIMEOUT (Results 1 – 25 of 27) sorted by relevance

12

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioRouteControllerTest.java122 private static final int TEST_TIMEOUT = 500; field in CallAudioRouteControllerTest
221 waitForHandlerAction(mController.getAdapterHandler(), TEST_TIMEOUT); in testNormalCallRouteToEarpiece() local
228 verify(mCallsManager, timeout(TEST_TIMEOUT)).onCallAudioStateChanged( in testNormalCallRouteToEarpiece()
239 waitForHandlerAction(mController.getAdapterHandler(), TEST_TIMEOUT); in testVideoCallHoldRouteToEarpiece() local
252 waitForHandlerAction(mController.getAdapterHandler(), TEST_TIMEOUT); in testVideoCallRouteToSpeaker() local
261 verify(mCallsManager, timeout(TEST_TIMEOUT)).onCallAudioStateChanged( in testVideoCallRouteToSpeaker()
269 waitForHandlerAction(mController.getAdapterHandler(), TEST_TIMEOUT); in testVideoCallRouteToSpeaker() local
271 verify(mCallsManager, timeout(TEST_TIMEOUT)).onCallAudioStateChanged( in testVideoCallRouteToSpeaker()
287 verify(mCallsManager, timeout(TEST_TIMEOUT)).onCallAudioStateChanged( in testActiveDeactivateBluetoothDevice()
295 verify(mCallsManager, timeout(TEST_TIMEOUT)).onCallAudioStateChanged( in testActiveDeactivateBluetoothDevice()
[all …]
DVideoProviderTest.java156 mVerificationLock.await(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testCameraChange()
163 verify(mVideoCallCallback, timeout(TEST_TIMEOUT).times(2)) in testCameraChange()
194 mVerificationLock.await(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testCameraChangePermissionFail()
198 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)).onCallSessionEvent( in testCameraChangePermissionFail()
223 mVerificationLock.await(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testCameraChangeAppOpsFail()
227 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)).onCallSessionEvent( in testCameraChangeAppOpsFail()
254 mVerificationLock.await(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testCameraChangeAppOpsBelowNMR1Fail()
258 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)).onCallSessionEvent( in testCameraChangeAppOpsBelowNMR1Fail()
282 mVerificationLock.await(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testCameraChangeUserFail()
286 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)).onCallSessionEvent( in testCameraChangeUserFail()
[all …]
DCallAudioModeStateMachineTest.java57 private static final int TEST_TIMEOUT = 1000; field in CallAudioModeStateMachineTest
93 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoFocusWhenRingerSilenced() local
106 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoFocusWhenRingerSilenced() local
125 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testSwitchToStreamingMode() local
140 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testSwitchToStreamingMode() local
155 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testExitStreamingMode() local
169 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testExitStreamingMode() local
191 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoRingWhenDeviceIsAtEar() local
204 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoRingWhenDeviceIsAtEar() local
219 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testRegainFocusWhenHfpIsConnectedSilenced() local
[all …]
DBasicCallTests.java189 .getConnectionServiceFocusManager().getHandler(), TEST_TIMEOUT); in testTelecomManagerAcceptRingingCall() local
191 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingCall()
220 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingVideoCall()
248 .getConnectionServiceFocusManager().getHandler(), TEST_TIMEOUT); in testTelecomManagerAcceptRingingVideoCallAsAudio() local
251 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingVideoCallAsAudio()
280 .getConnectionServiceFocusManager().getHandler(), TEST_TIMEOUT); in testTelecomManagerAcceptRingingInvalidVideoState() local
283 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingInvalidVideoState()
344 TEST_TIMEOUT); in testIncomingEmergencyCallback() local
372 TEST_TIMEOUT); in testOutgoingCallAndSelectPhoneAccount() local
380 TEST_TIMEOUT); in testOutgoingCallAndSelectPhoneAccount() local
[all …]
DCallAudioRouteStateMachineTest.java106 private static final int TEST_TIMEOUT = 500; field in CallAudioRouteStateMachineTest
217 waitForHandlerAction(stateMachine.getAdapterHandler(), TEST_TIMEOUT); in testTrackedCallsReceiveAudioRouteChange() local
218 waitForHandlerAction(stateMachine.getAdapterHandler(), TEST_TIMEOUT); in testTrackedCallsReceiveAudioRouteChange() local
266 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testSystemAudioStateIsNotUpdatedFlagOff() local
267 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testSystemAudioStateIsNotUpdatedFlagOff() local
319 waitForHandlerAction(stateMachine.getAdapterHandler(), TEST_TIMEOUT); in testSystemAudioStateIsUpdatedFlagOn() local
320 waitForHandlerAction(stateMachine.getAdapterHandler(), TEST_TIMEOUT); in testSystemAudioStateIsUpdatedFlagOn() local
418 waitForHandlerAction(stateMachine.getAdapterHandler(), TEST_TIMEOUT); in testSpeakerPersistence() local
419 waitForHandlerAction(stateMachine.getAdapterHandler(), TEST_TIMEOUT); in testSpeakerPersistence() local
425 waitForHandlerAction(stateMachine.getAdapterHandler(), TEST_TIMEOUT); in testSpeakerPersistence() local
[all …]
DInCallTonePlayerTest.java61 private static final long TEST_TIMEOUT = 5000L; field in InCallTonePlayerTest
152 verify(mMediaPlayerFactory, timeout(TEST_TIMEOUT)).get(anyInt(), any()); in testEndCallTonePlaysWhenRingIsSilent()
157 verify(mCallAudioManager, timeout(TEST_TIMEOUT)).setIsTonePlaying(any(Call.class), in testEndCallTonePlaysWhenRingIsSilent()
167 verify(mMediaPlayerFactory, timeout(TEST_TIMEOUT)).get(anyInt(), any()); in testInterruptMediaTone()
172 verify(mCallAudioManager, timeout(TEST_TIMEOUT)).setIsTonePlaying(any(Call.class), in testInterruptMediaTone()
185 verify(mToneGenerator, timeout(TEST_TIMEOUT)).startTone(anyInt()); in testInterruptToneGenerator()
190 verify(mCallAudioManager, timeout(TEST_TIMEOUT)).setIsTonePlaying(any(Call.class), in testInterruptToneGenerator()
207 verify(mMediaPlayerFactory, timeout(TEST_TIMEOUT)).get(anyInt(), any()); in testEndCallToneWhenNotSilenced()
208 verify(mCallAudioManager, timeout(TEST_TIMEOUT)).setIsTonePlaying(any(Call.class), in testEndCallToneWhenNotSilenced()
225 verify(mToneGeneratorFactory, timeout(TEST_TIMEOUT)) in testRingbackToneAudioStreamHeadset()
[all …]
DTelecomSystemTest.java129 static final int TEST_TIMEOUT = 1000; // milliseconds field in TelecomSystemTest
407 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in setUp()
422 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in tearDown()
423 waitForHandlerAction(mHandlerThread.getThreadHandler(), TEST_TIMEOUT); in tearDown() local
434 waitForHandlerAction(mConnectionServiceFocusManager.getHandler(), TEST_TIMEOUT); in tearDown() local
465 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in makeConferenceCall()
511 .thenReturn(TEST_TIMEOUT / 5L); in setupTelecomSystem()
723 verify(connectionServiceFixture.getTestDouble(), timeout(TEST_TIMEOUT)) in startOutgoingPhoneCall()
740 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in triggerEmergencyRedial()
810 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in startOutgoingPhoneCallWaitForBroadcaster()
[all …]
DBluetoothRouteManagerTest.java64 private static final int TEST_TIMEOUT = 1000; field in BluetoothRouteManagerTest
163 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectBtRetryWhileNotConnected() local
164 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectBtRetryWhileNotConnected() local
165 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectBtRetryWhileNotConnected() local
166 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectBtRetryWhileNotConnected() local
226 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectBtRetryWhileConnectedToAnotherDevice() local
227 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectBtRetryWhileConnectedToAnotherDevice() local
228 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectBtRetryWhileConnectedToAnotherDevice() local
229 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectBtRetryWhileConnectedToAnotherDevice() local
277 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in verifyConnectBtWithoutAddress() local
[all …]
DIncomingCallFilterGraphTest.java68 private final long TEST_TIMEOUT = 7000; field in IncomingCallFilterGraphTest
122 assertEquals(PASS_CALL_RESULT, testResult.get(TEST_TIMEOUT, TimeUnit.MILLISECONDS)); in testEmptyGraph()
140 assertEquals(REJECT_CALL_RESULT, testResult.get(TEST_TIMEOUT, TimeUnit.MILLISECONDS)); in testFiltersPerformOrder()
159 assertEquals(REJECT_CALL_RESULT, testResult.get(TEST_TIMEOUT, TimeUnit.MILLISECONDS)); in testFiltersPerformInParallel()
177 assertEquals(REJECT_CALL_RESULT, testResult.get(TEST_TIMEOUT, TimeUnit.MILLISECONDS)); in testFiltersTimeout()
DContactsAsyncHelperTest.java63 private static final int TEST_TIMEOUT = 500; field in ContactsAsyncHelperTest
117 Thread.sleep(TEST_TIMEOUT); in testEmptyUri()
129 verify(mListener, timeout(TEST_TIMEOUT)).onImageLoadComplete(eq(TOKEN), in testNullReturnFromOpenInputStream()
143 verify(mListener, timeout(TEST_TIMEOUT)).onImageLoadComplete(eq(TOKEN), in testImageScaling()
165 verify(mListener, timeout(TEST_TIMEOUT)).onImageLoadComplete(eq(TOKEN), in testNoScaling()
DCallAudioRouteTransitionTests.java162 private static final int TEST_TIMEOUT = 500; field in CallAudioRouteTransitionTests
298 waitForHandlerAction(stateMachine.getAdapterHandler(), TEST_TIMEOUT); in testActiveTransition() local
305 waitForHandlerAction(stateMachine.getAdapterHandler(), TEST_TIMEOUT); in testActiveTransition() local
306 waitForHandlerAction(stateMachine.getAdapterHandler(), TEST_TIMEOUT); in testActiveTransition() local
309 waitForHandlerAction(h, TEST_TIMEOUT); in testActiveTransition()
400 waitForHandlerAction(stateMachine.getAdapterHandler(), TEST_TIMEOUT); in testQuiescentTransition() local
401 waitForHandlerAction(stateMachine.getAdapterHandler(), TEST_TIMEOUT); in testQuiescentTransition() local
883 verify(mockCallsManager, timeout(TEST_TIMEOUT).atLeastOnce()).onCallAudioStateChanged( in verifyNewSystemCallAudioState()
885 verify(mockConnectionServiceWrapper, timeout(TEST_TIMEOUT).atLeastOnce()) in verifyNewSystemCallAudioState()
DCallRecordingTonePlayerTest.java19 import static com.android.server.telecom.tests.TelecomSystemTest.TEST_TIMEOUT;
133 waitForHandlerAction(Handler.getMain(), TEST_TIMEOUT); in testToneLooping() local
283 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in testIsRecordingLater()
308 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in testNotRecordingApp()
DAnalyticsTests.java192 .thenReturn((long) TEST_TIMEOUT);
386 TEST_TIMEOUT);
390 TEST_TIMEOUT);
396 TEST_TIMEOUT);
400 TEST_TIMEOUT);
DMissedCallNotifierImplTest.java158 private static final int TEST_TIMEOUT = 1000; field in MissedCallNotifierImplTest
559 waitForHandlerAction(h, TEST_TIMEOUT); in testLoadOneCallFromDb()
570 waitForHandlerAction(h, TEST_TIMEOUT); in testLoadOneCallFromDb()
576 verify(mockCallerInfoLookupHelper, timeout(TEST_TIMEOUT)).startLookup(eq(escapedHandle), in testLoadOneCallFromDb()
629 waitForHandlerAction(h, TEST_TIMEOUT); in testLoadTwoCallsFromDb()
638 verify(mockCallerInfoLookupHelper, timeout(TEST_TIMEOUT)).startLookup(eq(escapedTelHandle), in testLoadTwoCallsFromDb()
640 verify(mockCallerInfoLookupHelper, timeout(TEST_TIMEOUT)).startLookup(eq(escapedSipHandle), in testLoadTwoCallsFromDb()
DBluetoothRouteTransitionTests.java258 private static final int TEST_TIMEOUT = 1000; field in BluetoothRouteTransitionTests
338 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testTransitions() local
339 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testTransitions() local
340 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testTransitions() local
426 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in setupStateMachine() local
DCallAudioModeTransitionTests.java104 private static final int TEST_TIMEOUT = 1000; field in CallAudioModeTransitionTests
140 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in modeTransitionTest() local
152 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in modeTransitionTest() local
157 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in modeTransitionTest() local
DVideoCallTests.java267 waitForHandlerAction(camsm.getHandler(), TEST_TIMEOUT); in verifyAudioRoute() local
282 waitForHandlerAction(cara.getAdapterHandler(), TEST_TIMEOUT); in verifyAudioRoute() local
DCallsManagerTest.java174 private static final int TEST_TIMEOUT = 5000; // milliseconds field in CallsManagerTest
1761 verify(service, timeout(TEST_TIMEOUT)).createConnectionFailed(any()); in testBlockNonEmergencyCallDuringEmergencyCall()
1762 Call result = callFuture.get(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testBlockNonEmergencyCallDuringEmergencyCall()
2237 int newCapabilities = capabilitiesQueue.poll(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testPhoneAccountVideoAvailability()
2242 newCapabilities = capabilitiesQueue.poll(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testPhoneAccountVideoAvailability()
2272 Integer result = capabilitiesQueue.poll(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testExternalCallCapabilitiesUpdated()
2277 result = capabilitiesQueue.poll(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testExternalCallCapabilitiesUpdated()
2566 assertTrue(streamingStarted.await(TEST_TIMEOUT, TimeUnit.MILLISECONDS)); in testCallStreamingStateChanged()
2570 assertTrue(streamingStopped.await(TEST_TIMEOUT, TimeUnit.MILLISECONDS)); in testCallStreamingStateChanged()
2679 Call result = callFuture.get(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testAbortOutgoingCallNoPhoneAccountsNotifyListeners()
[all …]
DCallAudioManagerTest.java19 import static com.android.server.telecom.tests.TelecomSystemTest.TEST_TIMEOUT;
436 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT);
574 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT);
830 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT);
860 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT);
DInCallControllerTests.java21 import static com.android.server.telecom.tests.TelecomSystemTest.TEST_TIMEOUT;
587 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in testBindToService_SystemDialer_Emergency()
1834 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in testGetUserFromCall_TargetPhoneAccountNotSet()
1858 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in testGetUserFromCall_IncomingCall()
1895 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in testRemoveAllServiceConnections_MultiUser()
1906 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in testRemoveAllServiceConnections_MultiUser()
1912 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in testRemoveAllServiceConnections_MultiUser()
DConnectionServiceFixture.java742 mExtrasLock.await(TelecomSystemTest.TEST_TIMEOUT, TimeUnit.MILLISECONDS); in waitForExtras()
754 lock.await(TelecomSystemTest.TEST_TIMEOUT, TimeUnit.MILLISECONDS); in waitForHandlerToClear()
DCallLogManagerTest.java19 import static com.android.server.telecom.tests.TelecomSystemTest.TEST_TIMEOUT;
1003 waitForHandlerAction(handler, TEST_TIMEOUT); in testCountryIso_newCountryDetected()
1010 waitForHandlerAction(handler, TEST_TIMEOUT); in testCountryIso_newCountryDetected()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DTrackRecordTest.kt49 const val TEST_TIMEOUT = 200L // ms in <lambda>() constant
228 assertEquals(31, record.poll(TEST_TIMEOUT, 0)) in <lambda>()
230 assertTrue(delay in SHORT_TIMEOUT..TEST_TIMEOUT) in <lambda>()
232 delay = measureTimeMillis { assertEquals(31, record.poll(TEST_TIMEOUT, 0)) } in <lambda>()
233 assertTrue(delay < TEST_TIMEOUT, "Delay $delay > $TEST_TIMEOUT") in <lambda>()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DCoroutines.kt37 val TEST_TIMEOUT: Duration constant
45 get() = TEST_TIMEOUT.dividedBy(2)
DSafetyCenterFlags.kt37 import com.android.safetycenter.testing.Coroutines.TEST_TIMEOUT in <lambda>()
121 defaultValue = getAllRefreshTimeoutsMap(TEST_TIMEOUT), in <lambda>()

12