/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SubscriptionController.java | 52 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 …]
|
D | SubscriptionInfoUpdater.java | 48 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 …]
|
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; 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 …]
|
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 | 29 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/ |
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 | 36 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SubscriptionInfoUpdaterTest.java | 18 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 …]
|
D | SubscriptionControllerTest.java | 52 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 …]
|
D | MultiSimSettingControllerTest.java | 45 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/ |
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 | 36 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 …]
|
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.get()) in onEvaluate() 289 SubscriptionManager.isValidSubscriptionId(mPreferredDataSubId.get()); in onEvaluate() [all …]
|
/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/telephony/java/com/android/internal/telephony/ |
D | TelephonyIntents.java | 20 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/ |
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/services/core/java/com/android/server/net/ |
D | NetworkStatsSubscriptionsMonitor.java | 28 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/ |
D | AbstractImsStatusPreferenceController.java | 25 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/ |
D | DataUsageUtils.java | 22 import android.telephony.SubscriptionManager; 43 final SubscriptionManager subscriptionManager = in getMobileTemplate() 44 context.getSystemService(SubscriptionManager.class); in getMobileTemplate()
|
D | SignalStrengthUtil.java | 20 import android.telephony.SubscriptionManager; 31 return SubscriptionManager.getResourcesForSubId(context, subscriptionId) in shouldInflateSignalStrength()
|
/frameworks/base/tests/net/java/android/net/ |
D | TelephonyNetworkSpecifierTest.java | 26 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/ |
D | KeyguardSecurityModel.java | 22 import android.telephony.SubscriptionManager; 68 if (mIsPukScreenAvailable && SubscriptionManager.isValidSubscriptionId( in getSecurityMode() 73 if (SubscriptionManager.isValidSubscriptionId( in getSecurityMode()
|