Merge "Deprecated Wifi panel and relevant objects" into main
This commit is contained in:
@@ -32,7 +32,10 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* Panel data class for Wifi settings.
|
||||
*
|
||||
* @deprecated this is not used after V and will be removed.
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public class WifiPanel implements PanelContent {
|
||||
|
||||
private final Context mContext;
|
||||
|
@@ -32,7 +32,10 @@ import com.android.wifitrackerlib.WifiEntry.ConnectCallback;
|
||||
|
||||
/**
|
||||
* This receiver helps connect to Wi-Fi network
|
||||
*
|
||||
* @deprecated this is not used after V and will be removed.
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public class ConnectToWifiHandler extends BroadcastReceiver {
|
||||
|
||||
static final String KEY_CHOSEN_WIFIENTRY_KEY = "key_chosen_wifientry_key";
|
||||
|
@@ -39,7 +39,10 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* {@link SliceBackgroundWorker} for Wi-Fi, used by {@link WifiSlice}.
|
||||
*
|
||||
* @deprecated this is not used after V and will be removed.
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public class WifiScanWorker extends SliceBackgroundWorker<WifiSliceItem> implements
|
||||
WifiPickerTracker.WifiPickerTrackerCallback, LifecycleOwner, WifiEntryCallback {
|
||||
|
||||
|
@@ -70,7 +70,10 @@ import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* {@link CustomSliceable} for Wi-Fi, used by generic clients.
|
||||
*
|
||||
* @deprecated This is not used after V and will be removed.
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public class WifiSlice implements CustomSliceable {
|
||||
|
||||
@VisibleForTesting
|
||||
|
@@ -26,7 +26,10 @@ import com.android.wifitrackerlib.WifiEntry;
|
||||
/**
|
||||
* The data set which is needed by a Wi-Fi Slice, it collects necessary data from {@link WifiEntry}
|
||||
* and provides similar getter methods for corresponding data.
|
||||
*
|
||||
* @deprecated this is not used after V and will be removed.
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public class WifiSliceItem {
|
||||
|
||||
private final Context mContext;
|
||||
|
@@ -48,6 +48,7 @@ import org.robolectric.RobolectricTestRunner;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@Deprecated(forRemoval = true)
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
public class WifiScanWorkerTest {
|
||||
|
||||
|
@@ -72,6 +72,7 @@ import org.robolectric.shadows.ShadowBinder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Deprecated(forRemoval = true)
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
@Config(shadows = {
|
||||
WifiSliceTest.ShadowSliceBackgroundWorker.class,
|
||||
|
@@ -31,6 +31,7 @@ import org.junit.runner.RunWith;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Deprecated(forRemoval = true)
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class WifiPanelTest {
|
||||
|
||||
|
Reference in New Issue
Block a user