Home
last modified time | relevance | path

Searched refs:mSubId (Results 1 – 25 of 128) sorted by relevance

123456

/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkSettings.java79 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in MobileNetworkSettings
124 mSubId = getArguments().getInt(Settings.EXTRA_SUB_ID, in createPreferenceControllers()
126 Log.i(LOG_TAG, "display subId: " + mSubId); in createPreferenceControllers()
128 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in createPreferenceControllers()
133 this, mSubId)); in createPreferenceControllers()
143 use(MobileNetworkSwitchController.class).init(getLifecycle(), mSubId); in onAttach() local
144 use(CarrierSettingsVersionPreferenceController.class).init(mSubId); in onAttach()
145 use(BillingCyclePreferenceController.class).init(mSubId); in onAttach()
146 use(MmsMessagePreferenceController.class).init(mSubId); in onAttach()
147 use(DataDuringCallsPreferenceController.class).init(getLifecycle(), mSubId); in onAttach() local
[all …]
DRoamingPreferenceController.java81 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onStart()
86 Settings.Global.DATA_ROAMING + mSubId) { in onStart()
141 switchPreference.setEnabled(mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID); in updateState()
150 mSubId); in isDialogNeeded()
167 mSubId = subId; in init()
169 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in init()
173 .createForSubscriptionId(mSubId); in init()
175 Log.w(TAG, "fail to init in sub" + mSubId); in init()
176 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in init()
183 final RoamingDialogFragment dialogFragment = RoamingDialogFragment.newInstance(mSubId); in showDialog()
DMobileDataPreferenceController.java79 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onStart()
80 mDataContentObserver.register(mContext, mSubId); in onStart()
86 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onStop()
109 MobileNetworkUtils.setMobileDataEnabled(mContext, mSubId, isChecked, false); in setChecked()
132 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in updateState()
141 SubscriptionInfo info = mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in isOpportunistic()
147 mSubId = subId; in init()
149 .createForSubscriptionId(mSubId); in init()
158 .isActiveSubscriptionId(defaultSubId) && defaultSubId != mSubId; in isDialogNeeded()
168 mSubId); in showDialog()
DEnabledNetworkModePreferenceController.java109 Settings.Global.getUriFor(Settings.Global.PREFERRED_NETWORK_MODE + mSubId), true, in onStart()
137 if (mTelephonyManager.setPreferredNetworkType(mSubId, settingsMode)) { in onPreferenceChange()
139 Settings.Global.PREFERRED_NETWORK_MODE + mSubId, in onPreferenceChange() local
149 mSubId = subId; in init()
150 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(mSubId); in init()
152 .createForSubscriptionId(mSubId); in init()
170 Settings.Global.PREFERRED_NETWORK_MODE + mSubId, in getPreferredNetworkMode()
176 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(mSubId); in updatePreferenceEntries()
180 android.provider.Settings.Global.LTE_SERVICE_FORCED + mSubId, in updatePreferenceEntries()
184 android.provider.Settings.Global.PREFERRED_NETWORK_MODE + mSubId, in updatePreferenceEntries()
[all …]
DEnhanced4gLtePreferenceController.java95 mPhoneStateListener.register(mSubId); in onStart()
138 mSubId = subId; in init()
139 mTelephonyManager = TelephonyManager.from(mContext).createForSubscriptionId(mSubId); in init()
140 mCarrierConfig = mCarrierConfigManager.getConfigForSubId(mSubId); in init()
141 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in init()
142 mImsManager = ImsManager.getInstance(mContext, SubscriptionManager.getPhoneId(mSubId)); in init()
154 return mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID in is4gLtePrefEnabled()
155 && mTelephonyManager.getCallState(mSubId) == TelephonyManager.CALL_STATE_IDLE in is4gLtePrefEnabled()
174 mSubId = subId; in register()
DVideoCallingPreferenceController.java79 mPhoneStateListener.register(mSubId); in onStart()
80 mDataContentObserver.register(mContext, mSubId); in onStart()
93 final boolean videoCallEnabled = isVideoCallEnabled(mSubId, mImsManager); in updateState()
99 mTelephonyManager.getCallState(mSubId) == TelephonyManager.CALL_STATE_IDLE); in updateState()
116 mSubId = subId; in init()
117 mTelephonyManager = TelephonyManager.from(mContext).createForSubscriptionId(mSubId); in init()
118 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in init()
119 mImsManager = ImsManager.getInstance(mContext, SubscriptionManager.getPhoneId(mSubId)); in init()
163 mSubId = subId; in register()
DMobileNetworkSwitchController.java48 private int mSubId; field in MobileNetworkSwitchController
54 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in MobileNetworkSwitchController()
61 mSubId = subId; in init()
86 if (mSubscriptionManager.isActiveSubId(mSubId) != isChecked in displayPreference()
87 && (!mSubscriptionManager.setSubscriptionEnabled(mSubId, isChecked))) { in displayPreference()
101 if (info.getSubscriptionId() == mSubId) { in update()
115 mSwitchBar.setChecked(mSubscriptionManager.isActiveSubId(mSubId)); in update()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileNetworkSettings.java72 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in MobileNetworkSettings
117 mSubId = getArguments().getInt(Settings.EXTRA_SUB_ID, in createPreferenceControllers()
121 mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in createPreferenceControllers()
124 this, mSubId)); in createPreferenceControllers()
136 use(MobileNetworkSwitchController.class).init(getLifecycle(), mSubId); in onAttach() local
137 use(CarrierSettingsVersionPreferenceController.class).init(mSubId); in onAttach()
138 use(BillingCyclePreferenceController.class).init(mSubId); in onAttach()
140 use(MobileDataPreferenceController.class).init(getFragmentManager(), mSubId); in onAttach() local
141 use(RoamingPreferenceController.class).init(getFragmentManager(), mSubId); in onAttach() local
142 use(ApnPreferenceController.class).init(mSubId); in onAttach()
[all …]
DEnabledNetworkModePreferenceController.java94 if (mTelephonyManager.setPreferredNetworkType(mSubId, settingsMode)) { in onPreferenceChange()
96 Settings.Global.PREFERRED_NETWORK_MODE + mSubId, in onPreferenceChange() local
106 mSubId = subId; in init()
107 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(mSubId); in init()
108 mTelephonyManager = TelephonyManager.from(mContext).createForSubscriptionId(mSubId); in init()
120 Settings.Global.PREFERRED_NETWORK_MODE + mSubId, in getPreferredNetworkMode()
126 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(mSubId); in updatePreferenceEntries()
130 android.provider.Settings.Global.LTE_SERVICE_FORCED + mSubId, in updatePreferenceEntries()
134 android.provider.Settings.Global.PREFERRED_NETWORK_MODE + mSubId, in updatePreferenceEntries()
171 if (MobileNetworkUtils.isTdscdmaSupported(mContext, mSubId)) { in updatePreferenceEntries()
[all …]
DMobileDataPreferenceController.java79 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onStart()
80 mDataContentObserver.register(mContext, mSubId); in onStart()
86 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onStop()
109 MobileNetworkUtils.setMobileDataEnabled(mContext, mSubId, isChecked, false); in setChecked()
128 SubscriptionInfo info = mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in isOpportunistic()
142 mSubId = subId; in init()
143 mTelephonyManager = TelephonyManager.from(mContext).createForSubscriptionId(mSubId); in init()
152 .isActiveSubscriptionId(defaultSubId) && defaultSubId != mSubId; in isDialogNeeded()
170 mSubId); in showDialog()
DEnhanced4gLtePreferenceController.java95 mPhoneStateListener.register(mSubId); in onStart()
138 mSubId = subId; in init()
139 mTelephonyManager = TelephonyManager.from(mContext).createForSubscriptionId(mSubId); in init()
140 mCarrierConfig = mCarrierConfigManager.getConfigForSubId(mSubId); in init()
141 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in init()
142 mImsManager = ImsManager.getInstance(mContext, SubscriptionManager.getPhoneId(mSubId)); in init()
154 return mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID in is4gLtePrefEnabled()
155 && mTelephonyManager.getCallState(mSubId) == TelephonyManager.CALL_STATE_IDLE in is4gLtePrefEnabled()
174 mSubId = subId; in register()
DMobileNetworkSwitchController.java48 private int mSubId; field in MobileNetworkSwitchController
54 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in MobileNetworkSwitchController()
61 mSubId = subId; in init()
84 if (mSubscriptionManager.isSubscriptionEnabled(mSubId) != isChecked in displayPreference()
85 && (!mSubscriptionManager.setSubscriptionEnabled(mSubId, isChecked))) { in displayPreference()
98 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID || subs.size() < 2) { in update()
104 if (info.getSubscriptionId() == mSubId) { in update()
106 mSwitchBar.setChecked(mSubscriptionManager.isSubscriptionEnabled(mSubId)); in update()
DWifiCallingPreferenceController.java88 mPhoneStateListener.register(mSubId); in onStart()
102 intent.putExtra(Settings.EXTRA_SUB_ID, mSubId); in displayPreference()
125 final String title = SubscriptionManager.getResourcesForSubId(mContext, mSubId) in updateState()
151 mTelephonyManager.getCallState(mSubId) == TelephonyManager.CALL_STATE_IDLE); in updateState()
155 mSubId = subId; in init()
156 mTelephonyManager = TelephonyManager.from(mContext).createForSubscriptionId(mSubId); in init()
157 mImsManager = ImsManager.getInstance(mContext, SubscriptionManager.getPhoneId(mSubId)); in init()
159 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(mSubId); in init()
182 mSubId = subId; in register()
DVideoCallingPreferenceController.java81 mPhoneStateListener.register(mSubId); in onStart()
82 mDataContentObserver.register(mContext, mSubId); in onStart()
95 final boolean videoCallEnabled = isVideoCallEnabled(mSubId, mImsManager); in updateState()
101 mTelephonyManager.getCallState(mSubId) == TelephonyManager.CALL_STATE_IDLE); in updateState()
118 mSubId = subId; in init()
119 mTelephonyManager = TelephonyManager.from(mContext).createForSubscriptionId(mSubId); in init()
120 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in init()
121 mImsManager = ImsManager.getInstance(mContext, SubscriptionManager.getPhoneId(mSubId)); in init()
165 mSubId = subId; in register()
/packages/apps/Settings/src/com/android/settings/datausage/
DCellDataPreference.java52 public int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in CellDataPreference
72 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onRestoreInstanceState()
73 mSubId = state.mSubId; in onRestoreInstanceState()
74 setKey(getKey() + mSubId); in onRestoreInstanceState()
84 state.mSubId = mSubId; in onSaveInstanceState()
91 mDataStateListener.setListener(true, mSubId, getContext()); in onAttached()
99 mDataStateListener.setListener(false, mSubId, getContext()); in onDetached()
117 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in setTemplate()
118 mSubId = subId; in setTemplate()
126 setChecked(mTelephonyManager.getDataEnabled(mSubId)); in updateChecked()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DCellDataPreference.java52 public int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in CellDataPreference
72 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onRestoreInstanceState()
73 mSubId = state.mSubId; in onRestoreInstanceState()
74 setKey(getKey() + mSubId); in onRestoreInstanceState()
84 state.mSubId = mSubId; in onSaveInstanceState()
91 mDataStateListener.setListener(true, mSubId, getContext()); in onAttached()
99 mDataStateListener.setListener(false, mSubId, getContext()); in onDetached()
117 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in setTemplate()
118 mSubId = subId; in setTemplate()
126 setChecked(mTelephonyManager.getDataEnabled(mSubId)); in updateChecked()
[all …]
/packages/apps/Settings/src/com/android/settings/network/ims/
DWifiCallingQueryImsState.java38 private int mSubId; field in WifiCallingQueryImsState
51 mSubId = subId; in WifiCallingQueryImsState()
71 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isWifiCallingSupported()
75 return isEnabledByPlatform(mSubId); in isWifiCallingSupported()
77 Log.w(LOG_TAG, "fail to get WFC supporting status. subId=" + mSubId, exception); in isWifiCallingSupported()
88 return isWifiCallingSupported() && isProvisionedOnDevice(mSubId); in isWifiCallingProvisioned()
97 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isReadyToWifiCalling()
104 return isServiceStateReady(mSubId); in isReadyToWifiCalling()
106 Log.w(LOG_TAG, "fail to get WFC service status. subId=" + mSubId, exception); in isReadyToWifiCalling()
117 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isAllowUserControl()
[all …]
DVolteQueryImsState.java38 private int mSubId; field in VolteQueryImsState
51 mSubId = subId; in VolteQueryImsState()
71 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isVoLteProvisioned()
74 if (!isProvisionedOnDevice(mSubId)) { in isVoLteProvisioned()
78 return isEnabledByPlatform(mSubId); in isVoLteProvisioned()
80 Log.w(LOG_TAG, "fail to get VoLte supporting status. subId=" + mSubId, exception); in isVoLteProvisioned()
91 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isReadyToVoLte()
98 return isServiceStateReady(mSubId); in isReadyToVoLte()
100 Log.w(LOG_TAG, "fail to get VoLte service status. subId=" + mSubId, exception); in isReadyToVoLte()
111 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isAllowUserControl()
[all …]
DVtQueryImsState.java38 private int mSubId; field in VtQueryImsState
51 mSubId = subId; in VtQueryImsState()
71 if (!isProvisionedOnDevice(mSubId)) { in isReadyToVideoCall()
76 return isEnabledByPlatform(mSubId) && isServiceStateReady(mSubId); in isReadyToVideoCall()
78 Log.w(LOG_TAG, "fail to get Vt ready. subId=" + mSubId, exception); in isReadyToVideoCall()
89 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isAllowUserControl()
93 || (isTtyOnVolteEnabled(mSubId))); in isAllowUserControl()
108 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isEnabledByUser()
111 return isEnabledByUser(mSubId); in isEnabledByUser()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DMobileNetworkSwitchControllerTest.java69 private int mSubId = 123; field in MobileNetworkSwitchControllerTest
76 when(mSubscriptionManager.setSubscriptionEnabled(eq(mSubId), anyBoolean())) in setUp()
83 when(mSubscription.getSubscriptionId()).thenReturn(mSubId); in setUp()
112 doReturn(true).when(mSubscriptionManager).isActiveSubId(mSubId); in displayPreference_oneEnabledSubscription_switchBarNotHidden()
120 doReturn(false).when(mSubscriptionManager).isActiveSubId(mSubId); in displayPreference_oneDisabledSubscription_switchBarNotHidden()
128 when(mSubscriptionManager.isActiveSubId(mSubId)).thenReturn(true); in displayPreference_subscriptionEnabled_switchIsOn()
136 when(mSubscriptionManager.isActiveSubId(mSubId)).thenReturn(false); in displayPreference_subscriptionDisabled_switchIsOff()
144 when(mSubscriptionManager.isActiveSubId(mSubId)).thenReturn(true); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly()
149 verify(mSubscriptionManager).setSubscriptionEnabled(eq(mSubId), eq(false)); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly()
154 when(mSubscriptionManager.setSubscriptionEnabled(eq(mSubId), anyBoolean())) in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledFailed()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSettingsForSub.java100 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in WifiCallingSettingsForSub
116 queryImsState(WifiCallingSettingsForSub.this.mSubId).isAllowUserControl();
120 WifiCallingSettingsForSub.this.mSubId).getCallState()
131 configManager.getConfigForSubId(WifiCallingSettingsForSub.this.mSubId);
264 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in getImsProvisioningManager()
267 return ProvisioningManager.createForSubscriptionId(mSubId); in getImsProvisioningManager()
272 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in getImsMmTelManager()
275 return ImsMmTelManager.createForSubscriptionId(mSubId); in getImsMmTelManager()
287 mSubId = getArguments().getInt(FRAGMENT_BUNDLE_SUBID); in onCreate()
289 mSubId = savedInstanceState.getInt( in onCreate()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileDataTogglePreferenceController.java54 private int mSubId; field in MobileDataTogglePreferenceController
87 mSubId = subId; in setSubId()
88 mTelephonyManager = TelephonyManager.from(getContext()).createForSubscriptionId(mSubId); in setSubId()
93 return mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID ? AVAILABLE in getAvailabilityStatus()
111 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onStartInternal()
112 getContext().getContentResolver().registerContentObserver(getObservableUri(mSubId), in onStartInternal()
119 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onStopInternal()
137 && mSubId != defaultSubId; in handlePreferenceChanged()
157 NetworkUtils.setMobileDataEnabled(getContext(), mSubId, enabled, disableOtherSubscriptions); in setMobileDataEnabled() local
162 SubscriptionInfo info = mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in isOpportunistic()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DPerSubscriptionSettingsActivity.java87 private int mSubId; field in PerSubscriptionSettingsActivity.PerSubscriptionSettingsFragment
100 mSubId = (intent != null) ? intent.getIntExtra(UIIntents.UI_INTENT_EXTRA_SUB_ID, in onCreate()
103 final BuglePrefs subPrefs = Factory.get().getSubscriptionPrefs(mSubId); in onCreate()
115 PhoneUtils.get(mSubId).getCanonicalForSelf(false/*allowOverride*/), mSubId); in onCreate() local
119 if (!MmsConfig.get(mSubId).getGroupMmsEnabled()) { in onCreate()
129 GroupMmsSettingDialog.showDialog(getActivity(), mSubId); in onCreate()
136 if (!MmsConfig.get(mSubId).getSMSDeliveryReportsEnabled()) { in onCreate()
177 .getApnSettingsIntent(getPreferenceScreen().getContext(), mSubId)); in onCreate() local
200 if (!MmsConfig.get(mSubId).getShowCellBroadcast()) { in isCellBroadcastAppLinkEnabled()
235 final BuglePrefs subPrefs = BuglePrefs.getSubscriptionPrefs(mSubId); in onSharedPreferenceChanged()
/packages/services/Telephony/src/com/android/phone/
DSubscriptionInfoHelper.java50 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in SubscriptionInfoHelper
61 mSubId = PhoneUtils.getSubIdForPhoneAccountHandle(phoneAccountHandle); in SubscriptionInfoHelper()
63 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in SubscriptionInfoHelper()
64 mSubId = intent.getIntExtra(SUB_ID_EXTRA, SubscriptionManager.INVALID_SUBSCRIPTION_ID); in SubscriptionInfoHelper()
77 intent.putExtra(SUB_ID_EXTRA, mSubId); in getIntent()
102 ? PhoneFactory.getPhone(SubscriptionManager.getPhoneId(mSubId)) in getPhone()
127 return mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID; in hasSubId()
131 return mSubId; in getSubId()
/packages/apps/Settings/src/com/android/settings/network/
DMobileDataEnabledListener.java30 private int mSubId; field in MobileDataEnabledListener
40 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in MobileDataEnabledListener()
45 mSubId = subId; in start()
47 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in start()
50 uri = Settings.Global.getUriFor(Settings.Global.MOBILE_DATA + mSubId); in start()
57 return mSubId; in getSubId()

123456