/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SubscriptionController.java | 53 import android.telephony.SubscriptionManager; 54 import android.telephony.SubscriptionManager.SimDisplayNameSource; 153 protected static int mDefaultFallbackSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; 155 private static int mDefaultPhoneId = SubscriptionManager.DEFAULT_PHONE_INDEX; 164 SubscriptionManager.ENHANCED_4G_MODE_ENABLED, 165 SubscriptionManager.VT_IMS_ENABLED, 166 SubscriptionManager.WFC_IMS_ENABLED, 167 SubscriptionManager.WFC_IMS_MODE, 168 SubscriptionManager.WFC_IMS_ROAMING_MODE, 169 SubscriptionManager.WFC_IMS_ROAMING_ENABLED, [all …]
|
D | SubscriptionInfoUpdater.java | 50 import android.telephony.SubscriptionManager; 116 private SubscriptionManager mSubscriptionManager = null; 154 mSubscriptionManager = SubscriptionManager.from(sContext); in SubscriptionInfoUpdater() 638 if (SubscriptionManager.isValidPhoneId(phoneId)) { in handleInactiveSlotIccStateChange() 651 strippedIccId, "CARD", SubscriptionManager.INVALID_PHONE_INDEX, in handleInactiveSlotIccStateChange() 652 SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM); in handleInactiveSlotIccStateChange() 684 value.put(SubscriptionManager.UICC_APPLICATIONS_ENABLED, true); in cleanSubscriptionInPhone() 685 sContext.getContentResolver().update(SubscriptionManager.CONTENT_URI, value, in cleanSubscriptionInPhone() 686 SubscriptionManager.ICC_ID + "=\'" + iccId + "\'", null); in cleanSubscriptionInPhone() 694 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in handleSimAbsent() [all …]
|
D | PhoneSwitcher.java | 21 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; 197 protected int mPrimaryDataSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; 201 private int mOpptDataSubId = SubscriptionManager.DEFAULT_SUBSCRIPTION_ID; 205 protected int mPhoneIdInVoiceCall = SubscriptionManager.INVALID_PHONE_INDEX; 214 protected int mPreferredDataPhoneId = SubscriptionManager.INVALID_PHONE_INDEX; 217 protected int mPreferredDataSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; 282 public int mExpectedSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; [all …]
|
D | MultiSimSettingController.java | 19 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 …]
|
D | IccProvider.java | 30 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/ |
D | SubscriptionControllerTest.java | 48 import android.telephony.SubscriptionManager; 102 mMockContentResolver.addProvider(SubscriptionManager.CONTENT_URI.getAuthority(), in setUp() 120 mContext.getContentResolver().delete(SubscriptionManager.CONTENT_URI, null, null); in tearDown() 130 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in tearDown() 133 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in tearDown() 136 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in tearDown() 161 assertTrue(SubscriptionManager.isValidSubscriptionId( in testInsertSim() 163 assertTrue(SubscriptionManager.isValidSlotIndex(mSubList.get(i).getSimSlotIndex())); in testInsertSim() 187 SubscriptionManager.NAME_SOURCE_USER_INPUT); in testChangeSIMProperty() 221 int nameSource = SubscriptionManager.NAME_SOURCE_SIM_SPN; in testSetGetDisplayNameSrc() [all …]
|
D | SubscriptionInfoUpdaterTest.java | 18 import static android.telephony.SubscriptionManager.UICC_APPLICATIONS_ENABLED; 50 import android.telephony.SubscriptionManager; 156 SubscriptionManager.CONTENT_URI.getAuthority(), in setUp() 306 verify(mContentProvider).update(eq(SubscriptionManager.CONTENT_URI), valueCapture.capture(), in testSimNotReadyDisabledUiccApps() 307 eq(SubscriptionManager.ICC_ID + "=\'" + iccId + "\'"), eq(null)); in testSimNotReadyDisabledUiccApps() 324 verify(mContentProvider).update(eq(SubscriptionManager.CONTENT_URI), valueCapture.capture(), in testSimRemovedWhileDisablingUiccApps() 325 eq(SubscriptionManager.ICC_ID + "=\'" + FAKE_ICCID_1 + "\'"), eq(null)); in testSimRemovedWhileDisablingUiccApps() 409 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLoaded() 456 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLoadedEmptyOperatorNumeric() 483 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLockedWithOutIccId() [all …]
|
D | MultiSimSettingControllerTest.java | 43 import android.telephony.SubscriptionManager; 89 TelephonyManager.UNKNOWN_CARRIER_ID, SubscriptionManager.PROFILE_CLASS_DEFAULT, 90 SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM, null, null, true); 95 TelephonyManager.UNKNOWN_CARRIER_ID, SubscriptionManager.PROFILE_CLASS_DEFAULT, 96 SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM, null, null, true); 101 TelephonyManager.UNKNOWN_CARRIER_ID, SubscriptionManager.PROFILE_CLASS_DEFAULT, 102 SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM, null, null, true); 133 eq(SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID + "=" + 1), any()); in setUp() 135 eq(SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID + "=" + 2), any()); in setUp() 137 eq(SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID + "=" + 3), any()); in setUp() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | MmTelFeatureConnectionTest.java | 34 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 …]
|
D | ImsManagerTest.java | 35 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/ |
D | ImsCallbackAdapterManager.java | 24 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()
|
D | ImsManager.java | 37 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/ |
D | CarrierActionUtils.java | 28 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/base/core/java/android/telephony/ |
D | CellBroadcastIntents.java | 107 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/ |
D | VendorSubscriptionController.java | 38 import android.telephony.SubscriptionManager; 128 return addSubInfo(iccId, null, slotIndex, SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM); in addSubInfoRecord() 144 SubscriptionManager.putPhoneIdAndSubIdExtra(intent, slotIndex, subId[0]); in addSubInfo() 155 value.put(SubscriptionManager.UICC_APPLICATIONS_ENABLED, enabled); in setUiccApplicationsEnabled() 158 SubscriptionManager.getUriForSubscriptionId(subId), value, null, null); in setUiccApplicationsEnabled() 283 if ((defaultSmsSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID in updateUserPreferences() 288 if ((defaultVoiceSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID in updateUserPreferences() 306 SubscriptionManager.SUBSCRIPTION_TYPE_LOCAL_SIM); in updateUserPreferences() 351 boolean isSubIdUsable = SubscriptionManager.isUsableSubIdValue(subId); in isSubProvisioned() 355 if (!SubscriptionManager.isValidSlotIndex(slotId)) { in isSubProvisioned() [all …]
|
D | VendorPhoneSwitcher.java | 19 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) in onEvaluate() 289 SubscriptionManager.isValidSubscriptionId(mPreferredDataSubId); in onEvaluate() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SIMAccessor.java | 4 import android.telephony.SubscriptionManager; 12 private final SubscriptionManager mSubscriptionManager; 18 mSubscriptionManager = SubscriptionManager.from(context); in SIMAccessor()
|
/frameworks/base/tests/net/java/android/net/ |
D | TelephonyNetworkSpecifierTest.java | 23 import android.telephony.SubscriptionManager; 56 .setSubscriptionId(SubscriptionManager.INVALID_SUBSCRIPTION_ID) in testBuilderBuildWithInvalidSubId() 58 assertEquals(specifier.getSubscriptionId(), SubscriptionManager.INVALID_SUBSCRIPTION_ID); in testBuilderBuildWithInvalidSubId()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageUtils.java | 21 import android.telephony.SubscriptionManager; 38 final SubscriptionManager subscriptionManager = context.getSystemService( in getMobileTemplate() 39 SubscriptionManager.class); in getMobileTemplate()
|
/frameworks/base/telephony/java/android/telephony/ |
D | ImsManager.java | 24 import android.telephony.SubscriptionManager; 106 if (!SubscriptionManager.isValidSubscriptionId(subscriptionId)) { in getImsRcsManager() 122 if (!SubscriptionManager.isValidSubscriptionId(subscriptionId)) { in getImsMmTelManager()
|
/frameworks/base/services/core/java/com/android/server/emergency/ |
D | EmergencyAffordanceService.java | 31 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/telephony/java/com/android/internal/telephony/ |
D | TelephonyIntents.java | 20 import android.telephony.SubscriptionManager; 297 = SubscriptionManager.ACTION_DEFAULT_SUBSCRIPTION_CHANGED; 329 = SubscriptionManager.ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED;
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityModel.java | 20 import android.telephony.SubscriptionManager; 60 if (mIsPukScreenAvailable && SubscriptionManager.isValidSubscriptionId( in getSecurityMode() 65 if (SubscriptionManager.isValidSubscriptionId( in getSecurityMode()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | CellularLinkLayerStatsCollectorTest.java | 50 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/services/core/java/com/android/server/net/ |
D | NetworkStatsSubscriptionsMonitor.java | 29 import android.telephony.SubscriptionManager; 46 SubscriptionManager.OnSubscriptionsChangedListener { 74 private final SubscriptionManager mSubscriptionManager; 84 mSubscriptionManager = (SubscriptionManager) context.getSystemService( in NetworkStatsSubscriptionsMonitor() 128 private List<Integer> getActiveSubIdList(@NonNull SubscriptionManager subscriptionManager) { in getActiveSubIdList()
|