use of android.telephony.TelephonyRegistryManager in project android_frameworks_opt_telephony by LineageOS.
the class SubscriptionController method notifySubscriptionInfoChanged.
/**
* Notify the changed of subscription info.
*/
@UnsupportedAppUsage
public void notifySubscriptionInfoChanged() {
TelephonyRegistryManager trm = (TelephonyRegistryManager) mContext.getSystemService(Context.TELEPHONY_REGISTRY_SERVICE);
if (DBG)
logd("notifySubscriptionInfoChanged:");
trm.notifySubscriptionInfoChanged();
// FIXME: Remove if listener technique accepted.
broadcastSimInfoContentChanged();
MultiSimSettingController.getInstance().notifySubscriptionInfoChanged();
TelephonyMetrics metrics = TelephonyMetrics.getInstance();
List<SubscriptionInfo> subInfos;
synchronized (mSubInfoListLock) {
subInfos = new ArrayList<>(mCacheActiveSubInfoList);
}
if (mOpptSubInfoListChangedDirtyBit.getAndSet(false)) {
notifyOpportunisticSubscriptionInfoChanged();
}
metrics.updateActiveSubscriptionInfoList(subInfos);
}
use of android.telephony.TelephonyRegistryManager in project android_frameworks_opt_telephony by LineageOS.
the class PhoneSwitcher method notifyPreferredDataSubIdChanged.
/**
* See {@link PhoneStateListener#LISTEN_ACTIVE_DATA_SUBSCRIPTION_ID_CHANGE}.
*/
protected void notifyPreferredDataSubIdChanged() {
TelephonyRegistryManager telephonyRegistryManager = (TelephonyRegistryManager) mContext.getSystemService(Context.TELEPHONY_REGISTRY_SERVICE);
log("notifyPreferredDataSubIdChanged to " + mPreferredDataSubId.get());
telephonyRegistryManager.notifyActiveDataSubIdChanged(mPreferredDataSubId.get());
}
use of android.telephony.TelephonyRegistryManager in project android_frameworks_opt_telephony by LineageOS.
the class SubscriptionController method notifyOpportunisticSubscriptionInfoChanged.
private void notifyOpportunisticSubscriptionInfoChanged() {
TelephonyRegistryManager trm = (TelephonyRegistryManager) mContext.getSystemService(Context.TELEPHONY_REGISTRY_SERVICE);
if (DBG)
logd("notifyOpptSubscriptionInfoChanged:");
trm.notifyOpportunisticSubscriptionInfoChanged();
}
Aggregations