am 6029b43a: Add "size" and "pressure" for MotionEvent logs
* commit '6029b43a3df1fa9a9baa339e2dbb984c6669d214': Add "size" and "pressure" for MotionEvent logsmain
commit
d05620a587
|
@ -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 New Issue