Home
last modified time | relevance | path

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

12345

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionControllerTest.java31 import android.telephony.SubscriptionManager;
62 SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID,
63 SubscriptionManager.ICC_ID, SubscriptionManager.SIM_SLOT_INDEX,
64 SubscriptionManager.DISPLAY_NAME, SubscriptionManager.CARRIER_NAME,
65 SubscriptionManager.NAME_SOURCE, SubscriptionManager.COLOR,
66 SubscriptionManager.NUMBER, SubscriptionManager.DISPLAY_NUMBER_FORMAT,
67 SubscriptionManager.DATA_ROAMING, SubscriptionManager.MCC,
68 SubscriptionManager.MNC, SubscriptionManager.CB_EXTREME_THREAT_ALERT,
69 SubscriptionManager.CB_SEVERE_THREAT_ALERT, SubscriptionManager.CB_AMBER_ALERT,
70 SubscriptionManager.CB_ALERT_SOUND_DURATION,
[all …]
DSubscriptionInfoUpdaterTest.java47 import android.telephony.SubscriptionManager;
149 SubscriptionManager.CONTENT_URI.getAuthority(), in setUp()
175 verify(mSubscriptionContent).put(eq(SubscriptionManager.SIM_SLOT_INDEX), in testSimAbsent()
176 eq(SubscriptionManager.INVALID_SIM_SLOT_INDEX)); in testSimAbsent()
266 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLoaded()
312 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLoadedEmptyOperatorNumeric()
340 verify(mSubscriptionContent).put(eq(SubscriptionManager.SIM_SLOT_INDEX), in testSimLockedWithOutIccId()
341 eq(SubscriptionManager.INVALID_SIM_SLOT_INDEX)); in testSimLockedWithOutIccId()
342 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLockedWithOutIccId()
391 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testDualSimLoaded()
[all …]
DFakeSmsContentProvider.java27 import android.telephony.SubscriptionManager;
62 SubscriptionManager.INVALID_SUBSCRIPTION_ID + ", " + in onCreate()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionController.java38 import android.telephony.SubscriptionManager;
161 private static int mDefaultFallbackSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
162 private static int mDefaultPhoneId = SubscriptionManager.DEFAULT_PHONE_INDEX;
273 SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID)); in getSubInfoRecord()
275 SubscriptionManager.ICC_ID)); in getSubInfoRecord()
277 SubscriptionManager.SIM_SLOT_INDEX)); in getSubInfoRecord()
279 SubscriptionManager.DISPLAY_NAME)); in getSubInfoRecord()
281 SubscriptionManager.CARRIER_NAME)); in getSubInfoRecord()
283 SubscriptionManager.NAME_SOURCE)); in getSubInfoRecord()
285 SubscriptionManager.COLOR)); in getSubInfoRecord()
[all …]
DSubscriptionInfoUpdater.java46 import android.telephony.SubscriptionManager;
115 private SubscriptionManager mSubscriptionManager = null;
130 mSubscriptionManager = SubscriptionManager.from(mContext); in SubscriptionInfoUpdater()
404 SubscriptionManager.NAME_SOURCE_USER_INPUT) { in handleSimLoaded()
565 value.put(SubscriptionManager.SIM_SLOT_INDEX, in updateSubscriptionInfoByIccId()
566 SubscriptionManager.INVALID_SIM_SLOT_INDEX); in updateSubscriptionInfoByIccId()
567 contentResolver.update(SubscriptionManager.CONTENT_URI, value, in updateSubscriptionInfoByIccId()
568 SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID + "=" in updateSubscriptionInfoByIccId()
648 value.put(SubscriptionManager.NUMBER, msisdn); in updateSubscriptionInfoByIccId()
649 contentResolver.update(SubscriptionManager.CONTENT_URI, value, in updateSubscriptionInfoByIccId()
[all …]
DIccProvider.java29 import android.telephony.SubscriptionManager;
79 private SubscriptionManager mSubscriptionManager;
83 mSubscriptionManager = SubscriptionManager.from(getContext()); in onCreate()
95 SubscriptionManager.getDefaultSubscriptionId()); in query()
102 SubscriptionManager.getDefaultSubscriptionId()); in query()
109 SubscriptionManager.getDefaultSubscriptionId()); in query()
173 subId = SubscriptionManager.getDefaultSubscriptionId(); in insert()
183 subId = SubscriptionManager.getDefaultSubscriptionId(); in insert()
266 subId = SubscriptionManager.getDefaultSubscriptionId(); in delete()
276 subId = SubscriptionManager.getDefaultSubscriptionId(); in delete()
[all …]
DVisualVoicemailSmsFilter.java26 import android.telephony.SubscriptionManager;
79 if (!SubscriptionManager.isValidSubscriptionId(subId)) {
82 int phoneId = SubscriptionManager.getPhoneId(subId);
83 if (phoneId == SubscriptionManager.INVALID_PHONE_INDEX) {
DCarrierServiceStateTracker.java34 import android.telephony.SubscriptionManager;
35 import android.telephony.SubscriptionManager.OnSubscriptionsChangedListener;
61 private int mPreviousSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
71 SubscriptionManager.from(mPhone.getContext()).addOnSubscriptionsChangedListener( in CarrierServiceStateTracker()
105 if (SubscriptionManager.isValidSubscriptionId(subId)) { in registerPrefNetworkModeObserver()
DPhoneSubInfoController.java33 import android.telephony.SubscriptionManager;
58 return getDeviceIdForPhone(SubscriptionManager.getPhoneId(getDefaultSubscription()), in getDeviceId()
63 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in getDeviceIdForPhone()
327 int phoneId = SubscriptionManager.getPhoneId(subId); in getPhone()
328 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in getPhone()
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsManager.java35 import android.telephony.SubscriptionManager;
426 SubscriptionManager.getDefaultVoicePhoneId()); in isEnhanced4gLteModeSettingEnabledByUser()
444 int setting = SubscriptionManager.getIntegerSubscriptionProperty( in isEnhanced4gLteModeSettingEnabledByUser()
445 getSubId(), SubscriptionManager.ENHANCED_4G_MODE_ENABLED, in isEnhanced4gLteModeSettingEnabledByUser()
467 SubscriptionManager.getDefaultVoicePhoneId()); in setEnhanced4gLteModeSetting()
488 int prevSetting = SubscriptionManager.getIntegerSubscriptionProperty( in setEnhanced4gLteModeSetting()
489 getSubId(), SubscriptionManager.ENHANCED_4G_MODE_ENABLED, in setEnhanced4gLteModeSetting()
495 SubscriptionManager.setSubscriptionProperty(getSubId(), in setEnhanced4gLteModeSetting()
496 SubscriptionManager.ENHANCED_4G_MODE_ENABLED, booleanToPropertyString(enabled)); in setEnhanced4gLteModeSetting()
515 SubscriptionManager.getDefaultVoicePhoneId()); in isNonTtyOrTtyOnVolteEnabled()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsManagerTest.java33 import android.telephony.SubscriptionManager;
125 eq(SubscriptionManager.WFC_IMS_ENABLED), in testGetDefaultValues()
132 eq(SubscriptionManager.ENHANCED_4G_MODE_ENABLED), in testGetDefaultValues()
138 eq(SubscriptionManager.WFC_IMS_MODE), in testGetDefaultValues()
144 eq(SubscriptionManager.WFC_IMS_ROAMING_MODE), in testGetDefaultValues()
150 eq(SubscriptionManager.VT_IMS_ENABLED), in testGetDefaultValues()
161 eq(SubscriptionManager.WFC_IMS_MODE), in testSetValues()
167 eq(SubscriptionManager.WFC_IMS_ROAMING_MODE), in testSetValues()
173 eq(SubscriptionManager.VT_IMS_ENABLED), in testSetValues()
182 eq(SubscriptionManager.ENHANCED_4G_MODE_ENABLED), in testSetValues()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSIMAccessor.java4 import android.telephony.SubscriptionManager;
12 private final SubscriptionManager mSubscriptionManager;
16 mSubscriptionManager = SubscriptionManager.from(context); in SIMAccessor()
DCarrierNetworkConfig.java34 import android.telephony.SubscriptionManager;
172 SubscriptionManager subscriptionManager = (SubscriptionManager) context.getSystemService( in updateNetworkConfig()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java47 import android.telephony.SubscriptionManager;
108 int subId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
110 int phoneId = SubscriptionManager.INVALID_PHONE_INDEX;
189 private int mDefaultSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
191 private int mDefaultPhoneId = SubscriptionManager.INVALID_PHONE_INDEX;
251 if(r.subId == SubscriptionManager.DEFAULT_SUBSCRIPTION_ID) {
291 SubscriptionManager.getDefaultSubscriptionId()));
293 SubscriptionManager.getPhoneId(mDefaultSubId));
459 listenForSubscriber(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID, pkgForDebug, callback, in listen()
487 int phoneId = SubscriptionManager.getPhoneId(subId); in listen()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DTelephonyIntents.java21 import android.telephony.SubscriptionManager;
349 = SubscriptionManager.ACTION_DEFAULT_SUBSCRIPTION_CHANGED;
381 = SubscriptionManager.ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED;
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCarrierActionUtils.java28 import android.telephony.SubscriptionManager;
102 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onDisableAllMeteredApns()
110 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onEnableAllMeteredApns()
134 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onRegisterDefaultNetworkAvail()
142 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onDeregisterDefaultNetworkAvail()
150 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onDisableRadio()
158 SubscriptionManager.getDefaultVoiceSubscriptionId()); in onEnableRadio()
/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()
DKeyguardEsimArea.java32 import android.telephony.SubscriptionManager;
105 SubscriptionInfo sub = SubscriptionManager.from(context).getActiveSubscriptionInfo(subId); in isEsimLocked()
125 .switchToSubscription(SubscriptionManager.INVALID_SUBSCRIPTION_ID, callbackIntent); in onClick()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractImsStatusPreferenceController.java28 import android.telephony.SubscriptionManager;
60 int subId = SubscriptionManager.getDefaultDataSubscriptionId(); in isAvailable()
88 int subId = SubscriptionManager.getDefaultDataSubscriptionId(); in updateConnectivity()
/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()
/frameworks/base/telephony/java/android/telephony/ims/compat/feature/
DImsFeature.java24 import android.telephony.SubscriptionManager;
96 private int mSlotId = SubscriptionManager.INVALID_SIM_SLOT_INDEX;
169 if(mContext == null || mSlotId == SubscriptionManager.INVALID_SIM_SLOT_INDEX) { in sendImsServiceIntent()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DNotificationChannelController.java27 import android.telephony.SubscriptionManager;
149 if (SubscriptionManager.INVALID_SUBSCRIPTION_ID !=
150 SubscriptionManager.getDefaultSubscriptionId()) {
DVoicemailNotificationSettingsUtil.java25 import android.telephony.SubscriptionManager;
158 + SubscriptionManager.getDefaultSubscriptionId(); in getVoicemailVibrationSharedPrefsKey()
163 + SubscriptionManager.getDefaultSubscriptionId(); in getVoicemailRingtoneSharedPrefsKey()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DImsResolver.java36 import android.telephony.SubscriptionManager;
214 SubscriptionManager.INVALID_SIM_SLOT_INDEX);
216 if (slotId == SubscriptionManager.INVALID_SIM_SLOT_INDEX) {
245 int[] subIds = SubscriptionManager.getSubId(slotId);
250 return SubscriptionManager.INVALID_SUBSCRIPTION_ID;
255 return SubscriptionManager.getSlotIndex(subId);
504 SubscriptionManager.INVALID_SIM_SLOT_INDEX).sendToTarget(); in initPopulateCacheAndStartBind()
796 return SubscriptionManager.INVALID_SIM_SLOT_INDEX; in getSlotForActiveCarrierService()
920 if (slotId != SubscriptionManager.INVALID_SIM_SLOT_INDEX) { in calculateFeaturesToCreate()
1003 if (slotId <= SubscriptionManager.INVALID_SIM_SLOT_INDEX) { in maybeRebindService()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/
DImsStatusPreferenceControllerTest.java29 import android.telephony.SubscriptionManager;
93 @Implements(SubscriptionManager.class)

12345