Home
last modified time | relevance | path

Searched refs:SubscriptionManager (Results 1 – 25 of 150) sorted by relevance

123456

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DFakeTelephonyProvider.java28 import android.telephony.SubscriptionManager;
55 + SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID in getStringForSimInfoTableCreation()
57 + SubscriptionManager.ICC_ID + " TEXT NOT NULL," in getStringForSimInfoTableCreation()
58 + SubscriptionManager.SIM_SLOT_INDEX in getStringForSimInfoTableCreation()
59 + " INTEGER DEFAULT " + SubscriptionManager.SIM_NOT_INSERTED + "," in getStringForSimInfoTableCreation()
60 + SubscriptionManager.DISPLAY_NAME + " TEXT," in getStringForSimInfoTableCreation()
61 + SubscriptionManager.CARRIER_NAME + " TEXT," in getStringForSimInfoTableCreation()
62 + SubscriptionManager.NAME_SOURCE in getStringForSimInfoTableCreation()
63 + " INTEGER DEFAULT " + SubscriptionManager.NAME_SOURCE_DEFAULT_SOURCE + "," in getStringForSimInfoTableCreation()
64 + SubscriptionManager.COLOR + " INTEGER DEFAULT " in getStringForSimInfoTableCreation()
[all …]
DSubscriptionControllerTest.java42 import android.telephony.SubscriptionManager;
89 mMockContentResolver.addProvider(SubscriptionManager.CONTENT_URI.getAuthority(), in setUp()
109 mContext.getContentResolver().delete(SubscriptionManager.CONTENT_URI, null, null); in tearDown()
119 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in tearDown()
122 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in tearDown()
125 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in tearDown()
148 assertTrue(SubscriptionManager.isValidSubscriptionId( in testInsertSim()
150 assertTrue(SubscriptionManager.isValidSlotIndex(mSubList.get(i).getSimSlotIndex())); in testInsertSim()
174 SubscriptionManager.NAME_SOURCE_USER_INPUT); in testChangeSIMProperty()
208 int nameSource = SubscriptionManager.NAME_SOURCE_SIM_SOURCE; in testSetGetDisplayNameSrc()
[all …]
DSubscriptionInfoUpdaterTest.java50 import android.telephony.SubscriptionManager;
161 SubscriptionManager.CONTENT_URI.getAuthority(), in setUp()
309 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLoaded()
356 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLoadedEmptyOperatorNumeric()
384 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLockedWithOutIccId()
419 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testDualSimLoaded()
472 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLockWithIccId()
519 "3", SubscriptionManager.SIM_NOT_INSERTED); in testUpdateEmbeddedSubscriptions_listSuccess()
526 verify(mContentProvider).update(eq(SubscriptionManager.CONTENT_URI), iccid1Values.capture(), in testUpdateEmbeddedSubscriptions_listSuccess()
527 eq(SubscriptionManager.ICC_ID + "=\"1\""), isNull()); in testUpdateEmbeddedSubscriptions_listSuccess()
[all …]
DMultiSimSettingControllerTest.java43 import android.telephony.SubscriptionManager;
85 TelephonyManager.UNKNOWN_CARRIER_ID, SubscriptionManager.PROFILE_CLASS_DEFAULT,
86 SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM, null);
91 TelephonyManager.UNKNOWN_CARRIER_ID, SubscriptionManager.PROFILE_CLASS_DEFAULT,
92 SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM, null);
97 TelephonyManager.UNKNOWN_CARRIER_ID, SubscriptionManager.PROFILE_CLASS_DEFAULT,
98 SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM, null);
127 eq(SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID + "=" + 1), any()); in setUp()
129 eq(SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID + "=" + 2), any()); in setUp()
131 eq(SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID + "=" + 3), any()); in setUp()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionController.java48 import android.telephony.SubscriptionManager;
144 private static int mDefaultFallbackSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
146 private static int mDefaultPhoneId = SubscriptionManager.DEFAULT_PHONE_INDEX;
218 sendDefaultChangedBroadcast(SubscriptionManager.getDefaultSubscriptionId()); in notifySubInfoReady()
241 value.put(SubscriptionManager.SIM_SLOT_INDEX, SubscriptionManager.INVALID_SIM_SLOT_INDEX); in clearSlotIndexForSubInfoRecords()
242 mContext.getContentResolver().update(SubscriptionManager.CONTENT_URI, value, null, null); in clearSlotIndexForSubInfoRecords()
317 SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID)); in getSubInfoRecord()
319 SubscriptionManager.ICC_ID)); in getSubInfoRecord()
321 SubscriptionManager.SIM_SLOT_INDEX)); in getSubInfoRecord()
323 SubscriptionManager.DISPLAY_NAME)); in getSubInfoRecord()
[all …]
DSubscriptionInfoUpdater.java51 import android.telephony.SubscriptionManager;
111 private SubscriptionManager mSubscriptionManager = null;
151 mSubscriptionManager = SubscriptionManager.from(mContext); in SubscriptionInfoUpdater()
605 if (!SubscriptionManager.isValidSlotIndex(slotIndex)) { in updateSubscriptionInfoByIccId()
635 value.put(SubscriptionManager.NUMBER, msisdn); in updateSubscriptionInfoByIccId()
636 … mContext.getContentResolver().update(SubscriptionManager.getUriForSubscriptionId( in updateSubscriptionInfoByIccId()
803 int nameSource = SubscriptionManager.NAME_SOURCE_DEFAULT_SOURCE; in updateEmbeddedSubscriptionsCache()
807 embeddedProfile.getIccid(), SubscriptionManager.SIM_NOT_INSERTED); in updateEmbeddedSubscriptionsCache()
820 values.put(SubscriptionManager.IS_EMBEDDED, 1); in updateEmbeddedSubscriptionsCache()
826 values.put(SubscriptionManager.ACCESS_RULES, in updateEmbeddedSubscriptionsCache()
[all …]
DIccProvider.java31 import android.telephony.SubscriptionManager;
82 private SubscriptionManager mSubscriptionManager;
86 mSubscriptionManager = SubscriptionManager.from(getContext()); in onCreate()
98 SubscriptionManager.getDefaultSubscriptionId()); in query()
105 SubscriptionManager.getDefaultSubscriptionId()); in query()
112 SubscriptionManager.getDefaultSubscriptionId()); in query()
177 subId = SubscriptionManager.getDefaultSubscriptionId(); in insert()
187 subId = SubscriptionManager.getDefaultSubscriptionId(); in insert()
270 subId = SubscriptionManager.getDefaultSubscriptionId(); in delete()
280 subId = SubscriptionManager.getDefaultSubscriptionId(); in delete()
[all …]
DPhoneSwitcher.java20 import static android.telephony.SubscriptionManager.DEFAULT_SUBSCRIPTION_ID;
21 import static android.telephony.SubscriptionManager.INVALID_PHONE_INDEX;
22 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
52 import android.telephony.SubscriptionManager;
178 private int mPrimaryDataSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
182 private int mOpptDataSubId = SubscriptionManager.DEFAULT_SUBSCRIPTION_ID;
186 private int mPhoneIdInVoiceCall = SubscriptionManager.INVALID_PHONE_INDEX;
195 protected int mPreferredDataPhoneId = SubscriptionManager.INVALID_PHONE_INDEX;
198 private int mPreferredDataSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
322 mPhoneIdInVoiceCall = SubscriptionManager.INVALID_PHONE_INDEX; in isPhoneInVoiceCallChanged()
[all …]
DMultiSimSettingController.java19 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
41 import android.telephony.SubscriptionManager;
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()
525 Phone phone = PhoneFactory.getPhone(SubscriptionManager.getPhoneId(subId)); in getSimCombinationWarningParams()
559 && SubscriptionManager.isValidSubscriptionId(phone.getSubId()) in disableDataForNonDefaultNonOpportunisticSubscriptions()
570 if (!SubscriptionManager.isUsableSubscriptionId(subId1) in areSubscriptionsInSameGroup()
571 || !SubscriptionManager.isUsableSubscriptionId(subId2)) return false; in areSubscriptionsInSameGroup()
654 return SubscriptionManager.isValidSubscriptionId(newValue); in updateDefaultValue()
DCellularNetworkValidator.java25 import android.telephony.SubscriptionManager;
116 Phone phone = PhoneFactory.getPhone(SubscriptionManager.getPhoneId(subId)); in validate()
153 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in stopValidation()
198 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in reportValidationResult()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DMmTelFeatureConnectionTest.java34 import android.telephony.SubscriptionManager;
112 any(SubscriptionManager.OnSubscriptionsChangedListener.class)); in testCallbackAdapter_addAndRemoveCallback()
119 any(SubscriptionManager.OnSubscriptionsChangedListener.class)); in testCallbackAdapter_addAndRemoveCallback()
134 any(SubscriptionManager.OnSubscriptionsChangedListener.class)); in testCallbackAdapter_addAndRemoveCallbackForSub()
139 any(SubscriptionManager.OnSubscriptionsChangedListener.class)); in testCallbackAdapter_addAndRemoveCallbackForSub()
161 any(SubscriptionManager.OnSubscriptionsChangedListener.class)); in testCallbackAdapter_addAndRemoveCallbackForMultipleSubs()
167 any(SubscriptionManager.OnSubscriptionsChangedListener.class)); in testCallbackAdapter_addAndRemoveCallbackForMultipleSubs()
172 any(SubscriptionManager.OnSubscriptionsChangedListener.class)); in testCallbackAdapter_addAndRemoveCallbackForMultipleSubs()
193 any(SubscriptionManager.OnSubscriptionsChangedListener.class)); in testCallbackAdapter_onSubscriptionsChangedMultipleSubs()
203 any(SubscriptionManager.OnSubscriptionsChangedListener.class)); in testCallbackAdapter_onSubscriptionsChangedMultipleSubs()
[all …]
DImsManagerTest.java34 import android.telephony.SubscriptionManager;
145 eq(SubscriptionManager.WFC_IMS_ENABLED), in testGetDefaultValues()
151 eq(SubscriptionManager.WFC_IMS_ROAMING_ENABLED), in testGetDefaultValues()
158 eq(SubscriptionManager.ENHANCED_4G_MODE_ENABLED), in testGetDefaultValues()
164 eq(SubscriptionManager.WFC_IMS_MODE), in testGetDefaultValues()
170 eq(SubscriptionManager.WFC_IMS_ROAMING_MODE), in testGetDefaultValues()
176 eq(SubscriptionManager.VT_IMS_ENABLED), in testGetDefaultValues()
187 eq(SubscriptionManager.WFC_IMS_MODE), in testSetValues()
193 eq(SubscriptionManager.WFC_IMS_ROAMING_MODE), in testSetValues()
199 eq(SubscriptionManager.VT_IMS_ENABLED), in testSetValues()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsManager.java45 import android.telephony.SubscriptionManager;
470 SubscriptionManager.getDefaultVoicePhoneId()); in isEnhanced4gLteModeSettingEnabledByUser()
489 int setting = SubscriptionManager.getIntegerSubscriptionProperty( in isEnhanced4gLteModeSettingEnabledByUser()
490 getSubId(), SubscriptionManager.ENHANCED_4G_MODE_ENABLED, in isEnhanced4gLteModeSettingEnabledByUser()
514 SubscriptionManager.getDefaultVoicePhoneId()); in setEnhanced4gLteModeSetting()
541 int prevSetting = SubscriptionManager.getIntegerSubscriptionProperty(subId, in setEnhanced4gLteModeSetting()
542 SubscriptionManager.ENHANCED_4G_MODE_ENABLED, SUB_PROPERTY_NOT_INITIALIZED, in setEnhanced4gLteModeSetting()
549 SubscriptionManager.setSubscriptionProperty(subId, in setEnhanced4gLteModeSetting()
550 SubscriptionManager.ENHANCED_4G_MODE_ENABLED, in setEnhanced4gLteModeSetting()
574 SubscriptionManager.getDefaultVoicePhoneId()); in isNonTtyOrTtyOnVolteEnabled()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageUtils.java22 import android.telephony.SubscriptionManager;
38 final SubscriptionManager subscriptionManager = context.getSystemService( in getMobileTemplate()
39 SubscriptionManager.class); in getMobileTemplate()
DSignalStrengthUtil.java20 import android.telephony.SubscriptionManager;
31 return SubscriptionManager.getResourcesForSubId(context, subscriptionId) in shouldInflateSignalStrength()
DDataUsageController.java38 import android.telephony.SubscriptionManager;
79 mSubscriptionId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in DataUsageController()
213 if (!SubscriptionManager.isValidSubscriptionId(subscriptionId)) { in getTelephonyManager()
214 subscriptionId = SubscriptionManager.getDefaultDataSubscriptionId(); in getTelephonyManager()
218 if (!SubscriptionManager.isValidSubscriptionId(subscriptionId)) { in getTelephonyManager()
219 int[] activeSubIds = SubscriptionManager.from(mContext).getActiveSubscriptionIdList(); in getTelephonyManager()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSIMAccessor.java4 import android.telephony.SubscriptionManager;
12 private final SubscriptionManager mSubscriptionManager;
18 mSubscriptionManager = SubscriptionManager.from(context); in SIMAccessor()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCarrierActionUtils.java28 import android.telephony.SubscriptionManager;
106 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onDisableAllMeteredApns()
114 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onEnableAllMeteredApns()
138 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onRegisterDefaultNetworkAvail()
146 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onDeregisterDefaultNetworkAvail()
154 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onDisableRadio()
162 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onEnableRadio()
205 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onResetAllCarrierActions()
/frameworks/base/telephony/java/com/android/internal/telephony/
DTelephonyIntents.java20 import android.telephony.SubscriptionManager;
348 = SubscriptionManager.ACTION_DEFAULT_SUBSCRIPTION_CHANGED;
380 = SubscriptionManager.ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED;
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityModel.java20 import android.telephony.SubscriptionManager;
60 if (mIsPukScreenAvailable && SubscriptionManager.isValidSubscriptionId( in getSecurityMode()
65 if (SubscriptionManager.isValidSubscriptionId( in getSecurityMode()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java52 import android.telephony.SubscriptionManager;
123 int subId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
125 int phoneId = SubscriptionManager.INVALID_PHONE_INDEX;
221 private int mDefaultSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
223 private int mDefaultPhoneId = SubscriptionManager.INVALID_PHONE_INDEX;
243 private int mActiveDataSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
300 if(r.subId == SubscriptionManager.DEFAULT_SUBSCRIPTION_ID) {
342 SubscriptionManager.getDefaultSubscriptionId()));
344 SubscriptionManager.getPhoneId(mDefaultSubId));
612 listenForSubscriber(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID, pkgForDebug, callback, in listen()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DCellularLinkLayerStatsCollectorTest.java49 import android.telephony.SubscriptionManager;
75 private static final int SUBID = SubscriptionManager.DEFAULT_SUBSCRIPTION_ID;
79 @Mock SubscriptionManager mSubscriptionManager;
91 mMockingSession = mockitoSession().mockStatic(SubscriptionManager.class).startMocking(); in setUp()
92 when(SubscriptionManager.getDefaultDataSubscriptionId()).thenReturn(SUBID); in setUp()
93 when(SubscriptionManager.getDefaultSubscriptionId()).thenReturn(SUBID); in setUp()
187 assertEquals(SUBID, SubscriptionManager.getDefaultDataSubscriptionId()); in testCollectorUpdate()
188 assertEquals(SUBID, SubscriptionManager.getDefaultSubscriptionId()); in testCollectorUpdate()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractImsStatusPreferenceController.java25 import android.telephony.SubscriptionManager;
61 int subId = SubscriptionManager.getDefaultDataSubscriptionId(); in isAvailable()
89 int subId = SubscriptionManager.getDefaultDataSubscriptionId(); in updateConnectivity()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataEnabledSettings.java34 import android.telephony.SubscriptionManager;
113 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
131 private final SubscriptionManager.OnSubscriptionsChangedListener
133 new SubscriptionManager.OnSubscriptionsChangedListener() {
152 if (SubscriptionManager.isUsableSubscriptionId(mSubId)) { in updatePhoneStateListener()
180 SubscriptionManager subscriptionManager = (SubscriptionManager) mPhone.getContext() in DataEnabledSettings()
/frameworks/base/services/core/java/com/android/server/emergency/
DEmergencyAffordanceService.java35 import android.telephony.SubscriptionManager;
71 private SubscriptionManager mSubscriptionManager;
108 private SubscriptionManager.OnSubscriptionsChangedListener mSubscriptionChangedListener
109 = new SubscriptionManager.OnSubscriptionsChangedListener() {
166 mSubscriptionManager = SubscriptionManager.from(mContext); in onBootPhase()

123456