Home
last modified time | relevance | path

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

12345678

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionController.java52 import android.telephony.SubscriptionManager;
53 import android.telephony.SubscriptionManager.SimDisplayNameSource;
267 new WatchedInt(SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
277 private static int mDefaultPhoneId = SubscriptionManager.DEFAULT_PHONE_INDEX;
286 SubscriptionManager.ENHANCED_4G_MODE_ENABLED,
287 SubscriptionManager.VT_IMS_ENABLED,
288 SubscriptionManager.WFC_IMS_ENABLED,
289 SubscriptionManager.WFC_IMS_MODE,
290 SubscriptionManager.WFC_IMS_ROAMING_MODE,
291 SubscriptionManager.WFC_IMS_ROAMING_ENABLED,
[all …]
DSubscriptionInfoUpdater.java48 import android.telephony.SubscriptionManager;
114 private SubscriptionManager mSubscriptionManager = null;
144 mSubscriptionManager = SubscriptionManager.from(sContext); in SubscriptionInfoUpdater()
616 if (SubscriptionManager.isValidPhoneId(phoneId)) { in handleInactiveSlotIccStateChange()
629 strippedIccId, "CARD", SubscriptionManager.INVALID_PHONE_INDEX, in handleInactiveSlotIccStateChange()
630 SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM); in handleInactiveSlotIccStateChange()
643 value.put(SubscriptionManager.UICC_APPLICATIONS_ENABLED, true); in cleanSubscriptionInPhone()
644 sContext.getContentResolver().update(SubscriptionManager.CONTENT_URI, value, in cleanSubscriptionInPhone()
645 SubscriptionManager.ICC_ID + "=\'" + sInactiveIccIds[phoneId] + "\'", null); in cleanSubscriptionInPhone()
652 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in handleSimAbsent()
[all …]
DPhoneSwitcher.java21 import static android.telephony.SubscriptionManager.DEFAULT_SUBSCRIPTION_ID;
22 import static android.telephony.SubscriptionManager.INVALID_PHONE_INDEX;
23 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
54 import android.telephony.SubscriptionManager;
198 protected int mPrimaryDataSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
202 private int mOpptDataSubId = SubscriptionManager.DEFAULT_SUBSCRIPTION_ID;
206 protected int mPhoneIdInVoiceCall = SubscriptionManager.INVALID_PHONE_INDEX;
215 protected int mPreferredDataPhoneId = SubscriptionManager.INVALID_PHONE_INDEX;
219 new WatchedInt(SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
290 public int mExpectedSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
[all …]
DMultiSimSettingController.java19 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
46 import android.telephony.SubscriptionManager;
146 SubscriptionManager.INVALID_SIM_SLOT_INDEX);
148 SubscriptionManager.INVALID_SUBSCRIPTION_ID);
190 Arrays.fill(mCarrierConfigLoadedSubIds, SubscriptionManager.INVALID_SUBSCRIPTION_ID); in MultiSimSettingController()
203 if (SubscriptionManager.isValidSubscriptionId(subId)) { in notifyUserDataEnabled()
212 if (SubscriptionManager.isValidSubscriptionId(subId)) { in notifyRoamingDataEnabled()
344 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in onCarrierConfigChanged()
352 if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onCarrierConfigChanged()
498 mSubController.setDefaultDataSubId(SubscriptionManager.INVALID_SUBSCRIPTION_ID); in updateDefaults()
[all …]
DIccProvider.java29 import android.telephony.SubscriptionManager;
81 private SubscriptionManager mSubscriptionManager;
89 mSubscriptionManager = SubscriptionManager.from(getContext()); in onCreate()
101 SubscriptionManager.getDefaultSubscriptionId()); in query()
108 SubscriptionManager.getDefaultSubscriptionId()); in query()
115 SubscriptionManager.getDefaultSubscriptionId()); in query()
180 subId = SubscriptionManager.getDefaultSubscriptionId(); in insert()
190 subId = SubscriptionManager.getDefaultSubscriptionId(); in insert()
273 subId = SubscriptionManager.getDefaultSubscriptionId(); in delete()
283 subId = SubscriptionManager.getDefaultSubscriptionId(); in delete()
[all …]
/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.java35 import android.telephony.SubscriptionManager;
148 eq(SubscriptionManager.WFC_IMS_ENABLED), in testGetDefaultValues()
155 eq(SubscriptionManager.WFC_IMS_ROAMING_ENABLED), in testGetDefaultValues()
163 eq(SubscriptionManager.ENHANCED_4G_MODE_ENABLED), in testGetDefaultValues()
170 eq(SubscriptionManager.WFC_IMS_MODE), in testGetDefaultValues()
177 eq(SubscriptionManager.WFC_IMS_ROAMING_MODE), in testGetDefaultValues()
184 eq(SubscriptionManager.VT_IMS_ENABLED), in testGetDefaultValues()
196 eq(SubscriptionManager.WFC_IMS_MODE), in testSetValues()
202 eq(SubscriptionManager.WFC_IMS_ROAMING_MODE), in testSetValues()
208 eq(SubscriptionManager.VT_IMS_ENABLED), in testSetValues()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsCallbackAdapterManager.java24 import android.telephony.SubscriptionManager;
51 public SubscriptionManager.OnSubscriptionsChangedListener mSubChangedListener;
63 mSubChangedListener = new SubscriptionManager.OnSubscriptionsChangedListener() { in ImsCallbackAdapterManager()
66 SubscriptionManager manager = mContext.getSystemService(SubscriptionManager.class); in ImsCallbackAdapterManager()
117 if (!SubscriptionManager.isValidSubscriptionId(subId)) { in addCallbackForSubscription()
140 if (!SubscriptionManager.isValidSubscriptionId(subId)) { in removeCallbackForSubscription()
187 if (!SubscriptionManager.isValidSubscriptionId(subId)) { in removeCallbacksForSubscription()
223 SubscriptionManager manager = mContext.getSystemService(SubscriptionManager.class); in registerForSubscriptionsChanged()
233 SubscriptionManager manager = mContext.getSystemService(SubscriptionManager.class); in unregisterForSubscriptionsChanged()
DImsManager.java36 import android.telephony.SubscriptionManager;
307 SubscriptionManager.getDefaultVoicePhoneId()); in isEnhanced4gLteModeSettingEnabledByUser()
327 int setting = SubscriptionManager.getIntegerSubscriptionProperty( in isEnhanced4gLteModeSettingEnabledByUser()
328 getSubId(), SubscriptionManager.ENHANCED_4G_MODE_ENABLED, in isEnhanced4gLteModeSettingEnabledByUser()
352 SubscriptionManager.getDefaultVoicePhoneId()); in setEnhanced4gLteModeSetting()
379 int prevSetting = SubscriptionManager.getIntegerSubscriptionProperty(subId, in setEnhanced4gLteModeSetting()
380 SubscriptionManager.ENHANCED_4G_MODE_ENABLED, SUB_PROPERTY_NOT_INITIALIZED, in setEnhanced4gLteModeSetting()
387 SubscriptionManager.setSubscriptionProperty(subId, in setEnhanced4gLteModeSetting()
388 SubscriptionManager.ENHANCED_4G_MODE_ENABLED, in setEnhanced4gLteModeSetting()
413 SubscriptionManager.getDefaultVoicePhoneId()); in isNonTtyOrTtyOnVolteEnabled()
[all …]
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCarrierActionUtils.java28 import android.telephony.SubscriptionManager;
104 int subId = intent.getIntExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, in onDisableAllMeteredApns()
105 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onDisableAllMeteredApns()
112 int subId = intent.getIntExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, in onEnableAllMeteredApns()
113 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onEnableAllMeteredApns()
136 int subId = intent.getIntExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, in onRegisterDefaultNetworkAvail()
137 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onRegisterDefaultNetworkAvail()
144 int subId = intent.getIntExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, in onDeregisterDefaultNetworkAvail()
145 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onDeregisterDefaultNetworkAvail()
152 int subId = intent.getIntExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, in onDisableRadio()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionInfoUpdaterTest.java18 import static android.telephony.SubscriptionManager.UICC_APPLICATIONS_ENABLED;
51 import android.telephony.SubscriptionManager;
158 SubscriptionManager.CONTENT_URI.getAuthority(), in setUp()
308 verify(mContentProvider).update(eq(SubscriptionManager.CONTENT_URI), valueCapture.capture(), in testSimNotReadyDisabledUiccApps()
309 eq(SubscriptionManager.ICC_ID + "=\'" + iccId + "\'"), eq(null)); in testSimNotReadyDisabledUiccApps()
384 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLoaded()
431 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLoadedEmptyOperatorNumeric()
458 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLockedWithOutIccId()
495 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testDualSimLoaded()
546 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLockWithIccId()
[all …]
DSubscriptionControllerTest.java52 import android.telephony.SubscriptionManager;
110 mMockContentResolver.addProvider(SubscriptionManager.CONTENT_URI.getAuthority(), in setUp()
130 mContext.getContentResolver().delete(SubscriptionManager.CONTENT_URI, null, null); in tearDown()
140 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in tearDown()
143 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in tearDown()
146 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in tearDown()
171 assertTrue(SubscriptionManager.isValidSubscriptionId( in testInsertSim()
173 assertTrue(SubscriptionManager.isValidSlotIndex(mSubList.get(i).getSimSlotIndex())); in testInsertSim()
197 SubscriptionManager.NAME_SOURCE_USER_INPUT); in testChangeSIMProperty()
231 int nameSource = SubscriptionManager.NAME_SOURCE_SIM_SPN; in testSetGetDisplayNameSrc()
[all …]
DMultiSimSettingControllerTest.java45 import android.telephony.SubscriptionManager;
91 TelephonyManager.UNKNOWN_CARRIER_ID, SubscriptionManager.PROFILE_CLASS_DEFAULT,
92 SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM, null, null, true);
97 TelephonyManager.UNKNOWN_CARRIER_ID, SubscriptionManager.PROFILE_CLASS_DEFAULT,
98 SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM, null, null, true);
103 TelephonyManager.UNKNOWN_CARRIER_ID, SubscriptionManager.PROFILE_CLASS_DEFAULT,
104 SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM, null, null, true);
135 eq(SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID + "=" + 1), any()); in setUp()
137 eq(SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID + "=" + 2), any()); in setUp()
139 eq(SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID + "=" + 3), any()); in setUp()
[all …]
/frameworks/base/core/java/android/telephony/
DCellBroadcastIntents.java107 if (subId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in putPhoneIdAndSubIdExtra()
109 intent.putExtra(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, subId); in putPhoneIdAndSubIdExtra()
112 intent.putExtra(SubscriptionManager.EXTRA_SLOT_INDEX, phoneId); in putPhoneIdAndSubIdExtra()
122 SubscriptionManager subMan = in getSubIdForPhone()
123 (SubscriptionManager) context.getSystemService( in getSubIdForPhone()
129 return SubscriptionManager.INVALID_SUBSCRIPTION_ID; in getSubIdForPhone()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/
DVendorSubscriptionController.java36 import android.telephony.SubscriptionManager;
126 return addSubInfo(iccId, null, slotIndex, SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM); in addSubInfoRecord()
142 SubscriptionManager.putPhoneIdAndSubIdExtra(intent, slotIndex, subId[0]); in addSubInfo()
153 value.put(SubscriptionManager.UICC_APPLICATIONS_ENABLED, enabled); in setUiccApplicationsEnabled()
156 SubscriptionManager.getUriForSubscriptionId(subId), value, null, null); in setUiccApplicationsEnabled()
281 if ((defaultSmsSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID in updateUserPreferences()
286 if ((defaultVoiceSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID in updateUserPreferences()
304 SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM); in updateUserPreferences()
349 boolean isSubIdUsable = SubscriptionManager.isUsableSubIdValue(subId); in isSubProvisioned()
353 if (!SubscriptionManager.isValidSlotIndex(slotId)) { in isSubProvisioned()
[all …]
DVendorPhoneSwitcher.java19 import static android.telephony.SubscriptionManager.DEFAULT_SUBSCRIPTION_ID;
20 import static android.telephony.SubscriptionManager.INVALID_PHONE_INDEX;
21 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
37 import android.telephony.SubscriptionManager;
148 SubscriptionManager.INVALID_PHONE_INDEX);
150 if (SubscriptionManager.isValidPhoneId(phoneId)) {
230 if (phoneId == SubscriptionManager.INVALID_PHONE_INDEX) { in isSimReady()
268 if (SubscriptionManager.isValidSubscriptionId(sub)) hasAnyActiveSubscription = true; in onEvaluate()
273 if (SubscriptionManager.isValidSubscriptionId(mPreferredDataSubId.get()) in onEvaluate()
289 SubscriptionManager.isValidSubscriptionId(mPreferredDataSubId.get()); in onEvaluate()
[all …]
/frameworks/base/telephony/java/android/telephony/
DImsManager.java24 import android.telephony.SubscriptionManager;
106 if (!SubscriptionManager.isValidSubscriptionId(subscriptionId)) { in getImsRcsManager()
122 if (!SubscriptionManager.isValidSubscriptionId(subscriptionId)) { in getImsMmTelManager()
/frameworks/base/telephony/java/com/android/internal/telephony/
DTelephonyIntents.java20 import android.telephony.SubscriptionManager;
241 = SubscriptionManager.ACTION_DEFAULT_SUBSCRIPTION_CHANGED;
273 = SubscriptionManager.ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED;
/frameworks/base/services/core/java/com/android/server/emergency/
DEmergencyAffordanceService.java31 import android.telephony.SubscriptionManager;
74 private SubscriptionManager mSubscriptionManager;
88 int slotId = intent.getIntExtra(SubscriptionManager.EXTRA_SLOT_INDEX,
89 SubscriptionManager.INVALID_SIM_SLOT_INDEX);
98 private SubscriptionManager.OnSubscriptionsChangedListener mSubscriptionChangedListener
99 = new SubscriptionManager.OnSubscriptionsChangedListener() {
192 mSubscriptionManager = SubscriptionManager.from(mContext); in handleThirdPartyBootPhase()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitor.java28 import android.telephony.SubscriptionManager;
45 SubscriptionManager.OnSubscriptionsChangedListener {
73 private final SubscriptionManager mSubscriptionManager;
83 mSubscriptionManager = (SubscriptionManager) context.getSystemService( in NetworkStatsSubscriptionsMonitor()
127 private List<Integer> getActiveSubIdList(@NonNull SubscriptionManager subscriptionManager) { in getActiveSubIdList()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractImsStatusPreferenceController.java25 import android.telephony.SubscriptionManager;
75 final int subId = SubscriptionManager.getDefaultDataSubscriptionId(); in isAvailable()
106 final int subId = SubscriptionManager.getDefaultDataSubscriptionId(); in updateConnectivity()
107 if (!SubscriptionManager.isValidSubscriptionId(subId)) { in updateConnectivity()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageUtils.java22 import android.telephony.SubscriptionManager;
43 final SubscriptionManager subscriptionManager = in getMobileTemplate()
44 context.getSystemService(SubscriptionManager.class); in getMobileTemplate()
DSignalStrengthUtil.java20 import android.telephony.SubscriptionManager;
31 return SubscriptionManager.getResourcesForSubId(context, subscriptionId) in shouldInflateSignalStrength()
/frameworks/base/tests/net/java/android/net/
DTelephonyNetworkSpecifierTest.java26 import android.telephony.SubscriptionManager;
60 .setSubscriptionId(SubscriptionManager.INVALID_SUBSCRIPTION_ID) in testBuilderBuildWithInvalidSubId()
62 assertEquals(specifier.getSubscriptionId(), SubscriptionManager.INVALID_SUBSCRIPTION_ID); in testBuilderBuildWithInvalidSubId()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityModel.java22 import android.telephony.SubscriptionManager;
68 if (mIsPukScreenAvailable && SubscriptionManager.isValidSubscriptionId( in getSecurityMode()
73 if (SubscriptionManager.isValidSubscriptionId( in getSecurityMode()

12345678