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

Commit 231f41bf authored by Howard Ro's avatar Howard Ro Committed by Android (Google) Code Review
Browse files

Merge "Limit metricslogger call into statsdw for events"

parents a2ae63c4 69b2ed79
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -55,9 +55,12 @@ public class MetricsLogger {
    protected void saveLog(LogMaker log) {
        // TODO(b/116684537): Flag guard logging to event log and statsd socket.
        EventLogTags.writeSysuiMultiAction(log.serialize());
        if (log.getCategory() != MetricsEvent.RESERVED_FOR_LOGBUILDER_COUNTER
                && log.getCategory() != MetricsEvent.RESERVED_FOR_LOGBUILDER_HISTOGRAM) {
            FrameworkStatsLog.write(FrameworkStatsLog.KEY_VALUE_PAIRS_ATOM,
                    /* UID is retrieved from statsd side */ 0, log.getEntries());
        }
    }

    public static final int VIEW_UNKNOWN = MetricsEvent.VIEW_UNKNOWN;
    public static final int LOGTAG = EventLogTags.SYSUI_MULTI_ACTION;