Home
last modified time | relevance | path

Searched refs:SUB_ID_1 (Results 1 – 14 of 14) sorted by relevance

/packages/services/Telephony/tests/src/com/android/phone/
DImsProvisioningLoaderTest.java70 private static final int SUB_ID_1 = 111111; field in ImsProvisioningLoaderTest
94 deleteXml(SUB_ID_1, mContext); in tearDown()
105 mImsProvisioningLoader.setProvisioningToXml(SUB_ID_1, new PersistableBundle(), info); in testSetProvisioningStatus_ExistFeature()
107 int curValue = mImsProvisioningLoader.getProvisioningStatus(SUB_ID_1, IMS_FEATURE_MMTEL, in testSetProvisioningStatus_ExistFeature()
109 assertEquals(getXmlContents(SUB_ID_1), getInt(true), curValue); in testSetProvisioningStatus_ExistFeature()
112 boolean saveResult = mImsProvisioningLoader.setProvisioningStatus(SUB_ID_1, in testSetProvisioningStatus_ExistFeature()
114 curValue = mImsProvisioningLoader.getProvisioningStatus(SUB_ID_1, in testSetProvisioningStatus_ExistFeature()
116 assertEquals(getXmlContents(SUB_ID_1), true, saveResult); in testSetProvisioningStatus_ExistFeature()
117 assertEquals(getXmlContents(SUB_ID_1), getInt(false), curValue); in testSetProvisioningStatus_ExistFeature()
120 saveResult = mImsProvisioningLoader.setProvisioningStatus(SUB_ID_1, in testSetProvisioningStatus_ExistFeature()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DMobileNetworkUtilsTest.java74 private static final int SUB_ID_1 = 1; field in MobileNetworkUtilsTest
118 when(mTelephonyManager.createForSubscriptionId(SUB_ID_1)).thenReturn(mTelephonyManager); in setUp()
124 when(mCarrierConfigCache.getConfigForSubId(SUB_ID_1)).thenReturn(mCarrierConfig); in setUp()
130 when(mSubscriptionInfo1.getSubscriptionId()).thenReturn(SUB_ID_1); in setUp()
137 when(mSubscriptionManager.getActiveSubscriptionInfo(SUB_ID_1)).thenReturn( in setUp()
146 when(mTelecomManager.getSimCallManagerForSubscription(SUB_ID_1)) in setUp()
148 mMockQueryWfcState = new MockWfcQueryImsState(mContext, SUB_ID_1); in setUp()
153 MobileNetworkUtils.setMobileDataEnabled(mContext, SUB_ID_1, true, false); in setMobileDataEnabled_setEnabled_enabled()
173 MobileNetworkUtils.setMobileDataEnabled(mContext, SUB_ID_1, true, true); in setMobileDataEnabled_disableOtherSubscriptions()
206 assertThat(MobileNetworkUtils.isCdmaOptions(mContext, SUB_ID_1)).isTrue(); in isCdmaOptions_phoneTypeCdma_returnTrue()
[all …]
DDefaultSubscriptionControllerTest.java67 private static final String SUB_ID_1 = "1"; field in DefaultSubscriptionControllerTest
154 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, DISPLAY_NAME_1, SUB_MCC_1, SUB_MNC_1, in getSummary_singleSub()
162 assertThat(mListPreference.getSummary().toString()).isEqualTo(SUB_ID_1); in getSummary_singleSub()
167 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, DISPLAY_NAME_1, SUB_MCC_1, SUB_MNC_1, in getSummary_twoSubs()
178 assertThat(mListPreference.getSummary().toString()).isEqualTo(SUB_ID_1); in getSummary_twoSubs()
183 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, DISPLAY_NAME_1, SUB_MCC_1, SUB_MNC_1, in onPreferenceChange_prefChangedToSub2_callbackCalledCorrectly()
200 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, DISPLAY_NAME_1, SUB_MCC_1, SUB_MNC_1, in onPreferenceChange_prefChangedToAlwaysAsk_callbackCalledCorrectly()
220 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, DISPLAY_NAME_1, SUB_MCC_1, SUB_MNC_1, in onPreferenceChange_prefBecomesAvailable_onPreferenceChangeCallbackNotNull()
243 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, DISPLAY_NAME_1, SUB_MCC_1, SUB_MNC_1, in onSubscriptionsChanged_twoSubscriptionsDefaultChanges_selectedEntryGetsUpdated()
254 assertThat(mListPreference.getValue()).isEqualTo(SUB_ID_1); in onSubscriptionsChanged_twoSubscriptionsDefaultChanges_selectedEntryGetsUpdated()
[all …]
DMobileDataPreferenceControllerTest.java62 private static final String SUB_ID_1 = "1"; field in MobileDataPreferenceControllerTest
148 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, DISPLAY_NAME_1, false, true, true, true); in isDialogNeeded_disableSingleSim_returnFalse()
157 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, DISPLAY_NAME_1, false, true, true, true); in isDialogNeeded_enableNonDefaultSimInMultiSimMode_returnTrue()
184 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, DISPLAY_NAME_1, true, true, true, true); in onPreferenceChange_singleSim_On_shouldEnableData()
198 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, DISPLAY_NAME_1, true, true, true, true); in onPreferenceChange_multiSim_On_shouldEnableData()
223 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, DISPLAY_NAME_1, true, true, true, true); in updateState_opportunistic_disabled()
235 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, DISPLAY_NAME_1, false, true, true, true); in updateState_notOpportunistic_enabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DAutoDataSwitchPreferenceControllerTest.java59 private static final int SUB_ID_1 = 111; field in AutoDataSwitchPreferenceControllerTest
88 mController.init(SUB_ID_1, null); in setUp()
94 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_1); in getAvailabilityStatus_noInit_notAvailable()
106 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_1); in displayPreference_defaultForData_notAvailable()
131 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_1); in onSubscriptionsChanged_becomesDefaultForData_notAvailable()
141 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_1); in onSubscriptionsChanged_noLongerDefaultForData_available()
154 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_1); in getAvailabilityStatus_mobileDataChangWithDefaultDataSubId_returnUnavailable()
158 assertThat(mController.getAvailabilityStatus(SUB_ID_1)) in getAvailabilityStatus_mobileDataChangWithDefaultDataSubId_returnUnavailable()
165 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_1); in getAvailabilityStatus_mobileDataChangWithoutDefaultDataSubId_returnAvailable()
176 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_1); in getAvailabilityStatus_flagIsDualSimOnboardingEnabledOn_returnUnavailable()
[all …]
DSignalStrengthListenerTest.java47 private static final int SUB_ID_1 = 111; field in SignalStrengthListenerTest
70 when(mBaseManager.createForSubscriptionId(SUB_ID_1)).thenReturn(mManager1); 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()
114 eq(mListener.mTelephonyCallbacks.get(SUB_ID_1))); in updateSubscriptionIds_twoCalls_oneIdAdded()
118 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2, SUB_ID_3)); in updateSubscriptionIds_twoCalls_oneIdAdded()
120 mListener.mTelephonyCallbacks.get(SUB_ID_1)); in updateSubscriptionIds_twoCalls_oneIdAdded()
133 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_twoCalls_oneIdRemoved()
154 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_twoCalls_twoIdsRemovedOneAdded()
171 mListener.updateSubscriptionIds(Sets.newSet(SUB_ID_1, SUB_ID_2)); in updateSubscriptionIds_thenPauseResume_correctlyStartsAndStops()
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/
DNormalCallDomainSelectorTest.java78 private static final int SUB_ID_1 = 1; field in NormalCallDomainSelectorTest
113 doReturn(mMockMmTelManager).when(mMockImsManager).getImsMmTelManager(SUB_ID_1); in setUp()
128 mNormalCallDomainSelector = new NormalCallDomainSelector(mMockContext, SLOT_ID, SUB_ID_1, in setUp()
178 assertEquals(SUB_ID_1, mNormalCallDomainSelector.getSubId()); in testInit()
202 SLOT_ID, SUB_ID_1, SELECTOR_TYPE_CALLING) in testDestroyedDuringActiveState()
228 SLOT_ID, SUB_ID_1, SELECTOR_TYPE_CALLING) in testSelectDomainInputParams()
296 SLOT_ID, SUB_ID_1, SELECTOR_TYPE_UT) in testSelectDomainInputParams()
316 SLOT_ID, SUB_ID_1, SELECTOR_TYPE_CALLING) in testSelectDomainInputParams()
343 SLOT_ID, SUB_ID_1, SELECTOR_TYPE_CALLING) in testOutOfService()
377 SLOT_ID, SUB_ID_1, SELECTOR_TYPE_CALLING) in testDomainSelection()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/
DResetSubscriptionContractTest.java42 private static final int SUB_ID_1 = 3; field in ResetSubscriptionContractTest
80 mRequestArgs.setResetTelephonyAndNetworkPolicyManager(SUB_ID_1);
82 .getActiveSubscriptionInfo(SUB_ID_1);
96 mRequestArgs.setResetTelephonyAndNetworkPolicyManager(SUB_ID_1);
98 .getActiveSubscriptionInfo(SUB_ID_1);
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DNetworkProviderSimListControllerTest.java60 private static final String SUB_ID_1 = "1"; field in NetworkProviderSimListControllerTest
162 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, 1, 1, DISPLAY_NAME_1, SUB_MCC_1, in getSummary_tapToActivePSim()
175 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, 1, 1, DISPLAY_NAME_1, SUB_MCC_1, in getSummary_inactivePSim()
190 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, 1, 1, DISPLAY_NAME_1, SUB_MCC_1, in getSummary_defaultCalls()
197 Integer.parseInt(SUB_ID_1)); in getSummary_defaultCalls()
212 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, 1, 1, DISPLAY_NAME_1, SUB_MCC_1, in getSummary_defaultCallsAndSms()
219 Integer.parseInt(SUB_ID_1)); in getSummary_defaultCallsAndSms()
231 mSubInfo1 = setupSubscriptionInfoEntity(SUB_ID_1, 1, 1, DISPLAY_NAME_1, SUB_MCC_1, in getAvailablePhysicalSubscription_withTwoPhysicalSims_returnTwo()
DInternetPreferenceControllerTest.java79 private static final String SUB_ID_1 = "1"; field in InternetPreferenceControllerTest
256 mActiveSubInfo = setupSubscriptionInfoEntity(SUB_ID_1, 1, 1, DISPLAY_NAME_1, SUB_MCC_1, in updateCellularSummary_getActiveSubscriptionInfo_cbrs()
268 mActiveSubInfo = setupSubscriptionInfoEntity(SUB_ID_1, 1, 1, DISPLAY_NAME_1, SUB_MCC_1, in updateCellularSummary_getActiveSubscriptionInfo_cbrs()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/network/
DSimOnboardingSelectSimTest.kt58 on { getPhoneNumber(SUB_ID_1) } doReturn NUMBER_1 in <lambda>()
106 on { targetSubId }.doReturn(SUB_ID_1) in simOnboardingSelectSimImpl_clickNextAction_verifyNextAction()
148 on { targetSubId }.doReturn(SUB_ID_1) in simOnboardingSelectSimImpl_showItem_show3Items()
185 const val SUB_ID_1 = 1 constant
198 setId(SUB_ID_1) in <lambda>()
DSimOnboardingLabelSimTest.kt69 on { getPhoneNumber(SUB_ID_1) } doReturn NUMBER_1 in <lambda>()
253 on { targetSubId }.doReturn(SUB_ID_1) in preSetupContent()
272 const val SUB_ID_1 = 1 constant
285 setId(SUB_ID_1) in <lambda>()
DSimOnboardingPrimarySimTest.kt93 const val SUB_ID_1 = 1 constant
105 setId(SUB_ID_1) in <lambda>()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/simstatus/
DSlotSimStatusTest.java50 private static final int SUB_ID_1 = 3; field in SlotSimStatusTest
143 doReturn(SUB_ID_1).when(mSubscriptionInfo1).getSubscriptionId(); in getSubscriptionInfo_returnSubscriptionInfo_whenActive()