Home
last modified time | relevance | path

Searched refs:mTelecomManager (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/telecom/
DProjectionCallHandlerTest.java76 private TelecomManager mTelecomManager; field in ProjectionCallHandlerTest
84 mTelecomManager = spy(mContext.getSystemService(TelecomManager.class)); in setUp()
87 when(mTelecomManager.isInEmergencyCall()).thenReturn(false); in setUp()
89 mTelecomManager.registerPhoneAccount(mHfpAccount); in setUp()
90 mTelecomManager.registerPhoneAccount(mNonHfpAccount); in setUp()
91 mTelecomManager.registerPhoneAccount(mAccountWithNoAddress); in setUp()
93 mProjectionCallHandler = new ProjectionCallHandler(mTelecomManager, mCarProjectionManager); in setUp()
232 when(mTelecomManager.isInEmergencyCall()).thenReturn(true); in emergencyCall_isNotSuppressed()
254 mTelecomManager.unregisterPhoneAccount(mHfpAccount.getAccountHandle()); in call_fromAccount_withInvalidPhoneAccountHandle_isNotSuppressed()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/
DHfpClientDeviceBlock.java47 private final TelecomManager mTelecomManager; field in HfpClientDeviceBlock
60 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in HfpClientDeviceBlock()
63 mTelecomManager.registerPhoneAccount(mPhoneAccount); in HfpClientDeviceBlock()
64 mTelecomManager.enablePhoneAccount(mPhoneAccount.getAccountHandle(), true); in HfpClientDeviceBlock()
65 mTelecomManager.setUserSelectedOutgoingPhoneAccount(mPhoneAccount.getAccountHandle()); in HfpClientDeviceBlock()
142 mTelecomManager.unregisterPhoneAccount(mPhoneAccount.getAccountHandle()); in cleanup()
182 mTelecomManager.addNewUnknownCall(mPhoneAccount.getAccountHandle(), b); in handleCall()
188 mTelecomManager.addNewIncomingCall(mPhoneAccount.getAccountHandle(), b); in handleCall()
DHfpClientConnectionService.java57 private TelecomManager mTelecomManager; field in HfpClientConnectionService
124 mTelecomManager = (TelecomManager) getSystemService(Context.TELECOM_SERVICE); in onCreate()
125 if (mTelecomManager != null) mTelecomManager.clearPhoneAccounts(); in onCreate()
260 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); in getDevice()
318 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); in findBlockForHandle()
/packages/services/Telecomm/src/com/android/server/telecom/settings/
DEnableAccountPreferenceFragment.java62 mTelecomManager.enablePhoneAccount(mAccount.getAccountHandle(), isChecked()); in onClick()
66 private TelecomManager mTelecomManager; field in EnableAccountPreferenceFragment
71 mTelecomManager = TelecomManager.from(getActivity()); in onCreate()
88 mTelecomManager.getCallCapablePhoneAccounts(true /* includeDisabledAccounts */); in onResume()
92 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); in onResume()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java82 @Mock TelecomManager mTelecomManager; field in CarInputServiceTest
96 mTelecomManager, mAssistUtils, mDefaultMainListener, mLastCallSupplier, in setUp()
288 when(mTelecomManager.isRinging()).thenReturn(true); in callKey_shortPress_withoutEventHandler_whenCallRinging_answersCall()
293 verify(mTelecomManager).acceptRingingCall(); in callKey_shortPress_withoutEventHandler_whenCallRinging_answersCall()
309 verify(mTelecomManager, never()).acceptRingingCall(); in callKey_shortPress_withEventHandler_triggersEventHandler()
318 when(mTelecomManager.isRinging()).thenReturn(true); in callKey_shortPress_withEventHandler_whenCallRinging_answersCall()
323 verify(mTelecomManager).acceptRingingCall(); in callKey_shortPress_withEventHandler_whenCallRinging_answersCall()
361 when(mTelecomManager.isRinging()).thenReturn(true); in callKey_longPress_withoutEventHandler_whenCallRinging_answersCall()
366 verify(mTelecomManager).acceptRingingCall(); in callKey_longPress_withoutEventHandler_whenCallRinging_answersCall()
392 when(mTelecomManager.isRinging()).thenReturn(true); in callKey_longPress_withEventHandler_whenCallRinging_answersCall()
[all …]
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java76 private TelecomManager mTelecomManager; field in PhoneAccountSettingsFragment
105 mTelecomManager = TelecomManager.from(getActivity()); in onCreate()
239 mTelecomManager.setUserSelectedOutgoingPhoneAccount(account); in onAccountSelected()
282 mTelecomManager, in updateDefaultOutgoingAccountsModel()
284 mTelecomManager.getUserSelectedOutgoingPhoneAccount(), in updateDefaultOutgoingAccountsModel()
304 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); in initAccountList()
448 mTelecomManager.getCallCapablePhoneAccounts(includeDisabledAccounts); in getCallingAccounts()
457 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); in getCallingAccounts()
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
DUiCallManager.java65 private TelecomManager mTelecomManager; field in UiCallManager
109 mTelecomManager = (TelecomManager) context.getSystemService(Context.TELECOM_SERVICE); in UiCallManager()
216 mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in isBluetoothCall()
283 mTelecomManager.placeCall(uri, null); in placeCall()
328 mTelecomManager.getCallCapablePhoneAccounts(); in isEmergencyCallSupported()
330 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(phoneAccountHandle); in isEmergencyCallSupported()
DProjectionCallHandler.java49 private final TelecomManager mTelecomManager; field in ProjectionCallHandler
62 mTelecomManager = telecomManager; in ProjectionCallHandler()
90 if (mTelecomManager.isInEmergencyCall()) { in onTelecomCallAdded()
117 PhoneAccount account = mTelecomManager.getPhoneAccount(accountHandle); in getHfpBluetoothAddressForCall()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallScreeningServiceFilterTest.java86 @Mock private TelecomManager mTelecomManager; field in CallScreeningServiceFilterTest
254 when(TelecomManager.from(mContext)).thenReturn(mTelecomManager); in testDisallowCallForCarrierDefined()
255 when(mTelecomManager.getDefaultDialerPackage()).thenReturn(DEFAULT_DIALER_PACKAGE); in testDisallowCallForCarrierDefined()
287 when(TelecomManager.from(mContext)).thenReturn(mTelecomManager); in testDisallowCallForDefaultDialer()
288 when(mTelecomManager.getDefaultDialerPackage()).thenReturn(DEFAULT_DIALER_PACKAGE); in testDisallowCallForDefaultDialer()
320 when(TelecomManager.from(mContext)).thenReturn(mTelecomManager); in testDisallowCallForUserChosen()
321 when(mTelecomManager.getDefaultDialerPackage()).thenReturn(DEFAULT_DIALER_PACKAGE); in testDisallowCallForUserChosen()
DCallScreeningServiceControllerTest.java78 @Mock private TelecomManager mTelecomManager; field in CallScreeningServiceControllerTest
144 when(TelecomManager.from(mContext)).thenReturn(mTelecomManager); in setUp()
145 when(mTelecomManager.getDefaultDialerPackage()).thenReturn(DEFAULT_DIALER_PACKAGE); in setUp()
DComponentContextFixture.java190 return mTelecomManager; in getSystemService()
462 private TelecomManager mTelecomManager = mock(TelecomManager.class);
581 mTelecomManager = telecomManager;
DTelecomServiceImplTest.java160 @Mock private TelecomManager mTelecomManager; field in TelecomServiceImplTest
219 mComponentContextFixture.setTelecomManager(mTelecomManager); in setUp()
220 when(mTelecomManager.getDefaultDialerPackage()).thenReturn(DEFAULT_DIALER_PACKAGE); in setUp()
221 when(mTelecomManager.getSystemDialerPackage()).thenReturn(DEFAULT_DIALER_PACKAGE); in setUp()
DMissedCallNotifierImplTest.java154 private TelecomManager mTelecomManager; field in MissedCallNotifierImplTest
182 mComponentContextFixture.setTelecomManager(mTelecomManager); in setUp()
DPhoneAccountRegistrarTest.java84 @Mock private TelecomManager mTelecomManager; field in PhoneAccountRegistrarTest
93 mComponentContextFixture.setTelecomManager(mTelecomManager); in setUp()
/packages/services/Telephony/src/com/android/services/telephony/
DTelecomAccountRegistry.java181 mTelecomManager.registerPhoneAccount(newAccount); in reRegisterPstnPhoneAccount()
191 mTelecomManager.registerPhoneAccount(account); in registerPstnPhoneAccount()
853 private final TelecomManager mTelecomManager; field in TelecomAccountRegistry
868 mTelecomManager = TelecomManager.from(context); in TelecomAccountRegistry()
1134 ? mTelecomManager.getAllPhoneAccountHandles() in cleanupPhoneAccounts()
1135 : mTelecomManager.getCallCapablePhoneAccounts(true /* includeDisabled */); in cleanupPhoneAccounts()
1141 mTelecomManager.unregisterPhoneAccount(handle); in cleanupPhoneAccounts()
1208 mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in setupAccounts()
1223 mTelecomManager.setUserSelectedOutgoingPhoneAccount(upgradedPhoneAccount); in setupAccounts()
/packages/services/Car/service/src/com/android/car/
DCarInputService.java146 private final TelecomManager mTelecomManager; field in CarInputService
289 mTelecomManager = telecomManager; in CarInputService()
523 if (mTelecomManager != null && mTelecomManager.isRinging()) { in acceptCallIfRinging()
525 mTelecomManager.acceptRingingCall(); in acceptCallIfRinging()
/packages/apps/Contacts/src/com/android/contacts/widget/
DSelectPhoneAccountDialogFragment.java65 private TelecomManager mTelecomManager; field in SelectPhoneAccountDialogFragment
160 mTelecomManager = in onCreateDialog()
247 PhoneAccount account = mTelecomManager.getPhoneAccount(accountHandle); in getView()
/packages/services/Telephony/src/com/android/phone/
DCallFeaturesSetting.java101 private TelecomManager mTelecomManager; field in CallFeaturesSetting
216 mTelecomManager = TelecomManager.from(this); in onCreate()
244 mTelecomManager.getCallState() == TelephonyManager.CALL_STATE_IDLE;
413 final PhoneAccountHandle simCallManager = mTelecomManager.getSimCallManagerForSubscription( in updateVtWfc()
DNotificationMgr.java115 private TelecomManager mTelecomManager; field in NotificationMgr
161 mTelecomManager = TelecomManager.from(mContext); in NotificationMgr()
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DMyMockContext.java50 TelecomManager mTelecomManager; field in MyMockContext
87 return mTelecomManager; in getSystemService()
DBlockedNumberProviderTest.java508 when(mMockContext.mTelecomManager.getDefaultDialerPackage()) in testDefaultDialerCanAccessApis()
516 verify(mMockContext.mTelecomManager, times(2)).getDefaultDialerPackage(); in testDefaultDialerCanAccessApis()