diff options
| -rwxr-xr-x | packages/SystemUI/src/com/android/systemui/statusbar/GestureRecorder.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/GestureRecorder.java b/packages/SystemUI/src/com/android/systemui/statusbar/GestureRecorder.java index c4ed0e2fd501..b4b29da12d44 100755 --- a/packages/SystemUI/src/com/android/systemui/statusbar/GestureRecorder.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/GestureRecorder.java @@ -63,11 +63,15 @@ public class GestureRecorder { } } public String toJson() { - return String.format("{\"type\":\"motion\", \"time\":%d, \"action\":\"%s\", \"x\":%.2f, \"y\":%.2f}", + return String.format( + ("{\"type\":\"motion\", \"time\":%d, \"action\":\"%s\", " + + "\"x\":%.2f, \"y\":%.2f, \"s\":%.2f, \"p\":%.2f}"), this.time, actionName(this.event.getAction()), this.event.getRawX(), - this.event.getRawY() + this.event.getRawY(), + this.event.getSize(), + this.event.getPressure() ); } } |