Loading tests/robotests/src/com/android/settings/notification/AllowSoundPreferenceControllerTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ public class AllowSoundPreferenceControllerTest { } @Test public void testUpdateState_notConfigurable() { public void testUpdateState_notBlockable() { String lockedId = "locked"; NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); appRow.lockedChannelId = lockedId; Loading @@ -150,7 +150,7 @@ public class AllowSoundPreferenceControllerTest { Preference pref = new RestrictedSwitchPreference(mContext); mController.updateState(pref); assertFalse(pref.isEnabled()); assertTrue(pref.isEnabled()); } @Test Loading tests/robotests/src/com/android/settings/notification/BadgePreferenceControllerTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -187,7 +187,7 @@ public class BadgePreferenceControllerTest { } @Test public void testUpdateState_channelNotConfigurable() { public void testUpdateState_channelNotBlockable() { String lockedId = "locked"; NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); appRow.lockedChannelId = lockedId; Loading @@ -198,7 +198,7 @@ public class BadgePreferenceControllerTest { Preference pref = new RestrictedSwitchPreference(mContext); mController.updateState(pref); assertFalse(pref.isEnabled()); assertTrue(pref.isEnabled()); } @Test Loading tests/robotests/src/com/android/settings/notification/BubblePreferenceControllerTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -202,7 +202,7 @@ public class BubblePreferenceControllerTest { } @Test public void testUpdateState_channelNotConfigurable() { public void testUpdateState_channelNotBlockable() { String lockedId = "locked"; NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); appRow.lockedChannelId = lockedId; Loading @@ -213,7 +213,7 @@ public class BubblePreferenceControllerTest { Preference pref = new RestrictedSwitchPreference(mContext); mController.updateState(pref); assertFalse(pref.isEnabled()); assertTrue(pref.isEnabled()); } @Test Loading tests/robotests/src/com/android/settings/notification/DndPreferenceControllerTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -110,7 +110,7 @@ public class DndPreferenceControllerTest { } @Test public void testUpdateState_notConfigurable() { public void testUpdateState_notBlockable() { String lockedId = "locked"; NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); appRow.lockedChannelId = lockedId; Loading @@ -121,7 +121,7 @@ public class DndPreferenceControllerTest { Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); mController.updateState(pref); assertFalse(pref.isEnabled()); assertTrue(pref.isEnabled()); } @Test Loading tests/robotests/src/com/android/settings/notification/LightsPreferenceControllerTest.java +1 −14 Original line number Diff line number Diff line Loading @@ -158,7 +158,7 @@ public class LightsPreferenceControllerTest { } @Test public void testUpdateState_notConfigurable() { public void testUpdateState_notBlockable() { String lockedId = "locked"; NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); appRow.lockedChannelId = lockedId; Loading @@ -169,19 +169,6 @@ public class LightsPreferenceControllerTest { Preference pref = new RestrictedSwitchPreference(mContext); mController.updateState(pref); assertFalse(pref.isEnabled()); } @Test public void testUpdateState_configurable() { NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); NotificationChannel channel = mock(NotificationChannel.class); when(channel.getId()).thenReturn("something"); mController.onResume(appRow, channel, null, null); Preference pref = new RestrictedSwitchPreference(mContext); mController.updateState(pref); assertTrue(pref.isEnabled()); } Loading Loading
tests/robotests/src/com/android/settings/notification/AllowSoundPreferenceControllerTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ public class AllowSoundPreferenceControllerTest { } @Test public void testUpdateState_notConfigurable() { public void testUpdateState_notBlockable() { String lockedId = "locked"; NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); appRow.lockedChannelId = lockedId; Loading @@ -150,7 +150,7 @@ public class AllowSoundPreferenceControllerTest { Preference pref = new RestrictedSwitchPreference(mContext); mController.updateState(pref); assertFalse(pref.isEnabled()); assertTrue(pref.isEnabled()); } @Test Loading
tests/robotests/src/com/android/settings/notification/BadgePreferenceControllerTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -187,7 +187,7 @@ public class BadgePreferenceControllerTest { } @Test public void testUpdateState_channelNotConfigurable() { public void testUpdateState_channelNotBlockable() { String lockedId = "locked"; NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); appRow.lockedChannelId = lockedId; Loading @@ -198,7 +198,7 @@ public class BadgePreferenceControllerTest { Preference pref = new RestrictedSwitchPreference(mContext); mController.updateState(pref); assertFalse(pref.isEnabled()); assertTrue(pref.isEnabled()); } @Test Loading
tests/robotests/src/com/android/settings/notification/BubblePreferenceControllerTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -202,7 +202,7 @@ public class BubblePreferenceControllerTest { } @Test public void testUpdateState_channelNotConfigurable() { public void testUpdateState_channelNotBlockable() { String lockedId = "locked"; NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); appRow.lockedChannelId = lockedId; Loading @@ -213,7 +213,7 @@ public class BubblePreferenceControllerTest { Preference pref = new RestrictedSwitchPreference(mContext); mController.updateState(pref); assertFalse(pref.isEnabled()); assertTrue(pref.isEnabled()); } @Test Loading
tests/robotests/src/com/android/settings/notification/DndPreferenceControllerTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -110,7 +110,7 @@ public class DndPreferenceControllerTest { } @Test public void testUpdateState_notConfigurable() { public void testUpdateState_notBlockable() { String lockedId = "locked"; NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); appRow.lockedChannelId = lockedId; Loading @@ -121,7 +121,7 @@ public class DndPreferenceControllerTest { Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); mController.updateState(pref); assertFalse(pref.isEnabled()); assertTrue(pref.isEnabled()); } @Test Loading
tests/robotests/src/com/android/settings/notification/LightsPreferenceControllerTest.java +1 −14 Original line number Diff line number Diff line Loading @@ -158,7 +158,7 @@ public class LightsPreferenceControllerTest { } @Test public void testUpdateState_notConfigurable() { public void testUpdateState_notBlockable() { String lockedId = "locked"; NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); appRow.lockedChannelId = lockedId; Loading @@ -169,19 +169,6 @@ public class LightsPreferenceControllerTest { Preference pref = new RestrictedSwitchPreference(mContext); mController.updateState(pref); assertFalse(pref.isEnabled()); } @Test public void testUpdateState_configurable() { NotificationBackend.AppRow appRow = new NotificationBackend.AppRow(); NotificationChannel channel = mock(NotificationChannel.class); when(channel.getId()).thenReturn("something"); mController.onResume(appRow, channel, null, null); Preference pref = new RestrictedSwitchPreference(mContext); mController.updateState(pref); assertTrue(pref.isEnabled()); } Loading