Home
last modified time | relevance | path

Searched refs:getSimSlotIndex (Results 1 – 25 of 46) sorted by relevance

12

/aosp12/packages/apps/Settings/src/com/android/settings/network/helper/
H A DSubscriptionAnnotation.java96 mIsActive = activeSimSlotIndexList.contains(mSubInfo.getSimSlotIndex()); in SubscriptionAnnotation()
102 mIsActive = (mSubInfo.getSimSlotIndex() > SubscriptionManager.INVALID_SIM_SLOT_INDEX) in SubscriptionAnnotation()
103 && activeSimSlotIndexList.contains(mSubInfo.getSimSlotIndex()); in SubscriptionAnnotation()
/aosp12/packages/apps/Settings/src/com/android/settings/network/
H A DSubscriptionUtil.java162 if (subInfo.getSimSlotIndex() in isPrimarySubscriptionWithinSameUuid()
182 && (slotInfo.getLogicalSlotIdx() == subInfo.getSimSlotIndex())) { in isPrimarySubscriptionWithinSameUuid()
206 if (subInfo.getSimSlotIndex() != SubscriptionManager.INVALID_SIM_SLOT_INDEX) { in isPrimarySubscriptionWithinSameUuid()
386 return info.getSimSlotIndex();
416 || (groupMap.get(groupUuid).getSimSlotIndex() == INVALID_SIM_SLOT_INDEX
417 && info.getSimSlotIndex() != INVALID_SIM_SLOT_INDEX)) {
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/network/
H A DSubscriptionUtils.java58 info -> index == info.getSimSlotIndex() && cardId.equals( in getAvailableSubscriptions()
68 if (info.getSimSlotIndex() == slotInfo.getLogicalSlotIdx() in getAvailableSubscriptions()
/aosp12/packages/services/Telephony/src/com/android/phone/
H A DSpecialCharSequenceMgr.java221 if (state == getSimState(info.getSimSlotIndex(), context) in getNextSubIdForState()
222 && bestSlotId > info.getSimSlotIndex()) { in getNextSubIdForState()
224 bestSlotId = info.getSimSlotIndex(); in getNextSubIdForState()
/aosp12/packages/apps/Settings/src/com/android/settings/
H A DIccLockSettings.java219 subInfo.getSimSlotIndex()); in restoreDialogStates()
227 mSlotId = subInfo.getSimSlotIndex(); in restoreDialogStates()
261 mSlotId = subInfo.getSimSlotIndex(); in restoreTabFocus()
289 mSlotId = componenterList.get(0).getSimSlotIndex(); in onCreateView()
309 final int slot = subInfo.getSimSlotIndex(); in onCreateView()
725 && (subInfo.getSimSlotIndex() == slotId))) { in getVisibleSubscriptionInfoForSimSlotIndex()
H A DResetNetwork.java208 record.getMnc(), record.getSimSlotIndex(), record.getSubscriptionId()); in establishInitialState()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DTelephonyRegistryTest.java269 doReturn(0/*slotIndex*/).when(mMockSubInfo).getSimSlotIndex(); in testPhoneCapabilityChanged()
316 doReturn(0/*slotIndex*/).when(mMockSubInfo).getSimSlotIndex(); in testSrvccStateChanged()
393 doReturn(0/*slotIndex*/).when(mMockSubInfo).getSimSlotIndex(); in testDataConnectionStateChanged()
467 doReturn(0/*slotIndex*/).when(mMockSubInfo).getSimSlotIndex(); in testDataConnectionStateChangedMultipleInternet()
672 doReturn(0/*slotIndex*/).when(mMockSubInfo).getSimSlotIndex(); in testPreciseDataConnectionStateChanged()
751 doReturn(0/*slotIndex*/).when(mMockSubInfo).getSimSlotIndex(); in testPhysicalChannelConfigChanged()
1008 doReturn(phoneId).when(mMockSubInfo).getSimSlotIndex(); in testNotifyCellLocationForSubscriberByUserSwitched()
1110 doReturn(1).when(mMockSubInfo).getSimSlotIndex(); in testPreciseDataConnectionStateChangedForInvalidSubId()
H A DSubscriptionInfoTest.java59 assertEquals(0, mSubscriptionInfoUT.getSimSlotIndex()); in testSubProperties()
/aosp12/packages/apps/Settings/src/com/android/settings/security/
H A DSimLockPreferenceController.java96 final int simState = mTelephonyManager.getSimState(subInfo.getSimSlotIndex()); in isSimReady()
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
H A DSimStatusPreferenceController.java116 if (info.getSimSlotIndex() == simSlot) { in getCarrierName()
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/
H A DPhoneStateBroadcaster.java153 simSlotIndex = subInfo.getSimSlotIndex(); in sendOutgoingEmergencyCallEvent()
/aosp12/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/fcm/
H A DFcmRegistrationServiceTest.java107 when(mSubscriptionInfo.getSimSlotIndex()).thenReturn(0); in setActiveSubscriptionInfoList()
/aosp12/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/
H A DTelephonyUtils.java128 return subInfo.getSimSlotIndex(); in getSlotId()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/system/
H A DResetNetworkSubscriptionPreferenceController.java139 subscription.getMcc(), subscription.getMnc(), subscription.getSimSlotIndex(), in getSubscriptionName()
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DPhoneNumberPreferenceController.java144 if (info.getSimSlotIndex() == simSlot) { in getSubscriptionInfo()
/aosp12/frameworks/base/tests/vcn/java/com/android/server/vcn/
H A DTelephonySubscriptionTrackerTest.java146 doReturn(TEST_SIM_SLOT_INDEX).when(TEST_SUBINFO_1).getSimSlotIndex(); in TelephonySubscriptionTrackerTest()
147 doReturn(INVALID_SIM_SLOT_INDEX).when(TEST_SUBINFO_2).getSimSlotIndex(); in TelephonySubscriptionTrackerTest()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
H A DResetNetworkSubscriptionPreferenceControllerTest.java305 assertThat(title).contains(String.valueOf(subInfo.getSimSlotIndex())); in refreshUi_title_fourthPriority_subscriptionNetworkIds()
408 when(subscriptionInfo.getSimSlotIndex()).thenReturn(111); in createSubInfo()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
H A DNetworkControllerImpl.java937 return lhs.getSimSlotIndex() == rhs.getSimSlotIndex() in setCurrentSubscriptionsLocked()
939 : lhs.getSimSlotIndex() - rhs.getSimSlotIndex(); in setCurrentSubscriptionsLocked()
966 if (subscriptions.get(i).getSimSlotIndex() == 0) { in setCurrentSubscriptionsLocked()
/aosp12/packages/apps/Settings/src/com/android/settings/datausage/
H A DDataUsageUtils.java124 isReady = isReady & tele.getSimState(subInfo.getSimSlotIndex()) == SIM_STATE_READY; in hasReadyMobileRadio()
/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DAnalyticsTests.java479 when(subInfo1.getSimSlotIndex()).thenReturn(0);
480 when(subInfo2.getSimSlotIndex()).thenReturn(1);
/aosp12/packages/services/AlternativeNetworkAccess/src/com/android/ons/
H A DONSProfileSelector.java687 int phoneId = info.getSimSlotIndex(); in enableModem()
891 if (info.getSimSlotIndex() == i) { in enableModemStackForNonOpportunisticSlots()
/aosp12/frameworks/base/services/core/java/com/android/server/vcn/
H A DTelephonySubscriptionTracker.java179 if (subInfo.getSimSlotIndex() != INVALID_SIM_SLOT_INDEX in handleSubscriptionsChanged()
/aosp12/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/
H A DImsEntitlementPollingServiceTest.java211 when(mSubscriptionInfo.getSimSlotIndex()).thenReturn(SLOT_ID); in setActivedSubscription()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/
H A DNetworkControllerSignalTest.java402 when(mockSubInfo.getSimSlotIndex()).thenReturn(testSubscriptions[i]); in testSetCurrentSubscriptions()
/aosp12/frameworks/base/services/core/java/com/android/server/
H A DMmsServiceBroker.java548 return info.getSimSlotIndex(); in getPhoneIdFromSubId()

12