Home
last modified time | relevance | path

Searched refs:mComponentContextFixture (Results 1 – 25 of 30) sorted by relevance

12

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java130 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 …]
DTelecomTestCase.java43 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()
DPhoneStateBroadcasterTest.java74 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()
DTelecomSystemTest.java377 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 …]
DBlockedNumbersUtilTests.java53 NotificationManager mgr = mComponentContextFixture.getNotificationManager(); in testPostNotification()
62 NotificationManager mgr = mComponentContextFixture.getNotificationManager(); in testDismissNotification()
73 when(mComponentContextFixture.getTelephonyManager().isEmergencyNumber(anyString())) in testBlockedNumbersActivityEmergencyCheckWithNoTelephony()
DNewOutgoingCallIntentBroadcasterTest.java241 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 …]
DMissedCallNotifierImplTest.java182 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()
DCallsManagerTest.java355 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 …]
DDisconnectedCallNotifierTest.java59 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
157 when(mComponentContextFixture.getTelephonyManager().getNetworkCountryIso()) in testGetCountryIsoWithNoTelephony()
DTelephonyUtilTest.java53 when(mComponentContextFixture.getTelephonyManager().isEmergencyNumber(anyString())) in testShouldProcessAsEmergencyWithNoTelephonyCalling()
DSystemStateHelperTest.java90 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
100 mComponentContextFixture.putFloatResource( in setUp()
102 mComponentContextFixture.putFloatResource( in setUp()
DConnectionServiceWrapperTest.java67 when(mComponentContextFixture.getTelephonyManager().getLastKnownCellIdentity()) in testGetLastKnownCellIdWhenNoTelephony()
DDtmfLocalTonePlayerTest.java51 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
DBasicCallTests.java184 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()
DRingerTest.java137 mContext = spy(mComponentContextFixture.getTestDouble().getApplicationContext()); in setUp()
847 mComponentContextFixture.putRawResource( in mockVibrationResourceValues()
850 mComponentContextFixture.putBooleanResource( in mockVibrationResourceValues()
DCallLogManagerTest.java147 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()
DParcelableCallUtilsTest.java64 when(mComponentContextFixture.getTelephonyManager().isEmergencyNumber(any())) in setUp()
DIncomingCallNotifierTest.java64 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
DEmergencyCallHelperTest.java75 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
DCallIntentProcessorTest.java93 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
DCallRecordingTonePlayerTest.java101 mComponentContextFixture.getTestDouble().getApplicationContext(), in setUp()
DDefaultDialerCacheTest.java72 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
DCallRedirectionProcessorTest.java393 when(mComponentContextFixture.getTelephonyManager().getNetworkCountryIso()) in testFormatNumberToE164WhenNoTelephony()
DVideoProviderTest.java99 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
DCreateConnectionProcessorTest.java117 mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); in setUp()
901 when(mComponentContextFixture.getTelephonyManager(). in testTelephonyAdapterWhenNoTelephony()

12