Deprecate WifiTracker/AccessPoint

Mark WifiTracker/AccessPoint as deprecated and include links to the
successor classes in WifiTrackerLib.

Bug: 153653213
Test: build
Change-Id: I91a40a984b6de32b711dc963186ac5358e053542
This commit is contained in:
Quang Luong
2020-05-15 17:32:09 -07:00
parent bff3812e82
commit 2f22caca40
2 changed files with 18 additions and 0 deletions

View File

@@ -83,7 +83,16 @@ import java.util.concurrent.atomic.AtomicInteger;
* <p>An AccessPoint, which would be more fittingly named "WifiNetwork", is an aggregation of
* {@link ScanResult ScanResults} along with pertinent metadata (e.g. current connection info,
* network scores) required to successfully render the network to the user.
*
* @deprecated WifiTracker/AccessPoint is no longer supported, and will be removed in a future
* release. Clients that need a dynamic list of available wifi networks should migrate to one of the
* newer tracker classes,
* {@link com.android.wifitrackerlib.WifiPickerTracker},
* {@link com.android.wifitrackerlib.SavedNetworkTracker},
* {@link com.android.wifitrackerlib.NetworkDetailsTracker},
* in conjunction with {@link com.android.wifitrackerlib.WifiEntry} to represent each wifi network.
*/
@Deprecated
public class AccessPoint implements Comparable<AccessPoint> {
static final String TAG = "SettingsLib.AccessPoint";

View File

@@ -77,7 +77,16 @@ import java.util.stream.Collectors;
/**
* Tracks saved or available wifi networks and their state.
*
* @deprecated WifiTracker/AccessPoint is no longer supported, and will be removed in a future
* release. Clients that need a dynamic list of available wifi networks should migrate to one of the
* newer tracker classes,
* {@link com.android.wifitrackerlib.WifiPickerTracker},
* {@link com.android.wifitrackerlib.SavedNetworkTracker},
* {@link com.android.wifitrackerlib.NetworkDetailsTracker},
* in conjunction with {@link com.android.wifitrackerlib.WifiEntry} to represent each wifi network.
*/
@Deprecated
public class WifiTracker implements LifecycleObserver, OnStart, OnStop, OnDestroy {
/**
* Default maximum age in millis of cached scored networks in