Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/MobileSignalController.java +2 −10 Original line number Diff line number Diff line Loading @@ -357,16 +357,8 @@ public class MobileSignalController extends SignalController<MobileState, Mobile return Utils.isInService(mServiceState); } String getNonDefaultCarrierName() { if (!mCurrentState.networkNameData.equals(mNetworkNameDefault)) { return mCurrentState.networkNameData; } else if (mSubscriptionInfo.getCarrierName() != null) { return mSubscriptionInfo.getCarrierName().toString(); } else if (mSubscriptionInfo.getDisplayName() != null) { return mSubscriptionInfo.getDisplayName().toString(); } else { return ""; } String getNetworkNameForCarrierWiFi() { return mPhone.getSimOperatorName(); } private boolean isRoaming() { Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkControllerImpl.java +2 −2 Original line number Diff line number Diff line Loading @@ -549,9 +549,9 @@ public class NetworkControllerImpl extends BroadcastReceiver return mConnectedTransports.get(NetworkCapabilities.TRANSPORT_ETHERNET); } String getNonDefaultMobileDataNetworkName(int subId) { String getNetworkNameForCarrierWiFi(int subId) { MobileSignalController controller = getControllerWithSubId(subId); return controller != null ? controller.getNonDefaultCarrierName() : ""; return controller != null ? controller.getNetworkNameForCarrierWiFi() : ""; } private void notifyControllersMobileDataChanged() { Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/WifiSignalController.java +1 −1 Original line number Diff line number Diff line Loading @@ -147,7 +147,7 @@ public class WifiSignalController extends IconState qsIcon = new IconState( mCurrentState.connected, getQsCurrentIconIdForCarrierWifi(), contentDescription); CharSequence description = mNetworkController.getNonDefaultMobileDataNetworkName(mCurrentState.subId); mNetworkController.getNetworkNameForCarrierWiFi(mCurrentState.subId); callback.setMobileDataIndicators(statusIcon, qsIcon, typeIcon, qsTypeIcon, mCurrentState.activityIn, mCurrentState.activityOut, dataContentDescription, dataContentDescriptionHtml, description, icons.isWide, Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/MobileSignalController.java +2 −10 Original line number Diff line number Diff line Loading @@ -357,16 +357,8 @@ public class MobileSignalController extends SignalController<MobileState, Mobile return Utils.isInService(mServiceState); } String getNonDefaultCarrierName() { if (!mCurrentState.networkNameData.equals(mNetworkNameDefault)) { return mCurrentState.networkNameData; } else if (mSubscriptionInfo.getCarrierName() != null) { return mSubscriptionInfo.getCarrierName().toString(); } else if (mSubscriptionInfo.getDisplayName() != null) { return mSubscriptionInfo.getDisplayName().toString(); } else { return ""; } String getNetworkNameForCarrierWiFi() { return mPhone.getSimOperatorName(); } private boolean isRoaming() { Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkControllerImpl.java +2 −2 Original line number Diff line number Diff line Loading @@ -549,9 +549,9 @@ public class NetworkControllerImpl extends BroadcastReceiver return mConnectedTransports.get(NetworkCapabilities.TRANSPORT_ETHERNET); } String getNonDefaultMobileDataNetworkName(int subId) { String getNetworkNameForCarrierWiFi(int subId) { MobileSignalController controller = getControllerWithSubId(subId); return controller != null ? controller.getNonDefaultCarrierName() : ""; return controller != null ? controller.getNetworkNameForCarrierWiFi() : ""; } private void notifyControllersMobileDataChanged() { Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/WifiSignalController.java +1 −1 Original line number Diff line number Diff line Loading @@ -147,7 +147,7 @@ public class WifiSignalController extends IconState qsIcon = new IconState( mCurrentState.connected, getQsCurrentIconIdForCarrierWifi(), contentDescription); CharSequence description = mNetworkController.getNonDefaultMobileDataNetworkName(mCurrentState.subId); mNetworkController.getNetworkNameForCarrierWiFi(mCurrentState.subId); callback.setMobileDataIndicators(statusIcon, qsIcon, typeIcon, qsTypeIcon, mCurrentState.activityIn, mCurrentState.activityOut, dataContentDescription, dataContentDescriptionHtml, description, icons.isWide, Loading