/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | FakeTelephonyProvider.java | 28 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 …]
|
D | SubscriptionControllerTest.java | 42 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 …]
|
D | SubscriptionInfoUpdaterTest.java | 50 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 …]
|
D | MultiSimSettingControllerTest.java | 43 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/ |
D | SubscriptionController.java | 48 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 …]
|
D | SubscriptionInfoUpdater.java | 51 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 …]
|
D | IccProvider.java | 31 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 …]
|
D | PhoneSwitcher.java | 20 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 …]
|
D | MultiSimSettingController.java | 19 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()
|
D | CellularNetworkValidator.java | 25 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/ |
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 | 34 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/ |
D | ImsManager.java | 45 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/ |
D | DataUsageUtils.java | 22 import android.telephony.SubscriptionManager; 38 final SubscriptionManager subscriptionManager = context.getSystemService( in getMobileTemplate() 39 SubscriptionManager.class); in getMobileTemplate()
|
D | SignalStrengthUtil.java | 20 import android.telephony.SubscriptionManager; 31 return SubscriptionManager.getResourcesForSubId(context, subscriptionId) in shouldInflateSignalStrength()
|
D | DataUsageController.java | 38 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/ |
D | SIMAccessor.java | 4 import android.telephony.SubscriptionManager; 12 private final SubscriptionManager mSubscriptionManager; 18 mSubscriptionManager = SubscriptionManager.from(context); in SIMAccessor()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CarrierActionUtils.java | 28 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/ |
D | TelephonyIntents.java | 20 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/ |
D | KeyguardSecurityModel.java | 20 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/ |
D | TelephonyRegistry.java | 52 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/ |
D | CellularLinkLayerStatsCollectorTest.java | 49 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/ |
D | AbstractImsStatusPreferenceController.java | 25 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/ |
D | DataEnabledSettings.java | 34 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/ |
D | EmergencyAffordanceService.java | 35 import android.telephony.SubscriptionManager; 71 private SubscriptionManager mSubscriptionManager; 108 private SubscriptionManager.OnSubscriptionsChangedListener mSubscriptionChangedListener 109 = new SubscriptionManager.OnSubscriptionsChangedListener() { 166 mSubscriptionManager = SubscriptionManager.from(mContext); in onBootPhase()
|