Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -28561,6 +28561,7 @@ package android.net.wifi.rtt { method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.net.wifi.rtt.RangingResult> CREATOR; field public static final int STATUS_FAIL = 1; // 0x1 field public static final int STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC = 2; // 0x2 field public static final int STATUS_SUCCESS = 0; // 0x0 } wifi/java/android/net/wifi/rtt/RangingRequest.java +10 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,11 @@ public final class RangingRequest implements Parcelable { * Add the device specified by the {@link ScanResult} to the list of devices with * which to measure range. The total number of peers added to a request cannot exceed the * limit specified by {@link #getMaxPeers()}. * <p> * Ranging may not be supported if the Access Point does not support IEEE 802.11mc. Use * {@link ScanResult#is80211mcResponder()} to verify the Access Point's capabilities. If * not supported the result status will be * {@link RangingResult#STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC}. * * @param apInfo Information of an Access Point (AP) obtained in a Scan Result. * @return The builder to facilitate chaining Loading @@ -138,6 +143,11 @@ public final class RangingRequest implements Parcelable { * Add the devices specified by the {@link ScanResult}s to the list of devices with * which to measure range. The total number of peers added to a request cannot exceed the * limit specified by {@link #getMaxPeers()}. * <p> * Ranging may not be supported if the Access Point does not support IEEE 802.11mc. Use * {@link ScanResult#is80211mcResponder()} to verify the Access Point's capabilities. If * not supported the result status will be * {@link RangingResult#STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC}. * * @param apInfos Information of an Access Points (APs) obtained in a Scan Result. * @return The builder to facilitate chaining Loading wifi/java/android/net/wifi/rtt/RangingResult.java +1 −3 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ public final class RangingResult implements Parcelable { private static final String TAG = "RangingResult"; /** @hide */ @IntDef({STATUS_SUCCESS, STATUS_FAIL}) @IntDef({STATUS_SUCCESS, STATUS_FAIL, STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC}) @Retention(RetentionPolicy.SOURCE) public @interface RangeResultStatus { } Loading @@ -67,8 +67,6 @@ public final class RangingResult implements Parcelable { * <p> * On such a failure, the individual result fields of {@link RangingResult} such as * {@link RangingResult#getDistanceMm()} are invalid. * * @hide */ public static final int STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC = 2; Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -28561,6 +28561,7 @@ package android.net.wifi.rtt { method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.net.wifi.rtt.RangingResult> CREATOR; field public static final int STATUS_FAIL = 1; // 0x1 field public static final int STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC = 2; // 0x2 field public static final int STATUS_SUCCESS = 0; // 0x0 }
wifi/java/android/net/wifi/rtt/RangingRequest.java +10 −0 Original line number Diff line number Diff line Loading @@ -122,6 +122,11 @@ public final class RangingRequest implements Parcelable { * Add the device specified by the {@link ScanResult} to the list of devices with * which to measure range. The total number of peers added to a request cannot exceed the * limit specified by {@link #getMaxPeers()}. * <p> * Ranging may not be supported if the Access Point does not support IEEE 802.11mc. Use * {@link ScanResult#is80211mcResponder()} to verify the Access Point's capabilities. If * not supported the result status will be * {@link RangingResult#STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC}. * * @param apInfo Information of an Access Point (AP) obtained in a Scan Result. * @return The builder to facilitate chaining Loading @@ -138,6 +143,11 @@ public final class RangingRequest implements Parcelable { * Add the devices specified by the {@link ScanResult}s to the list of devices with * which to measure range. The total number of peers added to a request cannot exceed the * limit specified by {@link #getMaxPeers()}. * <p> * Ranging may not be supported if the Access Point does not support IEEE 802.11mc. Use * {@link ScanResult#is80211mcResponder()} to verify the Access Point's capabilities. If * not supported the result status will be * {@link RangingResult#STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC}. * * @param apInfos Information of an Access Points (APs) obtained in a Scan Result. * @return The builder to facilitate chaining Loading
wifi/java/android/net/wifi/rtt/RangingResult.java +1 −3 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ public final class RangingResult implements Parcelable { private static final String TAG = "RangingResult"; /** @hide */ @IntDef({STATUS_SUCCESS, STATUS_FAIL}) @IntDef({STATUS_SUCCESS, STATUS_FAIL, STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC}) @Retention(RetentionPolicy.SOURCE) public @interface RangeResultStatus { } Loading @@ -67,8 +67,6 @@ public final class RangingResult implements Parcelable { * <p> * On such a failure, the individual result fields of {@link RangingResult} such as * {@link RangingResult#getDistanceMm()} are invalid. * * @hide */ public static final int STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC = 2; Loading