Add documentation am: d89e56da6b
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1727816 Change-Id: I1d71d2116bc800d9bfd8fb53cd70c3cbc8c1a0ed
This commit is contained in:
@@ -167,7 +167,15 @@ public class NetworkProvider {
|
||||
ConnectivityManager.from(mContext).declareNetworkRequestUnfulfillable(request);
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
/**
|
||||
* A callback for parties registering a NetworkOffer.
|
||||
*
|
||||
* This is used with {@link ConnectivityManager#offerNetwork}. When offering a network,
|
||||
* the system will use this callback to inform the caller that a network corresponding to
|
||||
* this offer is needed or unneeded.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public interface NetworkOfferCallback {
|
||||
/**
|
||||
|
||||
@@ -48,7 +48,14 @@ public final class NetworkScore implements Parcelable {
|
||||
})
|
||||
public @interface KeepConnectedReason { }
|
||||
|
||||
/**
|
||||
* Do not keep this network connected if there is no outstanding request for it.
|
||||
*/
|
||||
public static final int KEEP_CONNECTED_NONE = 0;
|
||||
/**
|
||||
* Keep this network connected even if there is no outstanding request for it, because it
|
||||
* is being considered for handover.
|
||||
*/
|
||||
public static final int KEEP_CONNECTED_FOR_HANDOVER = 1;
|
||||
|
||||
// Agent-managed policies
|
||||
|
||||
Reference in New Issue
Block a user