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

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

Merge "Remove count logging. Caller can use action directly."

parents 04995744 ab54e587
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -73,11 +73,6 @@ public class EventLogWriter implements LogWriter {
        }
    }

    @Override
    public void count(Context context, String name, int value) {
        MetricsLogger.count(context, name, value);
    }

    @Override
    public void action(int attribution, int action, int pageId, String key, int value) {
        final LogMaker logMaker = new LogMaker(action)
+0 −5
Original line number Diff line number Diff line
@@ -53,11 +53,6 @@ public interface LogWriter {
     */
    void action(Context context, int category, String pkg, Pair<Integer, Object>... taggedData);

    /**
     * Logs a count.
     */
    void count(Context context, String name, int value);

    /**
     * Generically log action.
     */
+0 −6
Original line number Diff line number Diff line
@@ -116,12 +116,6 @@ public class MetricsFeatureProvider {
        }
    }

    public void count(Context context, String name, int value) {
        for (LogWriter writer : mLoggerWriters) {
            writer.count(context, name, value);
        }
    }

    public int getMetricsCategory(Object object) {
        if (object == null || !(object instanceof Instrumentable)) {
            return MetricsEvent.VIEW_UNKNOWN;