/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallAudioRouteControllerTest.java | 122 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 …]
|
D | VideoProviderTest.java | 156 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 …]
|
D | CallAudioModeStateMachineTest.java | 57 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 …]
|
D | BasicCallTests.java | 189 .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 …]
|
D | CallAudioRouteStateMachineTest.java | 106 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 …]
|
D | InCallTonePlayerTest.java | 61 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 …]
|
D | TelecomSystemTest.java | 129 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 …]
|
D | BluetoothRouteManagerTest.java | 64 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 …]
|
D | IncomingCallFilterGraphTest.java | 68 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()
|
D | ContactsAsyncHelperTest.java | 63 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()
|
D | CallAudioRouteTransitionTests.java | 162 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()
|
D | CallRecordingTonePlayerTest.java | 19 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()
|
D | AnalyticsTests.java | 192 .thenReturn((long) TEST_TIMEOUT); 386 TEST_TIMEOUT); 390 TEST_TIMEOUT); 396 TEST_TIMEOUT); 400 TEST_TIMEOUT);
|
D | MissedCallNotifierImplTest.java | 158 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()
|
D | BluetoothRouteTransitionTests.java | 258 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
|
D | CallAudioModeTransitionTests.java | 104 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
|
D | VideoCallTests.java | 267 waitForHandlerAction(camsm.getHandler(), TEST_TIMEOUT); in verifyAudioRoute() local 282 waitForHandlerAction(cara.getAdapterHandler(), TEST_TIMEOUT); in verifyAudioRoute() local
|
D | CallsManagerTest.java | 174 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 …]
|
D | CallAudioManagerTest.java | 19 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);
|
D | InCallControllerTests.java | 21 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()
|
D | ConnectionServiceFixture.java | 742 mExtrasLock.await(TelecomSystemTest.TEST_TIMEOUT, TimeUnit.MILLISECONDS); in waitForExtras() 754 lock.await(TelecomSystemTest.TEST_TIMEOUT, TimeUnit.MILLISECONDS); in waitForHandlerToClear()
|
D | CallLogManagerTest.java | 19 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/ |
D | TrackRecordTest.kt | 49 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/ |
D | Coroutines.kt | 37 val TEST_TIMEOUT: Duration constant 45 get() = TEST_TIMEOUT.dividedBy(2)
|
D | SafetyCenterFlags.kt | 37 import com.android.safetycenter.testing.Coroutines.TEST_TIMEOUT in <lambda>() 121 defaultValue = getAllRefreshTimeoutsMap(TEST_TIMEOUT), in <lambda>()
|