/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | VideoProviderTest.java | 159 mVerificationLock.await(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testCameraChange() 166 verify(mVideoCallCallback, timeout(TEST_TIMEOUT).times(2)) in testCameraChange() 197 mVerificationLock.await(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testCameraChangePermissionFail() 201 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)).onCallSessionEvent( in testCameraChangePermissionFail() 226 mVerificationLock.await(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testCameraChangeAppOpsFail() 230 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)).onCallSessionEvent( in testCameraChangeAppOpsFail() 257 mVerificationLock.await(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testCameraChangeAppOpsBelowNMR1Fail() 261 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)).onCallSessionEvent( in testCameraChangeAppOpsBelowNMR1Fail() 285 mVerificationLock.await(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testCameraChangeUserFail() 289 verify(mVideoCallCallback, timeout(TEST_TIMEOUT)).onCallSessionEvent( in testCameraChangeUserFail() [all …]
|
D | BasicCallTests.java | 164 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingCall() 193 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingVideoCall() 221 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingVideoCallAsAudio() 250 verify(mConnectionServiceFixtureA.getTestDouble(), timeout(TEST_TIMEOUT)) in testTelecomManagerAcceptRingingInvalidVideoState() 308 TEST_TIMEOUT); in testIncomingEmergencyCallback() local 336 TEST_TIMEOUT); in testOutgoingCallAndSelectPhoneAccount() local 344 TEST_TIMEOUT); in testOutgoingCallAndSelectPhoneAccount() local 346 TEST_TIMEOUT); in testOutgoingCallAndSelectPhoneAccount() local 373 TEST_TIMEOUT); in testIncomingCallFromContactWithSendToVoicemailIsRejected() local 379 TEST_TIMEOUT); in testIncomingCallFromContactWithSendToVoicemailIsRejected() local [all …]
|
D | TelecomSystemTest.java | 123 static final int TEST_TIMEOUT = 1000; // milliseconds field in TelecomSystemTest 374 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in setUp() 386 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in tearDown() 387 waitForHandlerAction(mHandlerThread.getThreadHandler(), TEST_TIMEOUT); in tearDown() local 397 waitForHandlerAction(mConnectionServiceFocusManager.getHandler(), TEST_TIMEOUT); in tearDown() local 423 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in makeConferenceCall() 469 .thenReturn(TEST_TIMEOUT / 5L); in setupTelecomSystem() 675 verify(connectionServiceFixture.getTestDouble(), timeout(TEST_TIMEOUT)) in startOutgoingPhoneCall() 692 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in triggerEmergencyRedial() 760 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in startOutgoingPhoneCallWaitForBroadcaster() [all …]
|
D | CallAudioRouteStateMachineTest.java | 92 private static final int TEST_TIMEOUT = 500; field in CallAudioRouteStateMachineTest 186 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testSpeakerPersistence() local 187 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testSpeakerPersistence() local 193 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testSpeakerPersistence() local 229 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOff() local 237 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOff() local 277 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOffAndOnAgain() local 296 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOffAndOnAgain() local 298 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOffAndOnAgain() local 308 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOffAndOnAgain() local [all …]
|
D | BluetoothRouteManagerTest.java | 57 private static final int TEST_TIMEOUT = 1000; field in BluetoothRouteManagerTest 93 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected() local 94 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected() local 95 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected() local 96 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected() local 151 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileConnectedToAnotherDevice() local 152 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileConnectedToAnotherDevice() local 153 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileConnectedToAnotherDevice() local 154 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileConnectedToAnotherDevice() local 170 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in setupStateMachine() local [all …]
|
D | CallAudioModeStateMachineTest.java | 47 private static final int TEST_TIMEOUT = 1000; field in CallAudioModeStateMachineTest 78 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoFocusWhenRingerSilenced() local 91 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoFocusWhenRingerSilenced() local 118 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoRingWhenDeviceIsAtEar() local 131 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoRingWhenDeviceIsAtEar() local 146 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testRegainFocusWhenHfpIsConnectedSilenced() local 159 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testRegainFocusWhenHfpIsConnectedSilenced() local 173 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testRegainFocusWhenHfpIsConnectedSilenced() local
|
D | IncomingCallFilterGraphTest.java | 67 private final long TEST_TIMEOUT = 7000; field in IncomingCallFilterGraphTest 121 assertEquals(PASS_CALL_RESULT, testResult.get(TEST_TIMEOUT, TimeUnit.MILLISECONDS)); in testEmptyGraph() 139 assertEquals(REJECT_CALL_RESULT, testResult.get(TEST_TIMEOUT, TimeUnit.MILLISECONDS)); in testFiltersPerformOrder() 158 assertEquals(REJECT_CALL_RESULT, testResult.get(TEST_TIMEOUT, TimeUnit.MILLISECONDS)); in testFiltersPerformInParallel() 176 assertEquals(REJECT_CALL_RESULT, testResult.get(TEST_TIMEOUT, TimeUnit.MILLISECONDS)); in testFiltersTimeout()
|
D | ContactsAsyncHelperTest.java | 65 private static final int TEST_TIMEOUT = 500; field in ContactsAsyncHelperTest 119 Thread.sleep(TEST_TIMEOUT); in testEmptyUri() 131 verify(mListener, timeout(TEST_TIMEOUT)).onImageLoadComplete(eq(TOKEN), in testNullReturnFromOpenInputStream() 145 verify(mListener, timeout(TEST_TIMEOUT)).onImageLoadComplete(eq(TOKEN), in testImageScaling() 167 verify(mListener, timeout(TEST_TIMEOUT)).onImageLoadComplete(eq(TOKEN), in testNoScaling()
|
D | CallAudioRouteTransitionTests.java | 156 private static final int TEST_TIMEOUT = 500; field in CallAudioRouteTransitionTests 286 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testActiveTransition() local 293 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testActiveTransition() local 294 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testActiveTransition() local 297 waitForHandlerAction(h, TEST_TIMEOUT); in testActiveTransition() 378 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testQuiescentTransition() local 379 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testQuiescentTransition() local 837 verify(mockCallsManager, timeout(TEST_TIMEOUT).atLeastOnce()).onCallAudioStateChanged( in verifyNewSystemCallAudioState() 839 verify(mockConnectionServiceWrapper, timeout(TEST_TIMEOUT).atLeastOnce()) in verifyNewSystemCallAudioState()
|
D | MissedCallNotifierImplTest.java | 145 private static final int TEST_TIMEOUT = 1000; field in MissedCallNotifierImplTest 471 waitForHandlerAction(h, TEST_TIMEOUT); in testLoadOneCallFromDb() 482 waitForHandlerAction(h, TEST_TIMEOUT); in testLoadOneCallFromDb() 488 verify(mockCallerInfoLookupHelper, timeout(TEST_TIMEOUT)).startLookup(eq(escapedHandle), in testLoadOneCallFromDb() 540 waitForHandlerAction(h, TEST_TIMEOUT); in testLoadTwoCallsFromDb() 549 verify(mockCallerInfoLookupHelper, timeout(TEST_TIMEOUT)).startLookup(eq(escapedTelHandle), in testLoadTwoCallsFromDb() 551 verify(mockCallerInfoLookupHelper, timeout(TEST_TIMEOUT)).startLookup(eq(escapedSipHandle), in testLoadTwoCallsFromDb()
|
D | CallRecordingTonePlayerTest.java | 19 import static com.android.server.telecom.tests.TelecomSystemTest.TEST_TIMEOUT; 222 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in testIsRecordingLater() 247 waitForHandlerAction(new Handler(Looper.getMainLooper()), TEST_TIMEOUT); in testNotRecordingApp()
|
D | BluetoothRouteTransitionTests.java | 235 private static final int TEST_TIMEOUT = 1000; field in BluetoothRouteTransitionTests 300 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testTransitions() local 301 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testTransitions() local 302 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testTransitions() local 372 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in setupStateMachine() local
|
D | CallAudioModeTransitionTests.java | 101 private static final int TEST_TIMEOUT = 1000; field in CallAudioModeTransitionTests 136 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in modeTransitionTest() local 147 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in modeTransitionTest() local 152 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in modeTransitionTest() local
|
D | AnalyticsTests.java | 372 TEST_TIMEOUT); 376 TEST_TIMEOUT); 382 TEST_TIMEOUT); 386 TEST_TIMEOUT);
|
D | VideoCallTests.java | 265 waitForHandlerAction(camsm.getHandler(), TEST_TIMEOUT); in verifyAudioRoute() local 280 waitForHandlerAction(carsm.getHandler(), TEST_TIMEOUT); in verifyAudioRoute() local
|
D | CallsManagerTest.java | 123 private static final int TEST_TIMEOUT = 5000; // milliseconds field in CallsManagerTest 1235 int newCapabilities = capabilitiesQueue.poll(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testPhoneAccountVideoAvailability() 1240 newCapabilities = capabilitiesQueue.poll(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testPhoneAccountVideoAvailability() 1270 Integer result = capabilitiesQueue.poll(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testExternalCallCapabilitiesUpdated() 1275 result = capabilitiesQueue.poll(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in testExternalCallCapabilitiesUpdated()
|
D | ConnectionServiceFixture.java | 695 mExtrasLock.await(TelecomSystemTest.TEST_TIMEOUT, TimeUnit.MILLISECONDS); in waitForExtras() 707 lock.await(TelecomSystemTest.TEST_TIMEOUT, TimeUnit.MILLISECONDS); in waitForHandlerToClear()
|
D | CallRedirectionProcessorTest.java | 149 waitForHandlerAction(new Handler(Looper.getMainLooper()), TelecomSystemTest.TEST_TIMEOUT); in tearDown()
|
D | InCallControllerTests.java | 398 waitForHandlerAction(new Handler(Looper.getMainLooper()), TelecomSystemTest.TEST_TIMEOUT); in testBindToService_SystemDialer_Emergency()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/net/module/util/ |
D | TrackRecordTest.kt | 47 const val TEST_TIMEOUT = 200L // ms in <lambda>() constant 199 assertEquals(31, record.poll(TEST_TIMEOUT, 0)) in <lambda>() 201 assertTrue(delay in SHORT_TIMEOUT..TEST_TIMEOUT) in <lambda>() 203 delay = measureTimeMillis { assertEquals(31, record.poll(TEST_TIMEOUT, 0)) } in <lambda>() 204 assertTrue(delay < TEST_TIMEOUT, "Delay $delay > $TEST_TIMEOUT") in <lambda>()
|