Revert "ChangeReporter: disable eager reporting"
This reverts commit 131354becd.
Reason for revert: “DroidMonitor: Potential culprit for Bug b/271512785 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.”.
Change-Id: I6e857a07ebd5c0305472b6832c45ae75017a8744
This commit is contained in:
committed by
Android (Google) Code Review
parent
131354becd
commit
f28a557d24
@@ -42,7 +42,6 @@ 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;
|
||||
@@ -90,16 +89,14 @@ 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);
|
||||
}
|
||||
if (shouldWriteToDebug(uid, changeId, state)) {
|
||||
debugLog(uid, changeId, state);
|
||||
}
|
||||
markAsReported(uid, new ChangeReport(changeId, state));
|
||||
if (shouldWriteToStatsLog(uid, changeId, state)) {
|
||||
FrameworkStatsLog.write(FrameworkStatsLog.APP_COMPATIBILITY_CHANGE_REPORTED, uid,
|
||||
changeId, state, mSource);
|
||||
}
|
||||
if (shouldWriteToDebug(uid, changeId, state)) {
|
||||
debugLog(uid, changeId, state);
|
||||
}
|
||||
markAsReported(uid, new ChangeReport(changeId, state));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user