@@ -279,7 +279,7 @@ public class PhoneStatusBar extends BaseStatusBar {
279279 public void onAnimationEnd (Animator animation ) {
280280 // double-check to avoid races
281281 if (mStatusBarContents .getAlpha () == 0 ) {
282- Slog .d (TAG , "makeIconsInvisible" );
282+ if ( DEBUG ) Slog .d (TAG , "makeIconsInvisible" );
283283 mStatusBarContents .setVisibility (View .INVISIBLE );
284284 }
285285 }
@@ -518,7 +518,7 @@ public void onLayoutChange(View v, int left, int top, int right, int bottom,
518518
519519 mCarrierLabel = (TextView )mStatusBarWindow .findViewById (R .id .carrier_label );
520520 mShowCarrierInPanel = (mCarrierLabel != null );
521- Slog .v (TAG , "carrierlabel=" + mCarrierLabel + " show=" + mShowCarrierInPanel );
521+ if ( DEBUG ) Slog .v (TAG , "carrierlabel=" + mCarrierLabel + " show=" + mShowCarrierInPanel );
522522 if (mShowCarrierInPanel ) {
523523 mCarrierLabel .setVisibility (mCarrierLabelVisible ? View .VISIBLE : View .INVISIBLE );
524524
@@ -854,7 +854,7 @@ public void removeIcon(String slot, int index, int viewIndex) {
854854 }
855855
856856 public void addNotification (IBinder key , StatusBarNotification notification ) {
857- /* if (DEBUG) */ Slog .d (TAG , "addNotification score=" + notification .score );
857+ if (DEBUG ) Slog .d (TAG , "addNotification score=" + notification .score );
858858 StatusBarIconView iconView = addNotificationViews (key , notification );
859859 if (iconView == null ) return ;
860860
@@ -909,7 +909,7 @@ public void addNotification(IBinder key, StatusBarNotification notification) {
909909 awakenDreams ();
910910
911911 // not immersive & a full-screen alert should be shown
912- Slog .d (TAG , "Notification has fullScreenIntent; sending fullScreenIntent" );
912+ if ( DEBUG ) Slog .d (TAG , "Notification has fullScreenIntent; sending fullScreenIntent" );
913913 try {
914914 notification .notification .fullScreenIntent .send ();
915915 } catch (PendingIntent .CanceledException e ) {
@@ -2249,7 +2249,7 @@ public void onClick(View v) {
22492249
22502250 private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver () {
22512251 public void onReceive (Context context , Intent intent ) {
2252- Slog .v (TAG , "onReceive: " + intent );
2252+ if ( DEBUG ) Slog .v (TAG , "onReceive: " + intent );
22532253 String action = intent .getAction ();
22542254 if (Intent .ACTION_CLOSE_SYSTEM_DIALOGS .equals (action )) {
22552255 int flags = CommandQueue .FLAG_EXCLUDE_NONE ;
0 commit comments