Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DDataUsageControllerTest.java77 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mTelephonyManager); in setUp()
162 when(mTelephonyManager.createForSubscriptionId(eq(explicitSubId))).thenReturn(tmForSub1); in getTelephonyManager_shouldCreateWithExplicitSubId()
168 verify(mTelephonyManager).createForSubscriptionId(eq(explicitSubId)); in getTelephonyManager_shouldCreateWithExplicitSubId()
175 when(mTelephonyManager.createForSubscriptionId(mDefaultSubscriptionId)) in getTelephonyManager_noExplicitSubId_shouldCreateWithDefaultDataSubId()
180 verify(mTelephonyManager).createForSubscriptionId(mDefaultSubscriptionId); in getTelephonyManager_noExplicitSubId_shouldCreateWithDefaultDataSubId()
192 when(mTelephonyManager.createForSubscriptionId(activeSubId)) in getTelephonyManager_noExplicitSubIdOrDefaultSub_shouldCreateWithActiveSub()
197 verify(mTelephonyManager).createForSubscriptionId(activeSubId); in getTelephonyManager_noExplicitSubIdOrDefaultSub_shouldCreateWithActiveSub()
DDataUsageUtilsTest.java73 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mTelephonyManager); in setUp()
/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/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageUtils.java41 telephonyManager.createForSubscriptionId(subId).getSubscriberId()); in getMobileTemplate()
48 final String[] mergedSubscriberIds = telephonyManager.createForSubscriptionId(subId) in getMobileTemplate()
DDataUsageController.java226 TelephonyManager.class).createForSubscriptionId(subscriptionId); in getTelephonyManager()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyPermissionsTest.java100 when(mTelephonyManagerMock.createForSubscriptionId(anyInt())).thenReturn( in setUp()
169 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckReadPhoneState_hasCarrierPrivileges()
211 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckReadPhoneStateOnAnyActiveSub_hasCarrierPrivileges()
295 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckReadDeviceIdentifiers_hasCarrierPrivileges()
358 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID_2))).thenReturn( in testCheckReadDeviceIdentifiers_hasCarrierPrivilegesOnOtherSubscription()
372 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID_2))).thenReturn( in testCheckReadDeviceIdentifiers_hasCarrierPrivilegesOnInvisibleSubscription()
438 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testCheckCallingOrSelfReadSubscriberIdentifiers_carrierPrivileges()
457 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID_2))).thenReturn( in testCheckCallingOrSelfReadSubscriberIdentifiers_carrierPrivilegesOnOtherSub()
552 when(mTelephonyManagerMock.createForSubscriptionId(eq(SUB_ID))).thenReturn( in testEnforeceCallingOrSelfReadPrecisePhoneStatePermissionOrCarrierPrivilege_withPrivileges()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTelephonyUtil.java98 TelephonyManager defaultDataTm = tm.createForSubscriptionId( in getSimIdentity()
152 TelephonyManager defaultDataTm = tm.createForSubscriptionId( in getAnonymousIdentityWith3GppRealm()
482 TelephonyManager defaultDataTm = tm.createForSubscriptionId( in getGsmAuthResponseWithLength()
555 TelephonyManager defaultDataTm = tm.createForSubscriptionId( in getGsmSimpleSimNoLengthAuthResponse()
654 .createForSubscriptionId(SubscriptionManager.getDefaultDataSubscriptionId()) in get3GAuthResponse()
714 TelephonyManager defaultDataTm = tm.createForSubscriptionId( in getCarrierType()
752 TelephonyManager defaultDataTm = tm.createForSubscriptionId( in decoratePseudonymWith3GppRealm()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitor.java114 mTeleManager.createForSubscriptionId(subId) in onSubscriptionsChanged()
166 mTeleManager.createForSubscriptionId(listener.mSubId) in handleRemoveRatTypeListener()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DDeviceInfoUtils.java184 final String rawNumber = telephonyManager.createForSubscriptionId( in getFormattedPhoneNumber()
201 final String rawNumber = telephonyManager.createForSubscriptionId( in getFormattedPhoneNumbers()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DSystemInfoTest.java54 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in setUp()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DSystemInfo.java103 TelephonyManager defaultDataTm = mTelephonyManager.createForSubscriptionId( in getDeviceId()
DPasspointNetworkEvaluator.java196 .createForSubscriptionId(SubscriptionManager.getDefaultDataSubscriptionId()) in createEphemeralProfileForMatchingAp()
DPasspointManager.java468 .createForSubscriptionId(SubscriptionManager.getDefaultDataSubscriptionId()) in findEapMethodFromNAIRealmMatchedWithCarrier()
531 .createForSubscriptionId(SubscriptionManager.getDefaultDataSubscriptionId()) in createEphemeralPasspointConfigForCarrier()
552 .createForSubscriptionId(SubscriptionManager.getDefaultDataSubscriptionId()) in createEphemeralPasspointConfigForCarrier()
/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/
DCarrierDefaultReceiverTest.java72 doReturn(mTelephonyMgr).when(mTelephonyMgr).createForSubscriptionId(anyInt()); in setUp()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/omadm/
DDevDetailMoTest.java69 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in setUp()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DPostDevDataMessageTest.java82 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/dataconnection/
DVendorDataResetEventTracker.java163 createForSubscriptionId(ddsSubId). in startResetEventTracker()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DCarrierNetworkConfig.java144 .createForSubscriptionId(SubscriptionManager.getDefaultDataSubscriptionId()) in verifyCarrierImsiEncryptionInfoIsAvailable()
DCellularLinkLayerStatsCollector.java133 .createForSubscriptionId(defaultDataSubId); in retrieveDefaultDataTelephonyManager()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DCarrierNetworkConfigTest.java107 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mDataTelephonyManager); in setUp()
/frameworks/base/telephony/java/android/telephony/ims/
DProvisioningManager.java935 public static @NonNull ProvisioningManager createForSubscriptionId(int subId) { in createForSubscriptionId() method in ProvisioningManager
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DDevDetailMo.java212 .createForSubscriptionId(SubscriptionManager.getDefaultDataSubscriptionId()) in serializeToXml()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSimPinView.java260 .createForSubscriptionId(mSubId); in run()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitorTest.java80 when(mTelephonyManager.createForSubscriptionId(anyInt())).thenReturn(mTelephonyManager); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataEnabledSettings.java155 mTelephonyManager = mTelephonyManager.createForSubscriptionId(mSubId); in updatePhoneStateListener()

123