Home
last modified time | relevance | path

Searched refs:createForSubscriptionId (Results 1 – 25 of 91) sorted by relevance

1234

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DDataUsageControllerTest.java71 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mTelephonyManager); in setUp()
156 when(mTelephonyManager.createForSubscriptionId(eq(explicitSubId))).thenReturn(tmForSub1); in getTelephonyManager_shouldCreateWithExplicitSubId()
162 verify(mTelephonyManager).createForSubscriptionId(eq(explicitSubId)); in getTelephonyManager_shouldCreateWithExplicitSubId()
169 when(mTelephonyManager.createForSubscriptionId(mDefaultSubscriptionId)) in getTelephonyManager_noExplicitSubId_shouldCreateWithDefaultDataSubId()
174 verify(mTelephonyManager).createForSubscriptionId(mDefaultSubscriptionId); in getTelephonyManager_noExplicitSubId_shouldCreateWithDefaultDataSubId()
186 when(mTelephonyManager.createForSubscriptionId(activeSubId)) in getTelephonyManager_noExplicitSubIdOrDefaultSub_shouldCreateWithActiveSub()
191 verify(mTelephonyManager).createForSubscriptionId(activeSubId); in getTelephonyManager_noExplicitSubIdOrDefaultSub_shouldCreateWithActiveSub()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCarrierActionUtils.java108 telephonyMgr.createForSubscriptionId(subId).setCarrierDataEnabled(!ENABLE); in onDisableAllMeteredApns()
116 telephonyMgr.createForSubscriptionId(subId).setCarrierDataEnabled(ENABLE); in onEnableAllMeteredApns()
140 telephonyMgr.createForSubscriptionId(subId).reportDefaultNetworkStatus(true); in onRegisterDefaultNetworkAvail()
148 telephonyMgr.createForSubscriptionId(subId).reportDefaultNetworkStatus(false); in onDeregisterDefaultNetworkAvail()
156 telephonyMgr.createForSubscriptionId(subId).setRadioEnabled(!ENABLE); in onDisableRadio()
164 telephonyMgr.createForSubscriptionId(subId).setRadioEnabled(ENABLE); in onEnableRadio()
207 telephonyMgr.createForSubscriptionId(subId).resetAllCarrierActions(); in onResetAllCarrierActions()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyPermissionsTest.java108 when(mTelephonyManagerMock.createForSubscriptionId(anyInt())).thenReturn( in setUp()
188 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckReadPhoneState_hasCarrierPrivileges()
232 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckReadPhoneStateOnAnyActiveSub_hasCarrierPrivileges()
281 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckReadPhoneNumber_hasCarrierPrivileges()
318 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckReadDeviceIdentifiers_hasCarrierPrivileges()
363 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID_2))).thenReturn( in testCheckReadDeviceIdentifiers_hasCarrierPrivilegesOnOtherSubscription()
421 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckCallingOrSelfReadSubscriberIdentifiers_carrierPrivileges()
437 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID_2))).thenReturn( in testCheckCallingOrSelfReadSubscriberIdentifiers_carrierPrivilegesOnOtherSub()
532 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testEnforceCallingOrSelfReadPrecisePhoneStatePermissionOrCarrierPrivilege_withPrivileges()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DPhoneCallStateHandler.java127 .createForSubscriptionId(s.getSubscriptionId()) in checkCallStatus()
146 .map(s -> mTelephonyManager.createForSubscriptionId(s.getSubscriptionId()))
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/domain/interactor/
DSimBouncerInteractorTest.kt206 whenever(telephonyManager.createForSubscriptionId(anyInt())) in verifySimPin()
223 whenever(telephonyManager.createForSubscriptionId(anyInt())) in verifySimPin_incorrect_oneRemainingAttempt()
249 whenever(telephonyManager.createForSubscriptionId(anyInt())) in verifySimPin_incorrect_threeRemainingAttempts()
293 whenever(telephonyManager.createForSubscriptionId(anyInt())) in verifySimPuk()
/frameworks/base/packages/SystemUI/tests/utils/src/android/telephony/
DTelephonyManagerKosmos.kt28 whenever(createForSubscriptionId(anyInt())).thenReturn(this) in <lambda>()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/util/
DUceUtils.java104 ProvisioningManager manager = ProvisioningManager.createForSubscriptionId(subId); in isEabProvisioned()
237 ProvisioningManager manager = ProvisioningManager.createForSubscriptionId(subId); in getRcsPublishThrottle()
258 ProvisioningManager manager = ProvisioningManager.createForSubscriptionId(subId); in getRclMaxNumberEntries()
449 ProvisioningManager pm = ProvisioningManager.createForSubscriptionId(subId); in getAvailabilityCacheExpiration()
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/
DImsStateCallbackTest.java100 ImsMmTelManager mmTelManager = ImsMmTelManager.createForSubscriptionId(SUB_ID_ONE); in testMmTelRegisterAndUnregisterImsStateCallbackValues()
168 ImsMmTelManager mmTelManager = ImsMmTelManager.createForSubscriptionId(SUB_ID_ONE); in testImsStateCallbacks()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DDeviceInfoUtils.java192 final String rawNumber = telephonyManager.createForSubscriptionId( in getFormattedPhoneNumber()
209 final String rawNumber = telephonyManager.createForSubscriptionId( in getFormattedPhoneNumbers()
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/
DEapAkaHelper.java69 .createForSubscriptionId(mSimSubscriptionId); in getEapAkaRootNai()
/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/
DCarrierDefaultReceiverTest.java72 doReturn(mTelephonyMgr).when(mTelephonyMgr).createForSubscriptionId(anyInt()); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractImsStatusPreferenceController.java114 final ImsMmTelManager imsMmTelManager = ImsMmTelManager.createForSubscriptionId(subId); in updateConnectivity()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierServiceStateTracker.java118 TelephonyManager.class).createForSubscriptionId(mPhone.getSubId()); in CarrierServiceStateTracker()
158 mTelephonyManager = mTelephonyManager.createForSubscriptionId( in CarrierServiceStateTracker()
302 Context.TELEPHONY_SERVICE)).createForSubscriptionId(mPhone.getSubId()); in isNrSupported()
DCarrierInfoManager.java303 .createForSubscriptionId(subId); in resetCarrierKeysForImsiEncryption()
345 .createForSubscriptionId(subId); in deleteCarrierInfoForImsiEncryption()
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/eapaka/
DEapAkaResponseTest.java93 when(mMockTelephonyManager.createForSubscriptionId(SUB_ID)) in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/domain/interactor/
DSimBouncerInteractor.kt193 telephonyManager.createForSubscriptionId(subscriptionId) in verifySimPin()
265 val telephonyManager = telephonyManager.createForSubscriptionId(subscriptionId) in verifySimPuk()
/frameworks/base/tests/vcn/java/com/android/server/vcn/routeselection/
DNetworkEvaluationTestBase.java137 when(mTelephonyManager.createForSubscriptionId(SUB_ID)).thenReturn(mTelephonyManager); in setUp()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/keyguard/
DKeyguardSimPukViewControllerTest.kt80 Mockito.`when`(telephonyManager.createForSubscriptionId(Mockito.anyInt())) in setup()
DKeyguardSimPinViewControllerTest.kt86 `when`(telephonyManager.createForSubscriptionId(anyInt())).thenReturn(telephonyManager) in setup()
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/
DEapAkaHelperTest.java55 when(mMockTelephonyManager.createForSubscriptionId(SUB_ID)) in setUp()
/frameworks/opt/net/ims/tests/src/com/android/ims/
DContextFixture.java76 doReturn(mTelephonyManager).when(mTelephonyManager).createForSubscriptionId(anyInt()); in ContextFixture()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DCarrierMergedConnectionRepositoryKairos.kt200 telephonyManager.createForSubscriptionId(subId), in <lambda>()
DCarrierMergedConnectionRepository.kt214 telephonyManager.createForSubscriptionId(subId), in <lambda>()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/
DPublishUtils.java159 return telephonyManager.createForSubscriptionId(subId); in getTelephonyManager()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DDataConnectionStateTracker.java147 mTelephonyListener.register(telephonyManager.createForSubscriptionId(subId)); in registerTelephonyListener()

1234