summaryrefslogtreecommitdiffstats
path: root/packages/Keyguard/src
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-07-13 17:02:49 -0400
committerJason Monk <jmonk@google.com>2015-07-13 17:05:16 -0400
commitab5252726211069daf558d40da75e544c341c63b (patch)
tree2ae9fd97c42d339b13aa3356c8f10fb51b19047a /packages/Keyguard/src
parent0ec43f89d2fc7064e7b42b40b318bef15fb040b5 (diff)
downloadframeworks_base-ab5252726211069daf558d40da75e544c341c63b.zip
frameworks_base-ab5252726211069daf558d40da75e544c341c63b.tar.gz
frameworks_base-ab5252726211069daf558d40da75e544c341c63b.tar.bz2
Add a dumpsys for KeyguardUpdateMonitor
Include the info used when determining carrier text display. Bug: 22212693 Change-Id: I12f01683c259ff11c7f27eec5d03d53f0b290d0b
Diffstat (limited to 'packages/Keyguard/src')
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java
index 581c15b..6574e4e 100644
--- a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java
+++ b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java
@@ -67,6 +67,8 @@ import android.util.SparseIntArray;
import com.google.android.collect.Lists;
+import java.io.FileDescriptor;
+import java.io.PrintWriter;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.HashMap;
@@ -1397,4 +1399,22 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
}
return null; // not found
}
+
+ public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
+ pw.println("KeyguardUpdateMonitor state:");
+ pw.println(" SIM States:");
+ for (SimData data : mSimDatas.values()) {
+ pw.println(" " + data.toString());
+ }
+ pw.println(" Subs:");
+ if (mSubscriptionInfo != null) {
+ for (int i = 0; i < mSubscriptionInfo.size(); i++) {
+ pw.println(" " + mSubscriptionInfo.get(i));
+ }
+ }
+ pw.println(" Service states:");
+ for (int subId : mServiceStates.keySet()) {
+ pw.println(" " + subId + "=" + mServiceStates.get(subId));
+ }
+ }
}