Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 25 of 62) sorted by relevance

123

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailPermissions.java51 TelecomManager tm = mContext.getSystemService(TelecomManager.class); in isDefaultOrSystemDialer() local
52 return (callingPackage.equals(tm.getDefaultDialerPackage()) in isDefaultOrSystemDialer()
53 || callingPackage.equals(tm.getSystemDialerPackage())); in isDefaultOrSystemDialer()
135 TelephonyManager tm = in callerHasCarrierPrivileges() local
139 if (packageHasCarrierPrivileges(tm, packageName)) { in callerHasCarrierPrivileges()
148 TelephonyManager tm = in packageHasCarrierPrivileges() local
150 return packageHasCarrierPrivileges(tm, packageName); in packageHasCarrierPrivileges()
153 private static boolean packageHasCarrierPrivileges(TelephonyManager tm, String packageName) { in packageHasCarrierPrivileges() argument
154 return tm.checkCarrierPrivilegesForPackageAnyPhone(packageName) in packageHasCarrierPrivileges()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DSelfManagedCallingActivity.java163 TelecomManager tm = TelecomManager.from(this); in placeOutgoingCall() local
167 if (!tm.isOutgoingCallPermitted(phoneAccountHandle)) { in placeOutgoingCall()
184 tm.placeCall(Uri.parse(mNumber.getText().toString()), extras); in placeOutgoingCall()
188 TelecomManager tm = TelecomManager.from(this); in initiateHandover() local
191 tm.acceptHandover(address, VideoProfile.STATE_BIDIRECTIONAL, phoneAccountHandle); in initiateHandover()
195 TelecomManager tm = TelecomManager.from(this); in placeIncomingCall() local
199 if (!tm.isIncomingCallPermitted(phoneAccountHandle)) { in placeIncomingCall()
214 tm.addNewIncomingCall(getSelectedPhoneAccountHandle(), extras); in placeIncomingCall()
DHandoverActivity.java64 TelecomManager tm = TelecomManager.from(this); in onCreate() local
65 tm.showInCallScreen(false); in onCreate()
/packages/apps/Settings/src/com/android/settings/sim/
DSimSettings.java96 final TelephonyManager tm = in onCreate() local
100 mNumSlots = tm.getSimCount(); in onCreate()
217 final TelephonyManager tm = in onResume() local
223 tm.createForSubscriptionId(subId).listen(getPhoneStateListener(i), in onResume()
233 final TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); in onPause() local
236 tm.listen(mPhoneStateListener[i], PhoneStateListener.LISTEN_NONE); in onPause()
327 final TelephonyManager tm = in getPhoneNumber() local
329 return tm.getLine1Number(info.getSubscriptionId()); in getPhoneNumber()
DSimPreferenceDialog.java138 final TelephonyManager tm = (TelephonyManager) mContext.getSystemService( in createEditDialog() local
141 final String rawNumber = tm.getLine1Number(mSubInfoRecord.getSubscriptionId()); in createEditDialog()
148 String simCarrierName = tm.getSimOperatorName(mSubInfoRecord.getSubscriptionId()); in createEditDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimSettings.java96 final TelephonyManager tm = in onCreate() local
100 mNumSlots = tm.getSimCount(); in onCreate()
217 final TelephonyManager tm = in onResume() local
223 tm.createForSubscriptionId(subId).listen(getPhoneStateListener(i), in onResume()
233 final TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); in onPause() local
236 tm.listen(mPhoneStateListener[i], PhoneStateListener.LISTEN_NONE); in onPause()
327 final TelephonyManager tm = in getPhoneNumber() local
329 return tm.getLine1Number(info.getSubscriptionId()); in getPhoneNumber()
DSimPreferenceDialog.java138 final TelephonyManager tm = (TelephonyManager) mContext.getSystemService( in createEditDialog() local
141 final String rawNumber = tm.getLine1Number(mSubInfoRecord.getSubscriptionId()); in createEditDialog()
148 String simCarrierName = tm.getSimOperatorName(mSubInfoRecord.getSubscriptionId()); in createEditDialog()
/packages/services/Telephony/src/com/android/phone/settings/
DAccessibilitySettingsFragment.java121 TelephonyManager tm = in onCreate() local
123 boolean isRoaming = tm.isNetworkRoaming( in onCreate()
145 TelephonyManager tm = in onResume() local
147 tm.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in onResume()
153 TelephonyManager tm = in onPause() local
155 tm.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in onPause()
/packages/services/Telephony/testapps/SmsManagerTestApp/src/com/android/phone/testapps/smsmanagertestapp/
DSmsManagerTestApp.java215 TelephonyManager tm = getSystemService(TelephonyManager.class); in getPhoneNumber() local
216 if (tm != null) { in getPhoneNumber()
217 tm = tm.createForSubscriptionId(defaultSmsSub); in getPhoneNumber()
218 String line1Number = tm.getLine1Number(); in getPhoneNumber()
/packages/services/Telephony/src/com/android/services/telephony/
DPstnIncomingCallNotifier.java257 TelecomManager tm = mPhone.getContext().getSystemService(TelecomManager.class); in addNewUnknownCall() local
258 tm.addNewUnknownCall(handle, extras); in addNewUnknownCall()
293 TelecomManager tm = mPhone.getContext().getSystemService(TelecomManager.class); in sendIncomingCallIntent() local
295 tm.addNewIncomingConference(handle, extras); in sendIncomingCallIntent()
297 tm.addNewIncomingCall(handle, extras); in sendIncomingCallIntent()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipIncomingCallReceiver.java76 TelecomManager tm = context.getSystemService(TelecomManager.class); in takeCall() local
77 PhoneAccount phoneAccount = tm.getPhoneAccount(accountHandle); in takeCall()
79 tm.addNewIncomingCall(accountHandle, extras); in takeCall()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DDataUsagePreferenceController.java101 final TelephonyManager tm = TelephonyManager.from(context).createForSubscriptionId(subId); in getNetworkTemplate() local
102 NetworkTemplate mobileAll = NetworkTemplate.buildTemplateMobileAll(tm.getSubscriberId()); in getNetworkTemplate()
104 return NetworkTemplate.normalize(mobileAll, tm.getMergedSubscriberIds()); in getNetworkTemplate()
DNetworkScanHelper.java154 public NetworkScanHelper(TelephonyManager tm, NetworkScanCallback callback, Executor executor) { in NetworkScanHelper() argument
155 mTelephonyManager = tm; in NetworkScanHelper()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DGsmCellBroadcastHandler.java322 TelephonyManager tm = in getGsmLacAndCid() local
324 List<CellInfo> infos = tm.getAllCellInfo(); in getGsmLacAndCid()
362 TelephonyManager tm = in handleGsmBroadcastSms() local
364 tm.createForSubscriptionId(getSubIdForPhone(mContext, slotIndex)); in handleGsmBroadcastSms()
366 String plmn = tm.getSimOperator(); in handleGsmBroadcastSms()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastChannelManager.java308 TelephonyManager tm = in checkScope()
310 tm = tm.createForSubscriptionId(mSubId); in checkScope()
311 ServiceState ss = tm.getServiceState(); in checkScope()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeCertPayload.java158 for (TrustManager tm : tmFactory.getTrustManagers()) { in validateCertificates()
159 if (tm instanceof X509TrustManager) { in validateCertificates()
160 trustManager = (X509TrustManager) tm; in validateCertificates()
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/
DImeiInfoDialogController.java80 TelephonyManager tm = context.getSystemService(TelephonyManager.class); in ImeiInfoDialogController() local
84 } else if(isValidSlotIndex(slotId, tm)) { in ImeiInfoDialogController()
85 mTelephonyManager = tm; in ImeiInfoDialogController()
/packages/apps/Contacts/src/com/android/contacts/compat/
DTelecomManagerUtil.java28 public static Intent createManageBlockedNumbersIntent(TelecomManager tm) { in createManageBlockedNumbersIntent() argument
29 return CompatUtils.isNCompatible() ? tm.createManageBlockedNumbersIntent() : null; in createManageBlockedNumbersIntent()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkUtils.java302 final TelephonyManager tm = in showEuiccSettings() local
304 final String currentCountry = tm.getNetworkCountryIso().toLowerCase(); in showEuiccSettings()
688 final TelephonyManager tm = in getOperatorNameFromTelephonyManager() local
690 if (tm == null) { in getOperatorNameFromTelephonyManager()
693 return tm.getNetworkOperatorName(); in getOperatorNameFromTelephonyManager()
DNrDisabledInDsdsFooterPreferenceController.java99 private boolean is5GSupportedByRadio(TelephonyManager tm) { in is5GSupportedByRadio() argument
100 return (tm.getSupportedRadioAccessFamily() & TelephonyManager.NETWORK_TYPE_BITMASK_NR) > 0; in is5GSupportedByRadio()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelephonyUtil.java74 TelephonyManager tm = (TelephonyManager) context.getSystemService( in shouldProcessAsEmergency() local
76 return handle != null && tm.isEmergencyNumber(handle.getSchemeSpecificPart()); in shouldProcessAsEmergency()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DAnalyticsTests.java150 TelecomManager tm = (TelecomManager) mSpyContext.getSystemService(Context.TELECOM_SERVICE); in testAnalyticsDumping() local
151 List<ParcelableCallAnalytics> analyticsList = tm.dumpAnalytics().getCallAnalytics(); in testAnalyticsDumping()
301 TelecomManager tm = (TelecomManager) mSpyContext.getSystemService(Context.TELECOM_SERVICE); in testAnalyticsLogSessionTiming() local
302 List<TelecomAnalytics.SessionTiming> sessions = tm.dumpAnalytics().getSessionTimings(); in testAnalyticsLogSessionTiming()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DUserCallIntentProcessor.java193 TelecomManager tm = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in sendIntentToDestination() local
194 tm.handleCallIntent(intent, callingPackage); in sendIntentToDestination()
/packages/services/Telephony/src/com/android/phone/
DEmergencyDialer.java770 TelecomManager tm = this.getSystemService(TelecomManager.class); in placeCall() local
771 tm.placeCall(Uri.fromParts(PhoneAccount.SCHEME_TEL, number, null), extras); in placeCall()
915 TelephonyManager tm = getSystemService(TelephonyManager.class); in maybeShowWfcEmergencyCallingWarning()
916 boolean isWfcAvailable = tm.isWifiCallingAvailable(); in maybeShowWfcEmergencyCallingWarning()
917 ServiceState ss = tm.getServiceState(); in maybeShowWfcEmergencyCallingWarning()
/packages/services/Telecomm/src/com/android/server/telecom/callredirection/
DCallRedirectionProcessorHelper.java148 TelephonyManager tm = (TelephonyManager) mContext.getSystemService( in formatNumberToE164() local
151 number = PhoneNumberUtils.formatNumberToE164(number, tm.getNetworkCountryIso()); in formatNumberToE164()

123