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()
265 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); in getDevice()
323 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); in findBlockForHandle()
/packages/services/Telecomm/src/com/android/server/telecom/settings/
DEnableAccountPreferenceFragment.java65 mTelecomManager.enablePhoneAccount(mAccount.getAccountHandle(), (boolean) newValue); in onPreferenceChange()
70 private TelecomManager mTelecomManager; field in EnableAccountPreferenceFragment
75 mTelecomManager = TelecomManager.from(getActivity()); in onCreate()
92 mTelecomManager.getCallCapablePhoneAccounts(true /* includeDisabledAccounts */); in onResume()
96 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/apps/Car/Dialer/src/com/android/car/dialer/telecom/
DUiCallManager.java62 private TelecomManager mTelecomManager; field in UiCallManager
106 mTelecomManager = (TelecomManager) context.getSystemService(Context.TELECOM_SERVICE); in UiCallManager()
213 mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in isBluetoothCall()
289 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/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java75 private TelecomManager mTelecomManager; field in PhoneAccountSettingsFragment
104 mTelecomManager = getActivity().getSystemService(TelecomManager.class); in onCreate()
238 mTelecomManager.setUserSelectedOutgoingPhoneAccount(account); in onAccountSelected()
281 mTelecomManager, in updateDefaultOutgoingAccountsModel()
283 mTelecomManager.getUserSelectedOutgoingPhoneAccount(), in updateDefaultOutgoingAccountsModel()
303 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); in initAccountList()
447 mTelecomManager.getCallCapablePhoneAccounts(includeDisabledAccounts); in getCallingAccounts()
456 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); in getCallingAccounts()
/packages/apps/Settings/src/com/android/settings/accessibility/
DRTTSettingPreferenceController.java43 private final TelecomManager mTelecomManager; field in RTTSettingPreferenceController
56 mTelecomManager = context.getSystemService(TelecomManager.class); in RTTSettingPreferenceController()
85 return TextUtils.equals(mTelecomManager.getDefaultDialerPackage(), mDialerPackage); in isDialerSupportRTTSetting()
/packages/services/Car/service/src/com/android/car/
DCarInputService.java147 private final TelecomManager mTelecomManager; field in CarInputService
290 mTelecomManager = telecomManager; in CarInputService()
524 if (mTelecomManager != null && mTelecomManager.isRinging()) { in acceptCallIfRinging()
526 mTelecomManager.acceptRingingCall(); in acceptCallIfRinging()
/packages/services/Telephony/src/com/android/services/telephony/
DTelecomAccountRegistry.java254 mTelecomManager.registerPhoneAccount(newAccount); in reRegisterPstnPhoneAccount()
264 mTelecomManager.registerPhoneAccount(account); in registerPstnPhoneAccount()
1073 private final TelecomManager mTelecomManager; field in TelecomAccountRegistry
1104 mTelecomManager = context.getSystemService(TelecomManager.class); in TelecomAccountRegistry()
1421 ? mTelecomManager.getAllPhoneAccountHandles() in cleanupPhoneAccounts()
1422 : mTelecomManager.getCallCapablePhoneAccounts(); in cleanupPhoneAccounts()
1428 mTelecomManager.unregisterPhoneAccount(handle); in cleanupPhoneAccounts()
/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/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DMyMockContext.java50 TelecomManager mTelecomManager; field in MyMockContext
88 return mTelecomManager; in getSystemService()
DBlockedNumberProviderTest.java508 when(mMockContext.mTelecomManager.getDefaultDialerPackage()) in testDefaultDialerCanAccessApis()
516 verify(mMockContext.mTelecomManager, times(2)).getDefaultDialerPackage(); in testDefaultDialerCanAccessApis()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallScreeningServiceFilterTest.java71 @Mock TelecomManager mTelecomManager; field in CallScreeningServiceFilterTest
117 .thenReturn(mTelecomManager); in setUp()
118 when(mTelecomManager.getSystemDialerPackage()).thenReturn(PKG_NAME); in setUp()
DComponentContextFixture.java197 return mTelecomManager; in getSystemService()
480 private TelecomManager mTelecomManager = mock(TelecomManager.class);
613 mTelecomManager = telecomManager;
DTelecomServiceImplTest.java161 @Mock private TelecomManager mTelecomManager; field in TelecomServiceImplTest
222 mComponentContextFixture.setTelecomManager(mTelecomManager); in setUp()
223 when(mTelecomManager.getDefaultDialerPackage()).thenReturn(DEFAULT_DIALER_PACKAGE); in setUp()
224 when(mTelecomManager.getSystemDialerPackage()).thenReturn(DEFAULT_DIALER_PACKAGE); in setUp()
DMissedCallNotifierImplTest.java154 private TelecomManager mTelecomManager; field in MissedCallNotifierImplTest
182 mComponentContextFixture.setTelecomManager(mTelecomManager); in setUp()
DPhoneAccountRegistrarTest.java86 @Mock private TelecomManager mTelecomManager; field in PhoneAccountRegistrarTest
95 mComponentContextFixture.setTelecomManager(mTelecomManager); in setUp()
/packages/services/Telephony/src/com/android/phone/
DCallFeaturesSetting.java105 private TelecomManager mTelecomManager; field in CallFeaturesSetting
265 mTelecomManager = getSystemService(TelecomManager.class); in onCreate()
457 final PhoneAccountHandle simCallManager = mTelecomManager.getSimCallManagerForSubscription( in updateVtWfc()
DNotificationMgr.java119 private TelecomManager mTelecomManager; field in NotificationMgr
166 mTelecomManager = app.getSystemService(TelecomManager.class); in NotificationMgr()