Home
last modified time | relevance | path

Searched refs:ShadowSubscriptionManager (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DResetNetworkSubscriptionPreferenceControllerTest.java47 import org.robolectric.shadows.ShadowSubscriptionManager;
62 private ShadowSubscriptionManager mShadowSubscriptionManager;
191 ShadowSubscriptionManager.setDefaultSubscriptionId(SUBID_4); in refreshUi_defaultSelection_fourthPriority_system()
203 ShadowSubscriptionManager.setDefaultSubscriptionId(SUBID_4); in refreshUi_defaultSelection_thirdPriority_sms()
204 ShadowSubscriptionManager.setDefaultSmsSubscriptionId(SUBID_3); in refreshUi_defaultSelection_thirdPriority_sms()
216 ShadowSubscriptionManager.setDefaultSubscriptionId(SUBID_4); in refreshUi_defaultSelection_secondPriority_voice()
217 ShadowSubscriptionManager.setDefaultSmsSubscriptionId(SUBID_3); in refreshUi_defaultSelection_secondPriority_voice()
218 ShadowSubscriptionManager.setDefaultVoiceSubscriptionId(SUBID_2); in refreshUi_defaultSelection_secondPriority_voice()
230 ShadowSubscriptionManager.setDefaultSubscriptionId(SUBID_4); in refreshUi_defaultSelection_firstPriority_data()
231 ShadowSubscriptionManager.setDefaultSmsSubscriptionId(SUBID_3); in refreshUi_defaultSelection_firstPriority_data()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DDataDuringCallsPreferenceControllerTest.java48 import org.robolectric.shadows.ShadowSubscriptionManager;
51 @Config(shadows = ShadowSubscriptionManager.class)
82 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_1); in getAvailabilityStatus_noInit_notAvailable()
93 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_1); in displayPreference_defaultForData_notAvailable()
103 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_2); in displayPreference_notDefaultForData_available()
113 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_2); in onSubscriptionsChanged_becomesDefaultForData_notAvailable()
116 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_1); in onSubscriptionsChanged_becomesDefaultForData_notAvailable()
125 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_1); in onSubscriptionsChanged_noLongerDefaultForData_available()
128 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_2); in onSubscriptionsChanged_noLongerDefaultForData_available()
DSubscriptionsPreferenceControllerTest.java67 import org.robolectric.shadows.ShadowSubscriptionManager;
79 @Config(shadows = ShadowSubscriptionManager.class)
301 ShadowSubscriptionManager.setDefaultSmsSubscriptionId(11); in getSummary_twoSubsOneDefaultForEverythingDataActive()
302 ShadowSubscriptionManager.setDefaultVoiceSubscriptionId(11); in getSummary_twoSubsOneDefaultForEverythingDataActive()
318 ShadowSubscriptionManager.setDefaultSmsSubscriptionId(1); in getSummary_twoSubsOneDefaultForEverythingDataNotActive()
319 ShadowSubscriptionManager.setDefaultVoiceSubscriptionId(1); in getSummary_twoSubsOneDefaultForEverythingDataNotActive()
333 ShadowSubscriptionManager.setDefaultVoiceSubscriptionId(1); in getSummary_twoSubsOneDefaultForEverythingDataDisabled()
334 ShadowSubscriptionManager.setDefaultSmsSubscriptionId(1); in getSummary_twoSubsOneDefaultForEverythingDataDisabled()
348 ShadowSubscriptionManager.setDefaultSmsSubscriptionId(2); in getSummary_twoSubsOneForCallsAndDataOneForSms()
349 ShadowSubscriptionManager.setDefaultVoiceSubscriptionId(1); in getSummary_twoSubsOneForCallsAndDataOneForSms()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataUsageEntryPreferenceControllerTest.java40 import com.android.car.settings.testutils.ShadowSubscriptionManager;
55 @Config(shadows = {ShadowConnectivityManager.class, ShadowSubscriptionManager.class})
93 ShadowSubscriptionManager.reset(); in tearDown()
114 ShadowSubscriptionManager.setDefaultSubscriptionId( in refreshUi_noDefaultSubscriptionId_noSummarySet()
123 ShadowSubscriptionManager.setDefaultSubscriptionId(SUBSCRIPTION_ID); in refreshUi_noPrimaryPlan_noSummarySet()
132 ShadowSubscriptionManager.setDefaultSubscriptionId(SUBSCRIPTION_ID); in refreshUi_hasPrimaryPlan_setsSummary()
147 private ShadowSubscriptionManager getShadowSubscriptionManager() { in getShadowSubscriptionManager()
148 return (ShadowSubscriptionManager) extract( in getShadowSubscriptionManager()
DDataUsageSummaryPreferenceControllerTest.java43 import com.android.car.settings.testutils.ShadowSubscriptionManager;
64 @Config(shadows = {ShadowTelephonyManager.class, ShadowSubscriptionManager.class,
84 ShadowSubscriptionManager.setDefaultDataSubscriptionInfo(info); in setUp()
102 ShadowSubscriptionManager.reset(); in tearDown()
355 private ShadowSubscriptionManager getShadowSubscriptionManager() { in getShadowSubscriptionManager()
366 ShadowSubscriptionManager.setDefaultDataSubscriptionInfo(subInfo); in setCarrierName()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DMobileDataTogglePreferenceControllerTest.java41 import com.android.car.settings.testutils.ShadowSubscriptionManager;
58 @Config(shadows = {ShadowTelephonyManager.class, ShadowSubscriptionManager.class})
91 ShadowSubscriptionManager.reset(); in tearDown()
211 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID); in handlePreferenceChanged_setTrue_isMultiSim_noOtherSimActive_enablesData()
223 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID); in handlePreferenceChanged_setTrue_isMultiSim_noOtherSimActive_setsChecked()
236 ShadowSubscriptionManager.setDefaultDataSubscriptionId(otherSubId); in handlePreferenceChanged_setTrue_isMultiSim_otherSimActive_opensDialog()
293 ShadowSubscriptionManager.setDefaultDataSubscriptionId(otherSubId); in enableMutliSimDialog_onConfirm_enablesData()
317 ShadowSubscriptionManager.setDefaultDataSubscriptionId(otherSubId); in enableMutliSimDialog_onConfirm_setsChecked()
343 private ShadowSubscriptionManager getShadowSubscriptionManager() { in getShadowSubscriptionManager()
DSubscriptionsChangeListenerTest.java28 import com.android.car.settings.testutils.ShadowSubscriptionManager;
43 @Config(shadows = {ShadowSubscriptionManager.class})
62 ShadowSubscriptionManager.reset(); in tearDown()
127 private ShadowSubscriptionManager getShadowSubscriptionManager() { in getShadowSubscriptionManager()
DMobileNetworkFragmentTest.java29 import com.android.car.settings.testutils.ShadowSubscriptionManager;
42 @Config(shadows = {ShadowSubscriptionManager.class})
59 ShadowSubscriptionManager.reset(); in tearDown()
110 private ShadowSubscriptionManager getShadowSubscriptionManager() { in getShadowSubscriptionManager()
DMobileNetworkListPreferenceControllerTest.java34 import com.android.car.settings.testutils.ShadowSubscriptionManager;
50 @Config(shadows = {ShadowSubscriptionManager.class})
70 ShadowSubscriptionManager.reset(); in tearDown()
104 private ShadowSubscriptionManager getShadowSubscriptionManager() { in getShadowSubscriptionManager()
DMobileNetworkUpdateManagerTest.java29 import com.android.car.settings.testutils.ShadowSubscriptionManager;
46 @Config(shadows = {ShadowSubscriptionManager.class})
156 private ShadowSubscriptionManager getShadowSubscriptionManager() { in getShadowSubscriptionManager()
DMobileNetworkEntryPreferenceControllerTest.java50 import com.android.car.settings.testutils.ShadowSubscriptionManager;
71 ShadowTelephonyManager.class, ShadowSubscriptionManager.class})
275 private ShadowSubscriptionManager getShadowSubscriptionManager() { in getShadowSubscriptionManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryTest.java56 import org.robolectric.shadows.ShadowSubscriptionManager;
128 @Config(shadows = ShadowSubscriptionManager.class)
132 ShadowSubscriptionManager.setDefaultDataSubscriptionId(1); in configuration_withSim_shouldShowMobileAndWifi()
187 @Config(shadows = ShadowSubscriptionManager.class)
192 ShadowSubscriptionManager.setDefaultDataSubscriptionId( in configuration_invalidDataSusbscription_shouldShowWifiSectionOnly()
DAppDataUsageTest.java77 import org.robolectric.shadows.ShadowSubscriptionManager;
412 @Config(shadows = {ShadowDataUsageUtils.class, ShadowSubscriptionManager.class})
417 ShadowSubscriptionManager.setDefaultDataSubscriptionId( in onCreate_noNetworkTemplateAndInvalidDataSubscription_shouldUseWifiTemplate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DMobileDataPreferenceControllerTest.java46 import org.robolectric.shadows.ShadowSubscriptionManager;
49 @Config(shadows = ShadowSubscriptionManager.class)
85 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID); in setUp()
112 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID_OTHER); in isDialogNeeded_enableNonDefaultSimInMultiSimMode_returnTrue()
DMmsMessagePreferenceControllerTest.java43 import org.robolectric.shadows.ShadowSubscriptionManager;
46 @Config(shadows = ShadowSubscriptionManager.class)
71 ShadowSubscriptionManager.setDefaultDataSubscriptionId(SUB_ID); in setUp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowSubscriptionManager.java32 public class ShadowSubscriptionManager extends org.robolectric.shadows.ShadowSubscriptionManager { class
97 org.robolectric.shadows.ShadowSubscriptionManager.reset(); in reset()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/imei/
DImeiInfoDialogControllerTest.java49 import org.robolectric.shadows.ShadowSubscriptionManager;
78 final ShadowSubscriptionManager ssm = Shadow.extract(mContext.getSystemService( in setup()