summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/InputManager.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-10-11 17:42:30 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-10-11 17:42:30 -0700
commitdd8b0c90400a1c59d4d71d768c02eed961596bc8 (patch)
tree824f5086cdab46a9484c41dc87e921e2ff4212a6 /services/java/com/android/server/InputManager.java
parent5d3f6073bfc62811f552a16be7d58483104a29a3 (diff)
parent41aabeb51305d19747687f246080f44fc2a74435 (diff)
am 41aabeb5: am 1e6a3a53: Merge "Added more robust tracking and cancelation of events." into gingerbread
Merge commit '41aabeb51305d19747687f246080f44fc2a74435' * commit '41aabeb51305d19747687f246080f44fc2a74435': Added more robust tracking and cancelation of events.
Diffstat (limited to 'services/java/com/android/server/InputManager.java')
-rw-r--r--services/java/com/android/server/InputManager.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/services/java/com/android/server/InputManager.java b/services/java/com/android/server/InputManager.java
index fe306b319395..c174b1103f3d 100644
--- a/services/java/com/android/server/InputManager.java
+++ b/services/java/com/android/server/InputManager.java
@@ -49,6 +49,8 @@ import java.util.Properties;
public class InputManager {
static final String TAG = "InputManager";
+ private static final boolean DEBUG = false;
+
private final Callbacks mCallbacks;
private final Context mContext;
private final WindowManagerService mWindowManagerService;
@@ -131,7 +133,9 @@ public class InputManager {
throw new IllegalArgumentException("Invalid display id or dimensions.");
}
- Slog.i(TAG, "Setting display #" + displayId + " size to " + width + "x" + height);
+ if (DEBUG) {
+ Slog.d(TAG, "Setting display #" + displayId + " size to " + width + "x" + height);
+ }
nativeSetDisplaySize(displayId, width, height);
}
@@ -140,7 +144,9 @@ public class InputManager {
throw new IllegalArgumentException("Invalid rotation.");
}
- Slog.i(TAG, "Setting display #" + displayId + " orientation to " + rotation);
+ if (DEBUG) {
+ Slog.d(TAG, "Setting display #" + displayId + " orientation to " + rotation);
+ }
nativeSetDisplayOrientation(displayId, rotation);
}