Home
last modified time | relevance | path

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

123

/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()
DMultiSimSettingControllerTest.java42 import android.telephony.SubscriptionInfo;
78 private SubscriptionInfo mSubInfo1 = new SubscriptionInfo(1, "subInfo1 IccId", 0, "T-mobile",
82 private SubscriptionInfo mSubInfo2 = new SubscriptionInfo(2, "subInfo2 IccId", 1, "T-mobile",
88 private SubscriptionInfo mSubInfo3 = new SubscriptionInfo(3, "subInfo3 IccId", -1, "T-mobile",
94 private SubscriptionInfo mSubInfo4 = new SubscriptionInfo(4, "subInfo4 IccId", -1, "T-mobile",
118 List<SubscriptionInfo> infoList = Arrays.asList(mSubInfo1, mSubInfo2); in setUp()
176 List<SubscriptionInfo> infoList = Arrays.asList(mSubInfo1); in testTestSubInfoChangeBeforeAllSubReady()
211 List<SubscriptionInfo> infoList = Arrays.asList(mSubInfo1); in testSingleActiveDsds()
245 List<SubscriptionInfo> infoList = Arrays.asList(mSubInfo1); in testActivatingSecondSub()
324 List<SubscriptionInfo> infoList = Arrays.asList(mSubInfo2); in testSimpleDsds()
[all …]
DSubscriptionControllerTest.java41 import android.telephony.SubscriptionInfo;
144 List<SubscriptionInfo> mSubList = mSubscriptionControllerUT in testInsertSim()
169 SubscriptionInfo subInfo = mSubscriptionControllerUT in testChangeSIMProperty()
210 SubscriptionInfo subInfo = mSubscriptionControllerUT in testSetGetDisplayNameSrc()
257 SubscriptionInfo subInfo = mSubscriptionControllerUT in testSetGetMCCMNC()
276 SubscriptionInfo subInfo = mSubscriptionControllerUT in testSetGetCarrierId()
452 List<SubscriptionInfo> opptSubList = mSubscriptionControllerUT in testOpptSubInfoListChanged()
497 List<SubscriptionInfo> mSubList; in addAndVerifyRemoteSimAddition()
504 for (SubscriptionInfo info : mSubList) { in addAndVerifyRemoteSimAddition()
551 SubscriptionInfo info = mSubList.get(j); in addAndVerifyRemoteSimAddition()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DISub.aidl19 import android.telephony.SubscriptionInfo;
29 List<SubscriptionInfo> getAllSubInfoList(String callingPackage); in getAllSubInfoList()
44 SubscriptionInfo getActiveSubscriptionInfo(int subId, String callingPackage); in getActiveSubscriptionInfo()
52 SubscriptionInfo getActiveSubscriptionInfoForIccId(String iccId, String callingPackage); in getActiveSubscriptionInfoForIccId()
60 SubscriptionInfo getActiveSubscriptionInfoForSimSlotIndex(int slotIndex, String callingPackage); in getActiveSubscriptionInfoForSimSlotIndex()
83 List<SubscriptionInfo> getActiveSubscriptionInfoList(String callingPackage); in getActiveSubscriptionInfoList()
99 List<SubscriptionInfo> getAvailableSubscriptionInfoList(String callingPackage); in getAvailableSubscriptionInfoList()
104 List<SubscriptionInfo> getAccessibleSubscriptionInfoList(String callingPackage); in getAccessibleSubscriptionInfoList()
228 List<SubscriptionInfo> getOpportunisticSubscriptions(String callingPackage); in getOpportunisticSubscriptions()
236 List<SubscriptionInfo> getSubscriptionsInGroup(in ParcelUuid groupUuid, String callingPackage); in getSubscriptionsInGroup()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionController.java47 import android.telephony.SubscriptionInfo;
113 private final List<SubscriptionInfo> mCacheActiveSubInfoList = new ArrayList<>();
116 private List<SubscriptionInfo> mCacheOpportunisticSubInfoList = new ArrayList<>();
118 private static final Comparator<SubscriptionInfo> SUBSCRIPTION_INFO_COMPARATOR =
302 List<SubscriptionInfo> subInfos; in notifySubscriptionInfoChanged()
315 private SubscriptionInfo getSubInfoRecord(Cursor cursor) { in getSubInfoRecord()
378 String iccIdToPrint = SubscriptionInfo.givePrintableIccid(iccId); in getSubInfoRecord()
379 String cardIdToPrint = SubscriptionInfo.givePrintableIccid(cardId); in getSubInfoRecord()
396 SubscriptionInfo info = new SubscriptionInfo(id, iccId, simSlotIndex, displayName, in getSubInfoRecord()
418 public List<SubscriptionInfo> getSubInfo(String selection, Object queryKey) { in getSubInfo()
[all …]
DMultiSimSettingController.java40 import android.telephony.SubscriptionInfo;
295 List<SubscriptionInfo> infoList = mSubController.getSubscriptionsInGroup( in onSubscriptionGroupChanged()
302 for (SubscriptionInfo info : infoList) { in onSubscriptionGroupChanged()
359 List<SubscriptionInfo> activeSubInfos = mSubController in updateDefaults()
413 private int updatePrimarySubListAndGetChangeType(List<SubscriptionInfo> activeSubList, in updatePrimarySubListAndGetChangeType()
585 List<SubscriptionInfo> infoList = mSubController.getSubscriptionsInGroup( in setUserDataEnabledForGroup()
590 for (SubscriptionInfo info : infoList) { in setUserDataEnabledForGroup()
615 List<SubscriptionInfo> infoList = subController.getSubscriptionsInGroup( in setRoamingDataEnabledForGroup()
620 for (SubscriptionInfo info : infoList) { in setRoamingDataEnabledForGroup()
DBtSmsInterfaceManager.java29 import android.telephony.SubscriptionInfo;
44 PendingIntent deliveryIntent, SubscriptionInfo info) { in sendText()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DCarrierNetworkConfigTest.java34 import android.telephony.SubscriptionInfo;
61 private static final SubscriptionInfo TEST_SUBSCRIPTION_INFO =
62 new SubscriptionInfo(TEST_SUBSCRIPTION_ID, null, 0, TEST_CARRIER_NAME, null, 0, 0,
111 .thenReturn(Arrays.asList(new SubscriptionInfo[] {TEST_SUBSCRIPTION_INFO})); in setUp()
151 SubscriptionInfo testSubscriptionInfoNullDisplayName = new SubscriptionInfo( in getExistingCarrierNetworkInfo_nullDisplayName_shouldNotThrowNpe()
218 SubscriptionInfo updatedSubscriptionInfo = new SubscriptionInfo(TEST_SUBSCRIPTION_ID, in receivedCarrierConfigChangedIntent()
222 .thenReturn(Arrays.asList(new SubscriptionInfo[] {updatedSubscriptionInfo})); in receivedCarrierConfigChangedIntent()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DCarrierTextControllerTest.java39 import android.telephony.SubscriptionInfo;
72 private static final SubscriptionInfo TEST_SUBSCRIPTION = new SubscriptionInfo(0, "", 0,
76 private static final SubscriptionInfo TEST_SUBSCRIPTION_2 = new SubscriptionInfo(0, "", 0,
80 private static final SubscriptionInfo TEST_SUBSCRIPTION_ROAMING = new SubscriptionInfo(0, "", 0,
188 List<SubscriptionInfo> list = new ArrayList<>(); in testCreateInfo_OneValidSubscription()
212 List<SubscriptionInfo> list = new ArrayList<>(); in testCreateInfo_OneValidSubscriptionWithRoaming()
256 List<SubscriptionInfo> list = new ArrayList<>(); in testCarrierText_twoValidSubscriptions()
279 List<SubscriptionInfo> list = new ArrayList<>(); in testCarrierText_oneDisabledSub()
304 List<SubscriptionInfo> list = new ArrayList<>(); in testCarrierText_firstDisabledSub()
329 List<SubscriptionInfo> list = new ArrayList<>(); in testCarrierText_threeSubsMiddleDisabled()
[all …]
/frameworks/base/telephony/java/android/telephony/
DSubscriptionInfo.java49 public class SubscriptionInfo implements Parcelable { class
206 public SubscriptionInfo(int id, String iccId, int simSlotIndex, CharSequence displayName, in SubscriptionInfo() method in SubscriptionInfo
220 public SubscriptionInfo(int id, String iccId, int simSlotIndex, CharSequence displayName, in SubscriptionInfo() method in SubscriptionInfo
234 public SubscriptionInfo(int id, String iccId, int simSlotIndex, CharSequence displayName, in SubscriptionInfo() method in SubscriptionInfo
427 Log.w(SubscriptionInfo.class.getSimpleName(), "MCC string is not a number"); in getMcc()
441 Log.w(SubscriptionInfo.class.getSimpleName(), "MNC string is not a number"); in getMnc()
637 …roid.annotation.NonNull Parcelable.Creator<SubscriptionInfo> CREATOR = new Parcelable.Creator<Subs…
639 public SubscriptionInfo createFromParcel(Parcel source) {
667 SubscriptionInfo info = new SubscriptionInfo(id, iccId, simSlotIndex, displayName,
676 public SubscriptionInfo[] newArray(int size) {
[all …]
DSubscriptionManager.java1169 public SubscriptionInfo getActiveSubscriptionInfo(int subId) { in getActiveSubscriptionInfo()
1178 SubscriptionInfo subInfo = null; in getActiveSubscriptionInfo()
1199 public SubscriptionInfo getActiveSubscriptionInfoForIccIndex(String iccId) { in getActiveSubscriptionInfoForIccIndex()
1206 SubscriptionInfo result = null; in getActiveSubscriptionInfoForIccIndex()
1232 public SubscriptionInfo getActiveSubscriptionInfoForSimSlotIndex(int slotIndex) { in getActiveSubscriptionInfoForSimSlotIndex()
1239 SubscriptionInfo result = null; in getActiveSubscriptionInfoForSimSlotIndex()
1260 public List<SubscriptionInfo> getAllSubscriptionInfoList() { in getAllSubscriptionInfoList()
1263 List<SubscriptionInfo> result = null; in getAllSubscriptionInfoList()
1307 public List<SubscriptionInfo> getActiveSubscriptionInfoList() { in getActiveSubscriptionInfoList()
1317 public List<SubscriptionInfo> getActiveSubscriptionInfoList(boolean userVisibleOnly) { in getActiveSubscriptionInfoList()
[all …]
DSubscriptionInfo.aidl19 parcelable SubscriptionInfo;
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DDataUsageUtilsTest.java28 import android.telephony.SubscriptionInfo;
55 private SubscriptionInfo mInfo1;
57 private SubscriptionInfo mInfo2;
61 private List<SubscriptionInfo> mInfos;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DSubscriptionControllerMock.java27 import android.telephony.SubscriptionInfo;
111 public SubscriptionInfo getActiveSubscriptionInfo(int subId, String callingPackage) { in getActiveSubscriptionInfo()
115 public SubscriptionInfo getActiveSubscriptionInfoForIccId(String iccId, String callingPackage) { in getActiveSubscriptionInfoForIccId()
119 public SubscriptionInfo getActiveSubscriptionInfoForSimSlotIndex(int slotIndex, String cp){ in getActiveSubscriptionInfoForSimSlotIndex()
123 public List<SubscriptionInfo> getAllSubInfoList(String callingPackage) { in getAllSubInfoList()
127 public List<SubscriptionInfo> getActiveSubscriptionInfoList(String callingPackage) { in getActiveSubscriptionInfoList()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerSignalTest.java31 import android.telephony.SubscriptionInfo;
249 List<SubscriptionInfo> subscriptions = new ArrayList<>(); in testHasCorrectMobileControllers()
256 SubscriptionInfo mockSubInfo = Mockito.mock(SubscriptionInfo.class); in testHasCorrectMobileControllers()
263 SubscriptionInfo mockSubInfo = Mockito.mock(SubscriptionInfo.class); in testHasCorrectMobileControllers()
283 List<SubscriptionInfo> subscriptions = new ArrayList<>(); in testSetCurrentSubscriptions()
293 SubscriptionInfo mockSubInfo = Mockito.mock(SubscriptionInfo.class); in testSetCurrentSubscriptions()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageUtils.java21 import android.telephony.SubscriptionInfo;
40 final SubscriptionInfo info = subscriptionManager.getActiveSubscriptionInfo(subId); in getMobileTemplate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java49 import android.telephony.SubscriptionInfo;
145 private List<SubscriptionInfo> mCurrentSubscriptions = new ArrayList<>();
565 private void filterMobileSubscriptionInSameGroup(List<SubscriptionInfo> subscriptions) { in filterMobileSubscriptionInSameGroup()
567 SubscriptionInfo info1 = subscriptions.get(0); in filterMobileSubscriptionInSameGroup()
568 SubscriptionInfo info2 = subscriptions.get(1); in filterMobileSubscriptionInSameGroup()
590 List<SubscriptionInfo> subscriptions = mSubscriptionManager in doUpdateMobileControllers()
638 public void setCurrentSubscriptionsLocked(List<SubscriptionInfo> subscriptions) { in setCurrentSubscriptionsLocked()
639 Collections.sort(subscriptions, new Comparator<SubscriptionInfo>() { in setCurrentSubscriptionsLocked()
641 public int compare(SubscriptionInfo lhs, SubscriptionInfo rhs) { in setCurrentSubscriptionsLocked()
709 boolean hasCorrectMobileControllers(List<SubscriptionInfo> allSubscriptions) { in hasCorrectMobileControllers()
[all …]
DCallbackHandler.java21 import android.telephony.SubscriptionInfo;
70 signalCluster.setSubs((List<SubscriptionInfo>) msg.obj); in handleMessage()
143 public void setSubs(List<SubscriptionInfo> subs) { in setSubs()
DNetworkController.java21 import android.telephony.SubscriptionInfo;
57 default void setSubs(List<SubscriptionInfo> subs) {} in setSubs()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DMmTelFeatureConnectionTest.java33 import android.telephony.SubscriptionInfo;
287 private List<SubscriptionInfo> createSubscriptionInfoList(int[] subIds) { in createSubscriptionInfoList()
288 List<SubscriptionInfo> infos = new ArrayList<>(); in createSubscriptionInfoList()
290 SubscriptionInfo info = new SubscriptionInfo(subIds[i], null, -1, null, null, -1, -1, in createSubscriptionInfoList()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccSlotStatus.java19 import android.telephony.SubscriptionInfo;
84 .append(SubscriptionInfo.givePrintableIccid(iccid)).append(",") in toString()
DIccCardStatus.java20 import android.telephony.SubscriptionInfo;
170 sb.append(",iccid=").append(SubscriptionInfo.givePrintableIccid(iccid)); in toString()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccController.java37 import android.telephony.SubscriptionInfo;
701 SubscriptionInfo sub = getSubscriptionForSubscriptionId(subscriptionId); in deleteSubscription()
792 SubscriptionInfo sub = getSubscriptionForSubscriptionId(subscriptionId); in switchToSubscription()
840 SubscriptionInfo sub = getSubscriptionForSubscriptionId(subscriptionId); in switchToSubscriptionPrivileged()
901 SubscriptionInfo sub = getSubscriptionForSubscriptionId(subscriptionId); in updateSubscriptionNickname()
1094 private SubscriptionInfo getSubscriptionForSubscriptionId(int subscriptionId) { in getSubscriptionForSubscriptionId()
1095 List<SubscriptionInfo> subs = mSubscriptionManager.getAvailableSubscriptionInfoList(); in getSubscriptionForSubscriptionId()
1098 SubscriptionInfo sub = subs.get(i); in getSubscriptionForSubscriptionId()
1211 List<SubscriptionInfo> subInfoList = mSubscriptionManager in canManageActiveSubscriptionOnTargetSim()
1217 for (SubscriptionInfo subInfo : subInfoList) { in canManageActiveSubscriptionOnTargetSim()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DDeviceInfoUtils.java30 import android.telephony.SubscriptionInfo;
173 … public static String getFormattedPhoneNumber(Context context, SubscriptionInfo subscriptionInfo) { in getFormattedPhoneNumber()
189 List<SubscriptionInfo> subscriptionInfo) { in getFormattedPhoneNumbers()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DCarrierTextController.java34 import android.telephony.SubscriptionInfo;
259 private void filterMobileSubscriptionInSameGroup(List<SubscriptionInfo> subscriptions) { in filterMobileSubscriptionInSameGroup()
261 SubscriptionInfo info1 = subscriptions.get(0); in filterMobileSubscriptionInSameGroup()
262 SubscriptionInfo info2 = subscriptions.get(1); in filterMobileSubscriptionInSameGroup()
292 protected List<SubscriptionInfo> getSubscriptionInfo() { in getSubscriptionInfo()
293 List<SubscriptionInfo> subs; in getSubscriptionInfo()
314 List<SubscriptionInfo> subs = getSubscriptionInfo(); in updateCarrierText()

123