Home
last modified time | relevance | path

Searched refs:mMockTelecomManager (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/connserv/
DHfpClientConnectionServiceTest.java78 @Mock private TelecomManager mMockTelecomManager; field in HfpClientConnectionServiceTest
91 doNothing().when(mMockTelecomManager).addNewIncomingCall(any(), any()); in setUp()
92 doNothing().when(mMockTelecomManager).addNewUnknownCall(any(), any()); in setUp()
119 doReturn(mMockTelecomManager) in setUp()
122 doReturn(getPhoneAccount(TEST_DEVICE)).when(mMockTelecomManager).getPhoneAccount(any()); in setUp()
328 doReturn(null).when(mMockTelecomManager).getPhoneAccount(any()); in onCreateIncomingConnection_phoneAccountIsNull_returnsNull()
359 doReturn(null).when(mMockTelecomManager).getPhoneAccount(any()); in onCreateOutgoingConnection_phoneAccountIsNull_returnsNull()
393 doReturn(null).when(mMockTelecomManager).getPhoneAccount(any()); in onCreateUnknownConnection_phoneAccountIsNull_returnsNull()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/telephony/
DCallInfoTest.java60 @Mock private TelecomManager mMockTelecomManager; field in CallInfoTest
271 when(mMockTelecomManager.getPhoneAccountsSupportingScheme(PhoneAccount.SCHEME_TEL)) in getBestPhoneAccount()
275 when(mMockTelecomManager.getPhoneAccount(testHandle)).thenReturn(fakePhoneAccount); in getBestPhoneAccount()
276 mBluetoothInCallService.mTelecomManager = mMockTelecomManager; in getBestPhoneAccount()
/packages/services/Telephony/tests/src/com/android/phone/satellite/accesscontrol/
DSatelliteAccessControllerTest.java123 private TelecomManager mMockTelecomManager; field in SatelliteAccessControllerTest
222 mMockTelecomManager); in setUp()
273 mMockFeatureFlags, mLooper, mMockLocationManager, mMockTelecomManager, in setUp()
342 when(mMockTelecomManager.isInEmergencyCall()).thenReturn(true); in testRequestIsSatelliteCommunicationAllowedForCurrentLocation()
377 when(mMockTelecomManager.isInEmergencyCall()).thenReturn(false); in testRequestIsSatelliteCommunicationAllowedForCurrentLocation()
406 when(mMockTelecomManager.isInEmergencyCall()).thenReturn(false); in testRequestIsSatelliteCommunicationAllowedForCurrentLocation()
439 when(mMockTelecomManager.isInEmergencyCall()).thenReturn(false); in testRequestIsSatelliteCommunicationAllowedForCurrentLocation()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DCarBluetoothUserServiceTest.java101 @Mock private TelecomManager mMockTelecomManager; field in CarBluetoothUserServiceTest
125 mMockContext.addMockedSystemService(TelecomManager.class, mMockTelecomManager); in setUp()
126 when(mMockTelecomManager.getUserSelectedOutgoingPhoneAccount()) in setUp()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java303 private TelecomManager mMockTelecomManager; field in ContactsActor
357 return mMockTelecomManager; in ContactsActor()
407 return mMockTelecomManager; in ContactsActor()
456 mMockTelecomManager = Mockito.mock(TelecomManager.class); in ContactsActor()
457 when(mMockTelecomManager.getDefaultDialerPackage()).thenReturn(""); in ContactsActor()
458 when(mMockTelecomManager.getSystemDialerPackage()).thenReturn(""); in ContactsActor()
/packages/services/Telephony/tests/src/com/android/
DTestContext.java60 @Mock TelecomManager mMockTelecomManager; field in TestContext
167 return mMockTelecomManager; in getSystemService()
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/
DNormalCallDomainSelectorTest.java92 @Mock private TelecomManager mMockTelecomManager; field in NormalCallDomainSelectorTest
110 doReturn(mMockTelecomManager).when(mMockContext) in setUp()
556 doReturn(TelecomManager.TTY_MODE_FULL).when(mMockTelecomManager).getCurrentTtyMode(); in testTtyCallDomainSelection()
586 doReturn(TelecomManager.TTY_MODE_OFF).when(mMockTelecomManager).getCurrentTtyMode(); in testTtyCallDomainSelection()