Merge "ChangeReporter: disable eager reporting" into udc-dev am: a51bad085d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21660015 Change-Id: I3a4bbf148b2d5b3d62dc808bbedaf09de581736c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -42,6 +42,7 @@ import java.util.Set;
|
|||||||
public final class ChangeReporter {
|
public final class ChangeReporter {
|
||||||
private static final String TAG = "CompatibilityChangeReporter";
|
private static final String TAG = "CompatibilityChangeReporter";
|
||||||
private int mSource;
|
private int mSource;
|
||||||
|
private static final boolean sShouldReport = false;
|
||||||
|
|
||||||
private static final class ChangeReport {
|
private static final class ChangeReport {
|
||||||
long mChangeId;
|
long mChangeId;
|
||||||
@@ -89,14 +90,16 @@ public final class ChangeReporter {
|
|||||||
* @param state of the reported change - enabled/disabled/only logged
|
* @param state of the reported change - enabled/disabled/only logged
|
||||||
*/
|
*/
|
||||||
public void reportChange(int uid, long changeId, int state) {
|
public void reportChange(int uid, long changeId, int state) {
|
||||||
if (shouldWriteToStatsLog(uid, changeId, state)) {
|
if (sShouldReport) {
|
||||||
FrameworkStatsLog.write(FrameworkStatsLog.APP_COMPATIBILITY_CHANGE_REPORTED, uid,
|
if (shouldWriteToStatsLog(uid, changeId, state)) {
|
||||||
changeId, state, mSource);
|
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 (shouldWriteToDebug(uid, changeId, state)) {
|
|
||||||
debugLog(uid, changeId, state);
|
|
||||||
}
|
|
||||||
markAsReported(uid, new ChangeReport(changeId, state));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user