Home
last modified time | relevance | path

Searched refs:telephonyManager (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/telephony/java/android/telephony/
DVisualVoicemailService.java252 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in setSmsFilterSettings() local
255 telephonyManager.disableVisualVoicemailSmsFilter(subId); in setSmsFilterSettings()
257 telephonyManager.enableVisualVoicemailSmsFilter(subId, settings); in setSmsFilterSettings()
284 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in sendVisualVoicemailSms() local
285 telephonyManager.sendVisualVoicemailSmsForSubscriber(getSubId(context, phoneAccountHandle), in sendVisualVoicemailSms()
290 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in getSubId() local
292 return telephonyManager in getSubId()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageUtils.java36 final TelephonyManager telephonyManager = context.getSystemService( in getMobileTemplate() local
41 telephonyManager.createForSubscriptionId(subId).getSubscriberId()); in getMobileTemplate()
48 final String[] mergedSubscriberIds = telephonyManager.createForSubscriptionId(subId) in getMobileTemplate()
/frameworks/base/telephony/common/com/android/internal/telephony/
DCarrierAppUtils.java79 IPackageManager packageManager, TelephonyManager telephonyManager, in disableCarrierAppsUntilPrivileged() argument
90 disableCarrierAppsUntilPrivileged(callingPackage, packageManager, telephonyManager, in disableCarrierAppsUntilPrivileged()
145 IPackageManager packageManager, @Nullable TelephonyManager telephonyManager, in disableCarrierAppsUntilPrivileged() argument
169 boolean hasPrivileges = telephonyManager != null in disableCarrierAppsUntilPrivileged()
170 && telephonyManager.checkCarrierPrivilegesForPackageAnyPhone(packageName) in disableCarrierAppsUntilPrivileged()
306 TelephonyManager telephonyManager, int userId) { in getDefaultCarrierApps() argument
320 telephonyManager.checkCarrierPrivilegesForPackageAnyPhone(packageName) in getDefaultCarrierApps()
DSmsNumberUtils.java576 final TelephonyManager telephonyManager = ((TelephonyManager) context in filterDestAddr() local
578 final String networkOperator = telephonyManager.getNetworkOperator(); in filterDestAddr()
582 final int networkType = getNetworkType(telephonyManager); in filterDestAddr()
602 private static int getNetworkType(TelephonyManager telephonyManager) { in getNetworkType() argument
604 int phoneType = telephonyManager.getPhoneType(); in getNetworkType()
609 if (isInternationalRoaming(telephonyManager)) { in getNetworkType()
621 private static boolean isInternationalRoaming(TelephonyManager telephonyManager) { in isInternationalRoaming() argument
622 String operatorIsoCountry = telephonyManager.getNetworkCountryIso(); in isInternationalRoaming()
623 String simIsoCountry = telephonyManager.getSimCountryIso(); in isInternationalRoaming()
DTelephonyPermissions.java670 TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in getCarrierPrivilegeStatus() local
672 return telephonyManager.createForSubscriptionId(subId).getCarrierPrivilegeStatus(uid); in getCarrierPrivilegeStatus()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DVoicemailNotificationSettingsUtil.java99 TelephonyManager telephonyManager = TelephonyManager.from(context); in migrateVoicemailVibrationSettingsIfNeeded() local
102 if (prefs.contains(key) || telephonyManager.getPhoneCount() != 1) { in migrateVoicemailVibrationSettingsIfNeeded()
138 TelephonyManager telephonyManager = TelephonyManager.from(context); in migrateVoicemailRingtoneSettingsIfNeeded() local
141 if (prefs.contains(key) || telephonyManager.getPhoneCount() != 1) { in migrateVoicemailRingtoneSettingsIfNeeded()
/frameworks/base/services/core/java/com/android/server/updates/
DEmergencyNumberDbInstallReceiver.java40 TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in postInstall() local
42 telephonyManager.notifyOtaEmergencyNumberDbInstalled(); in postInstall()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringNotificationUpdaterTest.kt83 @Mock private lateinit var telephonyManager: TelephonyManager variable in com.android.networkstack.tethering.TetheringNotificationUpdaterTest
101 if (name == Context.TELEPHONY_SERVICE) telephonyManager in createContextAsUser()
285 doReturn(telephonyManager).`when`(telephonyManager).createForSubscriptionId(anyInt()) in testGetResourcesForSubId()
286 doReturn(1234).`when`(telephonyManager).getSimCarrierId() in testGetResourcesForSubId()
287 doReturn("000000").`when`(telephonyManager).getSimOperator() in testGetResourcesForSubId()
295 doReturn(VERIZON_CARRIER_ID).`when`(telephonyManager).getSimCarrierId() in testGetResourcesForSubId()
300 doReturn("20404").`when`(telephonyManager).getSimOperator() in testGetResourcesForSubId()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DDeviceInfoUtils.java182 final TelephonyManager telephonyManager = context.getSystemService( in getFormattedPhoneNumber() local
184 final String rawNumber = telephonyManager.createForSubscriptionId( in getFormattedPhoneNumber()
197 final TelephonyManager telephonyManager = context.getSystemService( in getFormattedPhoneNumbers() local
201 final String rawNumber = telephonyManager.createForSubscriptionId( in getFormattedPhoneNumbers()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluator.java185 TelephonyManager telephonyManager = getTelephonyManager(); in createEphemeralProfileForMatchingAp() local
186 if (telephonyManager == null) { in createEphemeralProfileForMatchingAp()
189 if (TelephonyUtil.getCarrierType(telephonyManager) != TelephonyUtil.CARRIER_MNO_TYPE) { in createEphemeralProfileForMatchingAp()
195 String mccMnc = telephonyManager in createEphemeralProfileForMatchingAp()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DCarrierNetworkConfig.java137 TelephonyManager telephonyManager = in verifyCarrierImsiEncryptionInfoIsAvailable() local
139 if (telephonyManager == null) { in verifyCarrierImsiEncryptionInfoIsAvailable()
143 mLastImsiEncryptionInfo = telephonyManager in verifyCarrierImsiEncryptionInfoIsAvailable()
DSarManager.java99 TelephonyManager telephonyManager, in SarManager() argument
105 mTelephonyManager = telephonyManager; in SarManager()
/frameworks/base/services/core/java/com/android/server/power/
DShutdownThread.java597 TelephonyManager telephonyManager = mContext.getSystemService( in shutdownRadios()
600 radioOff = telephonyManager == null in shutdownRadios()
601 || !telephonyManager.isAnyRadioPoweredOn(); in shutdownRadios()
605 telephonyManager.shutdownAllRadios(); in shutdownRadios()
620 radioOff = !telephonyManager.isAnyRadioPoweredOn(); in shutdownRadios()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierInfoManager.java213 final TelephonyManager telephonyManager = in deleteCarrierInfoForImsiEncryption() local
215 String simOperator = telephonyManager.getSimOperator(); in deleteCarrierInfoForImsiEncryption()
DVisualVoicemailSmsFilter.java120 TelephonyManager telephonyManager = in filter() local
124 settings = telephonyManager.getActiveVisualVoicemailSmsFilterSettings(subId); in filter()
DCarrierKeyDownloadManager.java293 final TelephonyManager telephonyManager = in getSimOperator() local
295 return telephonyManager.getSimOperator(mPhone.getSubId()); in getSimOperator()
/frameworks/base/services/core/java/com/android/server/location/
DGnssNetworkConnectivityHandler.java325 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class);
326 if (telephonyManager != null) {
327 networkAvailable = isConnected && telephonyManager.getDataEnabled();
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DDevDetailMo.java210 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in serializeToXml() local
211 String imsi = telephonyManager in serializeToXml()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DCarrierTextController.java222 TelephonyManager telephonyManager = getTelephonyManager(); in setListening() local
230 telephonyManager.listen(mPhoneStateListener, in setListening()
243 telephonyManager.listen(mPhoneStateListener, LISTEN_NONE); in setListening()
DKeyguardSimPinView.java258 TelephonyManager telephonyManager = in run() local
261 final PinResult result = telephonyManager.supplyPinReportPinResult(mPin); in run()
DKeyguardSimPukView.java319 TelephonyManager telephonyManager = in run() local
322 final PinResult result = telephonyManager.supplyPukReportPinResult(mPuk, mPin); in run()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccController.java650 TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in updateInternalIccStateForInactiveSlot() local
652 telephonyManager.setSimStateForPhone(prevActivePhoneId, in updateInternalIccStateForInactiveSlot()
666 TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in updateInternalIccState() local
668 telephonyManager.setSimStateForPhone(phoneId, state.toString()); in updateInternalIccState()
/frameworks/base/services/core/java/com/android/server/
DMmsServiceBroker.java518 TelephonyManager telephonyManager = (TelephonyManager) in adjustUriForUserAndGrantPermission() local
520 List<String> carrierPackages = telephonyManager in adjustUriForUserAndGrantPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java107 public final TelephonyManager telephonyManager; field in MockSystemServices
146 telephonyManager = mock(TelephonyManager.class); in MockSystemServices()
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java144 TelephonyManager telephonyManager = in LegacyGlobalActions() local
146 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in LegacyGlobalActions()

12