quiet noisy debug spew

Change-Id: I55c3b16f58bbe0ec4c6547c525863a7d16f8263d
This commit is contained in:
Joe Onorato
2010-06-30 14:48:54 -04:00
parent 09b9005769
commit 6be4739e1b

View File

@ -374,7 +374,7 @@ public class StatusBarService extends Service implements CommandQueue.Callbacks
} }
public void addIcon(String slot, int index, int viewIndex, StatusBarIcon icon) { public void addIcon(String slot, int index, int viewIndex, StatusBarIcon icon) {
Slog.d(TAG, "addIcon slot=" + slot + " index=" + index + " viewIndex=" + viewIndex if (SPEW) Slog.d(TAG, "addIcon slot=" + slot + " index=" + index + " viewIndex=" + viewIndex
+ " icon=" + icon); + " icon=" + icon);
StatusBarIconView view = new StatusBarIconView(this, slot); StatusBarIconView view = new StatusBarIconView(this, slot);
view.set(icon); view.set(icon);
@ -383,14 +383,14 @@ public class StatusBarService extends Service implements CommandQueue.Callbacks
public void updateIcon(String slot, int index, int viewIndex, public void updateIcon(String slot, int index, int viewIndex,
StatusBarIcon old, StatusBarIcon icon) { StatusBarIcon old, StatusBarIcon icon) {
Slog.d(TAG, "updateIcon slot=" + slot + " index=" + index + " viewIndex=" + viewIndex if (SPEW) Slog.d(TAG, "updateIcon slot=" + slot + " index=" + index + " viewIndex=" + viewIndex
+ " old=" + old + " icon=" + icon); + " old=" + old + " icon=" + icon);
StatusBarIconView view = (StatusBarIconView)mStatusIcons.getChildAt(viewIndex); StatusBarIconView view = (StatusBarIconView)mStatusIcons.getChildAt(viewIndex);
view.set(icon); view.set(icon);
} }
public void removeIcon(String slot, int index, int viewIndex) { public void removeIcon(String slot, int index, int viewIndex) {
Slog.d(TAG, "removeIcon slot=" + slot + " index=" + index + " viewIndex=" + viewIndex); if (SPEW) Slog.d(TAG, "removeIcon slot=" + slot + " index=" + index + " viewIndex=" + viewIndex);
mStatusIcons.removeViewAt(viewIndex); mStatusIcons.removeViewAt(viewIndex);
} }
@ -490,7 +490,7 @@ public class StatusBarService extends Service implements CommandQueue.Callbacks
&& oldContentView.getPackage() != null && oldContentView.getPackage() != null
&& oldContentView.getPackage().equals(contentView.getPackage()) && oldContentView.getPackage().equals(contentView.getPackage())
&& oldContentView.getLayoutId() == contentView.getLayoutId()) { && oldContentView.getLayoutId() == contentView.getLayoutId()) {
Slog.d(TAG, "reusing notification"); if (SPEW) Slog.d(TAG, "reusing notification");
oldEntry.notification = notification; oldEntry.notification = notification;
try { try {
// Reapply the RemoteViews // Reapply the RemoteViews
@ -517,7 +517,7 @@ public class StatusBarService extends Service implements CommandQueue.Callbacks
addNotificationViews(key, notification); addNotificationViews(key, notification);
} }
} else { } else {
Slog.d(TAG, "not reusing notification"); if (SPEW) Slog.d(TAG, "not reusing notification");
removeNotificationViews(key); removeNotificationViews(key);
addNotificationViews(key, notification); addNotificationViews(key, notification);
} }
@ -531,7 +531,7 @@ public class StatusBarService extends Service implements CommandQueue.Callbacks
} }
public void removeNotification(IBinder key) { public void removeNotification(IBinder key) {
Slog.d(TAG, "removeNotification key=" + key); if (SPEW) Slog.d(TAG, "removeNotification key=" + key);
StatusBarNotification old = removeNotificationViews(key); StatusBarNotification old = removeNotificationViews(key);
if (old != null) { if (old != null) {
@ -1447,7 +1447,7 @@ public class StatusBarService extends Service implements CommandQueue.Callbacks
// the user's perception of what's showing, call to say that the visibility // the user's perception of what's showing, call to say that the visibility
// has changed. (Otherwise, someone else will call to do that). // has changed. (Otherwise, someone else will call to do that).
if (expandedPosition != EXPANDED_LEAVE_ALONE) { if (expandedPosition != EXPANDED_LEAVE_ALONE) {
Slog.d(TAG, "updateExpandedViewPos visibilityChanged(" + visible + ")"); if (SPEW) Slog.d(TAG, "updateExpandedViewPos visibilityChanged(" + visible + ")");
visibilityChanged(visible); visibilityChanged(visible);
} }
} }