Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageUtils.java40 final TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in getMobileTemplate() local
41 final int mobileDefaultSubId = telephonyManager.getSubscriptionId(); in getMobileTemplate()
49 return getMobileTemplateForSubId(telephonyManager, mobileDefaultSubId); in getMobileTemplate()
54 return getNormalizedMobileTemplate(telephonyManager, subId); in getMobileTemplate()
58 return getMobileTemplateForSubId(telephonyManager, mobileDefaultSubId); in getMobileTemplate()
62 TelephonyManager telephonyManager, int subId) { in getNormalizedMobileTemplate() argument
63 final NetworkTemplate mobileTemplate = getMobileTemplateForSubId(telephonyManager, subId); in getNormalizedMobileTemplate()
64 final String[] mergedSubscriberIds = telephonyManager in getNormalizedMobileTemplate()
75 TelephonyManager telephonyManager, int subId) { in getMobileTemplateForSubId() argument
76 return NetworkTemplate.buildTemplateMobileAll(telephonyManager.getSubscriberId(subId)); in getMobileTemplateForSubId()
/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/opt/localepicker/tests/src/com/android/localepicker/
DLocaleStoreTest.java54 TelephonyManager telephonyManager = application.getSystemService(TelephonyManager.class); in setupTelephonyManager() local
55 shadowOf(telephonyManager).setNetworkCountryIso("us"); in setupTelephonyManager()
56 shadowOf(telephonyManager).setSimCountryIso("us"); in setupTelephonyManager()
/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/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/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/telephony/common/com/android/internal/telephony/
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()
DCarrierAppUtils.java77 TelephonyManager telephonyManager, int userId, Context context) { in disableCarrierAppsUntilPrivileged() argument
87 disableCarrierAppsUntilPrivileged(callingPackage, telephonyManager, contentResolver, in disableCarrierAppsUntilPrivileged()
141 @Nullable TelephonyManager telephonyManager, ContentResolver contentResolver, in disableCarrierAppsUntilPrivileged() argument
169 boolean hasPrivileges = telephonyManager != null in disableCarrierAppsUntilPrivileged()
170 && telephonyManager.checkCarrierPrivilegesForPackageAnyPhone(packageName) in disableCarrierAppsUntilPrivileged()
336 TelephonyManager telephonyManager, int userId, Context context) { in getDefaultCarrierApps() argument
350 telephonyManager.checkCarrierPrivilegesForPackageAnyPhone(packageName) in getDefaultCarrierApps()
DTelephonyPermissions.java632 TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in getCarrierPrivilegeStatus() local
634 return telephonyManager.createForSubscriptionId(subId).getCarrierPrivilegeStatus(uid); in getCarrierPrivilegeStatus()
/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/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSimPinView.java104 TelephonyManager telephonyManager = in setLockedSimMessage() local
106 if (telephonyManager != null) { in setLockedSimMessage()
107 count = telephonyManager.getActiveModemCount(); in setLockedSimMessage()
262 TelephonyManager telephonyManager = in run() local
265 final PinResult result = telephonyManager.supplyPinReportPinResult(mPin); in run()
DKeyguardSimPukView.java164 TelephonyManager telephonyManager = in showDefaultMessage() local
166 if (telephonyManager != null) { in showDefaultMessage()
167 count = telephonyManager.getActiveModemCount(); in showDefaultMessage()
323 TelephonyManager telephonyManager = in run() local
326 final PinResult result = telephonyManager.supplyPukReportPinResult(mPuk, mPin); in run()
DCarrierTextController.java250 TelephonyManager telephonyManager = getTelephonyManager(); in handleSetListening() local
257 telephonyManager.listen(mPhoneStateListener, in handleSetListening()
269 telephonyManager.listen(mPhoneStateListener, LISTEN_NONE); in handleSetListening()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DMboOceController.java44 public MboOceController(TelephonyManager telephonyManager, in MboOceController() argument
46 mTelephonyManager = telephonyManager; in MboOceController()
DSarManager.java102 TelephonyManager telephonyManager, in SarManager() argument
106 mTelephonyManager = telephonyManager; in SarManager()
/frameworks/base/services/core/java/com/android/server/power/
DShutdownThread.java599 TelephonyManager telephonyManager = mContext.getSystemService( in shutdownRadios()
602 radioOff = telephonyManager == null in shutdownRadios()
603 || !telephonyManager.isAnyRadioPoweredOn(); in shutdownRadios()
607 telephonyManager.shutdownAllRadios(); in shutdownRadios()
622 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()
DInboundSmsTracker.java419 TelephonyManager telephonyManager = in createMessageId() local
421 String deviceId = telephonyManager.getImei(slotId); in createMessageId()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DDevDetailMo.java206 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); in serializeToXml() local
207 String imsi = telephonyManager in serializeToXml()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssNetworkConnectivityHandler.java432 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class);
433 if (telephonyManager != null) {
434 networkAvailable = isConnected && telephonyManager.getDataEnabled();
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DUtils.java606 TelephonyManager telephonyManager = in getCarrierNameForSubId() local
608 if (telephonyManager == null) return null; in getCarrierNameForSubId()
609 TelephonyManager specifiedTm = telephonyManager.createForSubscriptionId(subId); in getCarrierNameForSubId()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccController.java646 TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in updateInternalIccStateForInactiveSlot() local
648 telephonyManager.setSimStateForPhone(prevActivePhoneId, in updateInternalIccStateForInactiveSlot()
662 TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in updateInternalIccState() local
664 telephonyManager.setSimStateForPhone(phoneId, state.toString()); in updateInternalIccState()
/frameworks/base/services/core/java/com/android/server/
DMmsServiceBroker.java524 TelephonyManager telephonyManager = (TelephonyManager) in adjustUriForUserAndGrantPermission() local
526 List<String> carrierPackages = telephonyManager in adjustUriForUserAndGrantPermission()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java178 TelephonyManager telephonyManager, WifiManager wifiManager, in NetworkControllerImpl() argument
181 telephonyManager, in NetworkControllerImpl()
196 TelephonyManager telephonyManager, WifiManager wifiManager, in NetworkControllerImpl() argument
219 mPhone = telephonyManager; in NetworkControllerImpl()

12