/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/ |
D | SimStatusDialogController.java | 115 final int prevSubId = (mSubscriptionInfo != null) 116 ? mSubscriptionInfo.getSubscriptionId() 119 mSubscriptionInfo = getPhoneSubscriptionInfo(mSlotIndex); 121 final int nextSubId = (mSubscriptionInfo != null) 122 ? mSubscriptionInfo.getSubscriptionId() 139 private SubscriptionInfo mSubscriptionInfo; field in SimStatusDialogController 208 mSubscriptionInfo = getPhoneSubscriptionInfo(slotId); in SimStatusDialogController() 225 if (mSubscriptionInfo == null) { in initialize() 264 if (mSubscriptionInfo == null) { in onResume() 268 mSubscriptionInfo.getSubscriptionId()); in onResume() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/ |
D | ImeiInfoDialogController.java | 71 private final SubscriptionInfo mSubscriptionInfo; field in ImeiInfoDialogController 78 mSubscriptionInfo = context.getSystemService(SubscriptionManager.class) in ImeiInfoDialogController() 81 if (mSubscriptionInfo != null) { in ImeiInfoDialogController() 83 .createForSubscriptionId(mSubscriptionInfo.getSubscriptionId()); in ImeiInfoDialogController() 110 mDialog.setText(ID_MIN_NUMBER_VALUE, mSubscriptionInfo != null in updateDialogForCdmaPhone() 111 ? mTelephonyManager.getCdmaMin(mSubscriptionInfo.getSubscriptionId()) in updateDialogForCdmaPhone() 121 if ((mSubscriptionInfo != null && isCdmaLteEnabled()) || in updateDialogForCdmaPhone() 122 (mSubscriptionInfo == null && isSimPresent(mSlotId))) { in updateDialogForCdmaPhone() 145 return mSubscriptionInfo != null ? mTelephonyManager.getCdmaPrlVersion() : ""; in getCdmaPrlVersion()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/simstatus/ |
D | SimStatusDialogController.java | 103 private final SubscriptionInfo mSubscriptionInfo; field in SimStatusDialogController 128 if (mSubscriptionInfo.getSubscriptionId() == subId) { 143 mSubscriptionInfo = getPhoneSubscriptionInfo(slotId); in SimStatusDialogController() 162 if (mSubscriptionInfo == null) { in initialize() 182 if (mSubscriptionInfo == null) { in onResume() 186 mTelephonyManager.createForSubscriptionId(mSubscriptionInfo.getSubscriptionId()) in onResume() 206 if (mSubscriptionInfo == null) { in onPause() 210 mTelephonyManager.createForSubscriptionId(mSubscriptionInfo.getSubscriptionId()) in onPause() 294 final int subscriptionId = mSubscriptionInfo.getSubscriptionId(); in updateSignalStrength() 337 final int subId = mSubscriptionInfo.getSubscriptionId(); in updateNetworkType() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | MobileDataPreferenceControllerTest.java | 63 private SubscriptionInfo mSubscriptionInfo; field in MobileDataPreferenceControllerTest 100 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in isDialogNeeded_disableSingleSim_returnFalse() 109 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in isDialogNeeded_enableNonDefaultSimInMultiSimMode_returnTrue() 131 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in onPreferenceChange_singleSim_On_shouldEnableData() 142 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in onPreferenceChange_multiSim_On_shouldEnableData() 161 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in updateState_opportunistic_disabled() 163 doReturn(true).when(mSubscriptionInfo).isOpportunistic(); in updateState_opportunistic_disabled() 173 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in updateState_notOpportunistic_enabled() 175 doReturn(false).when(mSubscriptionInfo).isOpportunistic(); in updateState_notOpportunistic_enabled()
|
D | MobileDataSliceTest.java | 67 private SubscriptionInfo mSubscriptionInfo; field in MobileDataSliceTest 80 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in setUp() 81 doReturn(SUB_ID).when(mSubscriptionInfo).getSubscriptionId(); in setUp() 82 doReturn(new ArrayList<>(Arrays.asList(mSubscriptionInfo))) in setUp() 112 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in handleUriChange_turnedOn_updatesMobileData() 124 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in handleUriChange_turnedOff_updatesMobileData() 136 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in handleUriChange_turnedOff_airplaneModeOn_mobileDataDoesNotUpdate() 192 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(SUB_ID); in airplaneModeEnabled_slicePrimaryActionIsEmpty()
|
D | MobileNetworkActivityTest.java | 88 private SubscriptionInfo mSubscriptionInfo; field in MobileNetworkActivityTest 109 when(mSubscriptionInfo.getSubscriptionId()).thenReturn(PREV_SUB_ID); in setUp() 132 mSubscriptionInfos.add(mSubscriptionInfo); in updateBottomNavigationView_oneSubscription_shouldBeGone() 144 mSubscriptionInfos.add(mSubscriptionInfo); in updateBottomNavigationView_twoSubscription_updateMenu() 145 mSubscriptionInfos.add(mSubscriptionInfo); in updateBottomNavigationView_twoSubscription_updateMenu() 226 mSubscriptionInfos.add(mSubscriptionInfo); in getSubscriptionId_hasIntent_getIdFromIntent() 237 mSubscriptionInfos.add(mSubscriptionInfo); in getSubscriptionId_noIntent_firstIdInList() 258 mSubscriptionInfos.add(mSubscriptionInfo); in onNewIntent_newSubscriptionId_fragmentReplaced()
|
D | DeleteSimProfilePreferenceControllerTest.java | 61 private SubscriptionInfo mSubscriptionInfo; field in DeleteSimProfilePreferenceControllerTest 74 SubscriptionUtil.setAvailableSubscriptionsForTesting(Arrays.asList(mSubscriptionInfo)); in setUp() 75 when(mSubscriptionInfo.getSubscriptionId()).thenReturn(SUB_ID); in setUp() 76 when(mSubscriptionInfo.isEmbedded()).thenReturn(true); in setUp() 99 when(mSubscriptionInfo.isEmbedded()).thenReturn(false); in getAvailabilityStatus_physicalSim_notAvailable() 106 when(mSubscriptionInfo.getSubscriptionId()).thenReturn(OTHER_ID); in getAvailabilityStatus_unknownSim_notAvailable()
|
D | RenameMobileNetworkDialogFragmentTest.java | 77 private SubscriptionInfo mSubscriptionInfo; field in RenameMobileNetworkDialogFragmentTest 98 when(mSubscriptionInfo.getSubscriptionId()).thenReturn(mSubscriptionId); in setUp() 99 when(mSubscriptionInfo.getDisplayName()).thenReturn("test"); in setUp() 108 mSubscriptionInfoList.add(mSubscriptionInfo); in setUp() 158 when(mSubscriptionInfo.isOpportunistic()).thenReturn(true); in populateView_infoIsOpportunistic_hideNumberLabel()
|
D | TelephonyBasePreferenceControllerTest.java | 45 private SubscriptionInfo mSubscriptionInfo; field in TelephonyBasePreferenceControllerTest 57 when(mSubscriptionInfo.getSubscriptionId()).thenReturn(VALID_SUB_ID); in setUp() 71 Arrays.asList(mSubscriptionInfo)); in isAvailable_noIdSetHoweverHasDefaultOne_returnTrue()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/ |
D | ApnSettings.java | 114 private SubscriptionInfo mSubscriptionInfo; field in ApnSettings 157 mSubscriptionInfo = getSubscriptionInfo(mSubId); 192 mSubscriptionInfo = getSubscriptionInfo(mSubId); in onCreate() 279 final int subId = mSubscriptionInfo != null ? mSubscriptionInfo.getSubscriptionId() in fillList() 381 int subId = mSubscriptionInfo != null ? mSubscriptionInfo.getSubscriptionId() in addNewApn() 449 int subId = mSubscriptionInfo != null ? mSubscriptionInfo.getSubscriptionId() in getUriForCurrSubId()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/ |
D | PhoneNumberPreferenceControllerTest.java | 62 private SubscriptionInfo mSubscriptionInfo; field in PhoneNumberPreferenceControllerTest 81 doReturn(mSubscriptionInfo).when(mController).getSubscriptionInfo(anyInt()); in setup() 114 doReturn(phoneNumber).when(mController).getFormattedPhoneNumber(mSubscriptionInfo); in updateState_singleSim_shouldUpdateTitleAndPhoneNumber() 127 doReturn(phoneNumber).when(mController).getFormattedPhoneNumber(mSubscriptionInfo); in updateState_multiSim_shouldUpdateTitleAndPhoneNumberOfMultiplePreferences() 169 list.add(mSubscriptionInfo); in copy_shouldCopyPhoneNumberToClipboard() 172 doReturn(phoneNumber).when(mController).getFormattedPhoneNumber(mSubscriptionInfo); in copy_shouldCopyPhoneNumberToClipboard()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | ApnSettings.java | 114 private SubscriptionInfo mSubscriptionInfo; field in ApnSettings 163 mSubscriptionInfo = getSubscriptionInfo(mSubId); 206 mSubscriptionInfo = getSubscriptionInfo(mSubId); in onCreate() 298 final int subId = mSubscriptionInfo != null ? mSubscriptionInfo.getSubscriptionId() in fillList() 401 final int subId = mSubscriptionInfo != null ? mSubscriptionInfo.getSubscriptionId() in addNewApn() 470 final int subId = mSubscriptionInfo != null ? mSubscriptionInfo.getSubscriptionId() in getUriForCurrSubId()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/gsm/ |
D | OpenNetworkSelectPagePreferenceControllerTest.java | 60 private SubscriptionInfo mSubscriptionInfo; field in OpenNetworkSelectPagePreferenceControllerTest 82 when(mSubscriptionInfo.getSubscriptionId()).thenReturn(SUB_ID); in setUp() 83 when(mSubscriptionInfo.getCarrierName()).thenReturn(OPERATOR_NAME); in setUp() 86 Arrays.asList(mSubscriptionInfo)); in setUp() 88 Arrays.asList(mSubscriptionInfo)); in setUp()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/imei/ |
D | ImeiInfoDialogController.java | 70 private final SubscriptionInfo mSubscriptionInfo; field in ImeiInfoDialogController 79 mSubscriptionInfo = getSubscriptionInfo(context, slotId); in ImeiInfoDialogController() 97 mSubscriptionInfo != null ? mTelephonyManager.getCdmaMin( in updateDialogForCdmaPhone() 98 mSubscriptionInfo.getSubscriptionId()) : ""); in updateDialogForCdmaPhone() 107 if (mSubscriptionInfo != null && isCdmaLteEnabled()) { in updateDialogForCdmaPhone()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | DeleteSimProfilePreferenceController.java | 34 private SubscriptionInfo mSubscriptionInfo; field in DeleteSimProfilePreferenceController 48 mSubscriptionInfo = info; in init() 62 mSubscriptionInfo.getSubscriptionId()); in displayPreference() 70 if (mSubscriptionInfo != null) { in getAvailabilityStatus()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/imei/ |
D | ImeiInfoDialogControllerTest.java | 69 private SubscriptionInfo mSubscriptionInfo; field in ImeiInfoDialogControllerTest 80 ssm.setActiveSubscriptionInfos(mSubscriptionInfo); in setup() 81 when(mSubscriptionInfo.getSubscriptionId()).thenReturn(SUB_ID); in setup()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/deviceinfo/ |
D | DeviceInfoSliceTest.java | 52 private SubscriptionInfo mSubscriptionInfo; field in DeviceInfoSliceTest 71 doReturn(mSubscriptionInfo).when(mDeviceInfoSlice).getFirstSubscriptionInfo(); in getSlice_hasSubscriptionInfo_shouldBeCorrectSliceContent()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/simstatus/ |
D | SimStatusDialogControllerTest.java | 100 private SubscriptionInfo mSubscriptionInfo; field in SimStatusDialogControllerTest 162 doReturn(mSubscriptionInfo).when(mSubscriptionManager).getActiveSubscriptionInfo(anyInt()); in setup() 166 ReflectionHelpers.setField(mController, "mSubscriptionInfo", mSubscriptionInfo); in setup() 201 doReturn(carrierName).when(mSubscriptionInfo).getCarrierName(); in initialize_updateNetworkProviderWithFoobarCarrier_shouldUpdateCarrierWithFoobar() 213 mSubscriptionInfo); in initialize_updatePhoneNumberWith1111111111_shouldUpdatePhoneNumber()
|