Change preference value changed metrics log format
- Pass metric category into SharedPreferenceLogger - Update MainSwitchBar metric log format Bug: 246483846 Test: Robotest Change-Id: I91c7b89ee35ae4922aea0d8c998f7d0e33365da2
This commit is contained in:
@@ -40,6 +40,22 @@ public class SettingsEventLogWriter extends EventLogWriter {
|
||||
super.hidden(context, category, visibleTime);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clicked(int sourceCategory, String key) {
|
||||
if (shouldDisableGenericEventLogging()) {
|
||||
return;
|
||||
}
|
||||
super.clicked(sourceCategory, key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void changed(int category, String key, int value) {
|
||||
if (shouldDisableGenericEventLogging()) {
|
||||
return;
|
||||
}
|
||||
super.changed(category, key, value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void action(Context context, int category, String pkg) {
|
||||
if (shouldDisableGenericEventLogging()) {
|
||||
|
||||
@@ -84,6 +84,10 @@ public class SettingsIntelligenceLogWriter implements LogWriter {
|
||||
public void clicked(int sourceCategory, String key) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void changed(int category, String key, int value) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void action(Context context, int action, Pair<Integer, Object>... taggedData) {
|
||||
action(SettingsEnums.PAGE_UNKNOWN /* attribution */,
|
||||
|
||||
@@ -54,6 +54,16 @@ public class StatsLogWriter implements LogWriter {
|
||||
0 /* changedPreferenceIntValue */);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void changed(int sourceCategory, String key, int value) {
|
||||
SettingsStatsLog.write(SettingsStatsLog.SETTINGS_UI_CHANGED /* Atom name */,
|
||||
sourceCategory /* attribution */,
|
||||
SettingsEnums.ACTION_SETTINGS_PREFERENCE_CHANGE /* action */,
|
||||
SettingsEnums.PAGE_UNKNOWN /* pageId */,
|
||||
key /* changedPreferenceKey */,
|
||||
value /* changedPreferenceIntValue */);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void action(Context context, int action, Pair<Integer, Object>... taggedData) {
|
||||
action(SettingsEnums.PAGE_UNKNOWN /* attribution */,
|
||||
|
||||
Reference in New Issue
Block a user