Merge "[Settings] Code refactor - remove unused import lines" am: d248042a02
am: c27980c1a9
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1639941 Change-Id: I8efdc871c29a6c56aacf7a1b553a20c9cafc765d
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
package com.android.settings.network;
|
||||
|
||||
import android.content.Context;
|
||||
import android.telephony.PhoneStateListener;
|
||||
import android.telephony.TelephonyCallback;
|
||||
import android.telephony.TelephonyManager;
|
||||
import android.util.Log;
|
||||
@@ -27,7 +26,6 @@ import androidx.annotation.VisibleForTesting;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
|
||||
/**
|
||||
* {@link TelephonyCallback} to listen to Allowed Network Types changed
|
||||
*/
|
||||
@@ -50,7 +48,7 @@ public class AllowedNetworkTypesListener extends TelephonyCallback implements
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a PhoneStateListener for Allowed Network Types changed.
|
||||
* Register a TelephonyCallback for Allowed Network Types changed.
|
||||
* @param context the Context
|
||||
* @param subId the subscription id.
|
||||
*/
|
||||
@@ -61,7 +59,7 @@ public class AllowedNetworkTypesListener extends TelephonyCallback implements
|
||||
}
|
||||
|
||||
/**
|
||||
* Unregister a PhoneStateListener for Allowed Network Types changed.
|
||||
* Unregister a TelephonyCallback for Allowed Network Types changed.
|
||||
* @param context the Context
|
||||
* @param subId the subscription id.
|
||||
*/
|
||||
|
@@ -26,6 +26,12 @@ import android.telephony.SubscriptionInfo;
|
||||
import android.telephony.SubscriptionManager;
|
||||
import android.util.ArrayMap;
|
||||
|
||||
import androidx.lifecycle.Lifecycle;
|
||||
import androidx.lifecycle.LifecycleObserver;
|
||||
import androidx.lifecycle.OnLifecycleEvent;
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
|
||||
import com.android.internal.annotations.VisibleForTesting;
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.network.telephony.MobileNetworkActivity;
|
||||
@@ -35,12 +41,6 @@ import com.android.settingslib.core.AbstractPreferenceController;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import androidx.lifecycle.Lifecycle;
|
||||
import androidx.lifecycle.LifecycleObserver;
|
||||
import androidx.lifecycle.OnLifecycleEvent;
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
|
||||
/**
|
||||
* This populates the entries on a page which lists all available mobile subscriptions. Each entry
|
||||
* has the name of the subscription with some subtext giving additional detail, and clicking on the
|
||||
|
@@ -47,7 +47,6 @@ import com.android.settingslib.core.lifecycle.events.OnSaveInstanceState;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public class MobilePlanPreferenceController extends AbstractPreferenceController
|
||||
implements PreferenceControllerMixin, LifecycleObserver, OnCreate, OnSaveInstanceState {
|
||||
|
||||
|
@@ -23,7 +23,6 @@ import androidx.preference.Preference;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.core.BasePreferenceController;
|
||||
import com.android.settingslib.core.AbstractPreferenceController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
@@ -47,7 +47,6 @@ import com.android.settingslib.utils.ThreadUtils;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public class VpnPreferenceController extends AbstractPreferenceController
|
||||
implements PreferenceControllerMixin, LifecycleObserver, OnResume, OnPause {
|
||||
|
||||
|
@@ -19,7 +19,6 @@ package com.android.settings.network.ims;
|
||||
import android.telephony.ims.ImsMmTelManager;
|
||||
import android.util.Log;
|
||||
|
||||
|
||||
/**
|
||||
* An {@link ImsQuery} for accessing IMS user setting for enhanced 4G LTE
|
||||
*/
|
||||
|
@@ -21,7 +21,6 @@ import android.telephony.ims.feature.MmTelFeature;
|
||||
import android.telephony.ims.stub.ImsRegistrationImplBase;
|
||||
import android.util.Log;
|
||||
|
||||
|
||||
/**
|
||||
* An {@link ImsQuery} for accessing IMS provision stat
|
||||
*/
|
||||
|
@@ -19,7 +19,6 @@ package com.android.settings.network.ims;
|
||||
import android.telephony.ims.ImsMmTelManager;
|
||||
import android.util.Log;
|
||||
|
||||
|
||||
/**
|
||||
* An {@link ImsQuery} for accessing IMS tty on VoLte stat
|
||||
*/
|
||||
|
@@ -19,7 +19,6 @@ package com.android.settings.network.ims;
|
||||
import android.telephony.ims.ImsMmTelManager;
|
||||
import android.util.Log;
|
||||
|
||||
|
||||
/**
|
||||
* An {@link ImsQuery} for accessing IMS VT enabled settings from user
|
||||
*/
|
||||
|
@@ -19,7 +19,6 @@ package com.android.settings.network.ims;
|
||||
import android.telephony.ims.ImsMmTelManager;
|
||||
import android.util.Log;
|
||||
|
||||
|
||||
/**
|
||||
* An {@link ImsQuery} for accessing IMS WFC enabled settings from user
|
||||
*/
|
||||
|
@@ -22,11 +22,9 @@ import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.os.Bundle;
|
||||
import android.telephony.ims.ImsManager;
|
||||
import android.telephony.ims.ImsRcsManager;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.core.instrumentation.InstrumentedDialogFragment;
|
||||
|
@@ -37,7 +37,6 @@ import androidx.preference.SwitchPreference;
|
||||
|
||||
import com.android.settings.network.SubscriptionUtil;
|
||||
|
||||
|
||||
/**
|
||||
* Controller for the "Contact Discovery" option present in MobileNetworkSettings.
|
||||
*/
|
||||
|
@@ -29,7 +29,6 @@ import androidx.appcompat.app.AlertDialog;
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.core.instrumentation.InstrumentedDialogFragment;
|
||||
|
||||
|
||||
/**
|
||||
* Dialog Fragment to show dialog for "mobile data"
|
||||
*
|
||||
|
@@ -28,7 +28,6 @@ import com.android.settings.core.BasePreferenceController;
|
||||
import com.android.settings.utils.AnnotationSpan;
|
||||
import com.android.settingslib.HelpUtils;
|
||||
|
||||
|
||||
/**
|
||||
* Class to show the footer that can't connect to 5G when device is in DSDS mode.
|
||||
*/
|
||||
|
@@ -20,8 +20,6 @@
|
||||
*/
|
||||
package com.android.settings.network.telephony;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
public interface TelephonyAvailabilityHandler {
|
||||
|
||||
/**
|
||||
|
@@ -41,7 +41,6 @@ import com.android.settings.network.telephony.MobileNetworkUtils;
|
||||
import com.android.settings.network.telephony.NetworkSelectSettings;
|
||||
import com.android.settings.network.telephony.TelephonyBasePreferenceController;
|
||||
|
||||
|
||||
/**
|
||||
* Preference controller for "Open network select"
|
||||
*/
|
||||
|
Reference in New Issue
Block a user