Home
last modified time | relevance | path

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

123

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionController.java36 import android.telephony.SubscriptionManager;
133 private static int mDefaultFallbackSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
134 private static int mDefaultPhoneId = SubscriptionManager.DEFAULT_PHONE_INDEX;
266 SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID)); in getSubInfoRecord()
268 SubscriptionManager.ICC_ID)); in getSubInfoRecord()
270 SubscriptionManager.SIM_SLOT_INDEX)); in getSubInfoRecord()
272 SubscriptionManager.DISPLAY_NAME)); in getSubInfoRecord()
274 SubscriptionManager.CARRIER_NAME)); in getSubInfoRecord()
276 SubscriptionManager.NAME_SOURCE)); in getSubInfoRecord()
278 SubscriptionManager.COLOR)); in getSubInfoRecord()
[all …]
DSubscriptionInfoUpdater.java42 import android.telephony.SubscriptionManager;
108 private SubscriptionManager mSubscriptionManager = null;
122 mSubscriptionManager = SubscriptionManager.from(mContext); in SubscriptionInfoUpdater()
207 SubscriptionManager.INVALID_SIM_SLOT_INDEX);
209 if (slotId == SubscriptionManager.INVALID_SIM_SLOT_INDEX) {
264 SubscriptionManager.NAME_SOURCE_DEFAULT_SOURCE && newSubName != null) || in setDisplayNameForNewSub()
265 (oldNameSource == SubscriptionManager.NAME_SOURCE_SIM_SOURCE && newSubName != null in setDisplayNameForNewSub()
404 int subId = SubscriptionManager.DEFAULT_SUBSCRIPTION_ID; in handleSimLoaded()
410 if (SubscriptionManager.isValidSubscriptionId(subId)) { in handleSimLoaded()
429 number.put(SubscriptionManager.NUMBER, msisdn); in handleSimLoaded()
[all …]
DIccProvider.java29 import android.telephony.SubscriptionManager;
80 private SubscriptionManager mSubscriptionManager;
84 mSubscriptionManager = SubscriptionManager.from(getContext()); in onCreate()
96 SubscriptionManager.getDefaultSubscriptionId()); in query()
103 SubscriptionManager.getDefaultSubscriptionId()); in query()
110 SubscriptionManager.getDefaultSubscriptionId()); in query()
174 subId = SubscriptionManager.getDefaultSubscriptionId(); in insert()
184 subId = SubscriptionManager.getDefaultSubscriptionId(); in insert()
267 subId = SubscriptionManager.getDefaultSubscriptionId(); in delete()
277 subId = SubscriptionManager.getDefaultSubscriptionId(); in delete()
[all …]
DCellBroadcastHandler.java27 import android.telephony.SubscriptionManager;
94 SubscriptionManager.putPhoneIdAndSubIdExtra(intent, mPhone.getPhoneId()); in handleBroadcastSms()
DPhoneSubInfoController.java28 import android.telephony.SubscriptionManager;
60 return getDeviceIdForPhone(SubscriptionManager.getPhoneId(getDefaultSubscription()), in getDeviceId()
68 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in getDeviceIdForPhone()
273 int phoneId = SubscriptionManager.getPhoneId(subId); in getPhone()
274 if (!SubscriptionManager.isValidPhoneId(phoneId)) { in getPhone()
DSubscriptionMonitor.java19 import static android.telephony.SubscriptionManager.INVALID_PHONE_INDEX;
20 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
32 import android.telephony.SubscriptionManager;
DSmsStorageMonitor.java29 import android.telephony.SubscriptionManager;
147 SubscriptionManager.putPhoneIdAndSubIdExtra(intent, mPhone.getPhoneId()); in handleIccFull()
DUiccSmsController.java33 import android.telephony.SubscriptionManager;
273 subInfoList = SubscriptionManager.from(context).getActiveSubscriptionInfoList(); in isSmsSimPickActivityNeeded()
333 if (!SubscriptionManager.isValidPhoneId(phoneId) in getIccSmsInterfaceManager()
334 || phoneId == SubscriptionManager.DEFAULT_PHONE_INDEX) { in getIccSmsInterfaceManager()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionControllerTest.java39 import android.telephony.SubscriptionManager;
61 SubscriptionManager.UNIQUE_KEY_SUBSCRIPTION_ID,
62 SubscriptionManager.ICC_ID, SubscriptionManager.SIM_SLOT_INDEX,
63 SubscriptionManager.DISPLAY_NAME, SubscriptionManager.CARRIER_NAME,
64 SubscriptionManager.NAME_SOURCE, SubscriptionManager.COLOR,
65 SubscriptionManager.NUMBER, SubscriptionManager.DISPLAY_NUMBER_FORMAT,
66 SubscriptionManager.DATA_ROAMING, SubscriptionManager.MCC,
67 SubscriptionManager.MNC, SubscriptionManager.CB_EXTREME_THREAT_ALERT,
68 SubscriptionManager.CB_SEVERE_THREAT_ALERT, SubscriptionManager.CB_AMBER_ALERT,
69 SubscriptionManager.CB_ALERT_SOUND_DURATION,
[all …]
DSubscriptionInfoUpdaterTest.java31 import android.telephony.SubscriptionManager;
129 SubscriptionManager.CONTENT_URI.getAuthority(), in setUp()
155 verify(mSubscriptionContent).put(eq(SubscriptionManager.SIM_SLOT_INDEX), in testSimAbsent()
156 eq(SubscriptionManager.INVALID_SIM_SLOT_INDEX)); in testSimAbsent()
255 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLoaded()
303 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLoadedEmptyOperatorNumeric()
345 verify(mSubscriptionContent).put(eq(SubscriptionManager.SIM_SLOT_INDEX), in testSimLockedWithOutIccId()
346 eq(SubscriptionManager.INVALID_SIM_SLOT_INDEX)); in testSimLockedWithOutIccId()
347 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLockedWithOutIccId()
380 SubscriptionManager mSubscriptionManager = SubscriptionManager.from(mContext); in testSimLockWIthIccId()
DSubscriptionInfoTest.java18 import android.telephony.SubscriptionManager;
39 SubscriptionManager.SIM_PROVISIONED); in setUp()
/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()
/frameworks/base/telephony/java/android/telephony/
DTelephonyManager.java111 private SubscriptionManager mSubscriptionManager;
131 this(context, SubscriptionManager.DEFAULT_SUBSCRIPTION_ID); in TelephonyManager()
143 mSubscriptionManager = SubscriptionManager.from(mContext); in TelephonyManager()
154 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in TelephonyManager()
881 int[] subId = SubscriptionManager.getSubId(slotId); in getNai()
1061 if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in getCurrentPhoneType()
1066 phoneId = SubscriptionManager.getPhoneId(subId); in getCurrentPhoneType()
1299 int phoneId = SubscriptionManager.getPhoneId(subId); in getNetworkOperatorName()
1326 int phoneId = SubscriptionManager.getPhoneId(subId); in getNetworkOperator()
1365 int phoneId = SubscriptionManager.getPhoneId(subId); in isNetworkRoaming()
[all …]
DPhoneStateListener.java23 import android.telephony.SubscriptionManager;
236 protected int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
245 this(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID, Looper.myLooper()); in PhoneStateListener()
254 this(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID, looper); in PhoneStateListener()
DSubscriptionManager.java50 public class SubscriptionManager { class
408 public SubscriptionManager(Context context) { in SubscriptionManager() method in SubscriptionManager
421 public static SubscriptionManager from(Context context) { in from()
422 return (SubscriptionManager) context.getSystemService( in from()
1216 int[] subIds = SubscriptionManager.getSubId(phoneId); in putPhoneIdAndSubIdExtra()
1399 SubscriptionManager.from(context).getActiveSubscriptionInfo(subId); in getResourcesForSubId()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java39 import android.telephony.SubscriptionManager;
99 int subId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
101 int phoneId = SubscriptionManager.INVALID_PHONE_INDEX;
177 private int mDefaultSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
179 private int mDefaultPhoneId = SubscriptionManager.INVALID_PHONE_INDEX;
238 if(r.subId == SubscriptionManager.DEFAULT_SUBSCRIPTION_ID) {
263 SubscriptionManager.getDefaultSubscriptionId()));
265 SubscriptionManager.getPhoneId(mDefaultSubId));
457 listenForSubscriber(SubscriptionManager.DEFAULT_SUBSCRIPTION_ID, pkgForDebug, callback, in listen()
520 if (!SubscriptionManager.isValidSubscriptionId(subId)) { in listen()
[all …]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardSecurityModel.java20 import android.telephony.SubscriptionManager;
60 if (SubscriptionManager.isValidSubscriptionId( in getSecurityMode()
65 if (mIsPukScreenAvailable && SubscriptionManager.isValidSubscriptionId( in getSecurityMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java34 import android.telephony.SubscriptionManager;
35 import android.telephony.SubscriptionManager.OnSubscriptionsChangedListener;
79 private final SubscriptionManager mSubscriptionManager;
142 SubscriptionManager.from(context), Config.readConfig(context), bgLooper, in NetworkControllerImpl()
153 SubscriptionManager subManager, Config config, Looper bgLooper, in NetworkControllerImpl()
270 if (!SubscriptionManager.isValidSubscriptionId(dataSubId)) { in getDataController()
294 if (!SubscriptionManager.isValidSubscriptionId(voiceSubId)) { in isEmergencyOnly()
401 SubscriptionManager.INVALID_SUBSCRIPTION_ID); in onReceive()
402 if (SubscriptionManager.isValidSubscriptionId(subId)) { in onReceive()
813 null, 0, 0, "", SubscriptionManager.SIM_PROVISIONED); in addSignalController()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DSubscriptionControllerMock.java19 import static android.telephony.SubscriptionManager.INVALID_PHONE_INDEX;
20 import static android.telephony.SubscriptionManager.INVALID_SUBSCRIPTION_ID;
21 import static android.telephony.SubscriptionManager.DEFAULT_SUBSCRIPTION_ID;
28 import android.telephony.SubscriptionManager;
DTelephonyRegistryMock.java28 import android.telephony.SubscriptionManager;
51 int subId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
53 int phoneId = SubscriptionManager.INVALID_PHONE_INDEX;
/frameworks/opt/telephony/src/java/android/provider/
DTelephony.java31 import android.telephony.SubscriptionManager;
342 return addMessageToUri(SubscriptionManager.getDefaultSmsSubscriptionId(), in addMessageToUri()
386 return addMessageToUri(SubscriptionManager.getDefaultSmsSubscriptionId(), in addMessageToUri()
526 return addMessageToUri(SubscriptionManager.getDefaultSmsSubscriptionId(), in addMessage()
585 return addMessageToUri(SubscriptionManager.getDefaultSmsSubscriptionId(), in addMessage()
630 return addMessageToUri(SubscriptionManager.getDefaultSmsSubscriptionId(), in addMessage()
695 return addMessageToUri(SubscriptionManager.getDefaultSmsSubscriptionId(), in addMessage()
1158 SubscriptionManager.getDefaultSmsSubscriptionId()); in getMessagesFromIntent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerBaseTest.java28 import android.telephony.SubscriptionManager;
66 protected SubscriptionManager mMockSm;
82 mMockSm = mock(SubscriptionManager.class); in setUp()
110 mSubId = SubscriptionManager.DEFAULT_SUBSCRIPTION_ID; in setupNetworkController()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DRilMessageDecoder.java21 import android.telephony.SubscriptionManager;
68 if (slotId != SubscriptionManager.INVALID_SIM_SLOT_INDEX && slotId < mSimCount) { in getInstance()
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsManager.java33 import android.telephony.SubscriptionManager;
227 SubscriptionManager.getDefaultVoicePhoneId()); in setEnhanced4gLteModeSetting()
278 SubscriptionManager.getDefaultVoicePhoneId()); in isVolteProvisionedOnDevice()
333 SubscriptionManager.getDefaultVoicePhoneId()); in setVtSetting()
379 SubscriptionManager.getDefaultVoicePhoneId()); in setWfcSetting()
433 SubscriptionManager.getDefaultVoicePhoneId()); in setWfcModeInternal()
477 SubscriptionManager.getDefaultVoicePhoneId()); in setWfcRoamingSettingInternal()
1485 SubscriptionManager.getDefaultVoicePhoneId(), true); in factoryReset()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaServiceCategoryProgramHandler.java29 import android.telephony.SubscriptionManager;
108 SubscriptionManager.putPhoneIdAndSubIdExtra(intent, mPhone.getPhoneId()); in handleServiceCategoryProgramData()

123