/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/telecom/ |
D | ProjectionCallHandlerTest.java | 76 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/ |
D | HfpClientDeviceBlock.java | 47 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()
|
D | HfpClientConnectionService.java | 57 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/ |
D | EnableAccountPreferenceFragment.java | 62 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/ |
D | CarInputServiceTest.java | 82 @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/ |
D | PhoneAccountSettingsFragment.java | 76 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/ |
D | UiCallManager.java | 65 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()
|
D | ProjectionCallHandler.java | 49 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/ |
D | CallScreeningServiceFilterTest.java | 86 @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()
|
D | CallScreeningServiceControllerTest.java | 78 @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()
|
D | ComponentContextFixture.java | 190 return mTelecomManager; in getSystemService() 462 private TelecomManager mTelecomManager = mock(TelecomManager.class); 581 mTelecomManager = telecomManager;
|
D | TelecomServiceImplTest.java | 160 @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()
|
D | MissedCallNotifierImplTest.java | 154 private TelecomManager mTelecomManager; field in MissedCallNotifierImplTest 182 mComponentContextFixture.setTelecomManager(mTelecomManager); in setUp()
|
D | PhoneAccountRegistrarTest.java | 84 @Mock private TelecomManager mTelecomManager; field in PhoneAccountRegistrarTest 93 mComponentContextFixture.setTelecomManager(mTelecomManager); in setUp()
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | TelecomAccountRegistry.java | 181 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/ |
D | CarInputService.java | 146 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/ |
D | SelectPhoneAccountDialogFragment.java | 65 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/ |
D | CallFeaturesSetting.java | 101 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()
|
D | NotificationMgr.java | 115 private TelecomManager mTelecomManager; field in NotificationMgr 161 mTelecomManager = TelecomManager.from(mContext); in NotificationMgr()
|
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/ |
D | MyMockContext.java | 50 TelecomManager mTelecomManager; field in MyMockContext 87 return mTelecomManager; in getSystemService()
|
D | BlockedNumberProviderTest.java | 508 when(mMockContext.mTelecomManager.getDefaultDialerPackage()) in testDefaultDialerCanAccessApis() 516 verify(mMockContext.mTelecomManager, times(2)).getDefaultDialerPackage(); in testDefaultDialerCanAccessApis()
|