Home
last modified time | relevance | path

Searched refs:SUB_ID_2 (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DSignalStrengthListenerTest.java48 private static final int SUB_ID_2 = 222; field in SignalStrengthListenerTest
71 when(mBaseManager.createForSubscriptionId(SUB_ID_2)).thenReturn(mManager2); in setUp()
88 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_beforeResume_startedListening()
111 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_twoCalls_oneIdAdded()
116 eq(mListener.mTelephonyCallbacks.get(SUB_ID_2))); in updateSubscriptionIds_twoCalls_oneIdAdded()
118 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2, SUB_ID_3)); in updateSubscriptionIds_twoCalls_oneIdAdded()
122 mListener.mTelephonyCallbacks.get(SUB_ID_2)); in updateSubscriptionIds_twoCalls_oneIdAdded()
133 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_twoCalls_oneIdRemoved()
138 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_2)); in updateSubscriptionIds_twoCalls_oneIdRemoved()
154 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_twoCalls_twoIdsRemovedOneAdded()
[all …]
DAutoDataSwitchPreferenceControllerTest.java60 private static final int SUB_ID_2 = 222; field in AutoDataSwitchPreferenceControllerTest
117 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_2); in displayPreference_notDefaultForData_available()
128 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_2); in onSubscriptionsChanged_becomesDefaultForData_notAvailable()
144 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_2); in onSubscriptionsChanged_noLongerDefaultForData_available()
170 assertThat(mController.getAvailabilityStatus(SUB_ID_2)).isEqualTo(AVAILABLE); in getAvailabilityStatus_mobileDataChangWithoutDefaultDataSubId_returnAvailable()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DResetSubscriptionContractTest.java43 private static final int SUB_ID_2 = 8; field in ResetSubscriptionContractTest
83 mRequestArgs.setResetApn(SUB_ID_2);
85 .getActiveSubscriptionInfo(SUB_ID_2);
99 mRequestArgs.setResetApn(SUB_ID_2);
101 .getActiveSubscriptionInfo(SUB_ID_2);
107 assertEquals(target.getAnyMissingSubscriptionId(), new Integer(SUB_ID_2));
/packages/services/Telephony/tests/src/com/android/phone/
DImsProvisioningLoaderTest.java71 private static final int SUB_ID_2 = 222222; field in ImsProvisioningLoaderTest
95 deleteXml(SUB_ID_2, mContext); in tearDown()
154 boolean prevValue = getBooleanFromProvisioningStatus(SUB_ID_2, in testSetProvisioningStatus_DifferentSim()
157 SUB_ID_2, IMS_FEATURE_RCS, CAPA_PRESENCE, TECH_IWLAN, !prevValue); in testSetProvisioningStatus_DifferentSim()
158 int curValue = mImsProvisioningLoader.getProvisioningStatus(SUB_ID_2, in testSetProvisioningStatus_DifferentSim()
160 assertEquals(getXmlContents(SUB_ID_2), true, saveResult); in testSetProvisioningStatus_DifferentSim()
161 assertEquals(getXmlContents(SUB_ID_2), getInt(!prevValue), curValue); in testSetProvisioningStatus_DifferentSim()
168 curValue = mImsProvisioningLoader.getProvisioningStatus(SUB_ID_2, in testSetProvisioningStatus_DifferentSim()
170 assertEquals(getXmlContents(SUB_ID_2), getInt(!prevValue), curValue); in testSetProvisioningStatus_DifferentSim()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DDefaultSubscriptionControllerTest.java68 private static final String SUB_ID_2 = "2"; field in DefaultSubscriptionControllerTest
169 mSubInfo2 = setupSubscriptionInfoEntity(SUB_ID_2, DISPLAY_NAME_2, SUB_MCC_2, SUB_MNC_2, in getSummary_twoSubs()
185 mSubInfo2 = setupSubscriptionInfoEntity(SUB_ID_2, DISPLAY_NAME_2, SUB_MCC_2, SUB_MNC_2, in onPreferenceChange_prefChangedToSub2_callbackCalledCorrectly()
202 mSubInfo2 = setupSubscriptionInfoEntity(SUB_ID_2, DISPLAY_NAME_2, SUB_MCC_2, SUB_MNC_2, in onPreferenceChange_prefChangedToAlwaysAsk_callbackCalledCorrectly()
222 mSubInfo2 = setupSubscriptionInfoEntity(SUB_ID_2, DISPLAY_NAME_2, SUB_MCC_2, SUB_MNC_2, in onPreferenceChange_prefBecomesAvailable_onPreferenceChangeCallbackNotNull()
237 mListPreference.callChangeListener(SUB_ID_2); in onPreferenceChange_prefBecomesAvailable_onPreferenceChangeCallbackNotNull()
245 mSubInfo2 = setupSubscriptionInfoEntity(SUB_ID_2, DISPLAY_NAME_2, SUB_MCC_2, SUB_MNC_2, in onSubscriptionsChanged_twoSubscriptionsDefaultChanges_selectedEntryGetsUpdated()
266 mSubInfo2 = setupSubscriptionInfoEntity(SUB_ID_2, DISPLAY_NAME_2, SUB_MCC_2, SUB_MNC_2, in onSubscriptionsChanged_goFromTwoSubscriptionsToOne_prefDisappears()
292 mSubInfo2 = setupSubscriptionInfoEntity(SUB_ID_2, DISPLAY_NAME_2, SUB_MCC_2, SUB_MNC_2, in onSubscriptionsChanged_goFromOneSubscriptionToTwo_prefAppears()
314 mSubInfo2 = setupSubscriptionInfoEntity(SUB_ID_2, DISPLAY_NAME_2, SUB_MCC_2, SUB_MNC_2, in onSubscriptionsChanged_goFromTwoToThreeSubscriptions_listGetsUpdated()
[all …]
DMobileNetworkUtilsTest.java75 private static final int SUB_ID_2 = 2; field in MobileNetworkUtilsTest
119 when(mTelephonyManager.createForSubscriptionId(SUB_ID_2)).thenReturn(mTelephonyManager2); in setUp()
132 when(mSubscriptionInfo2.getSubscriptionId()).thenReturn(SUB_ID_2); in setUp()
139 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID_2)).thenReturn( in setUp()
163 MobileNetworkUtils.setMobileDataEnabled(mContext, SUB_ID_2, true, false); in setMobileDataEnabled_setDisabled_disabled()
257 int[] expectedList = {SUB_ID_1, SUB_ID_2}; in getActiveSubscriptionIdList_normalCaseTwoActiveSims_returnValidSubId()
265 int[] expectedList = {SUB_ID_2}; in getActiveSubscriptionIdList_TwoActiveSimsAndOneIsNtn_returnOneSubId()
395 mContext, SUB_ID_2)).isEqualTo(PLMN_FROM_SUB_ID_2); in getCurrentCarrierNameForDisplay_withValidSubId_returnCurrentCarrierName()
DMobileDataPreferenceControllerTest.java63 private static final String SUB_ID_2 = "2"; field in MobileDataPreferenceControllerTest
162 mSubInfo2 = setupSubscriptionInfoEntity(SUB_ID_2, DISPLAY_NAME_2, false, true, true, true); in isDialogNeeded_enableNonDefaultSimInMultiSimMode_returnTrue()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/network/
DSimOnboardingSelectSimTest.kt59 on { getPhoneNumber(SUB_ID_2) } doReturn NUMBER_2 in <lambda>()
186 const val SUB_ID_2 = 2 constant
205 setId(SUB_ID_2) in <lambda>()
DSimOnboardingPrimarySimTest.kt94 const val SUB_ID_2 = 2 constant
111 setId(SUB_ID_2) in <lambda>()
DSimOnboardingLabelSimTest.kt70 on { getPhoneNumber(SUB_ID_2) } doReturn NUMBER_2 in <lambda>()
273 const val SUB_ID_2 = 2 constant
291 setId(SUB_ID_2) in <lambda>()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/simstatus/
DSlotSimStatusTest.java51 private static final int SUB_ID_2 = 8; field in SlotSimStatusTest
145 doReturn(SUB_ID_2).when(mSubscriptionInfo2).getSubscriptionId(); in getSubscriptionInfo_returnSubscriptionInfo_whenActive()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DInternetPreferenceControllerTest.java80 private static final String SUB_ID_2 = "2"; field in InternetPreferenceControllerTest
255 mController.setDefaultDataSubscriptionId(Integer.parseInt(SUB_ID_2)); in updateCellularSummary_getActiveSubscriptionInfo_cbrs()
258 mDefaultDataSubInfo = setupSubscriptionInfoEntity(SUB_ID_2, 1, 1, DISPLAY_NAME_2, SUB_MCC_2, in updateCellularSummary_getActiveSubscriptionInfo_cbrs()
DNetworkProviderSimListControllerTest.java61 private static final String SUB_ID_2 = "2"; field in NetworkProviderSimListControllerTest
233 mSubInfo2 = setupSubscriptionInfoEntity(SUB_ID_2, 1, 1, DISPLAY_NAME_2, SUB_MCC_2, in getAvailablePhysicalSubscription_withTwoPhysicalSims_returnTwo()
/packages/services/Telephony/tests/src/com/android/phone/satellite/entitlement/
DSatelliteEntitlementControllerTest.java90 private static final int SUB_ID_2 = 1; field in SatelliteEntitlementControllerTest
296 doReturn(new int[]{SUB_ID_2}).when(mMockSubscriptionManagerService).getActiveSubIdList( in testCheckSatelliteEntitlementStatus()
301 verify(mSatelliteController).onSatelliteEntitlementStatusUpdated(eq(SUB_ID_2), eq(true), in testCheckSatelliteEntitlementStatus()
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/
DNormalCallDomainSelectorTest.java79 private static final int SUB_ID_2 = 2; field in NormalCallDomainSelectorTest
114 doReturn(mMockMmTelManager).when(mMockImsManager).getImsMmTelManager(SUB_ID_2); in setUp()