Merge "Cleanup PointerTracker debug method"

main
Tadashi G. Takaoka 2012-06-26 03:03:49 -07:00 committed by Android (Google) Code Review
commit 7bb8e95b52
1 changed files with 1 additions and 5 deletions

View File

@ -768,14 +768,10 @@ public class PointerTracker {
callListenerOnRelease(key, code, false);
}
private long mPreviousEventTime;
private void printTouchEvent(String title, int x, int y, long eventTime) {
final Key key = mKeyDetector.detectHitKey(x, y);
final String code = KeyDetector.printableCode(key);
final long delta = eventTime - mPreviousEventTime;
Log.d(TAG, String.format("%s%s[%d] %4d %4d %5d %s", title,
(mKeyAlreadyProcessed ? "-" : " "), mPointerId, x, y, delta, code));
mPreviousEventTime = eventTime;
(mKeyAlreadyProcessed ? "-" : " "), mPointerId, x, y, eventTime, code));
}
}