/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | MobileNetworkSettings.java | 96 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in MobileNetworkSettings 155 mSubId = intent.getIntExtra(Settings.EXTRA_SUB_ID, in createPreferenceControllers() 157 Log.d(LOG_TAG, "display subId from intent: " + mSubId); in createPreferenceControllers() 159 Log.d(LOG_TAG, "intent is null, can not get subId " + mSubId + " from intent."); in createPreferenceControllers() 162 mSubId = getArguments().getInt(Settings.EXTRA_SUB_ID, in createPreferenceControllers() 164 Log.d(LOG_TAG, "display subId from getArguments(): " + mSubId); in createPreferenceControllers() 169 String.valueOf(mSubId)); in createPreferenceControllers() 172 String.valueOf(mSubId)); in createPreferenceControllers() 177 eid.init(this, mSubId); in createPreferenceControllers() 180 new DataUsageSummaryPreferenceController(context, mSubId), in createPreferenceControllers() [all …]
|
D | RoamingPreferenceController.java | 67 mSubId = subId; in RoamingPreferenceController() 82 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(mSubId); in getAvailabilityStatus() 92 mMobileNetworkRepository.addRegister(mLifecycleOwner, this, mSubId); in onStart() 109 return mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID in getAvailabilityStatus() 139 mSwitchPreference.setEnabled(mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID); in update() 149 mSubId); in isDialogNeeded() 166 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() [all …]
|
D | MobileDataPreferenceController.java | 77 mSubId = subId; in MobileDataPreferenceController() 108 mMobileNetworkRepository.addRegister(mLifecycleOwner, this, mSubId); in onStart() 136 MobileNetworkUtils.setMobileDataEnabled(mContext, mSubId, isChecked, false); in setChecked() 138 && !mWifiPickerTrackerHelper.isCarrierNetworkProvisionEnabled(mSubId)) { in setChecked() 185 mSubId = subId; in init() 198 if (mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in getTelephonyManager() 199 telMgr = telMgr.createForSubscriptionId(mSubId); in getTelephonyManager() 214 final boolean needToDisableOthers = mDefaultSubId != mSubId; in isDialogNeeded() 225 mSubId); in showDialog() 243 if (entity.getSubId() == mSubId) { in onActiveSubInfoChanged() [all …]
|
D | VideoCallingPreferenceController.java | 82 mTelephonyCallback.register(mContext, mSubId); in onStart() 83 mDataContentObserver.start(mSubId); in onStart() 100 final boolean videoCallEnabled = isVideoCallEnabled(mSubId); in updateState() 105 final boolean videoCallEditable = queryVoLteState(mSubId).isEnabledByUser() in updateState() 106 && queryImsState(mSubId).isAllowUserControl(); in updateState() 115 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in setChecked() 118 final ImsMmTelManager imsMmTelManager = ImsMmTelManager.createForSubscriptionId(mSubId); in setChecked() 126 Log.w(TAG, "Unable to set VT status " + isChecked + ". subId=" + mSubId, in setChecked() 134 return queryImsState(mSubId).isEnabledByUser(); in isChecked() 148 mSubId = subId; in init()
|
D | WifiCallingPreferenceController.kt | 53 SubscriptionManager.getResourcesForSubId(mContext, mSubId) in <lambda>() 60 mSubId = subId in init() 75 preference.intent?.putExtra(Settings.EXTRA_SUB_ID, mSubId) in getAvailabilityStatus() 79 if(mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID){ in onViewCreated() 86 wifiCallingRepositoryFactory(mSubId).wifiCallingReadyFlow() in onViewCreated() 93 callStateRepository.callStateFlow(mSubId).collectLatestWithLifecycle(viewLifecycleOwner) { in onViewCreated() 100 ?.getSimCallManagerForSubscription(mSubId) in update() 119 val resId = when (wifiCallingRepositoryFactory(mSubId).getWiFiCallingMode()) { in getSummaryForWfcMode()
|
D | MobileDataDialogFragment.java | 54 private int mSubId; field in MobileDataDialogFragment 83 mSubId = bundle.getInt(ARG_SUB_ID); in onCreateDialog() 94 mSubscriptionManager.getActiveSubscriptionInfo(mSubId); in onCreateDialog() 135 MobileNetworkUtils.setMobileDataEnabled(getContext(), mSubId, false /* enabled */, in onClick() local 138 && !mWifiPickerTrackerHelper.isCarrierNetworkProvisionEnabled(mSubId)) { in onClick() 143 mSubscriptionManager.setDefaultDataSubId(mSubId); in onClick() 145 MobileNetworkUtils.setMobileDataEnabled(getContext(), mSubId, true /* enabled */, in onClick() local 148 && !mWifiPickerTrackerHelper.isCarrierNetworkProvisionEnabled(mSubId)) { in onClick()
|
D | NetworkPreferenceCategoryController.java | 40 protected int mSubId; field in NetworkPreferenceCategoryController 44 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in NetworkPreferenceCategoryController() 57 mAllowedNetworkTypesListener.register(mContext, mSubId); in onStart() 62 mAllowedNetworkTypesListener.unregister(mContext, mSubId); in onStop() 72 mSubId = subId; in init()
|
/packages/apps/Settings/src/com/android/settings/network/ims/ |
D | VolteQueryImsState.java | 41 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 …]
|
D | WifiCallingQueryImsState.java | 40 private int mSubId; field in WifiCallingQueryImsState 53 mSubId = subId; in WifiCallingQueryImsState() 73 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isWifiCallingSupported() 77 return isEnabledByPlatform(mSubId); in isWifiCallingSupported() 79 Log.w(LOG_TAG, "fail to get WFC supporting status. subId=" + mSubId, exception); in isWifiCallingSupported() 90 return isWifiCallingSupported() && isProvisionedOnDevice(mSubId); in isWifiCallingProvisioned() 101 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isReadyToWifiCalling() 108 return isServiceStateReady(mSubId); in isReadyToWifiCalling() 110 Log.w(LOG_TAG, "fail to get WFC service status. subId=" + mSubId, exception); in isReadyToWifiCalling() 121 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in isAllowUserControl() [all …]
|
D | VtQueryImsState.java | 38 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/ |
D | CellDataPreference.java | 50 public int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in CellDataPreference 66 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in onRestoreInstanceState() 67 mSubId = state.mSubId; in onRestoreInstanceState() 68 setKey(getKey() + mSubId); in onRestoreInstanceState() 78 state.mSubId = mSubId; in onSaveInstanceState() 85 mDataStateListener.start(mSubId); in onAttached() 107 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in setTemplate() 108 mSubId = subId; in setTemplate() 126 setChecked(getContext().getSystemService(TelephonyManager.class).getDataEnabled(mSubId)); in updateChecked() 132 setEnabled(getActiveSubscriptionInfo(mSubId) != null); in updateEnabled() [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | ImsStateCallbackController.java | 254 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in ImsStateCallbackController.MmTelFeatureListener 286 if (VDBG) logv(mLogPrefix + "setSubId mSubId=" + mSubId + ", subId=" + subId); in setSubId() 287 if (mSubId == subId) return; in setSubId() 292 if (VDBG) logv(mLogPrefix + "setSubId remove ImsManager " + mSubId); in setSubId() 294 mSubIdToImsManagerCache.remove(mSubId); in setSubId() 297 mSubId = subId; in setSubId() 310 mSubId = subId; in connectionReady() 322 onFeatureStateChange(mSubId, FEATURE_MMTEL, mState, mReason); in connectionReady() 333 if (VDBG) logv(mLogPrefix + "connectionUnavailable remove ImsManager " + mSubId); in connectionUnavailable() 334 mSubIdToImsManagerCache.remove(mSubId); in connectionUnavailable() [all …]
|
D | SubscriptionInfoHelper.java | 50 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/services/Telephony/testapps/TestSatelliteApp/src/com/android/phone/testapps/satellitetestapp/ |
D | TestSatelliteWrapper.java | 60 private int mSubId; field in TestSatelliteWrapper 69 mSubId = getActiveSubId(); in onCreate() 198 mSatelliteManagerWrapper.registerForCarrierRoamingNtnModeChanged(mSubId, mExecutor, in registerForCarrierRoamingNtnModeChanged() 212 mSatelliteManagerWrapper.unregisterForCarrierRoamingNtnModeChanged(mSubId, in unregisterForCarrierRoamingNtnModeChanged() 338 boolean isNonTerrestrialNetwork = mSatelliteManagerWrapper.isNonTerrestrialNetwork(mSubId); in isNonTerrestrialNetwork() 344 List<Integer> as = mSatelliteManagerWrapper.getAvailableServices(mSubId); in getAvailableServices() 353 mSatelliteManagerWrapper.isUsingNonTerrestrialNetwork(mSubId); in isUsingNonTerrestrialNetwork() 362 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in requestAttachEnabledForCarrier_enable() 374 mSatelliteManagerWrapper.requestAttachEnabledForCarrier(mSubId, true, mExecutor, in requestAttachEnabledForCarrier_enable() 387 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in requestAttachEnabledForCarrier_disable() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettingsForSub.java | 104 private int mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; field in WifiCallingSettingsForSub 131 WifiCallingSettingsForSub.this.mSubId).getCallStateForSubscription() in onCallStateChanged() 137 queryImsState(WifiCallingSettingsForSub.this.mSubId) in onCallStateChanged() 152 WifiCallingSettingsForSub.this.mSubId); in onCallStateChanged() 268 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in getImsProvisioningManager() 271 return ProvisioningManager.createForSubscriptionId(mSubId); in getImsProvisioningManager() 276 if (!SubscriptionManager.isValidSubscriptionId(mSubId)) { in getImsMmTelManager() 279 return ImsMmTelManager.createForSubscriptionId(mSubId); in getImsMmTelManager() 291 mSubId = getArguments().getInt(FRAGMENT_BUNDLE_SUBID); in onCreate() 293 mSubId = savedInstanceState.getInt( in onCreate() [all …]
|
D | DisclaimerItem.java | 35 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/Settings/src/com/android/settings/network/ |
D | MobileDataEnabledListener.java | 32 private int mSubId; field in MobileDataEnabledListener 55 mSubId = SubscriptionManager.INVALID_SUBSCRIPTION_ID; in MobileDataEnabledListener() 64 mSubId = subId; in start() 76 if (mSubId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in start() 81 Settings.Global.MOBILE_DATA + mSubId) { in start() 95 return mSubId; in getSubId()
|
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/ |
D | PerSubscriptionSettingsActivity.java | 87 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/ImsServiceEntitlement/src/com/android/imsserviceentitlement/ |
D | ImsEntitlementApi.java | 64 private final int mSubId; field in ImsEntitlementApi 76 this.mSubId = subId; in ImsEntitlementApi() 97 this.mSubId = subId; in ImsEntitlementApi() 110 Log.d(TAG, "checkEntitlementStatus subId=" + mSubId); in checkEntitlementStatus() 114 FcmUtils.fetchFcmToken(mContext, mSubId); in checkEntitlementStatus() 115 requestBuilder.setNotificationToken(FcmTokenStore.getToken(mContext, mSubId)); in checkEntitlementStatus() 116 int entitlementVersion = TelephonyUtils.getEntitlementVersion(mContext, mSubId); in checkEntitlementStatus() 157 boolean isDefaultActive = TelephonyUtils.getDefaultStatus(mContext, mSubId); in checkEntitlementStatus() 189 boolean isDefaultActive = TelephonyUtils.getDefaultStatus(mContext, mSubId); in toEntitlementResult() 217 String entitlementServiceUrl = TelephonyUtils.getEntitlementServerUrl(context, mSubId); in getCarrierConfig()
|
/packages/services/Mms/src/com/android/mms/service/metrics/ |
D | MmsStats.java | 55 private int mSubId; field in MmsStats 62 mSubId = subId; in MmsStats() 71 mSubId = subId; in updateSubId() 92 CarrierRoamingSatelliteSessionStats.getInstance(mSubId); in addAtomToStorage() 144 if (subManager == null || !subManager.isActiveSubscriptionId(mSubId)) return false; in isManagedProfile() 145 UserHandle userHandle = subManager.getSubscriptionUserHandle(mSubId); in isManagedProfile() 195 return SubscriptionManager.getSlotIndex(mSubId); in getSlotIndex() 231 if ((subManager != null) && (subManager.isActiveSubscriptionId(mSubId))) { in isDefaultMmsApp() 232 userHandle = subManager.getSubscriptionUserHandle(mSubId); in isDefaultMmsApp()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastChannelManager.java | 94 private final int mSubId; field in CellBroadcastChannelManager 385 mSubId = subId; in CellBroadcastChannelManager() 406 .getResourcesByOperator(mContext, mSubId, mOperator))); in initAsNeeded() 412 if (!sAllCellBroadcastChannelRangesPerSub.containsKey(mSubId)) { in initAsNeeded() 417 log("init for sub: " + mSubId); in initAsNeeded() 419 sAllCellBroadcastChannelRangesPerSub.put(mSubId, in initAsNeeded() 421 .getResources(mContext, mSubId))); in initAsNeeded() 440 new CellBroadcastChannelRange(mContext, mSubId, res, range); in getChannelRangesMapFromResoures() 478 result = sAllCellBroadcastChannelRangesPerSub.get(mSubId).get(key); in getCellBroadcastChannelRanges() 499 sAllCellBroadcastChannelRangesPerSub.get(mSubId).forEach((k, v)->result.addAll(v)); in getAllCellBroadcastChannelRanges() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/telephony/cdma/ |
D | CdmaBasePreferenceController.java | 47 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/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkIdentity.java | 97 final int mSubId; field in NetworkIdentity 117 mSubId = subId; in NetworkIdentity() 123 mDefaultNetwork, mOemManaged, mSubId); in hashCode() 136 && mSubId == ident.mSubId; in equals() 164 builder.append(", subId=").append(mSubId); in toString() 273 return mSubId; in getSubId() 347 res = Integer.compare(left.mSubId, right.mSubId); in compare() 364 private int mSubId; field in NetworkIdentity.Builder 379 mSubId = INVALID_SUBSCRIPTION_ID; in Builder() 579 mSubId = subId; in setSubId() [all …]
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | CarrierPrivilegeAuthenticator.java | 183 final int mSubId; field in CarrierPrivilegeAuthenticator.CarrierServiceUidWithSubId 187 mSubId = subId; in CarrierServiceUidWithSubId() 196 return (mUid == compare.mUid && mSubId == compare.mSubId); in equals() 201 return mUid * 31 + mSubId; in hashCode() 243 && oldPair.mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID in onCarrierServiceChanged() 245 mListener.accept(oldPair.mUid, oldPair.mSubId); in onCarrierServiceChanged() 273 && oldPair.mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) { in unregisterCarrierPrivilegesListeners() 274 mListener.accept(oldPair.mUid, oldPair.mSubId); in unregisterCarrierPrivilegesListeners() 387 && oldPair.mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID in updateCarrierServiceUid() 389 mListener.accept(oldPair.mUid, oldPair.mSubId); in updateCarrierServiceUid() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/telephony/gsm/ |
D | OpenNetworkSelectPagePreferenceController.kt | 57 mSubId = subId in <lambda>() 70 putExtra(Settings.EXTRA_SUB_ID, mSubId) in <lambda>() 75 allowedNetworkTypesFlowFactory(mSubId).collectLatestWithLifecycle(viewLifecycleOwner) { in <lambda>() 77 MobileNetworkUtils.shouldDisplayNetworkSelectOptions(mContext, mSubId) in <lambda>() 81 serviceStateFlowFactory(mSubId) in <lambda>() 85 MobileNetworkUtils.getCurrentCarrierNameForDisplay(mContext, mSubId) in <lambda>()
|