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:
@@ -198,7 +198,7 @@ public class AccessibilitySettings extends SettingsPreferenceFragment implements
|
||||
private DevicePolicyManager mDpm;
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.ACCESSIBILITY;
|
||||
}
|
||||
|
||||
|
@@ -37,8 +37,6 @@ import java.util.List;
|
||||
public class AccessibilitySettingsForSetupWizard extends SettingsPreferenceFragment
|
||||
implements Preference.OnPreferenceChangeListener {
|
||||
|
||||
private static final String TAG = AccessibilitySettingsForSetupWizard.class.getSimpleName();
|
||||
|
||||
// Preferences.
|
||||
private static final String DISPLAY_MAGNIFICATION_PREFERENCE =
|
||||
"screen_magnification_preference";
|
||||
@@ -50,7 +48,7 @@ public class AccessibilitySettingsForSetupWizard extends SettingsPreferenceFragm
|
||||
private Preference mScreenReaderPreference;
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.SUW_ACCESSIBILITY;
|
||||
}
|
||||
|
||||
|
@@ -97,7 +97,7 @@ public class CaptionPropertiesFragment extends SettingsPreferenceFragment
|
||||
private boolean mShowingCustom;
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.ACCESSIBILITY_CAPTION_PROPERTIES;
|
||||
}
|
||||
|
||||
|
@@ -23,7 +23,7 @@ public class FontSizePreferenceFragmentForSetupWizard
|
||||
extends ToggleFontSizePreferenceFragment {
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.SUW_ACCESSIBILITY_FONT_SIZE;
|
||||
}
|
||||
|
||||
|
@@ -78,7 +78,7 @@ public class ToggleAccessibilityServicePreferenceFragment
|
||||
private int mShownDialogId;
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.ACCESSIBILITY_SERVICE;
|
||||
}
|
||||
|
||||
|
@@ -100,7 +100,7 @@ public class ToggleAutoclickPreferenceFragment extends ToggleFeaturePreferenceFr
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.ACCESSIBILITY_TOGGLE_AUTOCLICK;
|
||||
}
|
||||
|
||||
|
@@ -37,7 +37,7 @@ public class ToggleDaltonizerPreferenceFragment extends ToggleFeaturePreferenceF
|
||||
private ListPreference mType;
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.ACCESSIBILITY_TOGGLE_DALTONIZER;
|
||||
}
|
||||
|
||||
|
@@ -73,7 +73,7 @@ public class ToggleFontSizePreferenceFragment extends PreviewSeekBarPreferenceFr
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.ACCESSIBILITY_FONT_SIZE;
|
||||
}
|
||||
|
||||
|
@@ -45,7 +45,7 @@ public class ToggleGlobalGesturePreferenceFragment
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.ACCESSIBILITY_TOGGLE_GLOBAL_GESTURE;
|
||||
}
|
||||
}
|
||||
|
@@ -178,7 +178,7 @@ public class ToggleScreenMagnificationPreferenceFragment extends ToggleFeaturePr
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.ACCESSIBILITY_TOGGLE_SCREEN_MAGNIFICATION;
|
||||
}
|
||||
|
||||
|
@@ -33,7 +33,7 @@ public class ToggleScreenMagnificationPreferenceFragmentForSetupWizard
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.SUW_ACCESSIBILITY_TOGGLE_SCREEN_MAGNIFICATION;
|
||||
}
|
||||
|
||||
|
@@ -33,7 +33,7 @@ public class ToggleScreenReaderPreferenceFragmentForSetupWizard
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.SUW_ACCESSIBILITY_TOGGLE_SCREEN_READER;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user