Log screen lock settings using its own constant
Bug: 32953042 Test: manual Change-Id: Ic72a2b0e7d2a176e03f5e1f39e09b09430268e64
This commit is contained in:
@@ -46,7 +46,7 @@ public class ScreenLockSettings extends DashboardFragment
|
||||
|
||||
@Override
|
||||
public int getMetricsCategory() {
|
||||
return MetricsProto.MetricsEvent.SECURITY;
|
||||
return MetricsProto.MetricsEvent.SCREEN_LOCK_SETTINGS;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -48,7 +48,8 @@ public class ScreenLockSettingsTest {
|
||||
|
||||
@Test
|
||||
public void verifyConstants() {
|
||||
assertThat(mSettings.getMetricsCategory()).isEqualTo(MetricsProto.MetricsEvent.SECURITY);
|
||||
assertThat(mSettings.getMetricsCategory())
|
||||
.isEqualTo(MetricsProto.MetricsEvent.SCREEN_LOCK_SETTINGS);
|
||||
assertThat(mSettings.getPreferenceScreenResId()).isEqualTo(R.xml.screen_lock_settings);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user