Loading src/java/com/android/internal/telephony/data/DataRetryManager.java +17 −15 Original line number Diff line number Diff line Loading @@ -903,7 +903,7 @@ public class DataRetryManager extends Handler { * * @param throttleStatusList List of throttle status. */ public void onThrottleStatusChanged(List<ThrottleStatus> throttleStatusList) {} public void onThrottleStatusChanged(@NonNull List<ThrottleStatus> throttleStatusList) {} } /** Loading Loading @@ -1216,7 +1216,12 @@ public class DataRetryManager extends Handler { final List<ThrottleStatus> throttleStatusList = new ArrayList<>(); for (DataThrottlingEntry dataThrottlingEntry : mDataThrottlingEntries) { throttleStatusList.addAll(dataThrottlingEntry.dataProfile.getApnSetting().getApnTypes() DataProfile dataProfile = dataThrottlingEntry.dataProfile; String apn = dataProfile.getApnSetting() != null ? dataProfile.getApnSetting().getApnName() : null; onDataProfileUnthrottled(dataProfile, apn, dataThrottlingEntry.transport); if (dataProfile.getApnSetting() != null) { throttleStatusList.addAll(dataProfile.getApnSetting().getApnTypes() .stream() .map(apnType -> new ThrottleStatus.Builder() .setApnType(apnType) Loading @@ -1227,9 +1232,6 @@ public class DataRetryManager extends Handler { .build()) .collect(Collectors.toList())); } if (!throttleStatusList.isEmpty()) { mDataRetryManagerCallbacks.forEach(callback -> callback.invokeFromExecutor( () -> callback.onThrottleStatusChanged(throttleStatusList))); } mDataThrottlingEntries.clear(); Loading Loading
src/java/com/android/internal/telephony/data/DataRetryManager.java +17 −15 Original line number Diff line number Diff line Loading @@ -903,7 +903,7 @@ public class DataRetryManager extends Handler { * * @param throttleStatusList List of throttle status. */ public void onThrottleStatusChanged(List<ThrottleStatus> throttleStatusList) {} public void onThrottleStatusChanged(@NonNull List<ThrottleStatus> throttleStatusList) {} } /** Loading Loading @@ -1216,7 +1216,12 @@ public class DataRetryManager extends Handler { final List<ThrottleStatus> throttleStatusList = new ArrayList<>(); for (DataThrottlingEntry dataThrottlingEntry : mDataThrottlingEntries) { throttleStatusList.addAll(dataThrottlingEntry.dataProfile.getApnSetting().getApnTypes() DataProfile dataProfile = dataThrottlingEntry.dataProfile; String apn = dataProfile.getApnSetting() != null ? dataProfile.getApnSetting().getApnName() : null; onDataProfileUnthrottled(dataProfile, apn, dataThrottlingEntry.transport); if (dataProfile.getApnSetting() != null) { throttleStatusList.addAll(dataProfile.getApnSetting().getApnTypes() .stream() .map(apnType -> new ThrottleStatus.Builder() .setApnType(apnType) Loading @@ -1227,9 +1232,6 @@ public class DataRetryManager extends Handler { .build()) .collect(Collectors.toList())); } if (!throttleStatusList.isEmpty()) { mDataRetryManagerCallbacks.forEach(callback -> callback.invokeFromExecutor( () -> callback.onThrottleStatusChanged(throttleStatusList))); } mDataThrottlingEntries.clear(); Loading