summaryrefslogtreecommitdiff
path: root/telephony/java
diff options
context:
space:
mode:
authorJordan Liu <jminjie@google.com>2021-05-14 15:41:41 -0700
committerJordan Liu <jminjie@google.com>2021-05-17 22:58:23 +0000
commitdd68fad525624d6d3c2d4e63744cfd9f4a526eda (patch)
tree327952dd68560f8218904f268346bfc62ea00687 /telephony/java
parent46f3714cff15553358ce1cda8ad4fa47fdfd31bd (diff)
Call CBS dump in dumpsys
Bug: 187447232 Test: dumpsys isms Change-Id: Ib18c6b411c9430155336b1e8b35f796a09ba429e
Diffstat (limited to 'telephony/java')
-rw-r--r--telephony/java/android/telephony/CellBroadcastService.java16
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);
+ }
}
}