Add "size" and "pressure" for MotionEvent logs
bug: 5722703 Change-Id: I8e08942324b666de96682ce63e70c8d324535782
This commit is contained in:
parent
38a3ad3e3c
commit
6029b43a3d
2 changed files with 5 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue