Home
last modified time | relevance | path

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

123456

/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkSettings.java74 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in MobileNetworkSettings
130 mSubId = intent.getIntExtra(Settings.EXTRA_SUB_ID, in createPreferenceControllers()
132 Log.d(LOG_TAG, "display subId from intent: " + mSubId); in createPreferenceControllers()
137 mSubId = getArguments().getInt(Settings.EXTRA_SUB_ID, in createPreferenceControllers()
139 Log.d(LOG_TAG, "display subId from getArguments(): " + mSubId); in createPreferenceControllers()
142 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in createPreferenceControllers()
147 this, mSubId)); in createPreferenceControllers()
155 SubscriptionInfo info = SubscriptionUtil.getSubscriptionOrDefault(context, mSubId); in onAttach()
157 Log.d(LOG_TAG, "Invalid subId request " + mSubId); in onAttach()
161 int oldSubId = mSubId; in onAttach()
[all …]
DMobileDataPreferenceController.java82 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onStart()
83 mDataContentObserver.register(mContext, mSubId); in onStart()
89 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onStop()
112 MobileNetworkUtils.setMobileDataEnabled(mContext, mSubId, isChecked, false); in setChecked()
114 && !mWifiPickerTrackerHelper.isCarrierNetworkProvisionEnabled(mSubId)) { in setChecked()
140 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in updateState()
149 SubscriptionInfo info = mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in isOpportunistic()
155 mSubId = subId; in init()
166 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in getTelephonyManager()
167 telMgr = telMgr.createForSubscriptionId(mSubId); in getTelephonyManager()
[all …]
DRoamingPreferenceController.java80 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onStart()
85 Settings.Global.DATA_ROAMING + mSubId) { in onStart()
130 switchPreference.setEnabled(mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID); in updateState()
139 mSubId); in isDialogNeeded()
156 mSubId = subId; in init()
158 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in init()
162 .createForSubscriptionId(mSubId); in init()
164 Log.w(TAG, "fail to init in sub" + mSubId); in init()
165 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in init()
172 final RoamingDialogFragment dialogFragment = RoamingDialogFragment.newInstance(mSubId); in showDialog()
DVideoCallingPreferenceController.java80 mTelephonyCallback.register(mContext, mSubId); in onStart()
81 mDataContentObserver.start(mSubId); in onStart()
98 final boolean videoCallEnabled = isVideoCallEnabled(mSubId); in updateState()
101 final boolean videoCallEditable = queryVoLteState(mSubId).isEnabledByUser() in updateState()
102 && queryImsState(mSubId).isAllowUserControl(); in updateState()
111 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in setChecked()
114 final ImsMmTelManager imsMmTelManager = ImsMmTelManager.createForSubscriptionId(mSubId); in setChecked()
122 Log.w(TAG, "Unable to set VT status " + isChecked + ". subId=" + mSubId, in setChecked()
130 return queryImsState(mSubId).isEnabledByUser(); in isChecked()
140 mSubId = subId; in init()
DMobileNetworkSwitchController.java40 private int mSubId; field in MobileNetworkSwitchController
46 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in MobileNetworkSwitchController()
52 mSubId = subId; in init()
74 if (mSubscriptionManager.isActiveSubscriptionId(mSubId) != isChecked) { in displayPreference()
75 SubscriptionUtil.startToggleSubscriptionDialogActivity(mContext, mSubId, isChecked); in displayPreference()
90 if (info.getSubscriptionId() == mSubId) { in update()
103 mSwitchBar.setCheckedInternal(mSubscriptionManager.isActiveSubscriptionId(mSubId)); in update()
DMobileDataDialogFragment.java52 private int mSubId; field in MobileDataDialogFragment
81 mSubId = bundle.getInt(ARG_SUB_ID); in onCreateDialog()
92 mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in onCreateDialog()
132 MobileNetworkUtils.setMobileDataEnabled(getContext(), mSubId, false /* enabled */, in onClick() local
135 && !mWifiPickerTrackerHelper.isCarrierNetworkProvisionEnabled(mSubId)) { in onClick()
140 mSubscriptionManager.setDefaultDataSubId(mSubId); in onClick()
141 MobileNetworkUtils.setMobileDataEnabled(getContext(), mSubId, true /* enabled */, in onClick() local
144 && !mWifiPickerTrackerHelper.isCarrierNetworkProvisionEnabled(mSubId)) { in onClick()
DEnabledNetworkModePreferenceController.java116 mAllowedNetworkTypesListener.register(mContext, mSubId); in onStart()
117 mTelephonyCallback.register(mTelephonyManager, mSubId); in onStart()
126 mAllowedNetworkTypesListener.unregister(mContext, mSubId); in onStop()
168 mSubId = subId; in init()
170 .createForSubscriptionId(mSubId); in init()
171 mBuilder = new PreferenceEntriesBuilder(mContext, mSubId); in init()
207 private int mSubId; field in EnabledNetworkModePreferenceController.PreferenceEntriesBuilder
215 this.mSubId = subId; in PreferenceEntriesBuilder()
218 .createForSubscriptionId(mSubId); in PreferenceEntriesBuilder()
223 mTelephonyManager = mTelephonyManager.createForSubscriptionId(mSubId); in updateConfig()
[all …]
/packages/apps/Settings/src/com/android/settings/network/ims/
DVolteQueryImsState.java41 private int mSubId; field in VolteQueryImsState
54 mSubId = subId; in VolteQueryImsState()
74 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isVoLteProvisioned()
77 if (!isProvisionedOnDevice(mSubId)) { in isVoLteProvisioned()
81 return isEnabledByPlatform(mSubId); in isVoLteProvisioned()
83 Log.w(LOG_TAG, "fail to get VoLte supporting status. subId=" + mSubId, exception); in isVoLteProvisioned()
94 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isReadyToVoLte()
101 return isServiceStateReady(mSubId); in isReadyToVoLte()
103 Log.w(LOG_TAG, "fail to get VoLte service status. subId=" + mSubId, exception); in isReadyToVoLte()
114 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isAllowUserControl()
[all …]
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 …]
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/src/com/android/settings/datausage/
DCellDataPreference.java51 public int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in CellDataPreference
69 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onRestoreInstanceState()
70 mSubId = state.mSubId; in onRestoreInstanceState()
71 setKey(getKey() + mSubId); in onRestoreInstanceState()
81 state.mSubId = mSubId; in onSaveInstanceState()
88 mDataStateListener.start(mSubId); in onAttached()
110 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in setTemplate()
111 mSubId = subId; in setTemplate()
129 setChecked(getContext().getSystemService(TelephonyManager.class).getDataEnabled(mSubId)); in updateChecked()
135 setEnabled(getActiveSubscriptionInfo(mSubId) != null); in updateEnabled()
[all …]
/packages/services/Telephony/src/com/android/phone/
DImsStateCallbackController.java249 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in ImsStateCallbackController.MmTelFeatureListener
281 if (VDBG) logv(mLogPrefix + "setSubId mSubId=" + mSubId + ", subId=" + subId); in setSubId()
282 if (mSubId == subId) return; in setSubId()
285 mSubId = subId; in setSubId()
298 mSubId = subId; in connectionReady()
304 onFeatureStateChange(mSubId, FEATURE_MMTEL, mState, mReason); in connectionReady()
325 onFeatureStateChange(mSubId, FEATURE_MMTEL, mState, mReason); in connectionUnavailableInternal()
361 if (VDBG) logv(mLogPrefix + "notifyState subId=" + wrapper.mSubId); in notifyState()
363 return wrapper.notifyState(mSubId, FEATURE_MMTEL, mState, mReason); in notifyState()
368 + ", subId=" + mSubId in dump()
[all …]
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()
103 ? PhoneFactory.getPhone(SubscriptionManager.getPhoneId(mSubId)) in getPhone()
128 return mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID; in hasSubId()
132 return mSubId; in getSubId()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DMobileNetworkSwitchControllerTest.java75 private int mSubId = 123; field in MobileNetworkSwitchControllerTest
82 when(mSubscriptionManager.setSubscriptionEnabled(eq(mSubId), anyBoolean())) in setUp()
86 when(mSubscription.getSubscriptionId()).thenReturn(mSubId); in setUp()
135 doReturn(true).when(mSubscriptionManager).isActiveSubscriptionId(mSubId); in displayPreference_oneEnabledSubscription_switchBarNotHidden()
145 doReturn(false).when(mSubscriptionManager).isActiveSubscriptionId(mSubId); in displayPreference_oneDisabledSubscription_switchBarNotHidden()
157 when(mSubscriptionManager.isActiveSubscriptionId(mSubId)).thenReturn(true); in displayPreference_subscriptionEnabled_switchIsOn()
167 when(mSubscriptionManager.isActiveSubscriptionId(mSubId)).thenReturn(false); in displayPreference_subscriptionDisabled_switchIsOff()
179 when(mSubscriptionManager.isActiveSubscriptionId(mSubId)).thenReturn(true); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly()
190 assertThat(extra.getInt(ToggleSubscriptionDialogActivity.ARG_SUB_ID)).isEqualTo(mSubId); in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledCalledCorrectly()
199 when(mSubscriptionManager.setSubscriptionEnabled(eq(mSubId), anyBoolean())) in switchChangeListener_fromEnabledToDisabled_setSubscriptionEnabledFailed()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSettingsForSub.java102 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in WifiCallingSettingsForSub
129 WifiCallingSettingsForSub.this.mSubId).getCallState() in onCallStateChanged()
135 queryImsState(WifiCallingSettingsForSub.this.mSubId) in onCallStateChanged()
150 WifiCallingSettingsForSub.this.mSubId); in onCallStateChanged()
263 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in getImsProvisioningManager()
266 return ProvisioningManager.createForSubscriptionId(mSubId); in getImsProvisioningManager()
271 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in getImsMmTelManager()
274 return ImsMmTelManager.createForSubscriptionId(mSubId); in getImsMmTelManager()
286 mSubId = getArguments().getInt(FRAGMENT_BUNDLE_SUBID); in onCreate()
288 mSubId = savedInstanceState.getInt( in onCreate()
[all …]
DDisclaimerItem.java35 protected final int mSubId; field in DisclaimerItem
40 mSubId = subId; in DisclaimerItem()
73 PersistableBundle config = mCarrierConfigManager.getConfigForSubId(mSubId); in getCarrierConfig()
82 Log.d(getName(), "[" + mSubId + "] " + msg); in logd()
123 return prefs.getBoolean(key + mSubId, defValue); in getBooleanSharedPrefs()
135 prefs.edit().putBoolean(key + mSubId, value).apply(); in setBooleanSharedPrefs()
/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/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastChannelManager.java92 private final int mSubId; field in CellBroadcastChannelManager
361 mSubId = subId; in CellBroadcastChannelManager()
382 .getResourcesByOperator(mContext, mSubId, mOperator))); in initAsNeeded()
388 if (!sAllCellBroadcastChannelRangesPerSub.containsKey(mSubId)) { in initAsNeeded()
393 log("init for sub: " + mSubId); in initAsNeeded()
395 sAllCellBroadcastChannelRangesPerSub.put(mSubId, in initAsNeeded()
397 .getResources(mContext, mSubId))); in initAsNeeded()
416 new CellBroadcastChannelRange(mContext, mSubId, res, range); in getChannelRangesMapFromResoures()
452 result = sAllCellBroadcastChannelRangesPerSub.get(mSubId).get(key); in getCellBroadcastChannelRanges()
473 sAllCellBroadcastChannelRangesPerSub.get(mSubId).forEach((k, v)->result.addAll(v)); in getAllCellBroadcastChannelRanges()
[all …]
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkIdentity.java90 final int mSubId; field in NetworkIdentity
110 mSubId = subId; in NetworkIdentity()
116 mDefaultNetwork, mOemManaged, mSubId); in hashCode()
129 && mSubId == ident.mSubId; in equals()
157 builder.append(", subId=").append(mSubId); in toString()
266 return mSubId; in getSubId()
340 res = Integer.compare(left.mSubId, right.mSubId); in compare()
362 private int mSubId; field in NetworkIdentity.Builder
377 mSubId = INVALID_SUBSCRIPTION_ID; in Builder()
565 mSubId = subId; in setSubId()
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DMobileDataEnabledListener.java27 private int mSubId; field in MobileDataEnabledListener
50 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in MobileDataEnabledListener()
59 mSubId = subId; in start()
71 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in start()
76 Settings.Global.MOBILE_DATA + mSubId) { in start()
90 return mSubId; in getSubId()
/packages/apps/Settings/src/com/android/settings/network/telephony/gsm/
DOpenNetworkSelectPagePreferenceController.java55 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in OpenNetworkSelectPagePreferenceController()
82 mAllowedNetworkTypesListener.register(mContext, mSubId); in onStart()
87 mAllowedNetworkTypesListener.unregister(mContext, mSubId); in onStop()
106 intent.putExtra(Settings.EXTRA_SUB_ID, mSubId); in updateState()
114 return MobileNetworkUtils.getCurrentCarrierNameForDisplay(mContext, mSubId); in getSummary()
124 mSubId = subId; in init()
126 .createForSubscriptionId(mSubId); in init()
/packages/apps/Settings/src/com/android/settings/
DResetNetworkConfirm.java76 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in ResetNetworkConfirm
124 .createForSubscriptionId(mSubId); in doInBackground()
184 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
188 if (!isSubscriptionRemainActive(mgr, mSubId)) {
189 Log.w(TAG, "subId " + mSubId + " disappear when confirm");
238 if (SubscriptionManager.isUsableSubscriptionId(mSubId)) { in restoreDefaultApn()
239 uri = Uri.withAppendedPath(uri, "subId/" + String.valueOf(mSubId)); in restoreDefaultApn()
289 mSubId = args.getInt(SubscriptionManager.EXTRA_SUBSCRIPTION_INDEX, in onCreate()
296 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onCreate()
322 if (isSubscriptionRemainActive(mgr, mSubId)) { in startMonitorSubscriptionChange()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DMobileDataBaseWorker.java40 private final int mSubId; field in MobileDataBaseWorker
56 mSubId = SubscriptionManager.getDefaultDataSubscriptionId(); in MobileDataBaseWorker()
62 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID && !mCallbacksRegistered) { in onQCItemSubscribe()
65 getContext().getContentResolver().registerContentObserver(getObservableUri(mSubId), in onQCItemSubscribe()
73 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onQCItemUnsubscribe()
80 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in close()
/packages/apps/Settings/src/com/android/settings/network/telephony/cdma/
DCdmaBasePreferenceController.java47 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in CdmaBasePreferenceController()
53 mAllowedNetworkTypesListener.register(mContext, mSubId); in onStart()
60 mAllowedNetworkTypesListener.unregister(mContext, mSubId); in onStop()
73 mSubId = subId; in init()
75 .createForSubscriptionId(mSubId); in init()
100 ((CdmaListPreference) mPreference).setSubId(mSubId); in displayPreference()
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/
DChatActivity.java71 private int mSubId; field in ChatActivity
127 mSubId = SubscriptionManager.getDefaultSmsSubscriptionId(); in initChatButton()
128 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in initChatButton()
129 Log.e(TAG, "invalid subId:" + mSubId); in initChatButton()
143 ChatManager.getInstance(getApplicationContext(), mSubId).initChatSession( in initChatButton()
171 if (!ChatManager.getInstance(getApplicationContext(), mSubId).isRegistered() in initChatButton()
197 Uri result = ChatManager.getInstance(getApplicationContext(), mSubId).addNewMessage( in sendChatMessage()
202 mSubId).sendMessage( in sendChatMessage()
209 ChatManager.getInstance(getApplicationContext(), mSubId).updateMsgResult( in sendChatMessage()
216 ChatManager.getInstance(getApplicationContext(), mSubId).updateMsgResult( in sendChatMessage()
[all …]

123456