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

Commit ab54e587 authored by Fan Zhang's avatar Fan Zhang
Browse files

Remove count logging. Caller can use action directly.

Bug: 117860032
Test: rebuild
Change-Id: Icd1fb637557d5acc8186da1bb746defe48686916
parent 6a607e7c
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
@@ -90,12 +90,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;