/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | PhoneAccountRegistrarTest.java | 130 mComponentContextFixture.setTelecomManager(mTelecomManager); in setUp() 131 mComponentContextFixture.setSubscriptionManager(mSubscriptionManager); in setUp() 133 mComponentContextFixture.getTestDouble().getApplicationContext().getFilesDir(), in setUp() 141 mComponentContextFixture.getTestDouble().getApplicationContext(), mLock, FILE_NAME, in setUp() 153 mComponentContextFixture.getTestDouble().getApplicationContext().getFilesDir(), in tearDown() 436 mComponentContextFixture.addConnectionService(makeQuickConnectionServiceComponentName(), in testAccounts() 483 mComponentContextFixture.addConnectionService(componentName, in testCannotResolveServiceUnregistersAccounts() 491 mComponentContextFixture.removeConnectionService(componentName, in testCannotResolveServiceUnregistersAccounts() 514 mComponentContextFixture.addConnectionService( in testConnectionServiceAndTransactionalAccount() 534 mComponentContextFixture.addConnectionService(makeQuickConnectionServiceComponentName(), in testDefaultOutgoing() [all …]
|
D | TelecomTestCase.java | 43 ComponentContextFixture mComponentContextFixture; field in TelecomTestCase 52 mComponentContextFixture = new ComponentContextFixture(mFeatureFlags); in setUp() 53 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp() 54 Log.setSessionContext(mComponentContextFixture.getTestDouble().getApplicationContext()); in setUp() 59 mComponentContextFixture = null; in tearDown()
|
D | PhoneStateBroadcasterTest.java | 74 when(mComponentContextFixture.getTelephonyManager().isEmergencyNumber(anyString())) in testNotifyOutgoingEmergencyCallWithNoTelephonyCalling() 85 verify(mComponentContextFixture.getTelephonyRegistryManager(), never()) in testNotifyOutgoingEmergencyCallWithNoTelephonyCalling() 104 when(mComponentContextFixture.getTelephonyManager().getEmergencyNumberList()) in testNotifyOutgoingEmergencyCallWithNoTelephonySubscription() 106 when(mComponentContextFixture.getTelephonyManager().getSubscriptionId(any( in testNotifyOutgoingEmergencyCallWithNoTelephonySubscription() 120 verify(mComponentContextFixture.getTelephonyRegistryManager()) in testNotifyOutgoingEmergencyCallWithNoTelephonySubscription()
|
D | TelecomSystemTest.java | 377 mSpyContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp() 389 doReturn(false).when(mComponentContextFixture.getTelephonyManager()) in setUp() 391 doReturn(false).when(mComponentContextFixture.getTelephonyManager()) in setUp() 485 new File(mComponentContextFixture.getTestDouble() in setupTelecomSystem() 522 mComponentContextFixture.getTestDouble(), in setupTelecomSystem() 590 mComponentContextFixture.setTelecomManager(new TelecomManager( in setupTelecomSystem() 591 mComponentContextFixture.getTestDouble(), in setupTelecomSystem() 595 eq(mComponentContextFixture.getTestDouble().getApplicationContext()), in setupTelecomSystem() 599 eq(mComponentContextFixture.getTestDouble().getApplicationContext()), in setupTelecomSystem() 602 eq(mComponentContextFixture.getTestDouble().getApplicationContext()), in setupTelecomSystem() [all …]
|
D | BlockedNumbersUtilTests.java | 53 NotificationManager mgr = mComponentContextFixture.getNotificationManager(); in testPostNotification() 62 NotificationManager mgr = mComponentContextFixture.getNotificationManager(); in testDismissNotification() 73 when(mComponentContextFixture.getTelephonyManager().isEmergencyNumber(anyString())) in testBlockedNumbersActivityEmergencyCheckWithNoTelephony()
|
D | NewOutgoingCallIntentBroadcasterTest.java | 241 doReturn(true).when(mComponentContextFixture.getTelephonyManager()) in testEmergencyCallWithNonDefaultDialer() 247 mComponentContextFixture.putResource(com.android.internal.R.string.config_defaultDialer, in testEmergencyCallWithNonDefaultDialer() 249 mComponentContextFixture.putResource(R.string.dialer_default_class, in testEmergencyCallWithNonDefaultDialer() 279 mComponentContextFixture.putResource(com.android.internal.R.string.config_defaultDialer, in testDangerousMmiCodeWithNonDefaultDialer() 281 mComponentContextFixture.putResource(R.string.dialer_default_class, in testDangerousMmiCodeWithNonDefaultDialer() 311 mComponentContextFixture.putResource(com.android.internal.R.string.config_defaultDialer, in testNonDangerousMmiCodeWithNonDefaultDialer() 313 mComponentContextFixture.putResource(R.string.dialer_default_class, in testNonDangerousMmiCodeWithNonDefaultDialer() 364 doReturn(false).when(mComponentContextFixture.getTelephonyManager()) in testActionEmergencyWithNonEmergencyNumber() 378 doReturn(true).when(mComponentContextFixture.getTelephonyManager()) in emergencyCallTestHelper() 500 doReturn(true).when(mComponentContextFixture.getTelephonyManager()) [all …]
|
D | MissedCallNotifierImplTest.java | 182 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp() 191 mComponentContextFixture.putResource(R.string.notification_missedCallTitle, in setUp() 193 mComponentContextFixture.putResource(R.string.notification_missedCallsTitle, in setUp() 195 mComponentContextFixture.putResource(R.string.notification_missedCallsMsg, in setUp() 197 mComponentContextFixture.putResource(R.string.userCallActivityLabel, in setUp() 199 mComponentContextFixture.setTelecomManager(mTelecomManager); in setUp() 278 mComponentContextFixture.addIntentReceiver( in setupMissedCallNotificationThroughDefaultDialer() 709 when(mComponentContextFixture.getTelephonyManager().getNetworkCountryIso()) in testGetCountryIsoWithNoTelephony() 766 mComponentContextFixture.addIntentReceiver( in enableDialerHandlesMissedCall()
|
D | CallsManagerTest.java | 355 mComponentContextFixture.getTestDouble().getApplicationContext(), in setUp() 421 mComponentContextFixture.addConnectionService( in setUp() 428 mComponentContextFixture.removeConnectionService( in tearDown() 1464 doReturn(true).when(mComponentContextFixture.getTelephonyManager()).isInEmergencySmsMode(); in testFilteringWhenEmergencySmsCheckFails() 1471 mComponentContextFixture.getTelephonyManager()).isInEmergencySmsMode(); in testFilteringWhenEmergencySmsCheckFails() 1480 mComponentContextFixture.getTelephonyManager()) in testDsdaAvailableCheckWhenNoTelephony() 1509 when(mComponentContextFixture.getTelephonyManager().isInEmergencySmsMode()) in testNoFilteringOfEmergencySmsModeCalls() 1699 when(mComponentContextFixture.getTelephonyManager().isEmergencyNumber(any())) in testIsInEmergencyCallLocal() 1714 when(mComponentContextFixture.getTelephonyManager().isEmergencyNumber(any())) in testIsInEmergencyCallLocalDisconnected() 1771 when(mComponentContextFixture.getTelephonyManager().isEmergencyNumber(any())) in testHasEmergencyCallIncomingCallPermitted() [all …]
|
D | DisconnectedCallNotifierTest.java | 59 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp() 157 when(mComponentContextFixture.getTelephonyManager().getNetworkCountryIso()) in testGetCountryIsoWithNoTelephony()
|
D | TelephonyUtilTest.java | 53 when(mComponentContextFixture.getTelephonyManager().isEmergencyNumber(anyString())) in testShouldProcessAsEmergencyWithNoTelephonyCalling()
|
D | SystemStateHelperTest.java | 90 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp() 100 mComponentContextFixture.putFloatResource( in setUp() 102 mComponentContextFixture.putFloatResource( in setUp()
|
D | ConnectionServiceWrapperTest.java | 67 when(mComponentContextFixture.getTelephonyManager().getLastKnownCellIdentity()) in testGetLastKnownCellIdWhenNoTelephony()
|
D | DtmfLocalTonePlayerTest.java | 51 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
|
D | BasicCallTests.java | 184 TelecomManager telecomManager = (TelecomManager) mComponentContextFixture.getTestDouble() in testTelecomManagerAcceptRingingCall() 215 TelecomManager telecomManager = (TelecomManager) mComponentContextFixture.getTestDouble() in testTelecomManagerAcceptRingingVideoCall() 243 TelecomManager telecomManager = (TelecomManager) mComponentContextFixture.getTestDouble() in testTelecomManagerAcceptRingingVideoCallAsAudio() 275 TelecomManager telecomManager = (TelecomManager) mComponentContextFixture.getTestDouble() in testTelecomManagerAcceptRingingInvalidVideoState() 672 AudioManager audioManager = (AudioManager) mComponentContextFixture.getTestDouble() in testAudioManagerOperations()
|
D | RingerTest.java | 137 mContext = spy(mComponentContextFixture.getTestDouble().getApplicationContext()); in setUp() 847 mComponentContextFixture.putRawResource( in mockVibrationResourceValues() 850 mComponentContextFixture.putBooleanResource( in mockVibrationResourceValues()
|
D | CallLogManagerTest.java | 147 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp() 239 mComponentContextFixture.addContextForUser(UserHandle.of(userId), mockContext); in configureContextForUser() 304 (CarrierConfigManager) mComponentContextFixture.getTestDouble() in testDontLogUnloggableNumbers() 354 (CarrierConfigManager) mComponentContextFixture.getTestDouble() in testDontLogCallsFromEmergencyAccount()
|
D | ParcelableCallUtilsTest.java | 64 when(mComponentContextFixture.getTelephonyManager().isEmergencyNumber(any())) in setUp()
|
D | IncomingCallNotifierTest.java | 64 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
|
D | EmergencyCallHelperTest.java | 75 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
|
D | CallIntentProcessorTest.java | 93 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
|
D | CallRecordingTonePlayerTest.java | 101 mComponentContextFixture.getTestDouble().getApplicationContext(), in setUp()
|
D | DefaultDialerCacheTest.java | 72 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
|
D | CallRedirectionProcessorTest.java | 393 when(mComponentContextFixture.getTelephonyManager().getNetworkCountryIso()) in testFormatNumberToE164WhenNoTelephony()
|
D | VideoProviderTest.java | 99 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
|
D | CreateConnectionProcessorTest.java | 117 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp() 901 when(mComponentContextFixture.getTelephonyManager(). in testTelephonyAdapterWhenNoTelephony()
|