eSIM deprecated API test Refactoring
Test: build Bug: 159354974 Change-Id: Iedeb90f186ab9f82894e2fecef86d339c8989542
This commit is contained in:
@@ -87,8 +87,8 @@ public class SubscriptionUtil {
|
||||
if (slotInfo == null) {
|
||||
return false;
|
||||
}
|
||||
return !slotInfo.getIsEuicc() && !slotInfo.getIsActive() &&
|
||||
slotInfo.getCardStateInfo() == CARD_STATE_INFO_PRESENT;
|
||||
return !slotInfo.getIsEuicc() && !slotInfo.getPorts().stream().findFirst().get()
|
||||
.isActive() && slotInfo.getCardStateInfo() == CARD_STATE_INFO_PRESENT;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -179,7 +179,8 @@ public class SubscriptionUtil {
|
||||
// verify if subscription is inserted within slot
|
||||
for (UiccSlotInfo slotInfo : slotsInfo) {
|
||||
if ((slotInfo != null) && (!slotInfo.getIsEuicc())
|
||||
&& (slotInfo.getLogicalSlotIdx() == subInfo.getSimSlotIndex())) {
|
||||
&& (slotInfo.getPorts().stream().findFirst().get().getLogicalSlotIndex()
|
||||
== subInfo.getSimSlotIndex())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -576,7 +577,7 @@ public class SubscriptionUtil {
|
||||
if (!cardInfo.isRemovable()
|
||||
|| cardInfo.getCardId() == TelephonyManager.UNSUPPORTED_CARD_ID) {
|
||||
Log.i(TAG, "Skip embedded card or invalid cardId on slot: "
|
||||
+ cardInfo.getSlotIndex());
|
||||
+ cardInfo.getPhysicalSlotIndex());
|
||||
continue;
|
||||
}
|
||||
Log.i(TAG, "Target removable cardId :" + cardInfo.getCardId());
|
||||
|
Reference in New Issue
Block a user