Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6029b43a authored by Ken Wakasa's avatar Ken Wakasa
Browse files

Add "size" and "pressure" for MotionEvent logs

bug: 5722703
Change-Id: I8e08942324b666de96682ce63e70c8d324535782
parent 38a3ad3e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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 {
+1 −1
Original line number Diff line number Diff line
@@ -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);