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

Commit 43c453a1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add device type to falsing data for normalization purposes."

parents 2f6bfcbd ad7c4601
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -16,17 +16,17 @@

package com.android.systemui.analytics;

import static com.android.systemui.statusbar.phone.nano.TouchAnalyticsProto.Session;
import static com.android.systemui.statusbar.phone.nano.TouchAnalyticsProto.Session.PhoneEvent;
import static com.android.systemui.statusbar.phone.nano.TouchAnalyticsProto.Session.SensorEvent;
import static com.android.systemui.statusbar.phone.nano.TouchAnalyticsProto.Session.TouchEvent;

import android.os.Build;
import android.util.Log;
import android.view.MotionEvent;

import java.util.ArrayList;

import static com.android.systemui.statusbar.phone.nano.TouchAnalyticsProto.Session;
import static com.android.systemui.statusbar.phone.nano.TouchAnalyticsProto.Session.PhoneEvent;
import static com.android.systemui.statusbar.phone.nano.TouchAnalyticsProto.Session.SensorEvent;
import static com.android.systemui.statusbar.phone.nano.TouchAnalyticsProto.Session.TouchEvent;

/**
 * Collects touch, sensor and phone events and converts the data to
 * TouchAnalyticsProto.Session.
@@ -104,6 +104,7 @@ public class SensorLoggerSession {
        proto.startTimestampMillis = mStartTimestampMillis;
        proto.durationMillis = mEndTimestampMillis - mStartTimestampMillis;
        proto.build = Build.FINGERPRINT;
        proto.deviceId = Build.DEVICE;
        proto.result = mResult;
        proto.type = mType;
        proto.sensorEvents = mSensorEvents.toArray(proto.sensorEvents);
+2 −0
Original line number Diff line number Diff line
@@ -134,4 +134,6 @@ message Session {
    optional int32 touchAreaHeight = 10;
    optional Type type = 11;
    repeated PhoneEvent phoneEvents = 12;

    optional string device_id = 13;
}
 No newline at end of file