Home
last modified time | relevance | path

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

1234

/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/
DPublishUtils.java69 TelephonyManager telephonyManager = getTelephonyManager(context, subId); in getDeviceContactUri() local
70 if (telephonyManager == null) { in getDeviceContactUri()
74 contactUri = getContactUriFromIsim(telephonyManager); in getDeviceContactUri()
85 return getConvertedTelUri(context, getContactUriFromLine1Number(telephonyManager)); in getDeviceContactUri()
87 return getContactUriFromLine1Number(telephonyManager); in getDeviceContactUri()
104 private static Uri getContactUriFromIsim(TelephonyManager telephonyManager) { in getContactUriFromIsim() argument
106 String domain = telephonyManager.getIsimDomain(); in getContactUriFromIsim()
107 String[] impus = telephonyManager.getIsimImpu(); in getContactUriFromIsim()
130 private static Uri getContactUriFromLine1Number(TelephonyManager telephonyManager) { in getContactUriFromLine1Number() argument
131 String phoneNumber = formatPhoneNumber(telephonyManager.getLine1Number()); in getContactUriFromLine1Number()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/domain/interactor/
DSimBouncerInteractorTest.kt57 @Mock lateinit var telephonyManager: TelephonyManager variable in com.android.systemui.bouncer.domain.interactor.SimBouncerInteractorTest
77 telephonyManager, in setup()
91 whenever(telephonyManager.activeModemCount).thenReturn(1) in getDefaultMessage()
104 whenever(telephonyManager.activeModemCount).thenReturn(1) in getDefaultMessage_isPuk()
117 whenever(telephonyManager.activeModemCount).thenReturn(1) in getDefaultMessage_isEsimLocked()
130 whenever(telephonyManager.activeModemCount).thenReturn(2) in getDefaultMessage_multipleSims()
143 whenever(telephonyManager.activeModemCount).thenReturn(2) in getDefaultMessage_multipleSims_isPuk()
153 whenever(telephonyManager.activeModemCount).thenReturn(2) in getDefaultMessage_multipleSims_emptyDisplayName()
164 whenever(telephonyManager.activeModemCount).thenReturn(2) in getDefaultMessage_multipleSims_emptyDisplayName_isPuk()
208 whenever(telephonyManager.createForSubscriptionId(anyInt())) in verifySimPin()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DFullMobileConnectionRepositoryTest.kt461 val telephonyManager = in connectionInfo_logging_notCarrierMerged_getsUpdates() constant
463 createRealMobileRepo(telephonyManager) in connectionInfo_logging_notCarrierMerged_getsUpdates()
464 createRealCarrierMergedRepo(telephonyManager, FakeWifiRepository()) in connectionInfo_logging_notCarrierMerged_getsUpdates()
475 getTelephonyCallbackForType<TelephonyCallback.ServiceStateListener>(telephonyManager) in connectionInfo_logging_notCarrierMerged_getsUpdates()
486 getTelephonyCallbackForType<TelephonyCallback.ServiceStateListener>(telephonyManager) in connectionInfo_logging_notCarrierMerged_getsUpdates()
501 val telephonyManager = in connectionInfo_logging_carrierMerged_getsUpdates() constant
503 createRealMobileRepo(telephonyManager) in connectionInfo_logging_carrierMerged_getsUpdates()
505 createRealCarrierMergedRepo(telephonyManager, wifiRepository) in connectionInfo_logging_carrierMerged_getsUpdates()
543 val telephonyManager = in connectionInfo_logging_updatesWhenCarrierMergedUpdates() constant
545 createRealMobileRepo(telephonyManager) in connectionInfo_logging_updatesWhenCarrierMergedUpdates()
[all …]
DCarrierMergedConnectionRepositoryTest.kt54 @Mock private lateinit var telephonyManager: TelephonyManager variable in com.android.systemui.statusbar.pipeline.mobile.data.repository.prod.CarrierMergedConnectionRepositoryTest
62 whenever(telephonyManager.subscriptionId).thenReturn(SUB_ID) in setUp()
63 whenever(telephonyManager.simOperatorName).thenReturn("") in setUp()
71 telephonyManager, in setUp()
290 whenever(telephonyManager.simOperatorName).thenReturn("Test SIM name") in networkName_usesSimOperatorNameAsInitial()
303 whenever(telephonyManager.simOperatorName).thenReturn("Test SIM name") in networkName_updatesOnNetworkUpdate()
310 whenever(telephonyManager.simOperatorName).thenReturn("New SIM name") in networkName_updatesOnNetworkUpdate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DOperatorNameViewControllerTest.kt22 import android.telephony.telephonyManager
64 private var telephonyManager = kosmos.telephonyManager variable in com.android.systemui.statusbar.OperatorNameViewControllerTest
88 telephonyManager, in setup()
101 whenever(telephonyManager.isDataCapable).thenReturn(true) in updateFromSubInfo_showsCarrieName()
126 whenever(telephonyManager.isDataCapable).thenReturn(false) in notDataCapable_doesNotShowOperatorName()
151 whenever(telephonyManager.isDataCapable).thenReturn(false) in airplaneMode_doesNotShowOperatorName()
176 whenever(telephonyManager.isDataCapable).thenReturn(true) in notInService_doesNotShowOperatorName()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DCarrierMergedConnectionRepository.kt60 private val telephonyManager: TelephonyManager, in <lambda>() constant in com.android.systemui.statusbar.pipeline.mobile.data.repository.prod.CarrierMergedConnectionRepository
66 if (telephonyManager.subscriptionId != subId) { in <lambda>()
108 .map { NetworkNameModel.SimDerived(telephonyManager.simOperatorName) } in <lambda>()
112 NetworkNameModel.SimDerived(telephonyManager.simOperatorName), in <lambda>()
194 withContext(bgContext) { telephonyManager.emergencyCallbackMode } in <lambda>()
205 private val telephonyManager: TelephonyManager, in <lambda>() constant in com.android.systemui.statusbar.pipeline.mobile.data.repository.prod.CarrierMergedConnectionRepository.Factory
217 telephonyManager.createForSubscriptionId(subId), in <lambda>()
DMobileConnectionRepositoryImpl.kt103 private val telephonyManager: TelephonyManager, in <lambda>() constant
114 if (telephonyManager.subscriptionId != subId) { in <lambda>()
199 telephonyManager.registerTelephonyCallback(bgDispatcher.asExecutor(), callback) in <lambda>()
200 awaitClose { telephonyManager.unregisterTelephonyCallback(callback) } in <lambda>()
345 val cdmaEri = telephonyManager.cdmaEnhancedRoamingIndicatorDisplayNumber in <lambda>()
367 emit(telephonyManager.simCarrierId) in <lambda>()
369 .stateIn(scope, SharingStarted.WhileSubscribed(), telephonyManager.simCarrierId) in <lambda>()
410 val initial = telephonyManager.isDataConnectionAllowed in <lambda>()
418 withContext(bgDispatcher) { telephonyManager.emergencyCallbackMode } in <lambda>()
467 private val telephonyManager: TelephonyManager, in <lambda>() constant in Factory
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/bouncer/domain/interactor/
DSimBouncerInteractorKosmos.kt23 import android.telephony.telephonyManager
38 telephonyManager = telephonyManager, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardSimPukViewControllerTest.kt59 @Mock private lateinit var telephonyManager: TelephonyManager variable in com.android.keyguard.KeyguardSimPukViewControllerTest
74 Mockito.`when`(telephonyManager.createForSubscriptionId(Mockito.anyInt())) in setup()
75 .thenReturn(telephonyManager) in setup()
76 Mockito.`when`(telephonyManager.supplyIccLockPuk(anyString(), anyString())) in setup()
94 telephonyManager, in setup()
DKeyguardSimPinViewControllerTest.kt65 @Mock private lateinit var telephonyManager: TelephonyManager variable in com.android.keyguard.KeyguardSimPinViewControllerTest
80 `when`(telephonyManager.createForSubscriptionId(anyInt())).thenReturn(telephonyManager) in setup()
81 `when`(telephonyManager.supplyIccLockPin(anyString())).thenReturn(mock()) in setup()
99 telephonyManager, in setup()
/frameworks/opt/localepicker/tests/src/com/android/localepicker/
DLocaleStoreTest.java51 TelephonyManager telephonyManager = application.getSystemService(TelephonyManager.class); in setupTelephonyManager() local
52 shadowOf(telephonyManager).setNetworkCountryIso("us"); in setupTelephonyManager()
53 shadowOf(telephonyManager).setSimCountryIso("us"); in setupTelephonyManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/domain/interactor/
DSimBouncerInteractor.kt63 private val telephonyManager: TelephonyManager, constant in com.android.systemui.bouncer.domain.interactor.SimBouncerInteractor
89 val count = telephonyManager.activeModemCount in getDefaultMessage()
185 val telephonyManager: TelephonyManager = in verifySimPin() constant
186 telephonyManager.createForSubscriptionId(subscriptionId) in verifySimPin()
187 telephonyManager.supplyIccLockPin(input) in verifySimPin()
258 val telephonyManager = telephonyManager.createForSubscriptionId(subscriptionId) in verifySimPuk() constant
259 telephonyManager.supplyIccLockPuk(enteredSimPuk, enteredSimPin) in verifySimPuk()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DPhoneCallStateHandler.java63 TelephonyManager telephonyManager, in PhoneCallStateHandler() argument
67 mTelephonyManager = Objects.requireNonNull(telephonyManager); in PhoneCallStateHandler()
92 MyCallStateListener(TelephonyManager telephonyManager) { in MyCallStateListener() argument
93 mTelephonyManagerForSubId = telephonyManager; in MyCallStateListener()
/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/libs/service_entitlement/java/com/android/libraries/entitlement/
DEapAkaHelper.java67 TelephonyManager telephonyManager = in getEapAkaRootNai() local
71 telephonyManager.getSimOperator(), telephonyManager.getSubscriberId()); in getEapAkaRootNai()
DTs43Authentication.java179 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class); in getAuthToken() local
180 if (telephonyManager != null) { in getAuthToken()
181 if (slotIndex < 0 || slotIndex >= telephonyManager.getActiveModemCount()) { in getAuthToken()
184 imei = telephonyManager.getImei(slotIndex); in getAuthToken()
/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/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/
DConnectivityConstants.kt39 telephonyManager: TelephonyManager,
46 val hasDataCapabilities = telephonyManager.isDataCapable
/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/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.java80 TelephonyManager telephonyManager, @UserIdInt int userId, Context context) { in disableCarrierAppsUntilPrivileged() argument
90 disableCarrierAppsUntilPrivileged(callingPackage, telephonyManager, contentResolver, in disableCarrierAppsUntilPrivileged()
140 @Nullable TelephonyManager telephonyManager, ContentResolver contentResolver, in disableCarrierAppsUntilPrivileged() argument
169 boolean hasPrivileges = telephonyManager != null in disableCarrierAppsUntilPrivileged()
170 && telephonyManager.checkCarrierPrivilegesForPackageAnyPhone(packageName) in disableCarrierAppsUntilPrivileged()
346 TelephonyManager telephonyManager, int userId, Context context) { in getDefaultCarrierApps() argument
360 telephonyManager.checkCarrierPrivilegesForPackageAnyPhone(packageName) in getDefaultCarrierApps()
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/eapaka/
DEapAkaResponse.java86 TelephonyManager telephonyManager = in respondToEapAkaChallenge() local
92 telephonyManager.getIccAuthentication( in respondToEapAkaChallenge()
111 EapAkaApi.getImsiEap(telephonyManager.getSimOperator(), in respondToEapAkaChallenge()
112 telephonyManager.getSubscriberId()), in respondToEapAkaChallenge()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DOperatorNameViewController.java59 TelephonyManager telephonyManager, in OperatorNameViewController() argument
68 mTelephonyManager = telephonyManager; in OperatorNameViewController()
134 TelephonyManager telephonyManager, in Factory() argument
142 mTelephonyManager = telephonyManager; in Factory()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DPerSimStatus.java307 TelephonyManager telephonyManager = in isVonrEnabled() local
310 if (telephonyManager == null) { in isVonrEnabled()
313 telephonyManager = telephonyManager.createForSubscriptionId(phone.getSubId()); in isVonrEnabled()
314 return telephonyManager.isVoNrEnabled(); in isVonrEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/telephony/
DTelephonyListenerManager.java51 TelephonyManager telephonyManager, in TelephonyListenerManager() argument
54 mTelephonyManager = telephonyManager; in TelephonyListenerManager()

1234