/packages/apps/Contacts/src/com/android/contacts/compat/ |
D | TelephonyManagerCompat.java | 42 public static boolean isVoiceCapable(@Nullable TelephonyManager telephonyManager) { in isVoiceCapable() argument 43 if (telephonyManager == null) { in isVoiceCapable() 49 return telephonyManager.isVoiceCapable(); in isVoiceCapable() 51 final int phoneType = telephonyManager.getPhoneType(); in isVoiceCapable() 65 public static int getPhoneCount(@Nullable TelephonyManager telephonyManager) { in getPhoneCount() argument 66 if (telephonyManager == null) { in getPhoneCount() 71 return telephonyManager.getPhoneCount(); in getPhoneCount() 86 public static String getDeviceId(@Nullable TelephonyManager telephonyManager, int slotId) { in getDeviceId() argument 87 if (telephonyManager == null) { in getDeviceId() 93 return telephonyManager.getDeviceId(slotId); in getDeviceId() [all …]
|
D | TelephonyManagerSdkCompat.java | 27 public static Uri getVoicemailRingtoneUri(TelephonyManager telephonyManager, in getVoicemailRingtoneUri() argument 30 ? telephonyManager.getVoicemailRingtoneUri(accountHandle) : null; in getVoicemailRingtoneUri() 33 public static boolean isVoicemailVibrationEnabled(TelephonyManager telephonyManager, in isVoicemailVibrationEnabled() argument 36 ? telephonyManager.isVoicemailVibrationEnabled(accountHandle) : false; in isVoicemailVibrationEnabled()
|
/packages/apps/Dialer/java/com/android/contacts/common/compat/ |
D | TelephonyManagerCompat.java | 61 public static int getPhoneCount(@Nullable TelephonyManager telephonyManager) { in getPhoneCount() argument 62 if (telephonyManager == null) { in getPhoneCount() 65 return telephonyManager.getPhoneCount(); in getPhoneCount() 74 public static boolean isTtyModeSupported(@Nullable TelephonyManager telephonyManager) { in isTtyModeSupported() argument 75 return telephonyManager != null && telephonyManager.isTtyModeSupported(); in isTtyModeSupported() 86 @Nullable TelephonyManager telephonyManager) { in isHearingAidCompatibilitySupported() 87 return telephonyManager != null && telephonyManager.isHearingAidCompatibilitySupported(); in isHearingAidCompatibilitySupported() 101 TelephonyManager telephonyManager, PhoneAccountHandle accountHandle) { in getVoicemailRingtoneUri() argument 105 return telephonyManager.getVoicemailRingtoneUri(accountHandle); in getVoicemailRingtoneUri() 117 TelephonyManager telephonyManager, PhoneAccountHandle accountHandle) { in isVoicemailVibrationEnabled() argument [all …]
|
/packages/services/Telephony/src/com/android/phone/vvm/ |
D | VvmSimStateTracker.java | 82 TelephonyManager telephonyManager = getTelephonyManager(mContext, mPhoneAccountHandle); in listen() local 83 if(telephonyManager == null){ in listen() 87 telephonyManager.listen(this, PhoneStateListener.LISTEN_SERVICE_STATE); in listen() 157 TelephonyManager telephonyManager = getTelephonyManager(context, phoneAccountHandle); in onBootCompleted() local 158 if (telephonyManager == null) { in onBootCompleted() 161 if (telephonyManager.getServiceState().getState() == ServiceState.STATE_IN_SERVICE) { in onBootCompleted() 217 TelephonyManager telephonyManager = getTelephonyManager(context, phoneAccountHandle); in onCarrierConfigChanged() local 218 if(telephonyManager == null){ in onCarrierConfigChanged() 229 if (telephonyManager.getServiceState().getState() in onCarrierConfigChanged()
|
D | VvmDumpHandler.java | 17 TelephonyManager telephonyManager = TelephonyManager.from(context); in dump() local 26 "VisualVoicemailPackageName:" + telephonyManager.createForSubscriptionId(subId) in dump() 29 "VisualVoicemailSmsFilterSettings(" + subId + "):" + telephonyManager in dump()
|
/packages/apps/Dialer/java/com/android/dialer/app/ |
D | SpecialCharSequenceMgr.java | 158 TelephonyManager telephonyManager = in handleAdnEntry() local 160 if (telephonyManager == null in handleAdnEntry() 161 || telephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_GSM) { in handleAdnEntry() 291 TelephonyManager telephonyManager = in handleDeviceIdDisplay() local 294 if (telephonyManager != null && input.equals(MMI_IMEI_DISPLAY)) { in handleDeviceIdDisplay() 296 (telephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_GSM) in handleDeviceIdDisplay() 301 if (TelephonyManagerCompat.getPhoneCount(telephonyManager) > 1) { in handleDeviceIdDisplay() 302 for (int slot = 0; slot < telephonyManager.getPhoneCount(); slot++) { in handleDeviceIdDisplay() 303 String deviceId = telephonyManager.getDeviceId(slot); in handleDeviceIdDisplay() 309 deviceIds.add(telephonyManager.getDeviceId()); in handleDeviceIdDisplay()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | PhoneUtils.java | 42 public static String getNationalNumber(TelephonyManager telephonyManager, int subId, in getNationalNumber() argument 44 final String country = getSimOrDefaultLocaleCountry(telephonyManager, subId); in getNationalNumber() 74 private static String getSimOrDefaultLocaleCountry(TelephonyManager telephonyManager, in getSimOrDefaultLocaleCountry() argument 76 String country = getSimCountry(telephonyManager, subId); in getSimOrDefaultLocaleCountry() 85 private static String getSimCountry(TelephonyManager telephonyManager, int subId) { in getSimCountry() argument 86 final String country = telephonyManager.getSimCountryIso(subId); in getSimCountry()
|
D | MmsHttpClient.java | 477 final TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in getLine1() local 479 return telephonyManager.getLine1Number(subId); in getLine1() 486 final TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in getLine1NoCountryCode() local 489 telephonyManager, in getLine1NoCountryCode() 491 telephonyManager.getLine1Number(subId)); in getLine1NoCountryCode() 499 final TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in getNai() local 501 String nai = telephonyManager.getNai(SubscriptionManager.getSlotIndex(subId)); in getNai()
|
/packages/apps/Dialer/java/com/android/dialer/location/ |
D | CountryDetector.java | 77 private final TelephonyManager telephonyManager; field in CountryDetector 85 TelephonyManager telephonyManager, in CountryDetector() argument 89 this.telephonyManager = telephonyManager; in CountryDetector() 159 return telephonyManager.getNetworkCountryIso(); in getNetworkBasedCountryIso() 176 return telephonyManager.getSimCountryIso(); in getSimBasedCountryIso() 191 return telephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_GSM; in isNetworkCountryCodeAvailable()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/settings/ |
D | VoicemailRingtonePreference.java | 47 private final TelephonyManager telephonyManager; field in VoicemailRingtonePreference 71 telephonyManager = context.getSystemService(TelephonyManager.class); in VoicemailRingtonePreference() 84 telephonyManager.getVoicemailRingtoneUri(phoneAccountHandle), in init() 98 return telephonyManager.getVoicemailRingtoneUri(phoneAccountHandle); in onRestoreRingtone() 103 telephonyManager.setVoicemailRingtoneUri(phoneAccountHandle, ringtoneUri); in onSaveRingtone()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | ConnectivityListener.java | 116 final TelephonyManager telephonyManager = mContext in start() local 118 if (telephonyManager != null) { in start() 119 telephonyManager.listen(mPhoneStateListener, in start() 137 final TelephonyManager telephonyManager = mContext in stop() local 139 if (telephonyManager != null) { in stop() 140 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in stop()
|
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/ |
D | VoicemailErrorManager.java | 110 TelephonyManager telephonyManager = in addServiceStateListener() local 114 if (telephonyManager == null) { in addServiceStateListener() 126 telephonyManager.listen(serviceStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in addServiceStateListener() 159 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in onDestroy() local 161 telephonyManager.listen(listener, PhoneStateListener.LISTEN_NONE); in onDestroy()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | TelephonyManagerUtils.java | 37 final TelephonyManager telephonyManager = in getVoiceMailAlphaTag() local 39 final String voiceMailLabel = telephonyManager.getVoiceMailAlphaTag(); in getVoiceMailAlphaTag() 51 final TelephonyManager telephonyManager = in getCurrentCountryIso() local 53 String countryIso = telephonyManager.getNetworkCountryIso().toUpperCase(); in getCurrentCountryIso()
|
/packages/apps/Contacts/src/com/android/contacts/location/ |
D | CountryDetector.java | 52 private CountryDetector(Context context, TelephonyManager telephonyManager, in CountryDetector() argument 54 mTelephonyManager = telephonyManager; in CountryDetector() 62 public CountryDetector getInstanceForTest(Context context, TelephonyManager telephonyManager, in getInstanceForTest() argument 64 return new CountryDetector(context, telephonyManager, localeProvider); in getInstanceForTest()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | OmtpVvmCarrierConfigHelper.java | 101 TelephonyManager telephonyManager = in OmtpVvmCarrierConfigHelper() local 105 if (telephonyManager == null) { in OmtpVvmCarrierConfigHelper() 115 mCarrierConfig = getCarrierConfig(telephonyManager); in OmtpVvmCarrierConfigHelper() 117 new TelephonyVvmConfigManager(context).getConfig(telephonyManager.getSimOperator()); in OmtpVvmCarrierConfigHelper() 432 private PersistableBundle getCarrierConfig(@NonNull TelephonyManager telephonyManager) { in getCarrierConfig() argument 440 PersistableBundle config = telephonyManager.getCarrierConfig(); in getCarrierConfig()
|
D | TelephonyMangerCompat.java | 44 TelephonyManager telephonyManager = in sendVisualVoicemailSms() local 48 return (String) method.invoke(telephonyManager, number, port, text, sentIntent); in sendVisualVoicemailSms() 87 TelephonyManager telephonyManager = in setVisualVoicemailSmsFilterSettings() local 91 return (String) method.invoke(telephonyManager, settings); in setVisualVoicemailSmsFilterSettings()
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestUssdActivity.java | 24 public void onReceiveUssdResponse(final TelephonyManager telephonyManager, 31 public void onReceiveUssdResponseFailed(final TelephonyManager telephonyManager, 64 final TelephonyManager telephonyManager = in placeUssdRequest() local 69 telephonyManager.sendUssdRequest(mUssdNumber, mReceiveUssdResponseCallback, h); in placeUssdRequest()
|
/packages/apps/Settings/src/com/android/settings/ |
D | ResetNetworkConfirm.java | 86 TelephonyManager telephonyManager = (TelephonyManager) 88 if (telephonyManager != null) { 89 telephonyManager.factoryReset(mSubId); 95 String subscriberId = telephonyManager.getSubscriberId(mSubId);
|
/packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/ |
D | ImsFrameworkApp.java | 107 TelephonyManager telephonyManager = in handleSimRecordsLoaded() local 110 Log.d(TAG, "ISIM IMPI: " + telephonyManager.getIsimImpi()); in handleSimRecordsLoaded() 111 Log.d(TAG, "ISIM Domain: " + telephonyManager.getIsimDomain()); in handleSimRecordsLoaded() 112 Log.d(TAG, "ISIM IMPU: " + Arrays.toString(telephonyManager.getIsimImpu())); in handleSimRecordsLoaded()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/fetch/ |
D | FetchVoicemailReceiver.java | 109 TelephonyManager telephonyManager = in onReceive() local 111 accountId = telephonyManager.getSimSerialNumber(); in onReceive() 123 TelephonyManager telephonyManager = in onReceive() local 127 if (telephonyManager == null) { in onReceive()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CallFeaturesSetting.java | 204 TelephonyManager telephonyManager = in onPause() local 206 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in onPause() 220 TelephonyManager telephonyManager = in onResume() local 222 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in onResume() 332 boolean isRoaming = telephonyManager.isNetworkRoaming(); in onResume()
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | DefaultUserAgentInfoLoader.java | 76 final TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService( in loadLocked() local 78 mUserAgent = telephonyManager.getMmsUserAgent(); in loadLocked() 79 mUAProfUrl = telephonyManager.getMmsUAProfUrl(); in loadLocked()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | BugleUserAgentInfoLoader.java | 79 final TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService( in loadLocked() local 81 mUserAgent = telephonyManager.getMmsUserAgent(); in loadLocked() 82 mUAProfUrl = telephonyManager.getMmsUAProfUrl(); in loadLocked()
|
/packages/apps/Dialer/java/com/android/dialer/app/settings/ |
D | DialerSettingsActivity.java | 92 TelephonyManager telephonyManager = in onBuildHeaders() local 100 if (isPrimaryUser && TelephonyManagerCompat.getPhoneCount(telephonyManager) <= 1) { in onBuildHeaders() 128 && (TelephonyManagerCompat.isTtyModeSupported(telephonyManager) in onBuildHeaders() 129 || TelephonyManagerCompat.isHearingAidCompatibilitySupported(telephonyManager))) { in onBuildHeaders()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsageUtils.java | 86 TelephonyManager telephonyManager = TelephonyManager.from(context); in getDefaultTemplate() local 88 telephonyManager.getSubscriberId(defaultSubId)); in getDefaultTemplate() 90 telephonyManager.getMergedSubscriberIds()); in getDefaultTemplate()
|