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

Commit a51bad08 authored by Tim Murray's avatar Tim Murray Committed by Android (Google) Code Review
Browse files

Merge "ChangeReporter: disable eager reporting" into udc-dev

parents d470717b 131354be
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ import java.util.Set;
public final class ChangeReporter {
    private static final String TAG = "CompatibilityChangeReporter";
    private int mSource;
    private static final boolean sShouldReport = false;

    private static final class ChangeReport {
        long mChangeId;
@@ -89,6 +90,7 @@ public final class ChangeReporter {
     * @param state    of the reported change - enabled/disabled/only logged
     */
    public void reportChange(int uid, long changeId, int state) {
        if (sShouldReport) {
            if (shouldWriteToStatsLog(uid, changeId, state)) {
                FrameworkStatsLog.write(FrameworkStatsLog.APP_COMPATIBILITY_CHANGE_REPORTED, uid,
                        changeId, state, mSource);
@@ -98,6 +100,7 @@ public final class ChangeReporter {
            }
            markAsReported(uid, new ChangeReport(changeId, state));
        }
    }

    /**
     * Start logging all the time to logcat.