Home
last modified time | relevance | path

Searched refs:SubscriptionInfo (Results 1 – 25 of 90) sorted by relevance

1234

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionInfoTest.java22 import android.telephony.SubscriptionInfo;
30 private SubscriptionInfo mSubscriptionInfoUT;
41 mSubscriptionInfoUT = new SubscriptionInfo(1, "890126042XXXXXXXXXXX", 0, "T-mobile", in setUp()
93 SubscriptionInfo copy = SubscriptionInfo.CREATOR.createFromParcel(p); in testParcelUnparcel()
100 SubscriptionInfo copiedInfo = new SubscriptionInfo(1, "890126042XXXXXXXXXXX", 0, in testEquals()
104 SubscriptionInfo differentDisplayName = new SubscriptionInfo(1, "890126042XXXXXXXXXXX", 0, in testEquals()
107 SubscriptionInfo differentSubId = new SubscriptionInfo(2, "890126042XXXXXXXXXXX", 0, in testEquals()
DSubscriptionControllerTest.java55 import android.telephony.SubscriptionInfo;
100 private SubscriptionInfo mMockSubscriptionInfo;
186 List<SubscriptionInfo> mSubList = mSubscriptionControllerUT in testInsertSim()
211 SubscriptionInfo subInfo = mSubscriptionControllerUT in testChangeSIMProperty()
252 SubscriptionInfo subInfo = mSubscriptionControllerUT in testSetGetDisplayNameSrc()
292 SubscriptionInfo subInfo = mSubscriptionControllerUT in testSetGetDisplayNameSrc_updateNameSourceCarrierWithEmbeddedSim()
319 SubscriptionInfo subInfo = mSubscriptionControllerUT in testSetGetDisplayNameSrc_updateNameSourceCarrierWithConfigIsNull()
346 SubscriptionInfo subInfo = mSubscriptionControllerUT in testSetGetDisplayNameSrc_updateNameSourceCarrierWithCarrierNameOverride()
377 SubscriptionInfo subInfo = mSubscriptionControllerUT in testSetGetDisplayNameSrc_updateNameSourceCarrierWithSpnAndCarrierName()
403 SubscriptionInfo subInfo = mSubscriptionControllerUT in testSetGetDisplayNameSrc_updateNameSourcePnnToNameSourceCarrierId()
[all …]
DMultiSimSettingControllerTest.java48 import android.telephony.SubscriptionInfo;
97 private SubscriptionInfo mSubInfo1 = new SubscriptionInfo(1, "subInfo1 IccId", 0, "T-mobile",
101 private SubscriptionInfo mSubInfo2 = new SubscriptionInfo(2, "subInfo2 IccId", 1, "T-mobile",
107 private SubscriptionInfo mSubInfo3 = new SubscriptionInfo(3, "subInfo3 IccId", -1, "T-mobile",
113 private SubscriptionInfo mSubInfo4 = new SubscriptionInfo(4, "subInfo4 IccId", -1, "T-mobile",
140 List<SubscriptionInfo> infoList = Arrays.asList(mSubInfo1, mSubInfo2); in setUp()
183 List<SubscriptionInfo> infoList = Arrays.asList(mSubInfo1); in testSubInfoChangeBeforeAllSubReady()
234 List<SubscriptionInfo> infoList = new ArrayList<>(); in testSubInfoChangeAfterRadioUnavailable()
272 List<SubscriptionInfo> infoList = Arrays.asList(mSubInfo1); in testSingleActiveDsds()
313 List<SubscriptionInfo> infoList = Arrays.asList(mSubInfo1); in testActivatingSecondSub()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DISub.aidl19 import android.telephony.SubscriptionInfo;
30 List<SubscriptionInfo> getAllSubInfoList(String callingPackage, String callingFeatureId); in getAllSubInfoList()
47 SubscriptionInfo getActiveSubscriptionInfo(int subId, String callingPackage, in getActiveSubscriptionInfo()
57 SubscriptionInfo getActiveSubscriptionInfoForIccId(String iccId, String callingPackage, in getActiveSubscriptionInfoForIccId()
67 SubscriptionInfo getActiveSubscriptionInfoForSimSlotIndex(int slotIndex, String callingPackage, in getActiveSubscriptionInfoForSimSlotIndex()
92 List<SubscriptionInfo> getActiveSubscriptionInfoList(String callingPackage, in getActiveSubscriptionInfoList()
110 List<SubscriptionInfo> getAvailableSubscriptionInfoList(String callingPackage, in getAvailableSubscriptionInfoList()
116 List<SubscriptionInfo> getAccessibleSubscriptionInfoList(String callingPackage); in getAccessibleSubscriptionInfoList()
240 List<SubscriptionInfo> getOpportunisticSubscriptions(String callingPackage, in getOpportunisticSubscriptions()
249 List<SubscriptionInfo> getSubscriptionsInGroup(in ParcelUuid groupUuid, String callingPackage, in getSubscriptionsInGroup()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionController.java54 import android.telephony.SubscriptionInfo;
133 private final List<SubscriptionInfo> mCacheActiveSubInfoList = new ArrayList<>();
136 private List<SubscriptionInfo> mCacheOpportunisticSubInfoList = new ArrayList<>();
139 private static final Comparator<SubscriptionInfo> SUBSCRIPTION_INFO_COMPARATOR =
376 for (SubscriptionInfo subInfo : getActiveSubscriptionInfoList( in internalInit()
514 List<SubscriptionInfo> subInfos; in notifySubscriptionInfoChanged()
531 private SubscriptionInfo getSubInfoRecord(Cursor cursor) { in getSubInfoRecord()
598 String iccIdToPrint = SubscriptionInfo.givePrintableIccid(iccId); in getSubInfoRecord()
599 String cardIdToPrint = SubscriptionInfo.givePrintableIccid(cardId); in getSubInfoRecord()
619 SubscriptionInfo info = new SubscriptionInfo(id, iccId, simSlotIndex, displayName, in getSubInfoRecord()
[all …]
DMultiSimSettingController.java47 import android.telephony.SubscriptionInfo;
486 List<SubscriptionInfo> infoList = mSubController.getSubscriptionsInGroup( in onSubscriptionGroupChanged()
493 for (SubscriptionInfo info : infoList) { in onSubscriptionGroupChanged()
549 List<SubscriptionInfo> activeSubInfos = mSubController in updateDefaults()
618 private int updatePrimarySubListAndGetChangeType(List<SubscriptionInfo> activeSubList) { in updatePrimarySubListAndGetChangeType()
815 List<SubscriptionInfo> infoList = mSubController.getSubscriptionsInGroup( in setUserDataEnabledForGroup()
821 for (SubscriptionInfo info : infoList) { in setUserDataEnabledForGroup()
846 List<SubscriptionInfo> infoList = subController.getSubscriptionsInGroup( in setRoamingDataEnabledForGroup()
852 for (SubscriptionInfo info : infoList) { in setRoamingDataEnabledForGroup()
904 List<SubscriptionInfo> opptSubList = mSubController.getOpportunisticSubscriptions( in deactivateGroupedOpportunisticSubscriptionIfNeeded()
[all …]
DBtSmsInterfaceManager.java29 import android.telephony.SubscriptionInfo;
44 PendingIntent deliveryIntent, SubscriptionInfo info) { in sendText()
/frameworks/base/telephony/java/android/telephony/
DSubscriptionInfo.java55 public class SubscriptionInfo implements Parcelable { class
227 public SubscriptionInfo(SubscriptionInfo info) { in SubscriptionInfo() method in SubscriptionInfo
240 public SubscriptionInfo(int id, String iccId, int simSlotIndex, CharSequence displayName, in SubscriptionInfo() method in SubscriptionInfo
254 public SubscriptionInfo(int id, String iccId, int simSlotIndex, CharSequence displayName, in SubscriptionInfo() method in SubscriptionInfo
268 public SubscriptionInfo(int id, String iccId, int simSlotIndex, CharSequence displayName, in SubscriptionInfo() method in SubscriptionInfo
504 Log.w(SubscriptionInfo.class.getSimpleName(), "MCC string is not a number"); in getMcc()
518 Log.w(SubscriptionInfo.class.getSimpleName(), "MNC string is not a number"); in getMnc()
762 …roid.annotation.NonNull Parcelable.Creator<SubscriptionInfo> CREATOR = new Parcelable.Creator<Subs…
764 public SubscriptionInfo createFromParcel(Parcel source) {
795 SubscriptionInfo info = new SubscriptionInfo(id, iccId, simSlotIndex, displayName,
[all …]
DSubscriptionManager.java1397 public SubscriptionInfo getActiveSubscriptionInfo(int subId) { in getActiveSubscriptionInfo()
1406 SubscriptionInfo subInfo = null; in getActiveSubscriptionInfo()
1432 public SubscriptionInfo getActiveSubscriptionInfoForIcc(@NonNull String iccId) { in getActiveSubscriptionInfoForIcc()
1439 SubscriptionInfo result = null; in getActiveSubscriptionInfoForIcc()
1466 public SubscriptionInfo getActiveSubscriptionInfoForSimSlotIndex(int slotIndex) { in getActiveSubscriptionInfoForSimSlotIndex()
1473 SubscriptionInfo result = null; in getActiveSubscriptionInfoForSimSlotIndex()
1495 public List<SubscriptionInfo> getAllSubscriptionInfoList() { in getAllSubscriptionInfoList()
1498 List<SubscriptionInfo> result = null; in getAllSubscriptionInfoList()
1543 public List<SubscriptionInfo> getActiveSubscriptionInfoList() { in getActiveSubscriptionInfoList()
1568 public @NonNull List<SubscriptionInfo> getCompleteActiveSubscriptionInfoList() { in getCompleteActiveSubscriptionInfoList()
[all …]
DSubscriptionInfo.aidl19 parcelable SubscriptionInfo;
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DCarrierTextManagerTest.java46 import android.telephony.SubscriptionInfo;
82 private static final SubscriptionInfo TEST_SUBSCRIPTION = new SubscriptionInfo(0, "", 0,
86 private static final SubscriptionInfo TEST_SUBSCRIPTION_NULL = new SubscriptionInfo(0, "", 0,
89 private static final SubscriptionInfo TEST_SUBSCRIPTION_ROAMING = new SubscriptionInfo(0, "", 0,
172 List<SubscriptionInfo> list = new ArrayList<>(); in testAirplaneMode()
192 List<SubscriptionInfo> list = new ArrayList<>(); in testCardIOError()
288 List<SubscriptionInfo> list = new ArrayList<>(); in testCreateInfo_OneValidSubscription()
313 List<SubscriptionInfo> list = new ArrayList<>(); in testCreateInfo_OneValidSubscriptionWithRoaming()
338 List<SubscriptionInfo> list = new ArrayList<>(); in testCarrierText_noTextOnReadySimWhenNull()
363 List<SubscriptionInfo> list = new ArrayList<>(); in testCarrierText_noTextOnReadySimWhenNull_airplaneMode_wifiOn()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/emergency/
DEmergencyAffordanceServiceTest.java30 import android.telephony.SubscriptionInfo;
412 List<SubscriptionInfo> subInfos = getSubscriptionInfoList(withEmergencyIsoInSim); in setUpSim()
447 private List<SubscriptionInfo> getSubscriptionInfoList(boolean withEmergencyIso) { in getSubscriptionInfoList()
448 List<SubscriptionInfo> subInfos = new ArrayList<>(2); in getSubscriptionInfoList()
452 SubscriptionInfo subInfo = new SubscriptionInfo(1, "890126042XXXXXXXXXXX", 0, "T-mobile", in getSubscriptionInfoList()
458 SubscriptionInfo subInfo2 = new SubscriptionInfo(1, "890126042XXXXXXXXXXX", 0, "Airtel", in getSubscriptionInfoList()
/frameworks/base/services/core/java/com/android/server/vcn/
DTelephonySubscriptionTracker.java36 import android.telephony.SubscriptionInfo;
155 final Map<Integer, SubscriptionInfo> newSubIdToInfoMap = new HashMap<>(); in handleSubscriptionsChanged()
157 final List<SubscriptionInfo> allSubs = mSubscriptionManager.getAllSubscriptionInfoList(); in handleSubscriptionsChanged()
164 for (SubscriptionInfo subInfo : allSubs) { in handleSubscriptionsChanged()
255 private final Map<Integer, SubscriptionInfo> mSubIdToInfoMap;
265 @NonNull Map<Integer, SubscriptionInfo> subIdToInfoMap, in TelephonySubscriptionSnapshot()
289 final SubscriptionInfo info = mSubIdToInfoMap.get(getActiveDataSubscriptionId()); in getActiveDataSubscriptionGroup()
326 for (Entry<Integer, SubscriptionInfo> entry : mSubIdToInfoMap.entrySet()) { in getAllSubIdsInGroup()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageUtils.java21 import android.telephony.SubscriptionInfo;
45 final List<SubscriptionInfo> subInfoList = in getMobileTemplate()
52 for (SubscriptionInfo subInfo : subInfoList) { in getMobileTemplate()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DDataUsageUtilsTest.java29 import android.telephony.SubscriptionInfo;
57 private SubscriptionInfo mInfo1;
59 private SubscriptionInfo mInfo2;
63 private List<SubscriptionInfo> mInfos;
/frameworks/base/tests/vcn/java/com/android/server/vcn/
DTelephonySubscriptionTrackerTest.java55 import android.telephony.SubscriptionInfo;
88 private static final SubscriptionInfo TEST_SUBINFO_1 = mock(SubscriptionInfo.class);
90 private static final SubscriptionInfo TEST_SUBINFO_2 = mock(SubscriptionInfo.class);
93 private static final Map<Integer, SubscriptionInfo> TEST_SUBID_TO_INFO_MAP;
96 final Map<Integer, SubscriptionInfo> subIdToGroupMap = new HashMap<>();
207 Map<Integer, SubscriptionInfo> subIdToInfoMap, in buildExpectedSnapshot()
214 Map<Integer, SubscriptionInfo> subIdToInfoMap, in buildExpectedSnapshot()
326 doReturn(new ArrayList<SubscriptionInfo>()) in testReceiveBroadcast_ConfigReadyNoSubscriptions()
DVcnGatewayConnectionTest.java50 import android.telephony.SubscriptionInfo;
76 private static final SubscriptionInfo TEST_SUBINFO_1 = mock(SubscriptionInfo.class);
78 private static final SubscriptionInfo TEST_SUBINFO_2 = mock(SubscriptionInfo.class);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DDeviceInfoUtils.java28 import android.telephony.SubscriptionInfo;
179 SubscriptionInfo subscriptionInfo) { in getFormattedPhoneNumber()
194 List<SubscriptionInfo> subscriptionInfoList) { in getFormattedPhoneNumbers()
200 for (SubscriptionInfo subscriptionInfo : subscriptionInfoList) { in getFormattedPhoneNumbers()
218 SubscriptionInfo subscriptionInfo) { in getBidiFormattedPhoneNumber()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerSignalTest.java33 import android.telephony.SubscriptionInfo;
288 List<SubscriptionInfo> subscriptions = new ArrayList<>(); in testHasCorrectMobileControllers()
295 SubscriptionInfo mockSubInfo = Mockito.mock(SubscriptionInfo.class); in testHasCorrectMobileControllers()
302 SubscriptionInfo mockSubInfo = Mockito.mock(SubscriptionInfo.class); in testHasCorrectMobileControllers()
322 List<SubscriptionInfo> subscriptions = new ArrayList<>(); in testSetCurrentSubscriptions()
332 SubscriptionInfo mockSubInfo = Mockito.mock(SubscriptionInfo.class); in testSetCurrentSubscriptions()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DUtilsTest.java60 import android.telephony.SubscriptionInfo;
257 List<SubscriptionInfo> subscriptionInfoList = new ArrayList<>(); in testCheckSimPresentWithNoMatchingSubscription()
258 SubscriptionInfo subscriptionInfo = mock(SubscriptionInfo.class); in testCheckSimPresentWithNoMatchingSubscription()
267 List<SubscriptionInfo> subscriptionInfoList = new ArrayList<>(); in testCheckSimPresentWithMatchingSubscription()
268 SubscriptionInfo subscriptionInfo = mock(SubscriptionInfo.class); in testCheckSimPresentWithMatchingSubscription()
314 List<SubscriptionInfo> subscriptionInfoList = new ArrayList<>(); in testGetSubIdForWifiConfigurationWithMatchingSubscription()
315 SubscriptionInfo subscriptionInfo = mock(SubscriptionInfo.class); in testGetSubIdForWifiConfigurationWithMatchingSubscription()
/frameworks/opt/net/ims/tests/src/com/android/ims/
DMmTelFeatureConnectionTest.java32 import android.telephony.SubscriptionInfo;
284 private List<SubscriptionInfo> createSubscriptionInfoList(int[] subIds) { in createSubscriptionInfoList()
285 List<SubscriptionInfo> infos = new ArrayList<>(); in createSubscriptionInfoList()
287 SubscriptionInfo info = new SubscriptionInfo(subIds[i], null, -1, null, null, -1, -1, in createSubscriptionInfoList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java47 import android.telephony.SubscriptionInfo;
164 private List<SubscriptionInfo> mCurrentSubscriptions = new ArrayList<>();
445 SubscriptionInfo info1 = mSubscriptionManager.getActiveSubscriptionInfo(subId1); in isInGroupDataSwitch()
446 SubscriptionInfo info2 = mSubscriptionManager.getActiveSubscriptionInfo(subId2); in isInGroupDataSwitch()
829 private void filterMobileSubscriptionInSameGroup(List<SubscriptionInfo> subscriptions) { in filterMobileSubscriptionInSameGroup()
831 SubscriptionInfo info1 = subscriptions.get(0); in filterMobileSubscriptionInSameGroup()
832 SubscriptionInfo info2 = subscriptions.get(1); in filterMobileSubscriptionInSameGroup()
854 List<SubscriptionInfo> subscriptions = mSubscriptionManager in doUpdateMobileControllers()
902 public void setCurrentSubscriptionsLocked(List<SubscriptionInfo> subscriptions) { in setCurrentSubscriptionsLocked()
903 Collections.sort(subscriptions, new Comparator<SubscriptionInfo>() { in setCurrentSubscriptionsLocked()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccSlotStatus.java19 import android.telephony.SubscriptionInfo;
84 .append(SubscriptionInfo.givePrintableIccid(iccid)).append(",") in toString()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccController.java38 import android.telephony.SubscriptionInfo;
900 SubscriptionInfo sub = getSubscriptionForSubscriptionId(subscriptionId); in deleteSubscription()
989 SubscriptionInfo sub = getSubscriptionForSubscriptionId(subscriptionId); in switchToSubscription()
1037 SubscriptionInfo sub = getSubscriptionForSubscriptionId(subscriptionId); in switchToSubscriptionPrivileged()
1096 SubscriptionInfo sub = getSubscriptionForSubscriptionId(subscriptionId); in updateSubscriptionNickname()
1355 private SubscriptionInfo getSubscriptionForSubscriptionId(int subscriptionId) { in getSubscriptionForSubscriptionId()
1356 List<SubscriptionInfo> subs = mSubscriptionManager.getAvailableSubscriptionInfoList(); in getSubscriptionForSubscriptionId()
1359 SubscriptionInfo sub = subs.get(i); in getSubscriptionForSubscriptionId()
1473 List<SubscriptionInfo> subInfoList = mSubscriptionManager in canManageActiveSubscriptionOnTargetSim()
1479 for (SubscriptionInfo subInfo : subInfoList) { in canManageActiveSubscriptionOnTargetSim()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsCallbackAdapterManager.java23 import android.telephony.SubscriptionInfo;
73 List<SubscriptionInfo> subInfos = manager.getActiveSubscriptionInfoList(false); in ImsCallbackAdapterManager()
79 .map(SubscriptionInfo::getSubscriptionId) in ImsCallbackAdapterManager()

1234