Merge "Rename class"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b07227d01e
@@ -34,10 +34,10 @@ public class AllowSoundPreferenceController extends NotificationPreferenceContro
|
|||||||
|
|
||||||
private static final String TAG = "AllowSoundPrefContr";
|
private static final String TAG = "AllowSoundPrefContr";
|
||||||
private static final String KEY_IMPORTANCE = "allow_sound";
|
private static final String KEY_IMPORTANCE = "allow_sound";
|
||||||
private NotificationSettingsBase.ImportanceListener mImportanceListener;
|
private NotificationSettings.ImportanceListener mImportanceListener;
|
||||||
|
|
||||||
public AllowSoundPreferenceController(Context context,
|
public AllowSoundPreferenceController(Context context,
|
||||||
NotificationSettingsBase.ImportanceListener importanceListener,
|
NotificationSettings.ImportanceListener importanceListener,
|
||||||
NotificationBackend backend) {
|
NotificationBackend backend) {
|
||||||
super(context, backend);
|
super(context, backend);
|
||||||
mImportanceListener = importanceListener;
|
mImportanceListener = importanceListener;
|
||||||
|
@@ -30,7 +30,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@SearchIndexable
|
@SearchIndexable
|
||||||
public class AppBubbleNotificationSettings extends NotificationSettingsBase implements
|
public class AppBubbleNotificationSettings extends NotificationSettings implements
|
||||||
GlobalBubblePermissionObserverMixin.Listener {
|
GlobalBubblePermissionObserverMixin.Listener {
|
||||||
private static final String TAG = "AppBubNotiSettings";
|
private static final String TAG = "AppBubNotiSettings";
|
||||||
private GlobalBubblePermissionObserverMixin mObserverMixin;
|
private GlobalBubblePermissionObserverMixin mObserverMixin;
|
||||||
|
@@ -34,7 +34,7 @@ import androidx.preference.PreferenceGroup;
|
|||||||
import androidx.preference.PreferenceScreen;
|
import androidx.preference.PreferenceScreen;
|
||||||
|
|
||||||
/** These settings are per app, so should not be returned in global search results. */
|
/** These settings are per app, so should not be returned in global search results. */
|
||||||
public class AppNotificationSettings extends NotificationSettingsBase {
|
public class AppNotificationSettings extends NotificationSettings {
|
||||||
private static final String TAG = "AppNotificationSettings";
|
private static final String TAG = "AppNotificationSettings";
|
||||||
private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);
|
private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);
|
||||||
|
|
||||||
|
@@ -35,10 +35,10 @@ public class BlockPreferenceController extends NotificationPreferenceController
|
|||||||
implements PreferenceControllerMixin, SwitchBar.OnSwitchChangeListener {
|
implements PreferenceControllerMixin, SwitchBar.OnSwitchChangeListener {
|
||||||
|
|
||||||
private static final String KEY_BLOCK = "block";
|
private static final String KEY_BLOCK = "block";
|
||||||
private NotificationSettingsBase.ImportanceListener mImportanceListener;
|
private NotificationSettings.ImportanceListener mImportanceListener;
|
||||||
|
|
||||||
public BlockPreferenceController(Context context,
|
public BlockPreferenceController(Context context,
|
||||||
NotificationSettingsBase.ImportanceListener importanceListener,
|
NotificationSettings.ImportanceListener importanceListener,
|
||||||
NotificationBackend backend) {
|
NotificationBackend backend) {
|
||||||
super(context, backend);
|
super(context, backend);
|
||||||
mImportanceListener = importanceListener;
|
mImportanceListener = importanceListener;
|
||||||
|
@@ -35,7 +35,7 @@ import com.android.settingslib.core.AbstractPreferenceController;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class ChannelNotificationSettings extends NotificationSettingsBase {
|
public class ChannelNotificationSettings extends NotificationSettings {
|
||||||
private static final String TAG = "ChannelSettings";
|
private static final String TAG = "ChannelSettings";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -31,10 +31,10 @@ public class HighImportancePreferenceController extends NotificationPreferenceCo
|
|||||||
implements PreferenceControllerMixin, Preference.OnPreferenceChangeListener {
|
implements PreferenceControllerMixin, Preference.OnPreferenceChangeListener {
|
||||||
|
|
||||||
private static final String KEY_IMPORTANCE = "high_importance";
|
private static final String KEY_IMPORTANCE = "high_importance";
|
||||||
private NotificationSettingsBase.ImportanceListener mImportanceListener;
|
private NotificationSettings.ImportanceListener mImportanceListener;
|
||||||
|
|
||||||
public HighImportancePreferenceController(Context context,
|
public HighImportancePreferenceController(Context context,
|
||||||
NotificationSettingsBase.ImportanceListener importanceListener,
|
NotificationSettings.ImportanceListener importanceListener,
|
||||||
NotificationBackend backend) {
|
NotificationBackend backend) {
|
||||||
super(context, backend);
|
super(context, backend);
|
||||||
mImportanceListener = importanceListener;
|
mImportanceListener = importanceListener;
|
||||||
|
@@ -32,10 +32,10 @@ public class ImportancePreferenceController extends NotificationPreferenceContro
|
|||||||
implements PreferenceControllerMixin, Preference.OnPreferenceChangeListener {
|
implements PreferenceControllerMixin, Preference.OnPreferenceChangeListener {
|
||||||
|
|
||||||
private static final String KEY_IMPORTANCE = "importance";
|
private static final String KEY_IMPORTANCE = "importance";
|
||||||
private NotificationSettingsBase.ImportanceListener mImportanceListener;
|
private NotificationSettings.ImportanceListener mImportanceListener;
|
||||||
|
|
||||||
public ImportancePreferenceController(Context context,
|
public ImportancePreferenceController(Context context,
|
||||||
NotificationSettingsBase.ImportanceListener importanceListener,
|
NotificationSettings.ImportanceListener importanceListener,
|
||||||
NotificationBackend backend) {
|
NotificationBackend backend) {
|
||||||
super(context, backend);
|
super(context, backend);
|
||||||
mImportanceListener = importanceListener;
|
mImportanceListener = importanceListener;
|
||||||
|
@@ -31,10 +31,10 @@ public class MinImportancePreferenceController extends NotificationPreferenceCon
|
|||||||
implements PreferenceControllerMixin, Preference.OnPreferenceChangeListener {
|
implements PreferenceControllerMixin, Preference.OnPreferenceChangeListener {
|
||||||
|
|
||||||
private static final String KEY_IMPORTANCE = "min_importance";
|
private static final String KEY_IMPORTANCE = "min_importance";
|
||||||
private NotificationSettingsBase.ImportanceListener mImportanceListener;
|
private NotificationSettings.ImportanceListener mImportanceListener;
|
||||||
|
|
||||||
public MinImportancePreferenceController(Context context,
|
public MinImportancePreferenceController(Context context,
|
||||||
NotificationSettingsBase.ImportanceListener importanceListener,
|
NotificationSettings.ImportanceListener importanceListener,
|
||||||
NotificationBackend backend) {
|
NotificationBackend backend) {
|
||||||
super(context, backend);
|
super(context, backend);
|
||||||
mImportanceListener = importanceListener;
|
mImportanceListener = importanceListener;
|
||||||
|
@@ -64,7 +64,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
abstract public class NotificationSettingsBase extends DashboardFragment {
|
abstract public class NotificationSettings extends DashboardFragment {
|
||||||
private static final String TAG = "NotifiSettingsBase";
|
private static final String TAG = "NotifiSettingsBase";
|
||||||
private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);
|
private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);
|
||||||
|
|
@@ -39,12 +39,12 @@ public class SoundPreferenceController extends NotificationPreferenceController
|
|||||||
|
|
||||||
private static final String KEY_SOUND = "ringtone";
|
private static final String KEY_SOUND = "ringtone";
|
||||||
private final SettingsPreferenceFragment mFragment;
|
private final SettingsPreferenceFragment mFragment;
|
||||||
private final NotificationSettingsBase.ImportanceListener mListener;
|
private final NotificationSettings.ImportanceListener mListener;
|
||||||
private NotificationSoundPreference mPreference;
|
private NotificationSoundPreference mPreference;
|
||||||
protected static final int CODE = 200;
|
protected static final int CODE = 200;
|
||||||
|
|
||||||
public SoundPreferenceController(Context context, SettingsPreferenceFragment hostFragment,
|
public SoundPreferenceController(Context context, SettingsPreferenceFragment hostFragment,
|
||||||
NotificationSettingsBase.ImportanceListener importanceListener,
|
NotificationSettings.ImportanceListener importanceListener,
|
||||||
NotificationBackend backend) {
|
NotificationBackend backend) {
|
||||||
super(context, backend);
|
super(context, backend);
|
||||||
mFragment = hostFragment;
|
mFragment = hostFragment;
|
||||||
|
@@ -67,7 +67,7 @@ public class AllowSoundPreferenceControllerTest {
|
|||||||
private PreferenceScreen mScreen;
|
private PreferenceScreen mScreen;
|
||||||
|
|
||||||
@Mock
|
@Mock
|
||||||
private NotificationSettingsBase.ImportanceListener mImportanceListener;
|
private NotificationSettings.ImportanceListener mImportanceListener;
|
||||||
|
|
||||||
private AllowSoundPreferenceController mController;
|
private AllowSoundPreferenceController mController;
|
||||||
|
|
||||||
|
@@ -68,7 +68,7 @@ public class BlockPreferenceControllerTest {
|
|||||||
private UserManager mUm;
|
private UserManager mUm;
|
||||||
|
|
||||||
@Mock
|
@Mock
|
||||||
private NotificationSettingsBase.ImportanceListener mImportanceListener;
|
private NotificationSettings.ImportanceListener mImportanceListener;
|
||||||
|
|
||||||
private BlockPreferenceController mController;
|
private BlockPreferenceController mController;
|
||||||
@Mock
|
@Mock
|
||||||
|
@@ -60,7 +60,7 @@ public class HighImportancePreferenceControllerTest {
|
|||||||
@Mock
|
@Mock
|
||||||
private NotificationBackend mBackend;
|
private NotificationBackend mBackend;
|
||||||
@Mock
|
@Mock
|
||||||
private NotificationSettingsBase.ImportanceListener mImportanceListener;
|
private NotificationSettings.ImportanceListener mImportanceListener;
|
||||||
@Mock
|
@Mock
|
||||||
private UserManager mUm;
|
private UserManager mUm;
|
||||||
@Mock(answer = Answers.RETURNS_DEEP_STUBS)
|
@Mock(answer = Answers.RETURNS_DEEP_STUBS)
|
||||||
|
@@ -66,7 +66,7 @@ public class ImportancePreferenceControllerTest {
|
|||||||
@Mock
|
@Mock
|
||||||
private NotificationBackend mBackend;
|
private NotificationBackend mBackend;
|
||||||
@Mock
|
@Mock
|
||||||
private NotificationSettingsBase.ImportanceListener mImportanceListener;
|
private NotificationSettings.ImportanceListener mImportanceListener;
|
||||||
@Mock
|
@Mock
|
||||||
private UserManager mUm;
|
private UserManager mUm;
|
||||||
@Mock(answer = Answers.RETURNS_DEEP_STUBS)
|
@Mock(answer = Answers.RETURNS_DEEP_STUBS)
|
||||||
|
@@ -60,7 +60,7 @@ public class MinImportancePreferenceControllerTest {
|
|||||||
@Mock
|
@Mock
|
||||||
private NotificationBackend mBackend;
|
private NotificationBackend mBackend;
|
||||||
@Mock
|
@Mock
|
||||||
private NotificationSettingsBase.ImportanceListener mImportanceListener;
|
private NotificationSettings.ImportanceListener mImportanceListener;
|
||||||
@Mock
|
@Mock
|
||||||
private UserManager mUm;
|
private UserManager mUm;
|
||||||
@Mock(answer = Answers.RETURNS_DEEP_STUBS)
|
@Mock(answer = Answers.RETURNS_DEEP_STUBS)
|
||||||
|
@@ -79,7 +79,7 @@ public class SoundPreferenceControllerTest {
|
|||||||
@Mock
|
@Mock
|
||||||
private SettingsPreferenceFragment mFragment;
|
private SettingsPreferenceFragment mFragment;
|
||||||
@Mock
|
@Mock
|
||||||
private NotificationSettingsBase.ImportanceListener mImportanceListener;
|
private NotificationSettings.ImportanceListener mImportanceListener;
|
||||||
|
|
||||||
private SoundPreferenceController mController;
|
private SoundPreferenceController mController;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user