Home
last modified time | relevance | path

Searched refs:INVALID_SUBSCRIPTION_ID (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DSubscriptionControllerMock.java21 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
43 final AtomicInteger mDefaultDataSubId = new AtomicInteger(INVALID_SUBSCRIPTION_ID);
44 final AtomicInteger mDefaultVoiceSubId = new AtomicInteger(INVALID_SUBSCRIPTION_ID);
64 mSlotIndexToSubId[i][0] = INVALID_SUBSCRIPTION_ID; in SubscriptionControllerMock()
99 return INVALID_SUBSCRIPTION_ID; in getSubIdUsingPhoneId()
210 if (subId <= INVALID_SUBSCRIPTION_ID) return INVALID_PHONE_INDEX; in getPhoneId()
246 return INVALID_SUBSCRIPTION_ID; in getDefaultVoiceSubId()
DTelephonyRegistryMock.java57 int subId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DTetheringConfigurationTest.java25 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
128 return new TetheringConfiguration(mMockContext, mLog, INVALID_SUBSCRIPTION_ID); in getTetheringConfiguration()
214 mMockContext, mLog, INVALID_SUBSCRIPTION_ID); in testNoDefinedUpstreamTypesAddsEthernet()
237 mMockContext, mLog, INVALID_SUBSCRIPTION_ID); in testDefinedUpstreamTypesSansEthernetAddsEthernet()
255 mMockContext, mLog, INVALID_SUBSCRIPTION_ID); in testDefinedUpstreamTypesWithEthernetDoesNotAddEthernet()
271 mMockContext, mLog, INVALID_SUBSCRIPTION_ID); in testNewDhcpServerDisabled()
280 mMockContext, mLog, INVALID_SUBSCRIPTION_ID); in testNewDhcpServerEnabled()
288 mMockContext, mLog, INVALID_SUBSCRIPTION_ID); in testGetResourcesBySubId()
DEntitlementManagerTest.java25 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
167 mConfig = new TetheringConfiguration(mMockContext, mLog, INVALID_SUBSCRIPTION_ID); in setUp()
196 mConfig = new TetheringConfiguration(mMockContext, mLog, INVALID_SUBSCRIPTION_ID); in setupForRequiredProvisioning()
210 mConfig = new TetheringConfiguration(mMockContext, mLog, INVALID_SUBSCRIPTION_ID); in toleratesCarrierConfigManagerMissing()
220 mConfig = new TetheringConfiguration(mMockContext, mLog, INVALID_SUBSCRIPTION_ID); in toleratesCarrierConfigMissing()
238 mConfig = new TetheringConfiguration(mMockContext, mLog, INVALID_SUBSCRIPTION_ID); in provisioningNotRequiredWhenAppNotFound()
242 mConfig = new TetheringConfiguration(mMockContext, mLog, INVALID_SUBSCRIPTION_ID); in provisioningNotRequiredWhenAppNotFound()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DMultiSimSettingControllerTest.java165 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mSubControllerMock) in testTestSubInfoChangeBeforeAllSubReady()
167 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mSubControllerMock) in testTestSubInfoChangeBeforeAllSubReady()
169 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mSubControllerMock) in testTestSubInfoChangeBeforeAllSubReady()
175 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mPhoneMock2).getSubId(); in testTestSubInfoChangeBeforeAllSubReady()
200 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mSubControllerMock) in testSingleActiveDsds()
202 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mSubControllerMock) in testSingleActiveDsds()
204 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mSubControllerMock) in testSingleActiveDsds()
210 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mPhoneMock2).getSubId(); in testSingleActiveDsds()
244 doReturn(SubscriptionManager.INVALID_SUBSCRIPTION_ID).when(mPhoneMock2).getSubId(); in testActivatingSecondSub()
328 verify(mSubControllerMock).setDefaultDataSubId(SubscriptionManager.INVALID_SUBSCRIPTION_ID); in testSimpleDsds()
[all …]
DSubscriptionControllerTest.java119 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in tearDown()
122 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in tearDown()
125 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in tearDown()
236 assertEquals(SubscriptionManager.INVALID_SUBSCRIPTION_ID, in testDefaultSubIdOnSingleSimDevice()
238 assertEquals(SubscriptionManager.INVALID_SUBSCRIPTION_ID, in testDefaultSubIdOnSingleSimDevice()
240 assertEquals(SubscriptionManager.INVALID_SUBSCRIPTION_ID, in testDefaultSubIdOnSingleSimDevice()
587 assertEquals(SubscriptionManager.INVALID_SUBSCRIPTION_ID, in testDefaultSubIdOnMultiSimDevice()
589 assertEquals(SubscriptionManager.INVALID_SUBSCRIPTION_ID, in testDefaultSubIdOnMultiSimDevice()
591 assertEquals(SubscriptionManager.INVALID_SUBSCRIPTION_ID, in testDefaultSubIdOnMultiSimDevice()
DFakeSmsContentProvider.java62 SubscriptionManager.INVALID_SUBSCRIPTION_ID + ", " + in onCreate()
DPhoneSwitcherTest.java103 private int mDefaultDataSub = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
992 mSlotIndexToSubId[i][0] = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in setNumPhones()
1067 return SubscriptionManager.INVALID_SUBSCRIPTION_ID; in initializeSubControllerMock()
DSubscriptionMonitorTest.java19 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
546 subController.setDefaultDataSubId(INVALID_SUBSCRIPTION_ID); in testNoDefaultNotifications()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionMonitor.java20 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
124 if (mDefaultDataSubId == INVALID_SUBSCRIPTION_ID) continue;
156 mSubscriptionController.getPhoneId(INVALID_SUBSCRIPTION_ID);
157 if (newDefaultDataSubId != INVALID_SUBSCRIPTION_ID) {
DMultiSimSettingController.java19 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
319 mContext, Settings.Global.MOBILE_DATA, INVALID_SUBSCRIPTION_ID, enable); in onSubscriptionGroupChanged()
331 mContext, Settings.Global.DATA_ROAMING, INVALID_SUBSCRIPTION_ID, enable); in onSubscriptionGroupChanged()
365 mSubController.setDefaultDataSubId(SubscriptionManager.INVALID_SUBSCRIPTION_ID); in updateDefaults()
366 mSubController.setDefaultVoiceSubId(SubscriptionManager.INVALID_SUBSCRIPTION_ID); in updateDefaults()
367 mSubController.setDefaultSmsSubId(SubscriptionManager.INVALID_SUBSCRIPTION_ID); in updateDefaults()
634 int newValue = INVALID_SUBSCRIPTION_ID; in updateDefaultValue()
DPhoneSwitcher.java22 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
178 private int mPrimaryDataSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
198 private int mPreferredDataSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
953 if (subId == INVALID_SUBSCRIPTION_ID) return INVALID_PHONE_INDEX; in phoneIdForRequest()
956 ? mPhoneSubscriptions[mPreferredDataPhoneId] : INVALID_SUBSCRIPTION_ID; in phoneIdForRequest()
996 return INVALID_SUBSCRIPTION_ID; in getSubIdFromNetworkRequest()
999 return INVALID_SUBSCRIPTION_ID; in getSubIdFromNetworkRequest()
1057 if (mPreferredDataSubId != INVALID_SUBSCRIPTION_ID) { in transitionToEmergencyPhone()
1058 mPreferredDataSubId = INVALID_SUBSCRIPTION_ID; in transitionToEmergencyPhone()
1075 mSubscriptionController.getSubIdUsingPhoneId(phoneId) == INVALID_SUBSCRIPTION_ID in shouldApplyNetworkRequest()
DCellularNetworkValidator.java153 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in stopValidation()
198 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in reportValidationResult()
DSubscriptionController.java144 private static int mDefaultFallbackSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
547 ? si.getSubscriptionId() : SubscriptionManager.INVALID_SUBSCRIPTION_ID; in getActiveSubscriptionInfoForIccId()
656 mContext, SubscriptionManager.INVALID_SUBSCRIPTION_ID, callingPackage, in getAllSubInfoList()
770 mContext, SubscriptionManager.INVALID_SUBSCRIPTION_ID, callingPackage, in getAllSubInfoCount()
813 mContext, SubscriptionManager.INVALID_SUBSCRIPTION_ID, callingPackage, in getAvailableSubscriptionInfoList()
1268 int subId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in removeSubInfo()
1278 if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in removeSubInfo()
1323 int newDefault = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in removeSubInfo()
2137 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in getDefaultSmsSubId()
2159 subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID in setDefaultVoiceSubId()
[all …]
DAppSmsManager.java303 SubscriptionManager.INVALID_SUBSCRIPTION_ID, false); in AppRequestInfo()
/frameworks/base/telephony/java/android/telephony/
DMbmsStreamingSession.java19 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
88 private int mSubscriptionId = INVALID_SUBSCRIPTION_ID;
DSubscriptionManager.java94 public static final int INVALID_SUBSCRIPTION_ID = -1; field in SubscriptionManager
99 public static final int DUMMY_SUBSCRIPTION_ID_BASE = INVALID_SUBSCRIPTION_ID - 1;
1817 int subId = INVALID_SUBSCRIPTION_ID; in getDefaultSubscriptionId()
1840 int subId = INVALID_SUBSCRIPTION_ID; in getDefaultVoiceSubscriptionId()
1895 int subId = INVALID_SUBSCRIPTION_ID; in getDefaultSmsSubscriptionId()
1959 int subId = INVALID_SUBSCRIPTION_ID; in getDefaultDataSubscriptionId()
2057 return subscriptionId > INVALID_SUBSCRIPTION_ID; in isValidSubscriptionId()
3110 int subId = INVALID_SUBSCRIPTION_ID; in getEnabledSubscriptionId()
DMbmsDownloadSession.java19 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
237 private int mSubscriptionId = INVALID_SUBSCRIPTION_ID;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DCellularLinkLayerStatsCollector.java59 private int mCachedDefaultDataSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
118 if (defaultDataSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in retrieveDefaultDataTelephonyManager()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardEsimArea.java121 .switchToSubscription(SubscriptionManager.INVALID_SUBSCRIPTION_ID, callbackIntent); in onClick()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DNotificationChannelController.java178 if (SubscriptionManager.INVALID_SUBSCRIPTION_ID !=
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactory.java19 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
111 mSubscriptionId = INVALID_SUBSCRIPTION_ID; in TelephonyNetworkFactory()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DDataUsageControllerTest.java188 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in getTelephonyManager_noExplicitSubIdOrDefaultSub_shouldCreateWithActiveSub()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java79 mSubscriptionId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in DataUsageController()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DTetheringConfiguration.java334 if (subId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in getResources()

12