diff options
author | Jordan Liu <jminjie@google.com> | 2021-05-14 15:41:41 -0700 |
---|---|---|
committer | Jordan Liu <jminjie@google.com> | 2021-05-17 22:58:23 +0000 |
commit | dd68fad525624d6d3c2d4e63744cfd9f4a526eda (patch) | |
tree | 327952dd68560f8218904f268346bfc62ea00687 /telephony/java/android | |
parent | 46f3714cff15553358ce1cda8ad4fa47fdfd31bd (diff) |
Call CBS dump in dumpsys
Bug: 187447232
Test: dumpsys isms
Change-Id: Ib18c6b411c9430155336b1e8b35f796a09ba429e
Diffstat (limited to 'telephony/java/android')
-rw-r--r-- | telephony/java/android/telephony/CellBroadcastService.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/CellBroadcastService.java b/telephony/java/android/telephony/CellBroadcastService.java index ac775b391e94..14de2f285756 100644 --- a/telephony/java/android/telephony/CellBroadcastService.java +++ b/telephony/java/android/telephony/CellBroadcastService.java @@ -28,6 +28,11 @@ import android.os.IBinder; import android.os.RemoteCallback; import android.telephony.cdma.CdmaSmsCbProgramData; +import com.android.internal.util.FastPrintWriter; + +import java.io.FileDescriptor; +import java.io.FileOutputStream; +import java.io.PrintWriter; import java.util.List; import java.util.function.Consumer; @@ -186,5 +191,16 @@ public abstract class CellBroadcastService extends Service { public @NonNull CharSequence getCellBroadcastAreaInfo(int slotIndex) { return CellBroadcastService.this.getCellBroadcastAreaInfo(slotIndex); } + + @Override + protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { + CellBroadcastService.this.dump(fd, fout, args); + } + + @Override + public void dump(FileDescriptor fd, String[] args) { + PrintWriter pw = new FastPrintWriter(new FileOutputStream(fd)); + CellBroadcastService.this.dump(fd, pw, args); + } } } |