Merge "Deprecated Wifi panel and relevant objects" into main

This commit is contained in:
Mill Chen
2024-05-08 01:28:15 +00:00
committed by Android (Google) Code Review
8 changed files with 18 additions and 0 deletions

View File

@@ -32,7 +32,10 @@ import java.util.List;
/** /**
* Panel data class for Wifi settings. * 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 { public class WifiPanel implements PanelContent {
private final Context mContext; private final Context mContext;

View File

@@ -32,7 +32,10 @@ import com.android.wifitrackerlib.WifiEntry.ConnectCallback;
/** /**
* This receiver helps connect to Wi-Fi network * 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 { public class ConnectToWifiHandler extends BroadcastReceiver {
static final String KEY_CHOSEN_WIFIENTRY_KEY = "key_chosen_wifientry_key"; static final String KEY_CHOSEN_WIFIENTRY_KEY = "key_chosen_wifientry_key";

View File

@@ -39,7 +39,10 @@ import java.util.List;
/** /**
* {@link SliceBackgroundWorker} for Wi-Fi, used by {@link WifiSlice}. * {@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 public class WifiScanWorker extends SliceBackgroundWorker<WifiSliceItem> implements
WifiPickerTracker.WifiPickerTrackerCallback, LifecycleOwner, WifiEntryCallback { WifiPickerTracker.WifiPickerTrackerCallback, LifecycleOwner, WifiEntryCallback {

View File

@@ -70,7 +70,10 @@ import java.util.stream.Collectors;
/** /**
* {@link CustomSliceable} for Wi-Fi, used by generic clients. * {@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 { public class WifiSlice implements CustomSliceable {
@VisibleForTesting @VisibleForTesting

View File

@@ -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} * 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. * 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 { public class WifiSliceItem {
private final Context mContext; private final Context mContext;

View File

@@ -48,6 +48,7 @@ import org.robolectric.RobolectricTestRunner;
import java.util.Arrays; import java.util.Arrays;
@Deprecated(forRemoval = true)
@RunWith(RobolectricTestRunner.class) @RunWith(RobolectricTestRunner.class)
public class WifiScanWorkerTest { public class WifiScanWorkerTest {

View File

@@ -72,6 +72,7 @@ import org.robolectric.shadows.ShadowBinder;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@Deprecated(forRemoval = true)
@RunWith(RobolectricTestRunner.class) @RunWith(RobolectricTestRunner.class)
@Config(shadows = { @Config(shadows = {
WifiSliceTest.ShadowSliceBackgroundWorker.class, WifiSliceTest.ShadowSliceBackgroundWorker.class,

View File

@@ -31,6 +31,7 @@ import org.junit.runner.RunWith;
import java.util.List; import java.util.List;
@Deprecated(forRemoval = true)
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
public class WifiPanelTest { public class WifiPanelTest {