am 6029b43a: Add "size" and "pressure" for MotionEvent logs

* commit '6029b43a3df1fa9a9baa339e2dbb984c6669d214':
  Add "size" and "pressure" for MotionEvent logs
main
Ken Wakasa 2012-01-29 19:26:42 -08:00 committed by Android Git Automerger
commit d05620a587
2 changed files with 5 additions and 3 deletions

View File

@ -639,7 +639,8 @@ public class LatinKeyboardView extends KeyboardView implements PointerTracker.Ke
}
if (!TextUtils.isEmpty(eventTag)) {
UsabilityStudyLogUtils.getInstance().write(
eventTag + eventTime + "," + id + "," + x + "," + y + "\t\t");
eventTag + eventTime + "," + id + "," + x + "," + y + ","
+ me.getSize(index) + "," + me.getPressure(index));
}
}
@ -701,7 +702,8 @@ public class LatinKeyboardView extends KeyboardView implements PointerTracker.Ke
tracker.onMoveEvent(px, py, eventTime);
if (ENABLE_USABILITY_STUDY_LOG) {
UsabilityStudyLogUtils.getInstance().write("[Move]" + eventTime + ","
+ me.getPointerId(i) + "," + px + "," + py + "\t\t");
+ me.getPointerId(i) + "," + px + "," + py + ","
+ me.getSize(i) + "," + me.getPressure(i));
}
}
} else {

View File

@ -369,7 +369,7 @@ public class Utils {
private UsabilityStudyLogUtils() {
mDate = new Date();
mDateFormat = new SimpleDateFormat("dd MMM HH:mm:ss.SSS");
mDateFormat = new SimpleDateFormat("yyyyMMdd-HHmmss.SSSZ");
HandlerThread handlerThread = new HandlerThread("UsabilityStudyLogUtils logging task",
Process.THREAD_PRIORITY_BACKGROUND);