Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22575e1f authored by Jack Yu's avatar Jack Yu Committed by Gerrit Code Review
Browse files

Merge "Added enabled channel into debug dump"

parents 518755b5 ba26cc3d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1480,6 +1480,8 @@ public class IccSmsInterfaceManager {
    }

    public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
        pw.println("Enabled GSM channels: " + mCellBroadcastRangeManager);
        pw.println("Enabled CDMA channels: " + mCdmaBroadcastRangeManager);
        pw.println("CellBroadcast log:");
        mCellBroadcastLocalLog.dump(fd, pw, args);
        pw.println("SMS dispatcher controller log:");
+11 −1
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.compat.annotation.UnsupportedAppUsage;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.stream.Collectors;

/**
 * Clients can enable reception of SMS-CB messages for specific ranges of
@@ -141,8 +142,12 @@ public abstract class IntRangeManager {
            }
            mClients.add(range);    // append to end of list
        }
    }

        @Override
        public String toString() {
            return "[" + mStartId + "-" + mEndId + "]";
        }
    }
    /**
     * The message id range for a single client.
     */
@@ -669,4 +674,9 @@ public abstract class IntRangeManager {
     * @return true if successful, false otherwise
     */
    protected abstract boolean finishUpdate();

    @Override
    public String toString() {
        return mRanges.stream().map(IntRange::toString).collect(Collectors.joining(","));
    }
}