Loading src/java/com/android/internal/telephony/satellite/SatelliteController.java +22 −2 Original line number Diff line number Diff line Loading @@ -82,6 +82,7 @@ import android.os.SystemProperties; import android.os.UserHandle; import android.provider.Settings; import android.provider.Telephony; import android.telephony.AccessNetworkConstants; import android.telephony.CarrierConfigManager; import android.telephony.DropBoxManagerLoggerBackend; import android.telephony.NetworkRegistrationInfo; Loading Loading @@ -2893,7 +2894,7 @@ public class SatelliteController extends Handler { return true; } if (serviceState.getState() == ServiceState.STATE_IN_SERVICE) { if (getWwanIsInService(serviceState)) { // Device is connected to terrestrial network which has coverage resetCarrierRoamingSatelliteModeParams(subId); return false; Loading Loading @@ -4383,7 +4384,7 @@ public class SatelliteController extends Handler { } } else { Boolean connected = mWasSatelliteConnectedViaCarrier.get(subId); if (serviceState.getState() == ServiceState.STATE_IN_SERVICE) { if (getWwanIsInService(serviceState)) { resetCarrierRoamingSatelliteModeParams(subId); } else if (connected != null && connected) { // The device just got disconnected from a satellite network Loading Loading @@ -4892,6 +4893,25 @@ public class SatelliteController extends Handler { return mDemoPointingNotAlignedDurationMillis; } private boolean getWwanIsInService(ServiceState serviceState) { List<NetworkRegistrationInfo> nriList = serviceState .getNetworkRegistrationInfoListForTransportType( AccessNetworkConstants.TRANSPORT_TYPE_WWAN); for (NetworkRegistrationInfo nri : nriList) { if (nri.isInService()) { logv("getWwanIsInService: return true"); return true; } } logv("getWwanIsInService: return false"); return false; } private static void logv(@NonNull String log) { Rlog.v(TAG, log); } private static void logd(@NonNull String log) { Rlog.d(TAG, log); } Loading Loading
src/java/com/android/internal/telephony/satellite/SatelliteController.java +22 −2 Original line number Diff line number Diff line Loading @@ -82,6 +82,7 @@ import android.os.SystemProperties; import android.os.UserHandle; import android.provider.Settings; import android.provider.Telephony; import android.telephony.AccessNetworkConstants; import android.telephony.CarrierConfigManager; import android.telephony.DropBoxManagerLoggerBackend; import android.telephony.NetworkRegistrationInfo; Loading Loading @@ -2893,7 +2894,7 @@ public class SatelliteController extends Handler { return true; } if (serviceState.getState() == ServiceState.STATE_IN_SERVICE) { if (getWwanIsInService(serviceState)) { // Device is connected to terrestrial network which has coverage resetCarrierRoamingSatelliteModeParams(subId); return false; Loading Loading @@ -4383,7 +4384,7 @@ public class SatelliteController extends Handler { } } else { Boolean connected = mWasSatelliteConnectedViaCarrier.get(subId); if (serviceState.getState() == ServiceState.STATE_IN_SERVICE) { if (getWwanIsInService(serviceState)) { resetCarrierRoamingSatelliteModeParams(subId); } else if (connected != null && connected) { // The device just got disconnected from a satellite network Loading Loading @@ -4892,6 +4893,25 @@ public class SatelliteController extends Handler { return mDemoPointingNotAlignedDurationMillis; } private boolean getWwanIsInService(ServiceState serviceState) { List<NetworkRegistrationInfo> nriList = serviceState .getNetworkRegistrationInfoListForTransportType( AccessNetworkConstants.TRANSPORT_TYPE_WWAN); for (NetworkRegistrationInfo nri : nriList) { if (nri.isInService()) { logv("getWwanIsInService: return true"); return true; } } logv("getWwanIsInService: return false"); return false; } private static void logv(@NonNull String log) { Rlog.v(TAG, log); } private static void logd(@NonNull String log) { Rlog.d(TAG, log); } Loading