Log visibility change for all fragments.
Bug: 30681771 Test: SettingsUnitTests Refactor visibility logging from InstrumentedFragment into a mixin. And apply mixin in remaining fragments. Change-Id: Ibbb59904336254a3e4bb9e8c7d0b36e5a6bc2622
This commit is contained in:
@@ -60,7 +60,7 @@ public class AppNotificationSettings extends NotificationSettingsBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.NOTIFICATION_APP_NOTIFICATION;
|
||||
}
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ public class ConfigureNotificationSettings extends SettingsPreferenceFragment {
|
||||
private int mProfileChallengeUserId;
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.CONFIGURE_NOTIFICATION;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ public class NotificationAccessSettings extends ManagedServiceSettings {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.NOTIFICATION_ACCESS;
|
||||
}
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ public class NotificationStation extends SettingsPreferenceFragment {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.NOTIFICATION_STATION;
|
||||
}
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ public class OtherSoundSettings extends SettingsPreferenceFragment implements In
|
||||
private Context mContext;
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.NOTIFICATION_OTHER_SOUND;
|
||||
}
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ public class RedactionInterstitial extends SettingsActivity {
|
||||
private int mUserId;
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.NOTIFICATION_REDACTION;
|
||||
}
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ public class SoundSettings extends SettingsPreferenceFragment implements Indexab
|
||||
private RingtonePreference mRequestPreference;
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.SOUND;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ public class ZenAccessSettings extends EmptyTextSettings {
|
||||
private NotificationManager mNoMan;
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.NOTIFICATION_ZEN_MODE_ACCESS;
|
||||
}
|
||||
|
||||
|
||||
@@ -182,7 +182,7 @@ public class ZenModeAutomationSettings extends ZenModeSettingsBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.NOTIFICATION_ZEN_MODE_AUTOMATION;
|
||||
}
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ public class ZenModeEventRuleSettings extends ZenModeRuleSettingsBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.NOTIFICATION_ZEN_MODE_EVENT_RULE;
|
||||
}
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@ public class ZenModePrioritySettings extends ZenModeSettingsBase implements Inde
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.NOTIFICATION_ZEN_MODE_PRIORITY;
|
||||
}
|
||||
|
||||
|
||||
@@ -199,7 +199,7 @@ public class ZenModeScheduleRuleSettings extends ZenModeRuleSettingsBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.NOTIFICATION_ZEN_MODE_SCHEDULE_RULE;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ public class ZenModeSettings extends ZenModeSettingsBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.NOTIFICATION_ZEN_MODE;
|
||||
}
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ public class ZenModeVisualInterruptionSettings extends ZenModeSettingsBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.NOTIFICATION_ZEN_MODE_VISUAL_INTERRUPTIONS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user