Merge "New FIELD_AUTOFILL_COMPAT_MODE field." into pi-dev

am: 88cc74cd6b

Change-Id: I5127646f7cc27dfc733c6b91ebe73aa367d033dc
This commit is contained in:
android-build-team Robot
2018-05-07 15:14:41 -07:00
committed by android-build-merger
7 changed files with 103 additions and 42 deletions

View File

@@ -1132,8 +1132,7 @@ public final class AutofillManager {
if (mSaveTriggerId != null && mSaveTriggerId.equals(id)) {
if (sDebug) Log.d(TAG, "triggering commit by click of " + id);
commitLocked();
mMetricsLogger.action(MetricsEvent.AUTOFILL_SAVE_EXPLICITLY_TRIGGERED,
mContext.getPackageName());
mMetricsLogger.write(newLog(MetricsEvent.AUTOFILL_SAVE_EXPLICITLY_TRIGGERED));
}
}
}
@@ -1893,14 +1892,19 @@ public final class AutofillManager {
}
}
final LogMaker log = new LogMaker(MetricsEvent.AUTOFILL_DATASET_APPLIED)
.setPackageName(mContext.getPackageName())
mMetricsLogger.write(newLog(MetricsEvent.AUTOFILL_DATASET_APPLIED)
.addTaggedData(MetricsEvent.FIELD_AUTOFILL_NUM_VALUES, itemCount)
.addTaggedData(MetricsEvent.FIELD_AUTOFILL_NUM_VIEWS_FILLED, numApplied);
mMetricsLogger.write(log);
.addTaggedData(MetricsEvent.FIELD_AUTOFILL_NUM_VIEWS_FILLED, numApplied));
}
}
private LogMaker newLog(int category) {
return new LogMaker(category)
.setPackageName(mContext.getPackageName())
.addTaggedData(MetricsEvent.FIELD_AUTOFILL_COMPAT_MODE,
isCompatibilityModeEnabledLocked() ? 1 : 0);
}
/**
* Set the tracked views.
*