use of com.android.internal.statusbar.StatusBarIcon in project android_frameworks_base by crdroidandroid.
the class StatusBarManagerService method dump.
// ================================================================================
// Always called from UI thread
// ================================================================================
protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP) != PackageManager.PERMISSION_GRANTED) {
pw.println("Permission Denial: can't dump StatusBar from from pid=" + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid());
return;
}
synchronized (mLock) {
pw.println(" mDisabled1=0x" + Integer.toHexString(mDisabled1));
pw.println(" mDisabled2=0x" + Integer.toHexString(mDisabled2));
final int N = mDisableRecords.size();
pw.println(" mDisableRecords.size=" + N);
for (int i = 0; i < N; i++) {
DisableRecord tok = mDisableRecords.get(i);
pw.println(" [" + i + "] userId=" + tok.userId + " what1=0x" + Integer.toHexString(tok.what1) + " what2=0x" + Integer.toHexString(tok.what2) + " pkg=" + tok.pkg + " 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();
}
}
}
Aggregations