diff options
author | Jim Miller <jaggies@google.com> | 2011-08-07 14:00:09 -0700 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2011-08-07 14:32:00 -0700 |
commit | f3447351f7571b5ab3c2a59832d9497bde4f6776 (patch) | |
tree | f4fc01b6e734cb5e1f1f6c689b5a56c88ed3de5b /policy/src | |
parent | e3373ff620bcab34ac0030ee06140563f5dbb016 (diff) | |
download | frameworks_base-f3447351f7571b5ab3c2a59832d9497bde4f6776.zip frameworks_base-f3447351f7571b5ab3c2a59832d9497bde4f6776.tar.gz frameworks_base-f3447351f7571b5ab3c2a59832d9497bde4f6776.tar.bz2 |
Fix 5125978: remove lockscreen logspew
Change-Id: Iefa103e867e870dfe587271e0555404589d9e5b3
Diffstat (limited to 'policy/src')
4 files changed, 12 insertions, 11 deletions
diff --git a/policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java b/policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java index 21a8c14..afa92f1 100644 --- a/policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java +++ b/policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java @@ -266,7 +266,7 @@ class KeyguardStatusViewManager implements OnClickListener { case OWNER_INFO: case CARRIER_TEXT: default: - Log.w(TAG, "Not showing message id " + what + ", str=" + string); + if (DEBUG) Log.w(TAG, "Not showing message id " + what + ", str=" + string); } } else { updateStatusLines(mShowingStatus); diff --git a/policy/src/com/android/internal/policy/impl/KeyguardUpdateMonitor.java b/policy/src/com/android/internal/policy/impl/KeyguardUpdateMonitor.java index 7faf1a4..77f1932 100644 --- a/policy/src/com/android/internal/policy/impl/KeyguardUpdateMonitor.java +++ b/policy/src/com/android/internal/policy/impl/KeyguardUpdateMonitor.java @@ -20,7 +20,6 @@ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; -import android.content.res.Configuration; import android.database.ContentObserver; import static android.os.BatteryManager.BATTERY_STATUS_CHARGING; import static android.os.BatteryManager.BATTERY_STATUS_FULL; @@ -29,7 +28,6 @@ import android.media.AudioManager; import android.os.BatteryManager; import android.os.Handler; import android.os.Message; -import android.os.SystemClock; import android.provider.Settings; import android.provider.Telephony; import static android.provider.Telephony.Intents.EXTRA_PLMN; @@ -503,7 +501,8 @@ public class KeyguardUpdateMonitor { if (!mSimStateCallbacks.contains(callback)) { mSimStateCallbacks.add(callback); } else { - Log.e(TAG, "Object tried to add another SIM callback", new Exception("Whoops")); + if (DEBUG) Log.e(TAG, "Object tried to add another SIM callback", + new Exception("Whoops")); } } diff --git a/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java b/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java index e5a7d64..6ee5861 100644 --- a/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java +++ b/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java @@ -127,10 +127,10 @@ public class KeyguardViewManager implements KeyguardWindowController { } if (enableScreenRotation) { - Log.d(TAG, "Rotation sensor for lock screen On!"); + if (DEBUG) Log.d(TAG, "Rotation sensor for lock screen On!"); mWindowLayoutParams.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR; } else { - Log.d(TAG, "Rotation sensor for lock screen Off!"); + if (DEBUG) Log.d(TAG, "Rotation sensor for lock screen Off!"); mWindowLayoutParams.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR; } diff --git a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java index 47d34b3..ee6d2ee 100644 --- a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java +++ b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java @@ -646,7 +646,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback, * @see #onWakeKeyWhenKeyguardShowingTq(int) */ private void wakeWhenReadyLocked(int keyCode) { - if (true || DBG_WAKE) Log.d(TAG, "wakeWhenReadyLocked(" + keyCode + ")"); + if (DBG_WAKE) Log.d(TAG, "wakeWhenReadyLocked(" + keyCode + ")"); /** * acquire the handoff lock that will keep the cpu running. this will @@ -741,7 +741,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback, int sequence = intent.getIntExtra("seq", 0); - if (false) Log.d(TAG, "received DELAYED_KEYGUARD_ACTION with seq = " + if (DEBUG) Log.d(TAG, "received DELAYED_KEYGUARD_ACTION with seq = " + sequence + ", mDelayedShowingSequence = " + mDelayedShowingSequence); if (mDelayedShowingSequence == sequence) { @@ -1033,13 +1033,15 @@ public class KeyguardViewMediator implements KeyguardViewCallback, sfx.setStreamType(AudioManager.STREAM_SYSTEM); sfx.play(); } else { - Log.d(TAG, "playSounds: failed to load ringtone from uri: " + soundUri); + if (DEBUG) Log.d(TAG, "playSounds: failed to load ringtone from uri: " + + soundUri); } } else { - Log.d(TAG, "playSounds: could not parse Uri: " + soundPath); + if (DEBUG) Log.d(TAG, "playSounds: could not parse Uri: " + soundPath); } } else { - Log.d(TAG, "playSounds: whichSound = " + whichSound + "; soundPath was null"); + if (DEBUG) Log.d(TAG, "playSounds: whichSound = " + whichSound + + "; soundPath was null"); } } } |