Anton Hansson | dc033c3 | 2020-01-17 19:03:34 +0000 | [diff] [blame] | 1 | // Signature format: 2.0 |
| 2 | package android.net.wifi { |
| 3 | |
| 4 | public abstract class EasyConnectStatusCallback { |
| 5 | ctor public EasyConnectStatusCallback(); |
| 6 | method public abstract void onConfiguratorSuccess(int); |
| 7 | method public abstract void onEnrolleeSuccess(int); |
| 8 | method public void onFailure(int); |
| 9 | method public void onFailure(int, @Nullable String, @NonNull android.util.SparseArray<int[]>, @NonNull int[]); |
| 10 | method public abstract void onProgress(int); |
| 11 | field public static final int EASY_CONNECT_EVENT_PROGRESS_AUTHENTICATION_SUCCESS = 0; // 0x0 |
| 12 | field public static final int EASY_CONNECT_EVENT_PROGRESS_CONFIGURATION_ACCEPTED = 3; // 0x3 |
| 13 | field public static final int EASY_CONNECT_EVENT_PROGRESS_CONFIGURATION_SENT_WAITING_RESPONSE = 2; // 0x2 |
| 14 | field public static final int EASY_CONNECT_EVENT_PROGRESS_RESPONSE_PENDING = 1; // 0x1 |
| 15 | field public static final int EASY_CONNECT_EVENT_SUCCESS_CONFIGURATION_APPLIED = 1; // 0x1 |
| 16 | field public static final int EASY_CONNECT_EVENT_SUCCESS_CONFIGURATION_SENT = 0; // 0x0 |
| 17 | } |
| 18 | |
| 19 | @Deprecated public class RttManager { |
| 20 | method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void disableResponder(android.net.wifi.RttManager.ResponderCallback); |
| 21 | method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void enableResponder(android.net.wifi.RttManager.ResponderCallback); |
| 22 | method @Deprecated public android.net.wifi.RttManager.Capabilities getCapabilities(); |
| 23 | method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public android.net.wifi.RttManager.RttCapabilities getRttCapabilities(); |
| 24 | method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startRanging(android.net.wifi.RttManager.RttParams[], android.net.wifi.RttManager.RttListener); |
| 25 | method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void stopRanging(android.net.wifi.RttManager.RttListener); |
| 26 | field @Deprecated public static final int BASE; |
| 27 | field @Deprecated public static final int CMD_OP_ABORTED; |
| 28 | field @Deprecated public static final int CMD_OP_DISABLE_RESPONDER; |
| 29 | field @Deprecated public static final int CMD_OP_ENABLE_RESPONDER; |
| 30 | field @Deprecated public static final int CMD_OP_ENALBE_RESPONDER_FAILED; |
| 31 | field @Deprecated public static final int CMD_OP_ENALBE_RESPONDER_SUCCEEDED; |
| 32 | field @Deprecated public static final int CMD_OP_FAILED; |
| 33 | field @Deprecated public static final int CMD_OP_START_RANGING; |
| 34 | field @Deprecated public static final int CMD_OP_STOP_RANGING; |
| 35 | field @Deprecated public static final int CMD_OP_SUCCEEDED; |
| 36 | field @Deprecated public static final String DESCRIPTION_KEY = "android.net.wifi.RttManager.Description"; |
| 37 | field @Deprecated public static final int PREAMBLE_HT = 2; // 0x2 |
| 38 | field @Deprecated public static final int PREAMBLE_LEGACY = 1; // 0x1 |
| 39 | field @Deprecated public static final int PREAMBLE_VHT = 4; // 0x4 |
| 40 | field @Deprecated public static final int REASON_INITIATOR_NOT_ALLOWED_WHEN_RESPONDER_ON = -6; // 0xfffffffa |
| 41 | field @Deprecated public static final int REASON_INVALID_LISTENER = -3; // 0xfffffffd |
| 42 | field @Deprecated public static final int REASON_INVALID_REQUEST = -4; // 0xfffffffc |
| 43 | field @Deprecated public static final int REASON_NOT_AVAILABLE = -2; // 0xfffffffe |
| 44 | field @Deprecated public static final int REASON_PERMISSION_DENIED = -5; // 0xfffffffb |
| 45 | field @Deprecated public static final int REASON_UNSPECIFIED = -1; // 0xffffffff |
| 46 | field @Deprecated public static final int RTT_BW_10_SUPPORT = 2; // 0x2 |
| 47 | field @Deprecated public static final int RTT_BW_160_SUPPORT = 32; // 0x20 |
| 48 | field @Deprecated public static final int RTT_BW_20_SUPPORT = 4; // 0x4 |
| 49 | field @Deprecated public static final int RTT_BW_40_SUPPORT = 8; // 0x8 |
| 50 | field @Deprecated public static final int RTT_BW_5_SUPPORT = 1; // 0x1 |
| 51 | field @Deprecated public static final int RTT_BW_80_SUPPORT = 16; // 0x10 |
| 52 | field @Deprecated public static final int RTT_CHANNEL_WIDTH_10 = 6; // 0x6 |
| 53 | field @Deprecated public static final int RTT_CHANNEL_WIDTH_160 = 3; // 0x3 |
| 54 | field @Deprecated public static final int RTT_CHANNEL_WIDTH_20 = 0; // 0x0 |
| 55 | field @Deprecated public static final int RTT_CHANNEL_WIDTH_40 = 1; // 0x1 |
| 56 | field @Deprecated public static final int RTT_CHANNEL_WIDTH_5 = 5; // 0x5 |
| 57 | field @Deprecated public static final int RTT_CHANNEL_WIDTH_80 = 2; // 0x2 |
| 58 | field @Deprecated public static final int RTT_CHANNEL_WIDTH_80P80 = 4; // 0x4 |
| 59 | field @Deprecated public static final int RTT_CHANNEL_WIDTH_UNSPECIFIED = -1; // 0xffffffff |
| 60 | field @Deprecated public static final int RTT_PEER_NAN = 5; // 0x5 |
| 61 | field @Deprecated public static final int RTT_PEER_P2P_CLIENT = 4; // 0x4 |
| 62 | field @Deprecated public static final int RTT_PEER_P2P_GO = 3; // 0x3 |
| 63 | field @Deprecated public static final int RTT_PEER_TYPE_AP = 1; // 0x1 |
| 64 | field @Deprecated public static final int RTT_PEER_TYPE_STA = 2; // 0x2 |
| 65 | field @Deprecated public static final int RTT_PEER_TYPE_UNSPECIFIED = 0; // 0x0 |
| 66 | field @Deprecated public static final int RTT_STATUS_ABORTED = 8; // 0x8 |
| 67 | field @Deprecated public static final int RTT_STATUS_FAILURE = 1; // 0x1 |
| 68 | field @Deprecated public static final int RTT_STATUS_FAIL_AP_ON_DIFF_CHANNEL = 6; // 0x6 |
| 69 | field @Deprecated public static final int RTT_STATUS_FAIL_BUSY_TRY_LATER = 12; // 0xc |
| 70 | field @Deprecated public static final int RTT_STATUS_FAIL_FTM_PARAM_OVERRIDE = 15; // 0xf |
| 71 | field @Deprecated public static final int RTT_STATUS_FAIL_INVALID_TS = 9; // 0x9 |
| 72 | field @Deprecated public static final int RTT_STATUS_FAIL_NOT_SCHEDULED_YET = 4; // 0x4 |
| 73 | field @Deprecated public static final int RTT_STATUS_FAIL_NO_CAPABILITY = 7; // 0x7 |
| 74 | field @Deprecated public static final int RTT_STATUS_FAIL_NO_RSP = 2; // 0x2 |
| 75 | field @Deprecated public static final int RTT_STATUS_FAIL_PROTOCOL = 10; // 0xa |
| 76 | field @Deprecated public static final int RTT_STATUS_FAIL_REJECTED = 3; // 0x3 |
| 77 | field @Deprecated public static final int RTT_STATUS_FAIL_SCHEDULE = 11; // 0xb |
| 78 | field @Deprecated public static final int RTT_STATUS_FAIL_TM_TIMEOUT = 5; // 0x5 |
| 79 | field @Deprecated public static final int RTT_STATUS_INVALID_REQ = 13; // 0xd |
| 80 | field @Deprecated public static final int RTT_STATUS_NO_WIFI = 14; // 0xe |
| 81 | field @Deprecated public static final int RTT_STATUS_SUCCESS = 0; // 0x0 |
| 82 | field @Deprecated public static final int RTT_TYPE_11_MC = 4; // 0x4 |
| 83 | field @Deprecated public static final int RTT_TYPE_11_V = 2; // 0x2 |
| 84 | field @Deprecated public static final int RTT_TYPE_ONE_SIDED = 1; // 0x1 |
| 85 | field @Deprecated public static final int RTT_TYPE_TWO_SIDED = 2; // 0x2 |
| 86 | field @Deprecated public static final int RTT_TYPE_UNSPECIFIED = 0; // 0x0 |
| 87 | } |
| 88 | |
| 89 | @Deprecated public class RttManager.Capabilities { |
| 90 | ctor @Deprecated public RttManager.Capabilities(); |
| 91 | field @Deprecated public int supportedPeerType; |
| 92 | field @Deprecated public int supportedType; |
| 93 | } |
| 94 | |
| 95 | @Deprecated public static class RttManager.ParcelableRttParams implements android.os.Parcelable { |
| 96 | field @Deprecated @NonNull public android.net.wifi.RttManager.RttParams[] mParams; |
| 97 | } |
| 98 | |
| 99 | @Deprecated public static class RttManager.ParcelableRttResults implements android.os.Parcelable { |
| 100 | ctor @Deprecated public RttManager.ParcelableRttResults(android.net.wifi.RttManager.RttResult[]); |
| 101 | field @Deprecated public android.net.wifi.RttManager.RttResult[] mResults; |
| 102 | } |
| 103 | |
| 104 | @Deprecated public abstract static class RttManager.ResponderCallback { |
| 105 | ctor @Deprecated public RttManager.ResponderCallback(); |
| 106 | method @Deprecated public abstract void onResponderEnableFailure(int); |
| 107 | method @Deprecated public abstract void onResponderEnabled(android.net.wifi.RttManager.ResponderConfig); |
| 108 | } |
| 109 | |
| 110 | @Deprecated public static class RttManager.ResponderConfig implements android.os.Parcelable { |
| 111 | ctor @Deprecated public RttManager.ResponderConfig(); |
| 112 | method @Deprecated public int describeContents(); |
| 113 | method @Deprecated public void writeToParcel(android.os.Parcel, int); |
| 114 | field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.RttManager.ResponderConfig> CREATOR; |
| 115 | field @Deprecated public int centerFreq0; |
| 116 | field @Deprecated public int centerFreq1; |
| 117 | field @Deprecated public int channelWidth; |
| 118 | field @Deprecated public int frequency; |
| 119 | field @Deprecated public String macAddress; |
| 120 | field @Deprecated public int preamble; |
| 121 | } |
| 122 | |
| 123 | @Deprecated public static class RttManager.RttCapabilities implements android.os.Parcelable { |
| 124 | ctor @Deprecated public RttManager.RttCapabilities(); |
| 125 | field @Deprecated public int bwSupported; |
| 126 | field @Deprecated public boolean lciSupported; |
| 127 | field @Deprecated public boolean lcrSupported; |
| 128 | field @Deprecated public int mcVersion; |
| 129 | field @Deprecated public boolean oneSidedRttSupported; |
| 130 | field @Deprecated public int preambleSupported; |
| 131 | field @Deprecated public boolean responderSupported; |
| 132 | field @Deprecated public boolean secureRttSupported; |
| 133 | field @Deprecated public boolean supportedPeerType; |
| 134 | field @Deprecated public boolean supportedType; |
| 135 | field @Deprecated public boolean twoSided11McRttSupported; |
| 136 | } |
| 137 | |
| 138 | @Deprecated public static interface RttManager.RttListener { |
| 139 | method @Deprecated public void onAborted(); |
| 140 | method @Deprecated public void onFailure(int, String); |
| 141 | method @Deprecated public void onSuccess(android.net.wifi.RttManager.RttResult[]); |
| 142 | } |
| 143 | |
| 144 | @Deprecated public static class RttManager.RttParams { |
| 145 | ctor @Deprecated public RttManager.RttParams(); |
| 146 | field @Deprecated public boolean LCIRequest; |
| 147 | field @Deprecated public boolean LCRRequest; |
| 148 | field @Deprecated public int bandwidth; |
| 149 | field @Deprecated public String bssid; |
| 150 | field @Deprecated public int burstTimeout; |
| 151 | field @Deprecated public int centerFreq0; |
| 152 | field @Deprecated public int centerFreq1; |
| 153 | field @Deprecated public int channelWidth; |
| 154 | field @Deprecated public int deviceType; |
| 155 | field @Deprecated public int frequency; |
| 156 | field @Deprecated public int interval; |
| 157 | field @Deprecated public int numRetriesPerFTMR; |
| 158 | field @Deprecated public int numRetriesPerMeasurementFrame; |
| 159 | field @Deprecated public int numSamplesPerBurst; |
| 160 | field @Deprecated public int num_retries; |
| 161 | field @Deprecated public int num_samples; |
| 162 | field @Deprecated public int numberBurst; |
| 163 | field @Deprecated public int preamble; |
| 164 | field @Deprecated public int requestType; |
| 165 | field @Deprecated public boolean secure; |
| 166 | } |
| 167 | |
| 168 | @Deprecated public static class RttManager.RttResult { |
| 169 | ctor @Deprecated public RttManager.RttResult(); |
| 170 | field @Deprecated public android.net.wifi.RttManager.WifiInformationElement LCI; |
| 171 | field @Deprecated public android.net.wifi.RttManager.WifiInformationElement LCR; |
| 172 | field @Deprecated public String bssid; |
| 173 | field @Deprecated public int burstDuration; |
| 174 | field @Deprecated public int burstNumber; |
| 175 | field @Deprecated public int distance; |
| 176 | field @Deprecated public int distanceSpread; |
| 177 | field @Deprecated public int distanceStandardDeviation; |
| 178 | field @Deprecated public int distance_cm; |
| 179 | field @Deprecated public int distance_sd_cm; |
| 180 | field @Deprecated public int distance_spread_cm; |
| 181 | field @Deprecated public int frameNumberPerBurstPeer; |
| 182 | field @Deprecated public int measurementFrameNumber; |
| 183 | field @Deprecated public int measurementType; |
| 184 | field @Deprecated public int negotiatedBurstNum; |
| 185 | field @Deprecated public int requestType; |
| 186 | field @Deprecated public int retryAfterDuration; |
| 187 | field @Deprecated public int rssi; |
| 188 | field @Deprecated public int rssiSpread; |
| 189 | field @Deprecated public int rssi_spread; |
| 190 | field @Deprecated public long rtt; |
| 191 | field @Deprecated public long rttSpread; |
| 192 | field @Deprecated public long rttStandardDeviation; |
| 193 | field @Deprecated public long rtt_ns; |
| 194 | field @Deprecated public long rtt_sd_ns; |
| 195 | field @Deprecated public long rtt_spread_ns; |
| 196 | field @Deprecated public int rxRate; |
| 197 | field @Deprecated public boolean secure; |
| 198 | field @Deprecated public int status; |
| 199 | field @Deprecated public int successMeasurementFrameNumber; |
| 200 | field @Deprecated public long ts; |
| 201 | field @Deprecated public int txRate; |
| 202 | field @Deprecated public int tx_rate; |
| 203 | } |
| 204 | |
| 205 | @Deprecated public static class RttManager.WifiInformationElement { |
| 206 | ctor @Deprecated public RttManager.WifiInformationElement(); |
| 207 | field @Deprecated public byte[] data; |
| 208 | field @Deprecated public byte id; |
| 209 | } |
| 210 | |
| 211 | public class ScanResult implements android.os.Parcelable { |
| 212 | field public static final int CIPHER_CCMP = 3; // 0x3 |
| 213 | field public static final int CIPHER_GCMP_256 = 4; // 0x4 |
| 214 | field public static final int CIPHER_NONE = 0; // 0x0 |
| 215 | field public static final int CIPHER_NO_GROUP_ADDRESSED = 1; // 0x1 |
| 216 | field public static final int CIPHER_SMS4 = 5; // 0x5 |
| 217 | field public static final int CIPHER_TKIP = 2; // 0x2 |
| 218 | field public static final int KEY_MGMT_EAP = 2; // 0x2 |
| 219 | field public static final int KEY_MGMT_EAP_SHA256 = 6; // 0x6 |
| 220 | field public static final int KEY_MGMT_EAP_SUITE_B_192 = 10; // 0xa |
| 221 | field public static final int KEY_MGMT_FT_EAP = 4; // 0x4 |
| 222 | field public static final int KEY_MGMT_FT_PSK = 3; // 0x3 |
| 223 | field public static final int KEY_MGMT_FT_SAE = 11; // 0xb |
| 224 | field public static final int KEY_MGMT_NONE = 0; // 0x0 |
| 225 | field public static final int KEY_MGMT_OSEN = 7; // 0x7 |
| 226 | field public static final int KEY_MGMT_OWE = 9; // 0x9 |
| 227 | field public static final int KEY_MGMT_OWE_TRANSITION = 12; // 0xc |
| 228 | field public static final int KEY_MGMT_PSK = 1; // 0x1 |
| 229 | field public static final int KEY_MGMT_PSK_SHA256 = 5; // 0x5 |
| 230 | field public static final int KEY_MGMT_SAE = 8; // 0x8 |
| 231 | field public static final int KEY_MGMT_WAPI_CERT = 14; // 0xe |
| 232 | field public static final int KEY_MGMT_WAPI_PSK = 13; // 0xd |
| 233 | field public static final int PROTOCOL_NONE = 0; // 0x0 |
| 234 | field public static final int PROTOCOL_OSEN = 3; // 0x3 |
| 235 | field public static final int PROTOCOL_RSN = 2; // 0x2 |
| 236 | field public static final int PROTOCOL_WAPI = 4; // 0x4 |
| 237 | field public static final int PROTOCOL_WPA = 1; // 0x1 |
| 238 | } |
| 239 | |
| 240 | public final class SoftApCapability implements android.os.Parcelable { |
| 241 | method public boolean areFeaturesSupported(long); |
| 242 | method public int describeContents(); |
| 243 | method public int getMaxSupportedClients(); |
| 244 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 245 | field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.SoftApCapability> CREATOR; |
| 246 | field public static final long SOFTAP_FEATURE_ACS_OFFLOAD = 1L; // 0x1L |
| 247 | field public static final long SOFTAP_FEATURE_CLIENT_FORCE_DISCONNECT = 2L; // 0x2L |
| 248 | field public static final long SOFTAP_FEATURE_WPA3_SAE = 4L; // 0x4L |
| 249 | } |
| 250 | |
| 251 | public final class SoftApConfiguration implements android.os.Parcelable { |
| 252 | method @NonNull public java.util.List<android.net.MacAddress> getAllowedClientList(); |
| 253 | method public int getBand(); |
| 254 | method @NonNull public java.util.List<android.net.MacAddress> getBlockedClientList(); |
| 255 | method public int getChannel(); |
| 256 | method public int getMaxNumberOfClients(); |
| 257 | method public long getShutdownTimeoutMillis(); |
| 258 | method public boolean isAutoShutdownEnabled(); |
| 259 | method public boolean isClientControlByUserEnabled(); |
| 260 | method @Nullable public android.net.wifi.WifiConfiguration toWifiConfiguration(); |
| 261 | field public static final int BAND_2GHZ = 1; // 0x1 |
| 262 | field public static final int BAND_5GHZ = 2; // 0x2 |
| 263 | field public static final int BAND_6GHZ = 4; // 0x4 |
| 264 | field public static final int BAND_ANY = 7; // 0x7 |
| 265 | } |
| 266 | |
| 267 | public static final class SoftApConfiguration.Builder { |
| 268 | ctor public SoftApConfiguration.Builder(); |
| 269 | ctor public SoftApConfiguration.Builder(@NonNull android.net.wifi.SoftApConfiguration); |
| 270 | method @NonNull public android.net.wifi.SoftApConfiguration build(); |
| 271 | method @NonNull public android.net.wifi.SoftApConfiguration.Builder setAllowedClientList(@NonNull java.util.List<android.net.MacAddress>); |
| 272 | method @NonNull public android.net.wifi.SoftApConfiguration.Builder setAutoShutdownEnabled(boolean); |
| 273 | method @NonNull public android.net.wifi.SoftApConfiguration.Builder setBand(int); |
| 274 | method @NonNull public android.net.wifi.SoftApConfiguration.Builder setBlockedClientList(@NonNull java.util.List<android.net.MacAddress>); |
| 275 | method @NonNull public android.net.wifi.SoftApConfiguration.Builder setBssid(@Nullable android.net.MacAddress); |
| 276 | method @NonNull public android.net.wifi.SoftApConfiguration.Builder setChannel(int, int); |
| 277 | method @NonNull public android.net.wifi.SoftApConfiguration.Builder setClientControlByUserEnabled(boolean); |
| 278 | method @NonNull public android.net.wifi.SoftApConfiguration.Builder setHiddenSsid(boolean); |
| 279 | method @NonNull public android.net.wifi.SoftApConfiguration.Builder setMaxNumberOfClients(@IntRange(from=0) int); |
| 280 | method @NonNull public android.net.wifi.SoftApConfiguration.Builder setPassphrase(@Nullable String, int); |
| 281 | method @NonNull public android.net.wifi.SoftApConfiguration.Builder setShutdownTimeoutMillis(@IntRange(from=0) long); |
| 282 | method @NonNull public android.net.wifi.SoftApConfiguration.Builder setSsid(@Nullable String); |
| 283 | } |
| 284 | |
| 285 | public final class SoftApInfo implements android.os.Parcelable { |
| 286 | method public int describeContents(); |
| 287 | method public int getBandwidth(); |
| 288 | method public int getFrequency(); |
| 289 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 290 | field public static final int CHANNEL_WIDTH_160MHZ = 6; // 0x6 |
| 291 | field public static final int CHANNEL_WIDTH_20MHZ = 2; // 0x2 |
| 292 | field public static final int CHANNEL_WIDTH_20MHZ_NOHT = 1; // 0x1 |
| 293 | field public static final int CHANNEL_WIDTH_40MHZ = 3; // 0x3 |
| 294 | field public static final int CHANNEL_WIDTH_80MHZ = 4; // 0x4 |
| 295 | field public static final int CHANNEL_WIDTH_80MHZ_PLUS_MHZ = 5; // 0x5 |
| 296 | field public static final int CHANNEL_WIDTH_INVALID = 0; // 0x0 |
| 297 | field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.SoftApInfo> CREATOR; |
| 298 | } |
| 299 | |
| 300 | public final class WifiClient implements android.os.Parcelable { |
| 301 | method public int describeContents(); |
| 302 | method @NonNull public android.net.MacAddress getMacAddress(); |
| 303 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 304 | field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.WifiClient> CREATOR; |
| 305 | } |
| 306 | |
| 307 | @Deprecated public class WifiConfiguration implements android.os.Parcelable { |
| 308 | method @Deprecated public int getAuthType(); |
| 309 | method @Deprecated @NonNull public android.net.IpConfiguration getIpConfiguration(); |
| 310 | method @Deprecated @NonNull public android.net.wifi.WifiConfiguration.NetworkSelectionStatus getNetworkSelectionStatus(); |
| 311 | method @Deprecated @NonNull public String getPrintableSsid(); |
| 312 | method @Deprecated public int getRecentFailureReason(); |
| 313 | method @Deprecated public boolean hasNoInternetAccess(); |
| 314 | method @Deprecated public boolean isEphemeral(); |
| 315 | method @Deprecated public static boolean isMetered(@Nullable android.net.wifi.WifiConfiguration, @Nullable android.net.wifi.WifiInfo); |
| 316 | method @Deprecated public boolean isNoInternetAccessExpected(); |
| 317 | method @Deprecated public void setIpConfiguration(@Nullable android.net.IpConfiguration); |
| 318 | method @Deprecated public void setNetworkSelectionStatus(@NonNull android.net.wifi.WifiConfiguration.NetworkSelectionStatus); |
| 319 | field @Deprecated public static final int INVALID_NETWORK_ID = -1; // 0xffffffff |
| 320 | field @Deprecated public static final int METERED_OVERRIDE_METERED = 1; // 0x1 |
| 321 | field @Deprecated public static final int METERED_OVERRIDE_NONE = 0; // 0x0 |
| 322 | field @Deprecated public static final int METERED_OVERRIDE_NOT_METERED = 2; // 0x2 |
| 323 | field @Deprecated public static final int RANDOMIZATION_NONE = 0; // 0x0 |
| 324 | field @Deprecated public static final int RANDOMIZATION_PERSISTENT = 1; // 0x1 |
| 325 | field @Deprecated public static final int RECENT_FAILURE_AP_UNABLE_TO_HANDLE_NEW_STA = 17; // 0x11 |
| 326 | field @Deprecated public static final int RECENT_FAILURE_NONE = 0; // 0x0 |
| 327 | field @Deprecated public boolean allowAutojoin; |
| 328 | field @Deprecated public int carrierId; |
| 329 | field @Deprecated public String creatorName; |
| 330 | field @Deprecated public int creatorUid; |
| 331 | field @Deprecated public boolean fromWifiNetworkSpecifier; |
| 332 | field @Deprecated public boolean fromWifiNetworkSuggestion; |
| 333 | field @Deprecated public String lastUpdateName; |
| 334 | field @Deprecated public int lastUpdateUid; |
| 335 | field @Deprecated public int macRandomizationSetting; |
| 336 | field @Deprecated public boolean meteredHint; |
| 337 | field @Deprecated public int meteredOverride; |
| 338 | field @Deprecated public int numAssociation; |
| 339 | field @Deprecated public int numScorerOverride; |
| 340 | field @Deprecated public int numScorerOverrideAndSwitchedNetwork; |
| 341 | field @Deprecated public boolean requirePmf; |
| 342 | field @Deprecated public boolean shared; |
| 343 | field @Deprecated public boolean useExternalScores; |
| 344 | } |
| 345 | |
| 346 | @Deprecated public static class WifiConfiguration.KeyMgmt { |
| 347 | field @Deprecated public static final int WAPI_CERT = 14; // 0xe |
| 348 | field @Deprecated public static final int WAPI_PSK = 13; // 0xd |
| 349 | field @Deprecated public static final int WPA2_PSK = 4; // 0x4 |
| 350 | } |
| 351 | |
| 352 | @Deprecated public static class WifiConfiguration.NetworkSelectionStatus { |
| 353 | method @Deprecated public int getDisableReasonCounter(int); |
| 354 | method @Deprecated public long getDisableTime(); |
| 355 | method @Deprecated public static int getMaxNetworkSelectionDisableReason(); |
| 356 | method @Deprecated public int getNetworkSelectionDisableReason(); |
| 357 | method @Deprecated @Nullable public static String getNetworkSelectionDisableReasonString(int); |
| 358 | method @Deprecated public int getNetworkSelectionStatus(); |
| 359 | method @Deprecated @NonNull public String getNetworkStatusString(); |
| 360 | method @Deprecated public boolean hasEverConnected(); |
| 361 | field @Deprecated public static final int DISABLED_ASSOCIATION_REJECTION = 1; // 0x1 |
| 362 | field @Deprecated public static final int DISABLED_AUTHENTICATION_FAILURE = 2; // 0x2 |
| 363 | field @Deprecated public static final int DISABLED_AUTHENTICATION_NO_CREDENTIALS = 5; // 0x5 |
| 364 | field @Deprecated public static final int DISABLED_AUTHENTICATION_NO_SUBSCRIPTION = 9; // 0x9 |
| 365 | field @Deprecated public static final int DISABLED_BY_WIFI_MANAGER = 7; // 0x7 |
| 366 | field @Deprecated public static final int DISABLED_BY_WRONG_PASSWORD = 8; // 0x8 |
| 367 | field @Deprecated public static final int DISABLED_DHCP_FAILURE = 3; // 0x3 |
| 368 | field @Deprecated public static final int DISABLED_NONE = 0; // 0x0 |
| 369 | field @Deprecated public static final int DISABLED_NO_INTERNET_PERMANENT = 6; // 0x6 |
| 370 | field @Deprecated public static final int DISABLED_NO_INTERNET_TEMPORARY = 4; // 0x4 |
| 371 | field @Deprecated public static final int NETWORK_SELECTION_ENABLED = 0; // 0x0 |
| 372 | field @Deprecated public static final int NETWORK_SELECTION_PERMANENTLY_DISABLED = 2; // 0x2 |
| 373 | field @Deprecated public static final int NETWORK_SELECTION_TEMPORARY_DISABLED = 1; // 0x1 |
| 374 | } |
| 375 | |
| 376 | @Deprecated public static final class WifiConfiguration.NetworkSelectionStatus.Builder { |
| 377 | ctor @Deprecated public WifiConfiguration.NetworkSelectionStatus.Builder(); |
| 378 | method @Deprecated @NonNull public android.net.wifi.WifiConfiguration.NetworkSelectionStatus build(); |
| 379 | method @Deprecated @NonNull public android.net.wifi.WifiConfiguration.NetworkSelectionStatus.Builder setNetworkSelectionDisableReason(int); |
| 380 | method @Deprecated @NonNull public android.net.wifi.WifiConfiguration.NetworkSelectionStatus.Builder setNetworkSelectionStatus(int); |
| 381 | } |
| 382 | |
| 383 | public class WifiEnterpriseConfig implements android.os.Parcelable { |
| 384 | method @Nullable public String[] getCaCertificateAliases(); |
| 385 | method @NonNull public String getCaPath(); |
| 386 | method @NonNull public String getClientCertificateAlias(); |
| 387 | method public int getOcsp(); |
| 388 | method @NonNull public String getWapiCertSuite(); |
| 389 | method public void setCaCertificateAliases(@Nullable String[]); |
| 390 | method public void setCaPath(@NonNull String); |
| 391 | method public void setClientCertificateAlias(@NonNull String); |
| 392 | method public void setOcsp(int); |
| 393 | method public void setWapiCertSuite(@NonNull String); |
| 394 | field public static final int OCSP_NONE = 0; // 0x0 |
| 395 | field public static final int OCSP_REQUEST_CERT_STATUS = 1; // 0x1 |
| 396 | field public static final int OCSP_REQUIRE_ALL_NON_TRUSTED_CERTS_STATUS = 3; // 0x3 |
| 397 | field public static final int OCSP_REQUIRE_CERT_STATUS = 2; // 0x2 |
| 398 | } |
| 399 | |
| 400 | public class WifiFrameworkInitializer { |
| 401 | method public static void registerServiceWrappers(); |
| 402 | } |
| 403 | |
| 404 | public class WifiInfo implements android.os.Parcelable { |
| 405 | method public double getLostTxPacketsPerSecond(); |
| 406 | method @Nullable public String getRequestingPackageName(); |
| 407 | method public double getRetriedTxPacketsPerSecond(); |
| 408 | method public int getScore(); |
| 409 | method public double getSuccessfulRxPacketsPerSecond(); |
| 410 | method public double getSuccessfulTxPacketsPerSecond(); |
| 411 | method public boolean isEphemeral(); |
| 412 | method public boolean isOsuAp(); |
| 413 | method public boolean isPasspointAp(); |
| 414 | method @Nullable public static String sanitizeSsid(@Nullable String); |
| 415 | field public static final String DEFAULT_MAC_ADDRESS = "02:00:00:00:00:00"; |
| 416 | field public static final int INVALID_RSSI = -127; // 0xffffff81 |
| 417 | } |
| 418 | |
| 419 | public class WifiManager { |
| 420 | method @RequiresPermission(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE) public void addOnWifiUsabilityStatsListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.OnWifiUsabilityStatsListener); |
| 421 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void allowAutojoin(int, boolean); |
| 422 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void allowAutojoinGlobal(boolean); |
| 423 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void allowAutojoinPasspoint(@NonNull String, boolean); |
| 424 | method @RequiresPermission(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE) public void clearWifiConnectedNetworkScorer(); |
| 425 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK}) public void connect(@NonNull android.net.wifi.WifiConfiguration, @Nullable android.net.wifi.WifiManager.ActionListener); |
| 426 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK}) public void connect(int, @Nullable android.net.wifi.WifiManager.ActionListener); |
| 427 | method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK}) public void disable(int, @Nullable android.net.wifi.WifiManager.ActionListener); |
| 428 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK}) public void disableEphemeralNetwork(@NonNull String); |
| 429 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void factoryReset(); |
| 430 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK}) public void forget(int, @Nullable android.net.wifi.WifiManager.ActionListener); |
| 431 | method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public java.util.List<android.util.Pair<android.net.wifi.WifiConfiguration,java.util.Map<java.lang.Integer,java.util.List<android.net.wifi.ScanResult>>>> getAllMatchingWifiConfigs(@NonNull java.util.List<android.net.wifi.ScanResult>); |
| 432 | method @Nullable @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public String getCountryCode(); |
| 433 | method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public android.net.Network getCurrentNetwork(); |
| 434 | method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public String[] getFactoryMacAddresses(); |
| 435 | method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public java.util.Map<android.net.wifi.hotspot2.OsuProvider,java.util.List<android.net.wifi.ScanResult>> getMatchingOsuProviders(@Nullable java.util.List<android.net.wifi.ScanResult>); |
| 436 | method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public java.util.Map<android.net.wifi.hotspot2.OsuProvider,android.net.wifi.hotspot2.PasspointConfiguration> getMatchingPasspointConfigsForOsuProviders(@NonNull java.util.Set<android.net.wifi.hotspot2.OsuProvider>); |
| 437 | method @NonNull @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_WIFI_STATE}) public java.util.Map<android.net.wifi.WifiNetworkSuggestion,java.util.List<android.net.wifi.ScanResult>> getMatchingScanResults(@NonNull java.util.List<android.net.wifi.WifiNetworkSuggestion>, @Nullable java.util.List<android.net.wifi.ScanResult>); |
| 438 | method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.READ_WIFI_CREDENTIAL}) public java.util.List<android.net.wifi.WifiConfiguration> getPrivilegedConfiguredNetworks(); |
| 439 | method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public android.net.wifi.SoftApConfiguration getSoftApConfiguration(); |
| 440 | method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void getWifiActivityEnergyInfoAsync(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.OnWifiActivityEnergyInfoListener); |
| 441 | method @Deprecated @Nullable @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public android.net.wifi.WifiConfiguration getWifiApConfiguration(); |
| 442 | method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public int getWifiApState(); |
| 443 | method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public java.util.List<android.net.wifi.WifiConfiguration> getWifiConfigForMatchedNetworkSuggestionsSharedWithUser(@NonNull java.util.List<android.net.wifi.ScanResult>); |
| 444 | method public boolean isApMacRandomizationSupported(); |
| 445 | method public boolean isConnectedMacRandomizationSupported(); |
| 446 | method @Deprecated public boolean isDeviceToDeviceRttSupported(); |
| 447 | method public boolean isPortableHotspotSupported(); |
| 448 | method public boolean isVerboseLoggingEnabled(); |
| 449 | method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isWifiApEnabled(); |
| 450 | method public boolean isWifiScannerSupported(); |
| 451 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void registerNetworkRequestMatchCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.NetworkRequestMatchCallback); |
| 452 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void registerSoftApCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.SoftApCallback); |
| 453 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void registerTrafficStateCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.TrafficStateCallback); |
| 454 | method @RequiresPermission(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE) public void removeOnWifiUsabilityStatsListener(@NonNull android.net.wifi.WifiManager.OnWifiUsabilityStatsListener); |
| 455 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void restoreBackupData(@NonNull byte[]); |
| 456 | method @Nullable @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public android.net.wifi.SoftApConfiguration restoreSoftApBackupData(@NonNull byte[]); |
| 457 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void restoreSupplicantBackupData(@NonNull byte[], @NonNull byte[]); |
| 458 | method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public byte[] retrieveBackupData(); |
| 459 | method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public byte[] retrieveSoftApBackupData(); |
| 460 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK}) public void save(@NonNull android.net.wifi.WifiConfiguration, @Nullable android.net.wifi.WifiManager.ActionListener); |
| 461 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void setAutoWakeupEnabled(boolean); |
| 462 | method @RequiresPermission(android.Manifest.permission.WIFI_SET_DEVICE_MOBILITY_STATE) public void setDeviceMobilityState(int); |
| 463 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void setMacRandomizationSettingPasspointEnabled(@NonNull String, boolean); |
| 464 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void setPasspointMeteredOverride(@NonNull String, int); |
| 465 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void setScanAlwaysAvailable(boolean); |
| 466 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void setScanThrottleEnabled(boolean); |
| 467 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public boolean setSoftApConfiguration(@NonNull android.net.wifi.SoftApConfiguration); |
| 468 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void setVerboseLoggingEnabled(boolean); |
| 469 | method @Deprecated @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public boolean setWifiApConfiguration(android.net.wifi.WifiConfiguration); |
| 470 | method @RequiresPermission(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE) public boolean setWifiConnectedNetworkScorer(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.WifiConnectedNetworkScorer); |
| 471 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startEasyConnectAsConfiguratorInitiator(@NonNull String, int, int, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.EasyConnectStatusCallback); |
| 472 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startEasyConnectAsEnrolleeInitiator(@NonNull String, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.EasyConnectStatusCallback); |
| 473 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startLocalOnlyHotspot(@NonNull android.net.wifi.SoftApConfiguration, @Nullable java.util.concurrent.Executor, @Nullable android.net.wifi.WifiManager.LocalOnlyHotspotCallback); |
| 474 | method @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public boolean startScan(android.os.WorkSource); |
| 475 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startSubscriptionProvisioning(@NonNull android.net.wifi.hotspot2.OsuProvider, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.hotspot2.ProvisioningCallback); |
| 476 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public boolean startTetheredHotspot(@Nullable android.net.wifi.SoftApConfiguration); |
| 477 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void stopEasyConnectSession(); |
| 478 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public boolean stopSoftAp(); |
| 479 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void unregisterNetworkRequestMatchCallback(@NonNull android.net.wifi.WifiManager.NetworkRequestMatchCallback); |
| 480 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void unregisterSoftApCallback(@NonNull android.net.wifi.WifiManager.SoftApCallback); |
| 481 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void unregisterTrafficStateCallback(@NonNull android.net.wifi.WifiManager.TrafficStateCallback); |
| 482 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void updateInterfaceIpState(@Nullable String, int); |
| 483 | method @RequiresPermission(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE) public void updateWifiUsabilityScore(int, int, int); |
| 484 | field public static final String ACTION_LINK_CONFIGURATION_CHANGED = "android.net.wifi.LINK_CONFIGURATION_CHANGED"; |
| 485 | field @RequiresPermission(android.Manifest.permission.NETWORK_CARRIER_PROVISIONING) public static final String ACTION_NETWORK_SETTINGS_RESET = "android.net.wifi.action.NETWORK_SETTINGS_RESET"; |
| 486 | field public static final String ACTION_PASSPOINT_LAUNCH_OSU_VIEW = "android.net.wifi.action.PASSPOINT_LAUNCH_OSU_VIEW"; |
| 487 | field public static final String ACTION_REQUEST_DISABLE = "android.net.wifi.action.REQUEST_DISABLE"; |
| 488 | field public static final String ACTION_REQUEST_ENABLE = "android.net.wifi.action.REQUEST_ENABLE"; |
| 489 | field public static final int CHANGE_REASON_ADDED = 0; // 0x0 |
| 490 | field public static final int CHANGE_REASON_CONFIG_CHANGE = 2; // 0x2 |
| 491 | field public static final int CHANGE_REASON_REMOVED = 1; // 0x1 |
| 492 | field public static final String CONFIGURED_NETWORKS_CHANGED_ACTION = "android.net.wifi.CONFIGURED_NETWORKS_CHANGE"; |
| 493 | field public static final int DEVICE_MOBILITY_STATE_HIGH_MVMT = 1; // 0x1 |
| 494 | field public static final int DEVICE_MOBILITY_STATE_LOW_MVMT = 2; // 0x2 |
| 495 | field public static final int DEVICE_MOBILITY_STATE_STATIONARY = 3; // 0x3 |
| 496 | field public static final int DEVICE_MOBILITY_STATE_UNKNOWN = 0; // 0x0 |
| 497 | field public static final int EASY_CONNECT_NETWORK_ROLE_AP = 1; // 0x1 |
| 498 | field public static final int EASY_CONNECT_NETWORK_ROLE_STA = 0; // 0x0 |
| 499 | field public static final String EXTRA_CHANGE_REASON = "changeReason"; |
| 500 | field public static final String EXTRA_LINK_PROPERTIES = "android.net.wifi.extra.LINK_PROPERTIES"; |
| 501 | field public static final String EXTRA_MULTIPLE_NETWORKS_CHANGED = "multipleChanges"; |
| 502 | field public static final String EXTRA_OSU_NETWORK = "android.net.wifi.extra.OSU_NETWORK"; |
| 503 | field public static final String EXTRA_PREVIOUS_WIFI_AP_STATE = "previous_wifi_state"; |
| 504 | field public static final String EXTRA_URL = "android.net.wifi.extra.URL"; |
| 505 | field public static final String EXTRA_WIFI_AP_FAILURE_REASON = "android.net.wifi.extra.WIFI_AP_FAILURE_REASON"; |
| 506 | field public static final String EXTRA_WIFI_AP_INTERFACE_NAME = "android.net.wifi.extra.WIFI_AP_INTERFACE_NAME"; |
| 507 | field public static final String EXTRA_WIFI_AP_MODE = "android.net.wifi.extra.WIFI_AP_MODE"; |
| 508 | field public static final String EXTRA_WIFI_AP_STATE = "wifi_state"; |
| 509 | field public static final String EXTRA_WIFI_CONFIGURATION = "wifiConfiguration"; |
| 510 | field public static final String EXTRA_WIFI_CREDENTIAL_EVENT_TYPE = "et"; |
| 511 | field public static final String EXTRA_WIFI_CREDENTIAL_SSID = "ssid"; |
| 512 | field public static final int IFACE_IP_MODE_CONFIGURATION_ERROR = 0; // 0x0 |
| 513 | field public static final int IFACE_IP_MODE_LOCAL_ONLY = 2; // 0x2 |
| 514 | field public static final int IFACE_IP_MODE_TETHERED = 1; // 0x1 |
| 515 | field public static final int IFACE_IP_MODE_UNSPECIFIED = -1; // 0xffffffff |
| 516 | field public static final int PASSPOINT_HOME_NETWORK = 0; // 0x0 |
| 517 | field public static final int PASSPOINT_ROAMING_NETWORK = 1; // 0x1 |
| 518 | field public static final int SAP_CLIENT_BLOCK_REASON_CODE_BLOCKED_BY_USER = 0; // 0x0 |
| 519 | field public static final int SAP_CLIENT_BLOCK_REASON_CODE_NO_MORE_STAS = 1; // 0x1 |
| 520 | field public static final int SAP_START_FAILURE_GENERAL = 0; // 0x0 |
| 521 | field public static final int SAP_START_FAILURE_NO_CHANNEL = 1; // 0x1 |
| 522 | field public static final int SAP_START_FAILURE_UNSUPPORTED_CONFIGURATION = 2; // 0x2 |
| 523 | field public static final String WIFI_AP_STATE_CHANGED_ACTION = "android.net.wifi.WIFI_AP_STATE_CHANGED"; |
| 524 | field public static final int WIFI_AP_STATE_DISABLED = 11; // 0xb |
| 525 | field public static final int WIFI_AP_STATE_DISABLING = 10; // 0xa |
| 526 | field public static final int WIFI_AP_STATE_ENABLED = 13; // 0xd |
| 527 | field public static final int WIFI_AP_STATE_ENABLING = 12; // 0xc |
| 528 | field public static final int WIFI_AP_STATE_FAILED = 14; // 0xe |
| 529 | field public static final String WIFI_CREDENTIAL_CHANGED_ACTION = "android.net.wifi.WIFI_CREDENTIAL_CHANGED"; |
| 530 | field public static final int WIFI_CREDENTIAL_FORGOT = 1; // 0x1 |
| 531 | field public static final int WIFI_CREDENTIAL_SAVED = 0; // 0x0 |
| 532 | } |
| 533 | |
| 534 | public static interface WifiManager.ActionListener { |
| 535 | method public void onFailure(int); |
| 536 | method public void onSuccess(); |
| 537 | } |
| 538 | |
| 539 | public static interface WifiManager.NetworkRequestMatchCallback { |
| 540 | method public default void onAbort(); |
| 541 | method public default void onMatch(@NonNull java.util.List<android.net.wifi.ScanResult>); |
| 542 | method public default void onUserSelectionCallbackRegistration(@NonNull android.net.wifi.WifiManager.NetworkRequestUserSelectionCallback); |
| 543 | method public default void onUserSelectionConnectFailure(@NonNull android.net.wifi.WifiConfiguration); |
| 544 | method public default void onUserSelectionConnectSuccess(@NonNull android.net.wifi.WifiConfiguration); |
| 545 | } |
| 546 | |
| 547 | public static interface WifiManager.NetworkRequestUserSelectionCallback { |
| 548 | method public default void reject(); |
| 549 | method public default void select(@NonNull android.net.wifi.WifiConfiguration); |
| 550 | } |
| 551 | |
| 552 | public static interface WifiManager.OnWifiActivityEnergyInfoListener { |
| 553 | method public void onWifiActivityEnergyInfo(@Nullable android.os.connectivity.WifiActivityEnergyInfo); |
| 554 | } |
| 555 | |
| 556 | public static interface WifiManager.OnWifiUsabilityStatsListener { |
| 557 | method public void onWifiUsabilityStats(int, boolean, @NonNull android.net.wifi.WifiUsabilityStatsEntry); |
| 558 | } |
| 559 | |
| 560 | public static interface WifiManager.ScoreUpdateObserver { |
| 561 | method public void notifyScoreUpdate(int, int); |
| 562 | method public void triggerUpdateOfWifiUsabilityStats(int); |
| 563 | } |
| 564 | |
| 565 | public static interface WifiManager.SoftApCallback { |
| 566 | method public default void onBlockedClientConnecting(@NonNull android.net.wifi.WifiClient, int); |
| 567 | method public default void onCapabilityChanged(@NonNull android.net.wifi.SoftApCapability); |
| 568 | method public default void onConnectedClientsChanged(@NonNull java.util.List<android.net.wifi.WifiClient>); |
| 569 | method public default void onInfoChanged(@NonNull android.net.wifi.SoftApInfo); |
| 570 | method public default void onStateChanged(int, int); |
| 571 | } |
| 572 | |
| 573 | public static interface WifiManager.TrafficStateCallback { |
| 574 | method public void onStateChanged(int); |
| 575 | field public static final int DATA_ACTIVITY_IN = 1; // 0x1 |
| 576 | field public static final int DATA_ACTIVITY_INOUT = 3; // 0x3 |
| 577 | field public static final int DATA_ACTIVITY_NONE = 0; // 0x0 |
| 578 | field public static final int DATA_ACTIVITY_OUT = 2; // 0x2 |
| 579 | } |
| 580 | |
| 581 | public static interface WifiManager.WifiConnectedNetworkScorer { |
| 582 | method public void onSetScoreUpdateObserver(@NonNull android.net.wifi.WifiManager.ScoreUpdateObserver); |
| 583 | method public void onStart(int); |
| 584 | method public void onStop(int); |
| 585 | } |
| 586 | |
| 587 | public class WifiNetworkConnectionStatistics implements android.os.Parcelable { |
| 588 | ctor public WifiNetworkConnectionStatistics(int, int); |
| 589 | ctor public WifiNetworkConnectionStatistics(); |
| 590 | ctor public WifiNetworkConnectionStatistics(android.net.wifi.WifiNetworkConnectionStatistics); |
| 591 | method public int describeContents(); |
| 592 | method public void writeToParcel(android.os.Parcel, int); |
| 593 | field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.WifiNetworkConnectionStatistics> CREATOR; |
| 594 | field public int numConnection; |
| 595 | field public int numUsage; |
| 596 | } |
| 597 | |
| 598 | public final class WifiNetworkSuggestion implements android.os.Parcelable { |
| 599 | method @NonNull public android.net.wifi.WifiConfiguration getWifiConfiguration(); |
| 600 | } |
| 601 | |
| 602 | public static final class WifiNetworkSuggestion.Builder { |
| 603 | method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_CARRIER_PROVISIONING) public android.net.wifi.WifiNetworkSuggestion.Builder setCarrierId(int); |
| 604 | } |
| 605 | |
| 606 | public class WifiScanner { |
| 607 | method @Deprecated public void configureWifiChange(int, int, int, int, int, android.net.wifi.WifiScanner.BssidInfo[]); |
| 608 | method @Deprecated public void configureWifiChange(android.net.wifi.WifiScanner.WifiChangeSettings); |
| 609 | method @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public java.util.List<java.lang.Integer> getAvailableChannels(int); |
| 610 | method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean getScanResults(); |
| 611 | method @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public java.util.List<android.net.wifi.ScanResult> getSingleScanResults(); |
| 612 | method @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public void registerScanListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiScanner.ScanListener); |
| 613 | method @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public void setScanningEnabled(boolean); |
| 614 | method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startBackgroundScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener); |
| 615 | method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startBackgroundScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener, android.os.WorkSource); |
| 616 | method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener); |
| 617 | method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener, android.os.WorkSource); |
| 618 | method @Deprecated public void startTrackingBssids(android.net.wifi.WifiScanner.BssidInfo[], int, android.net.wifi.WifiScanner.BssidListener); |
| 619 | method @Deprecated public void startTrackingWifiChange(android.net.wifi.WifiScanner.WifiChangeListener); |
| 620 | method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void stopBackgroundScan(android.net.wifi.WifiScanner.ScanListener); |
| 621 | method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void stopScan(android.net.wifi.WifiScanner.ScanListener); |
| 622 | method @Deprecated public void stopTrackingBssids(android.net.wifi.WifiScanner.BssidListener); |
| 623 | method @Deprecated public void stopTrackingWifiChange(android.net.wifi.WifiScanner.WifiChangeListener); |
| 624 | method public void unregisterScanListener(@NonNull android.net.wifi.WifiScanner.ScanListener); |
| 625 | field public static final int MAX_SCAN_PERIOD_MS = 1024000; // 0xfa000 |
| 626 | field public static final int MIN_SCAN_PERIOD_MS = 1000; // 0x3e8 |
| 627 | field public static final int REASON_DUPLICATE_REQEUST = -5; // 0xfffffffb |
| 628 | field public static final int REASON_INVALID_LISTENER = -2; // 0xfffffffe |
| 629 | field public static final int REASON_INVALID_REQUEST = -3; // 0xfffffffd |
| 630 | field public static final int REASON_NOT_AUTHORIZED = -4; // 0xfffffffc |
| 631 | field public static final int REASON_SUCCEEDED = 0; // 0x0 |
| 632 | field public static final int REASON_UNSPECIFIED = -1; // 0xffffffff |
| 633 | field @Deprecated public static final int REPORT_EVENT_AFTER_BUFFER_FULL = 0; // 0x0 |
| 634 | field public static final int REPORT_EVENT_AFTER_EACH_SCAN = 1; // 0x1 |
| 635 | field public static final int REPORT_EVENT_FULL_SCAN_RESULT = 2; // 0x2 |
| 636 | field public static final int REPORT_EVENT_NO_BATCH = 4; // 0x4 |
| 637 | field public static final int SCAN_TYPE_HIGH_ACCURACY = 2; // 0x2 |
| 638 | field public static final int SCAN_TYPE_LOW_LATENCY = 0; // 0x0 |
| 639 | field public static final int SCAN_TYPE_LOW_POWER = 1; // 0x1 |
| 640 | field public static final int WIFI_BAND_24_5_6_GHZ = 11; // 0xb |
| 641 | field public static final int WIFI_BAND_24_5_WITH_DFS_6_GHZ = 15; // 0xf |
| 642 | field public static final int WIFI_BAND_24_GHZ = 1; // 0x1 |
| 643 | field public static final int WIFI_BAND_5_GHZ = 2; // 0x2 |
| 644 | field public static final int WIFI_BAND_5_GHZ_DFS_ONLY = 4; // 0x4 |
| 645 | field public static final int WIFI_BAND_5_GHZ_WITH_DFS = 6; // 0x6 |
| 646 | field public static final int WIFI_BAND_6_GHZ = 8; // 0x8 |
| 647 | field public static final int WIFI_BAND_BOTH = 3; // 0x3 |
| 648 | field public static final int WIFI_BAND_BOTH_WITH_DFS = 7; // 0x7 |
| 649 | field public static final int WIFI_BAND_UNSPECIFIED = 0; // 0x0 |
| 650 | } |
| 651 | |
| 652 | public static interface WifiScanner.ActionListener { |
| 653 | method public void onFailure(int, String); |
| 654 | method public void onSuccess(); |
| 655 | } |
| 656 | |
| 657 | @Deprecated public static class WifiScanner.BssidInfo { |
| 658 | ctor @Deprecated public WifiScanner.BssidInfo(); |
| 659 | field @Deprecated public String bssid; |
| 660 | field @Deprecated public int frequencyHint; |
| 661 | field @Deprecated public int high; |
| 662 | field @Deprecated public int low; |
| 663 | } |
| 664 | |
| 665 | @Deprecated public static interface WifiScanner.BssidListener extends android.net.wifi.WifiScanner.ActionListener { |
| 666 | method @Deprecated public void onFound(android.net.wifi.ScanResult[]); |
| 667 | method @Deprecated public void onLost(android.net.wifi.ScanResult[]); |
| 668 | } |
| 669 | |
| 670 | public static class WifiScanner.ChannelSpec { |
| 671 | ctor public WifiScanner.ChannelSpec(int); |
| 672 | field public int frequency; |
| 673 | } |
| 674 | |
| 675 | @Deprecated public static class WifiScanner.HotlistSettings implements android.os.Parcelable { |
| 676 | ctor @Deprecated public WifiScanner.HotlistSettings(); |
| 677 | field @Deprecated public int apLostThreshold; |
| 678 | field @Deprecated public android.net.wifi.WifiScanner.BssidInfo[] bssidInfos; |
| 679 | } |
| 680 | |
| 681 | public static class WifiScanner.ParcelableScanData implements android.os.Parcelable { |
| 682 | ctor public WifiScanner.ParcelableScanData(android.net.wifi.WifiScanner.ScanData[]); |
| 683 | method public android.net.wifi.WifiScanner.ScanData[] getResults(); |
| 684 | field public android.net.wifi.WifiScanner.ScanData[] mResults; |
| 685 | } |
| 686 | |
| 687 | public static class WifiScanner.ParcelableScanResults implements android.os.Parcelable { |
| 688 | ctor public WifiScanner.ParcelableScanResults(android.net.wifi.ScanResult[]); |
| 689 | method public android.net.wifi.ScanResult[] getResults(); |
| 690 | field public android.net.wifi.ScanResult[] mResults; |
| 691 | } |
| 692 | |
| 693 | public static class WifiScanner.ScanData implements android.os.Parcelable { |
| 694 | ctor public WifiScanner.ScanData(int, int, android.net.wifi.ScanResult[]); |
| 695 | ctor public WifiScanner.ScanData(android.net.wifi.WifiScanner.ScanData); |
| 696 | method public int getFlags(); |
| 697 | method public int getId(); |
| 698 | method public android.net.wifi.ScanResult[] getResults(); |
| 699 | } |
| 700 | |
| 701 | public static interface WifiScanner.ScanListener extends android.net.wifi.WifiScanner.ActionListener { |
| 702 | method public void onFullResult(android.net.wifi.ScanResult); |
| 703 | method @Deprecated public void onPeriodChanged(int); |
| 704 | method public void onResults(android.net.wifi.WifiScanner.ScanData[]); |
| 705 | } |
| 706 | |
| 707 | public static class WifiScanner.ScanSettings implements android.os.Parcelable { |
| 708 | ctor public WifiScanner.ScanSettings(); |
| 709 | field public int band; |
| 710 | field public android.net.wifi.WifiScanner.ChannelSpec[] channels; |
| 711 | field @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public final java.util.List<android.net.wifi.WifiScanner.ScanSettings.HiddenNetwork> hiddenNetworks; |
| 712 | field public boolean hideFromAppOps; |
| 713 | field public boolean ignoreLocationSettings; |
| 714 | field @Deprecated public int maxPeriodInMs; |
| 715 | field @Deprecated public int maxScansToCache; |
| 716 | field @Deprecated public int numBssidsPerScan; |
| 717 | field @Deprecated public int periodInMs; |
| 718 | field @Deprecated public int reportEvents; |
| 719 | field @Deprecated public int stepCount; |
| 720 | field @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public int type; |
| 721 | } |
| 722 | |
| 723 | public static class WifiScanner.ScanSettings.HiddenNetwork { |
| 724 | ctor public WifiScanner.ScanSettings.HiddenNetwork(@NonNull String); |
| 725 | field @NonNull public final String ssid; |
| 726 | } |
| 727 | |
| 728 | @Deprecated public static interface WifiScanner.WifiChangeListener extends android.net.wifi.WifiScanner.ActionListener { |
| 729 | method @Deprecated public void onChanging(android.net.wifi.ScanResult[]); |
| 730 | method @Deprecated public void onQuiescence(android.net.wifi.ScanResult[]); |
| 731 | } |
| 732 | |
| 733 | @Deprecated public static class WifiScanner.WifiChangeSettings implements android.os.Parcelable { |
| 734 | ctor @Deprecated public WifiScanner.WifiChangeSettings(); |
| 735 | field @Deprecated public android.net.wifi.WifiScanner.BssidInfo[] bssidInfos; |
| 736 | field @Deprecated public int lostApSampleSize; |
| 737 | field @Deprecated public int minApsBreachingThreshold; |
| 738 | field @Deprecated public int periodInMs; |
| 739 | field @Deprecated public int rssiSampleSize; |
| 740 | field @Deprecated public int unchangedSampleSize; |
| 741 | } |
| 742 | |
| 743 | public final class WifiUsabilityStatsEntry implements android.os.Parcelable { |
| 744 | method public int describeContents(); |
| 745 | method public int getCellularDataNetworkType(); |
| 746 | method public int getCellularSignalStrengthDb(); |
| 747 | method public int getCellularSignalStrengthDbm(); |
| 748 | method public int getLinkSpeedMbps(); |
| 749 | method public int getProbeElapsedTimeSinceLastUpdateMillis(); |
| 750 | method public int getProbeMcsRateSinceLastUpdate(); |
| 751 | method public int getProbeStatusSinceLastUpdate(); |
| 752 | method public int getRssi(); |
| 753 | method public int getRxLinkSpeedMbps(); |
| 754 | method public long getTimeStampMillis(); |
| 755 | method public long getTotalBackgroundScanTimeMillis(); |
| 756 | method public long getTotalBeaconRx(); |
| 757 | method public long getTotalCcaBusyFreqTimeMillis(); |
| 758 | method public long getTotalHotspot2ScanTimeMillis(); |
| 759 | method public long getTotalNanScanTimeMillis(); |
| 760 | method public long getTotalPnoScanTimeMillis(); |
| 761 | method public long getTotalRadioOnFreqTimeMillis(); |
| 762 | method public long getTotalRadioOnTimeMillis(); |
| 763 | method public long getTotalRadioRxTimeMillis(); |
| 764 | method public long getTotalRadioTxTimeMillis(); |
| 765 | method public long getTotalRoamScanTimeMillis(); |
| 766 | method public long getTotalRxSuccess(); |
| 767 | method public long getTotalScanTimeMillis(); |
| 768 | method public long getTotalTxBad(); |
| 769 | method public long getTotalTxRetries(); |
| 770 | method public long getTotalTxSuccess(); |
| 771 | method public boolean isSameRegisteredCell(); |
| 772 | method public void writeToParcel(android.os.Parcel, int); |
| 773 | field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.WifiUsabilityStatsEntry> CREATOR; |
| 774 | field public static final int PROBE_STATUS_FAILURE = 3; // 0x3 |
| 775 | field public static final int PROBE_STATUS_NO_PROBE = 1; // 0x1 |
| 776 | field public static final int PROBE_STATUS_SUCCESS = 2; // 0x2 |
| 777 | field public static final int PROBE_STATUS_UNKNOWN = 0; // 0x0 |
| 778 | } |
| 779 | |
| 780 | } |
| 781 | |
| 782 | package android.net.wifi.aware { |
| 783 | |
| 784 | public class DiscoverySession implements java.lang.AutoCloseable { |
| 785 | method @Deprecated public android.net.NetworkSpecifier createNetworkSpecifierPmk(@NonNull android.net.wifi.aware.PeerHandle, @NonNull byte[]); |
| 786 | } |
| 787 | |
| 788 | public class WifiAwareSession implements java.lang.AutoCloseable { |
| 789 | method public android.net.NetworkSpecifier createNetworkSpecifierPmk(int, @NonNull byte[], @NonNull byte[]); |
| 790 | } |
| 791 | |
| 792 | } |
| 793 | |
| 794 | package android.net.wifi.hotspot2 { |
| 795 | |
| 796 | public final class OsuProvider implements android.os.Parcelable { |
| 797 | method public int describeContents(); |
| 798 | method @Nullable public String getFriendlyName(); |
| 799 | method @Nullable public android.net.Uri getServerUri(); |
| 800 | method public void writeToParcel(android.os.Parcel, int); |
| 801 | field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.hotspot2.OsuProvider> CREATOR; |
| 802 | } |
| 803 | |
| 804 | public final class PasspointConfiguration implements android.os.Parcelable { |
| 805 | method public int getMeteredOverride(); |
| 806 | method public boolean isAutojoinEnabled(); |
| 807 | method public boolean isMacRandomizationEnabled(); |
| 808 | } |
| 809 | |
| 810 | public abstract class ProvisioningCallback { |
| 811 | ctor public ProvisioningCallback(); |
| 812 | method public abstract void onProvisioningComplete(); |
| 813 | method public abstract void onProvisioningFailure(int); |
| 814 | method public abstract void onProvisioningStatus(int); |
| 815 | field public static final int OSU_FAILURE_ADD_PASSPOINT_CONFIGURATION = 22; // 0x16 |
| 816 | field public static final int OSU_FAILURE_AP_CONNECTION = 1; // 0x1 |
| 817 | field public static final int OSU_FAILURE_INVALID_URL_FORMAT_FOR_OSU = 8; // 0x8 |
| 818 | field public static final int OSU_FAILURE_NO_AAA_SERVER_TRUST_ROOT_NODE = 17; // 0x11 |
| 819 | field public static final int OSU_FAILURE_NO_AAA_TRUST_ROOT_CERTIFICATE = 21; // 0x15 |
| 820 | field public static final int OSU_FAILURE_NO_OSU_ACTIVITY_FOUND = 14; // 0xe |
| 821 | field public static final int OSU_FAILURE_NO_POLICY_SERVER_TRUST_ROOT_NODE = 19; // 0x13 |
| 822 | field public static final int OSU_FAILURE_NO_PPS_MO = 16; // 0x10 |
| 823 | field public static final int OSU_FAILURE_NO_REMEDIATION_SERVER_TRUST_ROOT_NODE = 18; // 0x12 |
| 824 | field public static final int OSU_FAILURE_OSU_PROVIDER_NOT_FOUND = 23; // 0x17 |
| 825 | field public static final int OSU_FAILURE_PROVISIONING_ABORTED = 6; // 0x6 |
| 826 | field public static final int OSU_FAILURE_PROVISIONING_NOT_AVAILABLE = 7; // 0x7 |
| 827 | field public static final int OSU_FAILURE_RETRIEVE_TRUST_ROOT_CERTIFICATES = 20; // 0x14 |
| 828 | field public static final int OSU_FAILURE_SERVER_CONNECTION = 3; // 0x3 |
| 829 | field public static final int OSU_FAILURE_SERVER_URL_INVALID = 2; // 0x2 |
| 830 | field public static final int OSU_FAILURE_SERVER_VALIDATION = 4; // 0x4 |
| 831 | field public static final int OSU_FAILURE_SERVICE_PROVIDER_VERIFICATION = 5; // 0x5 |
| 832 | field public static final int OSU_FAILURE_SOAP_MESSAGE_EXCHANGE = 11; // 0xb |
| 833 | field public static final int OSU_FAILURE_START_REDIRECT_LISTENER = 12; // 0xc |
| 834 | field public static final int OSU_FAILURE_TIMED_OUT_REDIRECT_LISTENER = 13; // 0xd |
| 835 | field public static final int OSU_FAILURE_UNEXPECTED_COMMAND_TYPE = 9; // 0x9 |
| 836 | field public static final int OSU_FAILURE_UNEXPECTED_SOAP_MESSAGE_STATUS = 15; // 0xf |
| 837 | field public static final int OSU_FAILURE_UNEXPECTED_SOAP_MESSAGE_TYPE = 10; // 0xa |
| 838 | field public static final int OSU_STATUS_AP_CONNECTED = 2; // 0x2 |
| 839 | field public static final int OSU_STATUS_AP_CONNECTING = 1; // 0x1 |
| 840 | field public static final int OSU_STATUS_INIT_SOAP_EXCHANGE = 6; // 0x6 |
| 841 | field public static final int OSU_STATUS_REDIRECT_RESPONSE_RECEIVED = 8; // 0x8 |
| 842 | field public static final int OSU_STATUS_RETRIEVING_TRUST_ROOT_CERTS = 11; // 0xb |
| 843 | field public static final int OSU_STATUS_SECOND_SOAP_EXCHANGE = 9; // 0x9 |
| 844 | field public static final int OSU_STATUS_SERVER_CONNECTED = 5; // 0x5 |
| 845 | field public static final int OSU_STATUS_SERVER_CONNECTING = 3; // 0x3 |
| 846 | field public static final int OSU_STATUS_SERVER_VALIDATED = 4; // 0x4 |
| 847 | field public static final int OSU_STATUS_THIRD_SOAP_EXCHANGE = 10; // 0xa |
| 848 | field public static final int OSU_STATUS_WAITING_FOR_REDIRECT_RESPONSE = 7; // 0x7 |
| 849 | } |
| 850 | |
| 851 | } |
| 852 | |
| 853 | package android.net.wifi.p2p { |
| 854 | |
| 855 | public final class WifiP2pGroupList implements android.os.Parcelable { |
| 856 | method public int describeContents(); |
| 857 | method @NonNull public java.util.List<android.net.wifi.p2p.WifiP2pGroup> getGroupList(); |
| 858 | method public void writeToParcel(@NonNull android.os.Parcel, int); |
| 859 | field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.p2p.WifiP2pGroupList> CREATOR; |
| 860 | } |
| 861 | |
| 862 | public class WifiP2pManager { |
| 863 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public void deletePersistentGroup(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, int, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); |
| 864 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void factoryReset(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); |
| 865 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.READ_WIFI_CREDENTIAL}) public void requestPersistentGroupInfo(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @Nullable android.net.wifi.p2p.WifiP2pManager.PersistentGroupInfoListener); |
| 866 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public void setDeviceName(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull String, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); |
| 867 | method @RequiresPermission(android.Manifest.permission.CONFIGURE_WIFI_DISPLAY) public void setMiracastMode(int); |
| 868 | method @RequiresPermission(android.Manifest.permission.CONFIGURE_WIFI_DISPLAY) public void setWfdInfo(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.wifi.p2p.WifiP2pWfdInfo, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); |
| 869 | method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public void setWifiP2pChannels(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, int, int, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); |
| 870 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void startListening(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); |
| 871 | method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void stopListening(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); |
| 872 | field public static final String ACTION_WIFI_P2P_PERSISTENT_GROUPS_CHANGED = "android.net.wifi.p2p.action.WIFI_P2P_PERSISTENT_GROUPS_CHANGED"; |
| 873 | field public static final int MIRACAST_DISABLED = 0; // 0x0 |
| 874 | field public static final int MIRACAST_SINK = 2; // 0x2 |
| 875 | field public static final int MIRACAST_SOURCE = 1; // 0x1 |
| 876 | } |
| 877 | |
| 878 | public static interface WifiP2pManager.PersistentGroupInfoListener { |
| 879 | method public void onPersistentGroupInfoAvailable(@NonNull android.net.wifi.p2p.WifiP2pGroupList); |
| 880 | } |
| 881 | |
| 882 | } |
| 883 | |
| 884 | package android.net.wifi.rtt { |
| 885 | |
| 886 | public static final class RangingRequest.Builder { |
| 887 | method public android.net.wifi.rtt.RangingRequest.Builder addResponder(@NonNull android.net.wifi.rtt.ResponderConfig); |
| 888 | } |
| 889 | |
| 890 | public final class RangingResult implements android.os.Parcelable { |
| 891 | method @NonNull public byte[] getLci(); |
| 892 | method @NonNull public byte[] getLcr(); |
| 893 | } |
| 894 | |
| 895 | public final class ResponderConfig implements android.os.Parcelable { |
| 896 | ctor public ResponderConfig(@NonNull android.net.MacAddress, int, boolean, int, int, int, int, int); |
| 897 | ctor public ResponderConfig(@NonNull android.net.wifi.aware.PeerHandle, int, boolean, int, int, int, int, int); |
| 898 | method public int describeContents(); |
| 899 | method public static android.net.wifi.rtt.ResponderConfig fromScanResult(android.net.wifi.ScanResult); |
| 900 | method public static android.net.wifi.rtt.ResponderConfig fromWifiAwarePeerHandleWithDefaults(android.net.wifi.aware.PeerHandle); |
| 901 | method public static android.net.wifi.rtt.ResponderConfig fromWifiAwarePeerMacAddressWithDefaults(android.net.MacAddress); |
| 902 | method public void writeToParcel(android.os.Parcel, int); |
| 903 | field public static final int CHANNEL_WIDTH_160MHZ = 3; // 0x3 |
| 904 | field public static final int CHANNEL_WIDTH_20MHZ = 0; // 0x0 |
| 905 | field public static final int CHANNEL_WIDTH_40MHZ = 1; // 0x1 |
| 906 | field public static final int CHANNEL_WIDTH_80MHZ = 2; // 0x2 |
| 907 | field public static final int CHANNEL_WIDTH_80MHZ_PLUS_MHZ = 4; // 0x4 |
| 908 | field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.rtt.ResponderConfig> CREATOR; |
| 909 | field public static final int PREAMBLE_HE = 3; // 0x3 |
| 910 | field public static final int PREAMBLE_HT = 1; // 0x1 |
| 911 | field public static final int PREAMBLE_LEGACY = 0; // 0x0 |
| 912 | field public static final int PREAMBLE_VHT = 2; // 0x2 |
| 913 | field public static final int RESPONDER_AP = 0; // 0x0 |
| 914 | field public static final int RESPONDER_AWARE = 4; // 0x4 |
| 915 | field public static final int RESPONDER_P2P_CLIENT = 3; // 0x3 |
| 916 | field public static final int RESPONDER_P2P_GO = 2; // 0x2 |
| 917 | field public static final int RESPONDER_STA = 1; // 0x1 |
| 918 | field public final int centerFreq0; |
| 919 | field public final int centerFreq1; |
| 920 | field public final int channelWidth; |
| 921 | field public final int frequency; |
| 922 | field public final android.net.MacAddress macAddress; |
| 923 | field public final android.net.wifi.aware.PeerHandle peerHandle; |
| 924 | field public final int preamble; |
| 925 | field public final int responderType; |
| 926 | field public final boolean supports80211mc; |
| 927 | } |
| 928 | |
| 929 | public final class ResponderLocation implements android.os.Parcelable { |
| 930 | method public boolean getExtraInfoOnAssociationIndication(); |
| 931 | } |
| 932 | |
| 933 | public class WifiRttManager { |
| 934 | method @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE}) public void cancelRanging(@Nullable android.os.WorkSource); |
| 935 | method @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE, android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.CHANGE_WIFI_STATE, android.Manifest.permission.ACCESS_WIFI_STATE}) public void startRanging(@Nullable android.os.WorkSource, @NonNull android.net.wifi.rtt.RangingRequest, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.rtt.RangingResultCallback); |
| 936 | } |
| 937 | |
| 938 | } |
| 939 | |