Loading telephony/java/com/android/internal/telephony/IntRangeManager.java +8 −0 Original line number Diff line number Diff line Loading @@ -542,6 +542,14 @@ public abstract class IntRangeManager { return finishUpdate(); } /** * Returns whether the list of ranges is completely empty. * @return true if there are no enabled ranges */ public boolean isEmpty() { return mRanges.isEmpty(); } /** * Called when the list of enabled ranges has changed. This will be * followed by zero or more calls to {@link #addRange} followed by Loading telephony/java/com/android/internal/telephony/gsm/SimSmsInterfaceManager.java +7 −2 Original line number Diff line number Diff line Loading @@ -246,6 +246,8 @@ public class SimSmsInterfaceManager extends IccSmsInterfaceManager { log("Added cell broadcast subscription for MID range " + startMessageId + " to " + endMessageId + " from client " + client); setCellBroadcastActivation(!mCellBroadcastRangeManager.isEmpty()); return true; } Loading @@ -271,6 +273,8 @@ public class SimSmsInterfaceManager extends IccSmsInterfaceManager { log("Removed cell broadcast subscription for MID range " + startMessageId + " to " + endMessageId + " from client " + client); setCellBroadcastActivation(!mCellBroadcastRangeManager.isEmpty()); return true; } Loading Loading @@ -301,14 +305,15 @@ public class SimSmsInterfaceManager extends IccSmsInterfaceManager { /** * Called to indicate the end of a range update started by the * previous call to {@link #startUpdate}. * @return true if successful, false otherwise */ protected boolean finishUpdate() { if (mConfigList.isEmpty()) { return setCellBroadcastActivation(false); return true; } else { SmsBroadcastConfigInfo[] configs = mConfigList.toArray(new SmsBroadcastConfigInfo[mConfigList.size()]); return setCellBroadcastConfig(configs) && setCellBroadcastActivation(true); return setCellBroadcastConfig(configs); } } } Loading telephony/java/com/android/internal/telephony/RIL.java +1 −1 File changed.Contains only whitespace changes. Show changes Loading
telephony/java/com/android/internal/telephony/IntRangeManager.java +8 −0 Original line number Diff line number Diff line Loading @@ -542,6 +542,14 @@ public abstract class IntRangeManager { return finishUpdate(); } /** * Returns whether the list of ranges is completely empty. * @return true if there are no enabled ranges */ public boolean isEmpty() { return mRanges.isEmpty(); } /** * Called when the list of enabled ranges has changed. This will be * followed by zero or more calls to {@link #addRange} followed by Loading
telephony/java/com/android/internal/telephony/gsm/SimSmsInterfaceManager.java +7 −2 Original line number Diff line number Diff line Loading @@ -246,6 +246,8 @@ public class SimSmsInterfaceManager extends IccSmsInterfaceManager { log("Added cell broadcast subscription for MID range " + startMessageId + " to " + endMessageId + " from client " + client); setCellBroadcastActivation(!mCellBroadcastRangeManager.isEmpty()); return true; } Loading @@ -271,6 +273,8 @@ public class SimSmsInterfaceManager extends IccSmsInterfaceManager { log("Removed cell broadcast subscription for MID range " + startMessageId + " to " + endMessageId + " from client " + client); setCellBroadcastActivation(!mCellBroadcastRangeManager.isEmpty()); return true; } Loading Loading @@ -301,14 +305,15 @@ public class SimSmsInterfaceManager extends IccSmsInterfaceManager { /** * Called to indicate the end of a range update started by the * previous call to {@link #startUpdate}. * @return true if successful, false otherwise */ protected boolean finishUpdate() { if (mConfigList.isEmpty()) { return setCellBroadcastActivation(false); return true; } else { SmsBroadcastConfigInfo[] configs = mConfigList.toArray(new SmsBroadcastConfigInfo[mConfigList.size()]); return setCellBroadcastConfig(configs) && setCellBroadcastActivation(true); return setCellBroadcastConfig(configs); } } } Loading
telephony/java/com/android/internal/telephony/RIL.java +1 −1 File changed.Contains only whitespace changes. Show changes