/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/ |
D | ResetNetworkSubscriptionPreferenceControllerTest.java | 47 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/ |
D | DataDuringCallsPreferenceControllerTest.java | 48 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()
|
D | SubscriptionsPreferenceControllerTest.java | 67 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/ |
D | DataUsageEntryPreferenceControllerTest.java | 40 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()
|
D | DataUsageSummaryPreferenceControllerTest.java | 43 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/ |
D | MobileDataTogglePreferenceControllerTest.java | 41 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()
|
D | SubscriptionsChangeListenerTest.java | 28 import com.android.car.settings.testutils.ShadowSubscriptionManager; 43 @Config(shadows = {ShadowSubscriptionManager.class}) 62 ShadowSubscriptionManager.reset(); in tearDown() 127 private ShadowSubscriptionManager getShadowSubscriptionManager() { in getShadowSubscriptionManager()
|
D | MobileNetworkFragmentTest.java | 29 import com.android.car.settings.testutils.ShadowSubscriptionManager; 42 @Config(shadows = {ShadowSubscriptionManager.class}) 59 ShadowSubscriptionManager.reset(); in tearDown() 110 private ShadowSubscriptionManager getShadowSubscriptionManager() { in getShadowSubscriptionManager()
|
D | MobileNetworkListPreferenceControllerTest.java | 34 import com.android.car.settings.testutils.ShadowSubscriptionManager; 50 @Config(shadows = {ShadowSubscriptionManager.class}) 70 ShadowSubscriptionManager.reset(); in tearDown() 104 private ShadowSubscriptionManager getShadowSubscriptionManager() { in getShadowSubscriptionManager()
|
D | MobileNetworkUpdateManagerTest.java | 29 import com.android.car.settings.testutils.ShadowSubscriptionManager; 46 @Config(shadows = {ShadowSubscriptionManager.class}) 156 private ShadowSubscriptionManager getShadowSubscriptionManager() { in getShadowSubscriptionManager()
|
D | MobileNetworkEntryPreferenceControllerTest.java | 50 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/ |
D | DataUsageSummaryTest.java | 56 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()
|
D | AppDataUsageTest.java | 77 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/ |
D | MobileDataPreferenceControllerTest.java | 46 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()
|
D | MmsMessagePreferenceControllerTest.java | 43 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/ |
D | ShadowSubscriptionManager.java | 32 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/ |
D | ImeiInfoDialogControllerTest.java | 49 import org.robolectric.shadows.ShadowSubscriptionManager; 78 final ShadowSubscriptionManager ssm = Shadow.extract(mContext.getSystemService( in setup()
|