WIP debugging.
Bug: 28524184 Change-Id: I0126b1db0c2346ca8d7511b80464c0239f06eeba
This commit is contained in:
committed by
Daniel Sandler
parent
ebfa6df9a0
commit
f3a1f2c7b0
@@ -338,11 +338,12 @@ public class StatusBarIconController extends StatusBarIconList implements Tunabl
|
||||
|
||||
public void dump(PrintWriter pw) {
|
||||
int N = mStatusIcons.getChildCount();
|
||||
pw.println(" system icons: " + N);
|
||||
pw.println(" icon views: " + N);
|
||||
for (int i=0; i<N; i++) {
|
||||
StatusBarIconView ic = (StatusBarIconView) mStatusIcons.getChildAt(i);
|
||||
pw.println(" [" + i + "] icon=" + ic);
|
||||
}
|
||||
super.dump(pw);
|
||||
}
|
||||
|
||||
public void dispatchDemoCommand(String command, Bundle args) {
|
||||
|
||||
@@ -81,9 +81,9 @@ public class StatusBarIconList {
|
||||
|
||||
public void dump(PrintWriter pw) {
|
||||
final int N = mSlots.size();
|
||||
pw.println("Icon list:");
|
||||
pw.println(" icon slots: " + N);
|
||||
for (int i=0; i<N; i++) {
|
||||
pw.printf(" %2d: (%s) %s\n", i, mSlots.get(i), mIcons.get(i));
|
||||
pw.printf(" %2d: (%s) %s\n", i, mSlots.get(i), mIcons.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ import android.os.Process;
|
||||
import android.os.RemoteException;
|
||||
import android.os.ResultReceiver;
|
||||
import android.os.UserHandle;
|
||||
import android.text.TextUtils;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.Slog;
|
||||
import android.view.KeyEvent;
|
||||
@@ -942,6 +943,20 @@ public class StatusBarManagerService extends IStatusBarService.Stub {
|
||||
+ " token=" + tok.token);
|
||||
}
|
||||
pw.println(" mCurrentUserId=" + mCurrentUserId);
|
||||
pw.println(" mIcons=");
|
||||
for (String slot : mIcons.keySet()) {
|
||||
pw.println(" ");
|
||||
pw.print(slot);
|
||||
pw.print(" -> ");
|
||||
final StatusBarIcon icon = mIcons.get(slot);
|
||||
pw.print(icon);
|
||||
if (!TextUtils.isEmpty(icon.contentDescription)) {
|
||||
pw.print(" \"");
|
||||
pw.print(icon.contentDescription);
|
||||
pw.print("\"");
|
||||
}
|
||||
pw.println();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user