1// Signature format: 2.0 2package android.net.wifi { 3 4 public abstract class EasyConnectStatusCallback { 5 field public static final int EASY_CONNECT_EVENT_FAILURE_AUTHENTICATION = -2; // 0xfffffffe 6 field public static final int EASY_CONNECT_EVENT_FAILURE_BUSY = -5; // 0xfffffffb 7 field public static final int EASY_CONNECT_EVENT_FAILURE_CANNOT_FIND_NETWORK = -10; // 0xfffffff6 8 field public static final int EASY_CONNECT_EVENT_FAILURE_CONFIGURATION = -4; // 0xfffffffc 9 field public static final int EASY_CONNECT_EVENT_FAILURE_ENROLLEE_AUTHENTICATION = -11; // 0xfffffff5 10 field public static final int EASY_CONNECT_EVENT_FAILURE_ENROLLEE_FAILED_TO_SCAN_NETWORK_CHANNEL = -14; // 0xfffffff2 11 field public static final int EASY_CONNECT_EVENT_FAILURE_ENROLLEE_REJECTED_CONFIGURATION = -12; // 0xfffffff4 12 field public static final int EASY_CONNECT_EVENT_FAILURE_GENERIC = -7; // 0xfffffff9 13 field public static final int EASY_CONNECT_EVENT_FAILURE_INVALID_NETWORK = -9; // 0xfffffff7 14 field public static final int EASY_CONNECT_EVENT_FAILURE_INVALID_URI = -1; // 0xffffffff 15 field public static final int EASY_CONNECT_EVENT_FAILURE_NOT_COMPATIBLE = -3; // 0xfffffffd 16 field public static final int EASY_CONNECT_EVENT_FAILURE_NOT_SUPPORTED = -8; // 0xfffffff8 17 field public static final int EASY_CONNECT_EVENT_FAILURE_TIMEOUT = -6; // 0xfffffffa 18 field public static final int EASY_CONNECT_EVENT_FAILURE_URI_GENERATION = -13; // 0xfffffff3 19 } 20 21 public final class MloLink implements android.os.Parcelable { 22 ctor public MloLink(); 23 method public int describeContents(); 24 method @Nullable public android.net.MacAddress getApMacAddress(); 25 method public int getBand(); 26 method @IntRange(from=1) public int getChannel(); 27 method @IntRange(from=android.net.wifi.MloLink.INVALID_MLO_LINK_ID, to=0xf) public int getLinkId(); 28 method public int getRssi(); 29 method @IntRange(from=0xffffffff) public int getRxLinkSpeedMbps(); 30 method @Nullable public android.net.MacAddress getStaMacAddress(); 31 method public int getState(); 32 method @IntRange(from=0xffffffff) public int getTxLinkSpeedMbps(); 33 method public void writeToParcel(@NonNull android.os.Parcel, int); 34 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.MloLink> CREATOR; 35 field public static final int INVALID_MLO_LINK_ID = -1; // 0xffffffff 36 field public static final int MLO_LINK_STATE_ACTIVE = 3; // 0x3 37 field public static final int MLO_LINK_STATE_IDLE = 2; // 0x2 38 field public static final int MLO_LINK_STATE_INVALID = 0; // 0x0 39 field public static final int MLO_LINK_STATE_UNASSOCIATED = 1; // 0x1 40 } 41 42 public final class ScanResult implements android.os.Parcelable { 43 ctor public ScanResult(@NonNull android.net.wifi.ScanResult); 44 ctor public ScanResult(); 45 method public static int convertChannelToFrequencyMhzIfSupported(int, int); 46 method public static int convertFrequencyMhzToChannelIfSupported(int); 47 method public int describeContents(); 48 method @NonNull public java.util.List<android.net.wifi.MloLink> getAffiliatedMloLinks(); 49 method @Nullable public android.net.MacAddress getApMldMacAddress(); 50 method @IntRange(from=android.net.wifi.MloLink.INVALID_MLO_LINK_ID, to=0xf) public int getApMloLinkId(); 51 method @NonNull public java.util.List<android.net.wifi.ScanResult.InformationElement> getInformationElements(); 52 method @NonNull public int[] getSecurityTypes(); 53 method @Nullable public android.net.wifi.WifiSsid getWifiSsid(); 54 method public int getWifiStandard(); 55 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public boolean is80211azNtbResponder(); 56 method public boolean is80211mcResponder(); 57 method public boolean isPasspointNetwork(); 58 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public boolean isTwtResponder(); 59 method public void writeToParcel(android.os.Parcel, int); 60 field public String BSSID; 61 field public static final int CHANNEL_WIDTH_160MHZ = 3; // 0x3 62 field public static final int CHANNEL_WIDTH_20MHZ = 0; // 0x0 63 field public static final int CHANNEL_WIDTH_320MHZ = 5; // 0x5 64 field public static final int CHANNEL_WIDTH_40MHZ = 1; // 0x1 65 field public static final int CHANNEL_WIDTH_80MHZ = 2; // 0x2 66 field public static final int CHANNEL_WIDTH_80MHZ_PLUS_MHZ = 4; // 0x4 67 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.ScanResult> CREATOR; 68 field public static final int PREAMBLE_EHT = 4; // 0x4 69 field public static final int PREAMBLE_HE = 3; // 0x3 70 field public static final int PREAMBLE_HT = 1; // 0x1 71 field public static final int PREAMBLE_LEGACY = 0; // 0x0 72 field public static final int PREAMBLE_VHT = 2; // 0x2 73 field @Deprecated public String SSID; 74 field public static final int UNSPECIFIED = -1; // 0xffffffff 75 field public static final int WIFI_BAND_24_GHZ = 1; // 0x1 76 field public static final int WIFI_BAND_5_GHZ = 2; // 0x2 77 field public static final int WIFI_BAND_60_GHZ = 16; // 0x10 78 field public static final int WIFI_BAND_6_GHZ = 8; // 0x8 79 field public static final int WIFI_STANDARD_11AC = 5; // 0x5 80 field public static final int WIFI_STANDARD_11AD = 7; // 0x7 81 field public static final int WIFI_STANDARD_11AX = 6; // 0x6 82 field public static final int WIFI_STANDARD_11BE = 8; // 0x8 83 field public static final int WIFI_STANDARD_11N = 4; // 0x4 84 field public static final int WIFI_STANDARD_LEGACY = 1; // 0x1 85 field public static final int WIFI_STANDARD_UNKNOWN = 0; // 0x0 86 field public String capabilities; 87 field public int centerFreq0; 88 field public int centerFreq1; 89 field public int channelWidth; 90 field public int frequency; 91 field public int level; 92 field @Deprecated public CharSequence operatorFriendlyName; 93 field public long timestamp; 94 field @Deprecated public CharSequence venueName; 95 } 96 97 public static class ScanResult.InformationElement implements android.os.Parcelable { 98 ctor public ScanResult.InformationElement(int, int, @NonNull byte[]); 99 ctor public ScanResult.InformationElement(@NonNull android.net.wifi.ScanResult.InformationElement); 100 method public int describeContents(); 101 method @NonNull public java.nio.ByteBuffer getBytes(); 102 method public int getId(); 103 method public int getIdExt(); 104 method public void writeToParcel(android.os.Parcel, int); 105 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.ScanResult.InformationElement> CREATOR; 106 } 107 108 public final class SoftApConfiguration implements android.os.Parcelable { 109 method public int describeContents(); 110 method @Nullable public android.net.MacAddress getBssid(); 111 method @Nullable public String getPassphrase(); 112 method public int getSecurityType(); 113 method @Deprecated @Nullable public String getSsid(); 114 method @Nullable public android.net.wifi.WifiSsid getWifiSsid(); 115 method public boolean isHiddenSsid(); 116 method public void writeToParcel(@NonNull android.os.Parcel, int); 117 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.SoftApConfiguration> CREATOR; 118 field public static final int SECURITY_TYPE_OPEN = 0; // 0x0 119 field public static final int SECURITY_TYPE_WPA2_PSK = 1; // 0x1 120 field public static final int SECURITY_TYPE_WPA3_OWE = 5; // 0x5 121 field public static final int SECURITY_TYPE_WPA3_OWE_TRANSITION = 4; // 0x4 122 field public static final int SECURITY_TYPE_WPA3_SAE = 3; // 0x3 123 field public static final int SECURITY_TYPE_WPA3_SAE_TRANSITION = 2; // 0x2 124 } 125 126 public enum SupplicantState implements android.os.Parcelable { 127 method public int describeContents(); 128 method public static boolean isValidState(android.net.wifi.SupplicantState); 129 method public void writeToParcel(android.os.Parcel, int); 130 enum_constant public static final android.net.wifi.SupplicantState ASSOCIATED; 131 enum_constant public static final android.net.wifi.SupplicantState ASSOCIATING; 132 enum_constant public static final android.net.wifi.SupplicantState AUTHENTICATING; 133 enum_constant public static final android.net.wifi.SupplicantState COMPLETED; 134 enum_constant public static final android.net.wifi.SupplicantState DISCONNECTED; 135 enum_constant public static final android.net.wifi.SupplicantState DORMANT; 136 enum_constant public static final android.net.wifi.SupplicantState FOUR_WAY_HANDSHAKE; 137 enum_constant public static final android.net.wifi.SupplicantState GROUP_HANDSHAKE; 138 enum_constant public static final android.net.wifi.SupplicantState INACTIVE; 139 enum_constant public static final android.net.wifi.SupplicantState INTERFACE_DISABLED; 140 enum_constant public static final android.net.wifi.SupplicantState INVALID; 141 enum_constant public static final android.net.wifi.SupplicantState SCANNING; 142 enum_constant public static final android.net.wifi.SupplicantState UNINITIALIZED; 143 } 144 145 public final class WifiAvailableChannel implements android.os.Parcelable { 146 ctor public WifiAvailableChannel(int, int); 147 method public int describeContents(); 148 method public int getFrequencyMhz(); 149 method public int getOperationalModes(); 150 method public void writeToParcel(@NonNull android.os.Parcel, int); 151 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.WifiAvailableChannel> CREATOR; 152 field public static final int OP_MODE_SAP = 2; // 0x2 153 field public static final int OP_MODE_STA = 1; // 0x1 154 field public static final int OP_MODE_TDLS = 32; // 0x20 155 field public static final int OP_MODE_WIFI_AWARE = 16; // 0x10 156 field public static final int OP_MODE_WIFI_DIRECT_CLI = 4; // 0x4 157 field public static final int OP_MODE_WIFI_DIRECT_GO = 8; // 0x8 158 } 159 160 @Deprecated public class WifiConfiguration implements android.os.Parcelable { 161 ctor @Deprecated public WifiConfiguration(); 162 ctor @Deprecated public WifiConfiguration(@NonNull android.net.wifi.WifiConfiguration); 163 method @Deprecated public int describeContents(); 164 method @Deprecated public android.net.ProxyInfo getHttpProxy(); 165 method @Deprecated @NonNull public String getKey(); 166 method @Deprecated public int getMacRandomizationSetting(); 167 method @Deprecated @NonNull public android.net.MacAddress getRandomizedMacAddress(); 168 method @Deprecated public boolean isDppConfigurator(); 169 method @Deprecated public boolean isPasspoint(); 170 method @Deprecated public void setHttpProxy(android.net.ProxyInfo); 171 method @Deprecated public void setIpConfiguration(@Nullable android.net.IpConfiguration); 172 method @Deprecated public void setMacRandomizationSetting(int); 173 method @Deprecated public void setSecurityParams(int); 174 method @Deprecated public void writeToParcel(android.os.Parcel, int); 175 field @Deprecated public String BSSID; 176 field @Deprecated public String FQDN; 177 field @Deprecated public static final int RANDOMIZATION_AUTO = 3; // 0x3 178 field @Deprecated public static final int RANDOMIZATION_NONE = 0; // 0x0 179 field @Deprecated public static final int RANDOMIZATION_NON_PERSISTENT = 2; // 0x2 180 field @Deprecated public static final int RANDOMIZATION_PERSISTENT = 1; // 0x1 181 field @Deprecated public static final int SECURITY_TYPE_DPP = 13; // 0xd 182 field @Deprecated public static final int SECURITY_TYPE_EAP = 3; // 0x3 183 field @Deprecated public static final int SECURITY_TYPE_EAP_SUITE_B = 5; // 0x5 184 field @Deprecated public static final int SECURITY_TYPE_EAP_WPA3_ENTERPRISE = 9; // 0x9 185 field @Deprecated public static final int SECURITY_TYPE_EAP_WPA3_ENTERPRISE_192_BIT = 5; // 0x5 186 field @Deprecated public static final int SECURITY_TYPE_OPEN = 0; // 0x0 187 field @Deprecated public static final int SECURITY_TYPE_OWE = 6; // 0x6 188 field @Deprecated public static final int SECURITY_TYPE_PSK = 2; // 0x2 189 field @Deprecated public static final int SECURITY_TYPE_SAE = 4; // 0x4 190 field @Deprecated public static final int SECURITY_TYPE_WAPI_CERT = 8; // 0x8 191 field @Deprecated public static final int SECURITY_TYPE_WAPI_PSK = 7; // 0x7 192 field @Deprecated public static final int SECURITY_TYPE_WEP = 1; // 0x1 193 field @Deprecated public String SSID; 194 field @Deprecated @NonNull public java.util.BitSet allowedAuthAlgorithms; 195 field @Deprecated @NonNull public java.util.BitSet allowedGroupCiphers; 196 field @Deprecated @NonNull public java.util.BitSet allowedGroupManagementCiphers; 197 field @Deprecated @NonNull public java.util.BitSet allowedKeyManagement; 198 field @Deprecated @NonNull public java.util.BitSet allowedPairwiseCiphers; 199 field @Deprecated @NonNull public java.util.BitSet allowedProtocols; 200 field @Deprecated @NonNull public java.util.BitSet allowedSuiteBCiphers; 201 field @Deprecated public android.net.wifi.WifiEnterpriseConfig enterpriseConfig; 202 field @Deprecated public boolean hiddenSSID; 203 field @Deprecated public boolean isHomeProviderNetwork; 204 field @Deprecated public int networkId; 205 field @Deprecated public String preSharedKey; 206 field @Deprecated public int priority; 207 field @Deprecated public String providerFriendlyName; 208 field @Deprecated public long[] roamingConsortiumIds; 209 field @Deprecated public int status; 210 field @Deprecated public String[] wepKeys; 211 field @Deprecated public int wepTxKeyIndex; 212 } 213 214 @Deprecated public static class WifiConfiguration.AuthAlgorithm { 215 field @Deprecated public static final int LEAP = 2; // 0x2 216 field @Deprecated public static final int OPEN = 0; // 0x0 217 field @Deprecated public static final int SAE = 3; // 0x3 218 field @Deprecated public static final int SHARED = 1; // 0x1 219 field @Deprecated public static final String[] strings; 220 field @Deprecated public static final String varName = "auth_alg"; 221 } 222 223 @Deprecated public static class WifiConfiguration.GroupCipher { 224 field @Deprecated public static final int CCMP = 3; // 0x3 225 field @Deprecated public static final int GCMP_128 = 7; // 0x7 226 field @Deprecated public static final int GCMP_256 = 5; // 0x5 227 field @Deprecated public static final int SMS4 = 6; // 0x6 228 field @Deprecated public static final int TKIP = 2; // 0x2 229 field @Deprecated public static final int WEP104 = 1; // 0x1 230 field @Deprecated public static final int WEP40 = 0; // 0x0 231 field @Deprecated public static final String[] strings; 232 field @Deprecated public static final String varName = "group"; 233 } 234 235 @Deprecated public static class WifiConfiguration.GroupMgmtCipher { 236 field @Deprecated public static final int BIP_CMAC_256 = 0; // 0x0 237 field @Deprecated public static final int BIP_GMAC_128 = 1; // 0x1 238 field @Deprecated public static final int BIP_GMAC_256 = 2; // 0x2 239 } 240 241 @Deprecated public static class WifiConfiguration.KeyMgmt { 242 field @Deprecated public static final int DPP = 17; // 0x11 243 field @Deprecated public static final int FILS_SHA256 = 15; // 0xf 244 field @Deprecated public static final int FILS_SHA384 = 16; // 0x10 245 field @Deprecated public static final int FT_EAP = 7; // 0x7 246 field @Deprecated public static final int FT_PSK = 6; // 0x6 247 field @Deprecated public static final int IEEE8021X = 3; // 0x3 248 field @Deprecated public static final int NONE = 0; // 0x0 249 field @Deprecated public static final int OSEN = 5; // 0x5 250 field @Deprecated public static final int OWE = 9; // 0x9 251 field @Deprecated public static final int SAE = 8; // 0x8 252 field @Deprecated public static final int SUITE_B_192 = 10; // 0xa 253 field @Deprecated public static final int WAPI_CERT = 14; // 0xe 254 field @Deprecated public static final int WAPI_PSK = 13; // 0xd 255 field @Deprecated public static final int WPA2_PSK = 4; // 0x4 256 field @Deprecated public static final int WPA_EAP = 2; // 0x2 257 field @Deprecated public static final int WPA_EAP_SHA256 = 12; // 0xc 258 field @Deprecated public static final int WPA_PSK = 1; // 0x1 259 field @Deprecated public static final int WPA_PSK_SHA256 = 11; // 0xb 260 field @Deprecated public static final String[] strings; 261 field @Deprecated public static final String varName = "key_mgmt"; 262 } 263 264 @Deprecated public static class WifiConfiguration.PairwiseCipher { 265 field @Deprecated public static final int CCMP = 2; // 0x2 266 field @Deprecated public static final int GCMP_128 = 5; // 0x5 267 field @Deprecated public static final int GCMP_256 = 3; // 0x3 268 field @Deprecated public static final int NONE = 0; // 0x0 269 field @Deprecated public static final int SMS4 = 4; // 0x4 270 field @Deprecated public static final int TKIP = 1; // 0x1 271 field @Deprecated public static final String[] strings; 272 field @Deprecated public static final String varName = "pairwise"; 273 } 274 275 @Deprecated public static class WifiConfiguration.Protocol { 276 field @Deprecated public static final int RSN = 1; // 0x1 277 field @Deprecated public static final int WAPI = 3; // 0x3 278 field @Deprecated public static final int WPA = 0; // 0x0 279 field @Deprecated public static final String[] strings; 280 field @Deprecated public static final String varName = "proto"; 281 } 282 283 @Deprecated public static class WifiConfiguration.Status { 284 field @Deprecated public static final int CURRENT = 0; // 0x0 285 field @Deprecated public static final int DISABLED = 1; // 0x1 286 field @Deprecated public static final int ENABLED = 2; // 0x2 287 field @Deprecated public static final String[] strings; 288 } 289 290 public class WifiEnterpriseConfig implements android.os.Parcelable { 291 ctor public WifiEnterpriseConfig(); 292 ctor public WifiEnterpriseConfig(android.net.wifi.WifiEnterpriseConfig); 293 method public int describeContents(); 294 method public void enableTrustOnFirstUse(boolean); 295 method public String getAltSubjectMatch(); 296 method public String getAnonymousIdentity(); 297 method @Nullable public java.security.cert.X509Certificate getCaCertificate(); 298 method @Nullable public java.security.cert.X509Certificate[] getCaCertificates(); 299 method public java.security.cert.X509Certificate getClientCertificate(); 300 method @Nullable public java.security.cert.X509Certificate[] getClientCertificateChain(); 301 method @Nullable public String getClientKeyPairAlias(); 302 method @Nullable public java.security.PrivateKey getClientPrivateKey(); 303 method @Nullable public String getDecoratedIdentityPrefix(); 304 method public String getDomainSuffixMatch(); 305 method public int getEapMethod(); 306 method public String getIdentity(); 307 method public int getMinimumTlsVersion(); 308 method public String getPassword(); 309 method public int getPhase2Method(); 310 method public String getPlmn(); 311 method public String getRealm(); 312 method @Deprecated public String getSubjectMatch(); 313 method public boolean hasCaCertificate(); 314 method public boolean isAuthenticationSimBased(); 315 method public boolean isEapMethodServerCertUsed(); 316 method public boolean isServerCertValidationEnabled(); 317 method public boolean isTrustOnFirstUseEnabled(); 318 method public void setAltSubjectMatch(String); 319 method public void setAnonymousIdentity(String); 320 method public void setCaCertificate(@Nullable java.security.cert.X509Certificate); 321 method public void setCaCertificates(@Nullable java.security.cert.X509Certificate[]); 322 method public void setClientKeyEntry(java.security.PrivateKey, java.security.cert.X509Certificate); 323 method public void setClientKeyEntryWithCertificateChain(java.security.PrivateKey, java.security.cert.X509Certificate[]); 324 method public void setClientKeyPairAlias(@NonNull String); 325 method public void setDecoratedIdentityPrefix(@Nullable String); 326 method public void setDomainSuffixMatch(String); 327 method public void setEapMethod(int); 328 method public void setIdentity(String); 329 method public void setMinimumTlsVersion(int) throws java.lang.IllegalArgumentException; 330 method public void setPassword(String); 331 method public void setPhase2Method(int); 332 method public void setPlmn(String); 333 method public void setRealm(String); 334 method @Deprecated public void setSubjectMatch(String); 335 method public void writeToParcel(android.os.Parcel, int); 336 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.WifiEnterpriseConfig> CREATOR; 337 field public static final String EXTRA_WAPI_AS_CERTIFICATE_DATA = "android.net.wifi.extra.WAPI_AS_CERTIFICATE_DATA"; 338 field public static final String EXTRA_WAPI_AS_CERTIFICATE_NAME = "android.net.wifi.extra.WAPI_AS_CERTIFICATE_NAME"; 339 field public static final String EXTRA_WAPI_USER_CERTIFICATE_DATA = "android.net.wifi.extra.WAPI_USER_CERTIFICATE_DATA"; 340 field public static final String EXTRA_WAPI_USER_CERTIFICATE_NAME = "android.net.wifi.extra.WAPI_USER_CERTIFICATE_NAME"; 341 field public static final int TLS_V1_0 = 0; // 0x0 342 field public static final int TLS_V1_1 = 1; // 0x1 343 field public static final int TLS_V1_2 = 2; // 0x2 344 field public static final int TLS_V1_3 = 3; // 0x3 345 field public static final String WAPI_AS_CERTIFICATE = "WAPIAS_"; 346 field public static final String WAPI_USER_CERTIFICATE = "WAPIUSR_"; 347 } 348 349 public static final class WifiEnterpriseConfig.Eap { 350 field public static final int AKA = 5; // 0x5 351 field public static final int AKA_PRIME = 6; // 0x6 352 field public static final int NONE = -1; // 0xffffffff 353 field public static final int PEAP = 0; // 0x0 354 field public static final int PWD = 3; // 0x3 355 field public static final int SIM = 4; // 0x4 356 field public static final int TLS = 1; // 0x1 357 field public static final int TTLS = 2; // 0x2 358 field public static final int UNAUTH_TLS = 7; // 0x7 359 field public static final int WAPI_CERT = 8; // 0x8 360 } 361 362 public static final class WifiEnterpriseConfig.Phase2 { 363 field public static final int AKA = 6; // 0x6 364 field public static final int AKA_PRIME = 7; // 0x7 365 field public static final int GTC = 4; // 0x4 366 field public static final int MSCHAP = 2; // 0x2 367 field public static final int MSCHAPV2 = 3; // 0x3 368 field public static final int NONE = 0; // 0x0 369 field public static final int PAP = 1; // 0x1 370 field public static final int SIM = 5; // 0x5 371 } 372 373 public class WifiInfo implements android.os.Parcelable android.net.TransportInfo { 374 method public int describeContents(); 375 method @NonNull public java.util.List<android.net.wifi.MloLink> getAffiliatedMloLinks(); 376 method @Nullable public android.net.MacAddress getApMldMacAddress(); 377 method @IntRange(from=android.net.wifi.MloLink.INVALID_MLO_LINK_ID, to=0xf) public int getApMloLinkId(); 378 method public long getApplicableRedactions(); 379 method @NonNull public java.util.List<android.net.wifi.MloLink> getAssociatedMloLinks(); 380 method public String getBSSID(); 381 method public int getCurrentSecurityType(); 382 method public static android.net.NetworkInfo.DetailedState getDetailedStateOf(android.net.wifi.SupplicantState); 383 method public int getFrequency(); 384 method public boolean getHiddenSSID(); 385 method @Nullable public java.util.List<android.net.wifi.ScanResult.InformationElement> getInformationElements(); 386 method @Deprecated public int getIpAddress(); 387 method public int getLinkSpeed(); 388 method public String getMacAddress(); 389 method public int getMaxSupportedRxLinkSpeedMbps(); 390 method public int getMaxSupportedTxLinkSpeedMbps(); 391 method public int getNetworkId(); 392 method @Nullable public String getPasspointFqdn(); 393 method @Nullable public String getPasspointProviderFriendlyName(); 394 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @Nullable public String getPasspointUniqueId(); 395 method public int getRssi(); 396 method @IntRange(from=0xffffffff) public int getRxLinkSpeedMbps(); 397 method public String getSSID(); 398 method public int getSubscriptionId(); 399 method public android.net.wifi.SupplicantState getSupplicantState(); 400 method @IntRange(from=0xffffffff) public int getTxLinkSpeedMbps(); 401 method public int getWifiStandard(); 402 method public boolean isRestricted(); 403 method @NonNull public android.net.wifi.WifiInfo makeCopy(long); 404 method public void writeToParcel(android.os.Parcel, int); 405 field public static final String FREQUENCY_UNITS = "MHz"; 406 field public static final String LINK_SPEED_UNITS = "Mbps"; 407 field public static final int LINK_SPEED_UNKNOWN = -1; // 0xffffffff 408 field public static final int SECURITY_TYPE_DPP = 13; // 0xd 409 field public static final int SECURITY_TYPE_EAP = 3; // 0x3 410 field public static final int SECURITY_TYPE_EAP_WPA3_ENTERPRISE = 9; // 0x9 411 field public static final int SECURITY_TYPE_EAP_WPA3_ENTERPRISE_192_BIT = 5; // 0x5 412 field public static final int SECURITY_TYPE_OPEN = 0; // 0x0 413 field public static final int SECURITY_TYPE_OSEN = 10; // 0xa 414 field public static final int SECURITY_TYPE_OWE = 6; // 0x6 415 field public static final int SECURITY_TYPE_PASSPOINT_R1_R2 = 11; // 0xb 416 field public static final int SECURITY_TYPE_PASSPOINT_R3 = 12; // 0xc 417 field public static final int SECURITY_TYPE_PSK = 2; // 0x2 418 field public static final int SECURITY_TYPE_SAE = 4; // 0x4 419 field public static final int SECURITY_TYPE_UNKNOWN = -1; // 0xffffffff 420 field public static final int SECURITY_TYPE_WAPI_CERT = 8; // 0x8 421 field public static final int SECURITY_TYPE_WAPI_PSK = 7; // 0x7 422 field public static final int SECURITY_TYPE_WEP = 1; // 0x1 423 } 424 425 public static final class WifiInfo.Builder { 426 ctor public WifiInfo.Builder(); 427 method @NonNull public android.net.wifi.WifiInfo build(); 428 method @NonNull public android.net.wifi.WifiInfo.Builder setBssid(@NonNull String); 429 method @NonNull public android.net.wifi.WifiInfo.Builder setCurrentSecurityType(int); 430 method @NonNull public android.net.wifi.WifiInfo.Builder setNetworkId(int); 431 method @NonNull public android.net.wifi.WifiInfo.Builder setRssi(int); 432 method @NonNull public android.net.wifi.WifiInfo.Builder setSsid(@NonNull byte[]); 433 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.WifiInfo.Builder setSubscriptionId(int); 434 } 435 436 public class WifiManager { 437 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void addLocalOnlyConnectionFailureListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.LocalOnlyConnectionFailureListener); 438 method @Deprecated public int addNetwork(android.net.wifi.WifiConfiguration); 439 method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_MANAGED_PROVISIONING}, conditional=true) public android.net.wifi.WifiManager.AddNetworkResult addNetworkPrivileged(@NonNull android.net.wifi.WifiConfiguration); 440 method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public int addNetworkSuggestions(@NonNull java.util.List<android.net.wifi.WifiNetworkSuggestion>); 441 method public void addOrUpdatePasspointConfiguration(android.net.wifi.hotspot2.PasspointConfiguration); 442 method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_WIFI_STATE}) public void addSuggestionConnectionStatusListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.SuggestionConnectionStatusListener); 443 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void addSuggestionUserApprovalStatusListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.SuggestionUserApprovalStatusListener); 444 method public void allowAutojoinGlobal(boolean); 445 method @Deprecated public static int calculateSignalLevel(int, int); 446 method @IntRange(from=0) public int calculateSignalLevel(int); 447 method @Deprecated public void cancelWps(android.net.wifi.WifiManager.WpsCallback); 448 method public static int compareSignalLevel(int, int); 449 method public android.net.wifi.WifiManager.MulticastLock createMulticastLock(String); 450 method public android.net.wifi.WifiManager.WifiLock createWifiLock(int, String); 451 method @Deprecated public android.net.wifi.WifiManager.WifiLock createWifiLock(String); 452 method @Deprecated public boolean disableNetwork(int); 453 method @Deprecated public boolean disconnect(); 454 method @Deprecated public boolean enableNetwork(int, boolean); 455 method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_MANAGED_PROVISIONING, android.Manifest.permission.NETWORK_CARRIER_PROVISIONING}, conditional=true) public void flushPasspointAnqpCache(); 456 method @NonNull @RequiresPermission(android.Manifest.permission.NEARBY_WIFI_DEVICES) public java.util.List<android.net.wifi.WifiAvailableChannel> getAllowedChannels(int, int); 457 method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public java.util.List<android.net.wifi.WifiConfiguration> getCallerConfiguredNetworks(); 458 method @RequiresPermission(android.Manifest.permission.NEARBY_WIFI_DEVICES) public void getChannelData(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.util.List<android.os.Bundle>>); 459 method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_WIFI_STATE}) public java.util.List<android.net.wifi.WifiConfiguration> getConfiguredNetworks(); 460 method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public android.net.wifi.WifiInfo getConnectionInfo(); 461 method @Deprecated public android.net.DhcpInfo getDhcpInfo(); 462 method public int getMaxNumberOfChannelsPerNetworkSpecifierRequest(); 463 method public int getMaxNumberOfNetworkSuggestionsPerApp(); 464 method @IntRange(from=0) public int getMaxSignalLevel(); 465 method public void getMaxSupportedConcurrentTdlsSessions(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Integer>); 466 method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public java.util.List<android.net.wifi.WifiNetworkSuggestion> getNetworkSuggestions(); 467 method public void getNumberOfEnabledTdlsSessions(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Integer>); 468 method @Deprecated public java.util.List<android.net.wifi.hotspot2.PasspointConfiguration> getPasspointConfigurations(); 469 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public void getPerSsidRoamingModes(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Integer>>); 470 method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.ACCESS_FINE_LOCATION}) public java.util.List<android.net.wifi.ScanResult> getScanResults(); 471 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public int getStaConcurrencyForMultiInternetMode(); 472 method @NonNull @RequiresPermission(android.Manifest.permission.NEARBY_WIFI_DEVICES) public java.util.List<android.net.wifi.WifiAvailableChannel> getUsableChannels(int, int); 473 method public int getWifiState(); 474 method public boolean is24GHzBandSupported(); 475 method public boolean is5GHzBandSupported(); 476 method public boolean is60GHzBandSupported(); 477 method public boolean is6GHzBandSupported(); 478 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public boolean isAggressiveRoamingModeSupported(); 479 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isAutoWakeupEnabled(); 480 method public boolean isBridgedApConcurrencySupported(); 481 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isCarrierNetworkOffloadEnabled(int, boolean); 482 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public boolean isD2dSupportedWhenInfraStaDisabled(); 483 method public boolean isDecoratedIdentitySupported(); 484 method @Deprecated public boolean isDeviceToApRttSupported(); 485 method public boolean isDualBandSimultaneousSupported(); 486 method public boolean isEasyConnectDppAkmSupported(); 487 method public boolean isEasyConnectEnrolleeResponderModeSupported(); 488 method public boolean isEasyConnectSupported(); 489 method public boolean isEnhancedOpenSupported(); 490 method public boolean isEnhancedPowerReportingSupported(); 491 method public boolean isMakeBeforeBreakWifiSwitchingSupported(); 492 method public boolean isP2pSupported(); 493 method public boolean isPasspointTermsAndConditionsSupported(); 494 method public boolean isPreferredNetworkOffloadSupported(); 495 method @Deprecated public boolean isScanAlwaysAvailable(); 496 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isScanThrottleEnabled(); 497 method public boolean isStaApConcurrencySupported(); 498 method public boolean isStaBridgedApConcurrencySupported(); 499 method public boolean isStaConcurrencyForLocalOnlyConnectionsSupported(); 500 method public boolean isStaConcurrencyForMultiInternetSupported(); 501 method public void isTdlsOperationCurrentlyAvailable(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>); 502 method public boolean isTdlsSupported(); 503 method public boolean isTidToLinkMappingNegotiationSupported(); 504 method public boolean isTlsMinimumVersionSupported(); 505 method public boolean isTlsV13Supported(); 506 method public boolean isTrustOnFirstUseSupported(); 507 method public boolean isWapiSupported(); 508 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public boolean isWepSupported(); 509 method public boolean isWifiDisplayR2Supported(); 510 method public boolean isWifiEnabled(); 511 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isWifiPasspointEnabled(); 512 method public boolean isWifiStandardSupported(int); 513 method public boolean isWpa3SaeH2eSupported(); 514 method public boolean isWpa3SaePublicKeySupported(); 515 method public boolean isWpa3SaeSupported(); 516 method public boolean isWpa3SuiteBSupported(); 517 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public boolean isWpaPersonalSupported(); 518 method @Deprecated public boolean pingSupplicant(); 519 method public void queryAutojoinGlobal(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>); 520 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void querySendDhcpHostnameRestriction(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.IntConsumer); 521 method @Deprecated public boolean reassociate(); 522 method @Deprecated public boolean reconnect(); 523 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void registerScanResultsCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.ScanResultsCallback); 524 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void registerSubsystemRestartTrackingCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.SubsystemRestartTrackingCallback); 525 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void removeLocalOnlyConnectionFailureListener(@NonNull android.net.wifi.WifiManager.LocalOnlyConnectionFailureListener); 526 method @Deprecated public boolean removeNetwork(int); 527 method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public int removeNetworkSuggestions(@NonNull java.util.List<android.net.wifi.WifiNetworkSuggestion>); 528 method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public int removeNetworkSuggestions(@NonNull java.util.List<android.net.wifi.WifiNetworkSuggestion>, int); 529 method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public boolean removeNonCallerConfiguredNetworks(); 530 method @Deprecated public void removePasspointConfiguration(String); 531 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public void removePerSsidRoamingMode(@NonNull android.net.wifi.WifiSsid); 532 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void removeSuggestionConnectionStatusListener(@NonNull android.net.wifi.WifiManager.SuggestionConnectionStatusListener); 533 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void removeSuggestionUserApprovalStatusListener(@NonNull android.net.wifi.WifiManager.SuggestionUserApprovalStatusListener); 534 method @RequiresPermission(allOf={android.Manifest.permission.MANAGE_WIFI_INTERFACES, android.Manifest.permission.ACCESS_WIFI_STATE}) public void reportCreateInterfaceImpact(int, boolean, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.BiConsumer<java.lang.Boolean,java.util.Set<android.net.wifi.WifiManager.InterfaceCreationImpact>>); 535 method @Deprecated public boolean saveConfiguration(); 536 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public void setPerSsidRoamingMode(@NonNull android.net.wifi.WifiSsid, int); 537 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void setSendDhcpHostnameRestriction(int); 538 method public void setTdlsEnabled(java.net.InetAddress, boolean); 539 method public void setTdlsEnabled(@NonNull java.net.InetAddress, boolean, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>); 540 method public void setTdlsEnabledWithMacAddress(String, boolean); 541 method public void setTdlsEnabledWithMacAddress(@NonNull String, boolean, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>); 542 method @Deprecated public boolean setWifiEnabled(boolean); 543 method @RequiresPermission(allOf={android.Manifest.permission.CHANGE_WIFI_STATE, android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.NEARBY_WIFI_DEVICES}, conditional=true) public void startLocalOnlyHotspot(android.net.wifi.WifiManager.LocalOnlyHotspotCallback, @Nullable android.os.Handler); 544 method @Deprecated public boolean startScan(); 545 method @Deprecated public void startWps(android.net.wifi.WpsInfo, android.net.wifi.WifiManager.WpsCallback); 546 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void unregisterScanResultsCallback(@NonNull android.net.wifi.WifiManager.ScanResultsCallback); 547 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void unregisterSubsystemRestartTrackingCallback(@NonNull android.net.wifi.WifiManager.SubsystemRestartTrackingCallback); 548 method @Deprecated public int updateNetwork(android.net.wifi.WifiConfiguration); 549 method public boolean validateSoftApConfiguration(@NonNull android.net.wifi.SoftApConfiguration); 550 field public static final String ACTION_PICK_WIFI_NETWORK = "android.net.wifi.PICK_WIFI_NETWORK"; 551 field public static final int ACTION_REMOVE_SUGGESTION_DISCONNECT = 2; // 0x2 552 field public static final int ACTION_REMOVE_SUGGESTION_LINGER = 1; // 0x1 553 field public static final String ACTION_REQUEST_SCAN_ALWAYS_AVAILABLE = "android.net.wifi.action.REQUEST_SCAN_ALWAYS_AVAILABLE"; 554 field public static final String ACTION_WIFI_NETWORK_SUGGESTION_POST_CONNECTION = "android.net.wifi.action.WIFI_NETWORK_SUGGESTION_POST_CONNECTION"; 555 field public static final String ACTION_WIFI_SCAN_AVAILABILITY_CHANGED = "android.net.wifi.action.WIFI_SCAN_AVAILABILITY_CHANGED"; 556 field public static final String CHANNEL_DATA_KEY_FREQUENCY_MHZ = "CHANNEL_DATA_KEY_FREQUENCY_MHZ"; 557 field public static final String CHANNEL_DATA_KEY_NUM_AP = "CHANNEL_DATA_KEY_NUM_AP"; 558 field @Deprecated public static final int ERROR_AUTHENTICATING = 1; // 0x1 559 field @Deprecated public static final String EXTRA_BSSID = "bssid"; 560 field public static final String EXTRA_NETWORK_INFO = "networkInfo"; 561 field public static final String EXTRA_NETWORK_SUGGESTION = "android.net.wifi.extra.NETWORK_SUGGESTION"; 562 field public static final String EXTRA_NEW_RSSI = "newRssi"; 563 field @Deprecated public static final String EXTRA_NEW_STATE = "newState"; 564 field public static final String EXTRA_PREVIOUS_WIFI_STATE = "previous_wifi_state"; 565 field public static final String EXTRA_RESULTS_UPDATED = "resultsUpdated"; 566 field public static final String EXTRA_SCAN_AVAILABLE = "android.net.wifi.extra.SCAN_AVAILABLE"; 567 field @Deprecated public static final String EXTRA_SUPPLICANT_CONNECTED = "connected"; 568 field @Deprecated public static final String EXTRA_SUPPLICANT_ERROR = "supplicantError"; 569 field @Deprecated public static final String EXTRA_WIFI_INFO = "wifiInfo"; 570 field public static final String EXTRA_WIFI_STATE = "wifi_state"; 571 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final int FLAG_SEND_DHCP_HOSTNAME_RESTRICTION_OPEN = 1; // 0x1 572 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final int FLAG_SEND_DHCP_HOSTNAME_RESTRICTION_SECURE = 2; // 0x2 573 field public static final String NETWORK_IDS_CHANGED_ACTION = "android.net.wifi.NETWORK_IDS_CHANGED"; 574 field public static final String NETWORK_STATE_CHANGED_ACTION = "android.net.wifi.STATE_CHANGE"; 575 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final int ROAMING_MODE_AGGRESSIVE = 2; // 0x2 576 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final int ROAMING_MODE_NONE = 0; // 0x0 577 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final int ROAMING_MODE_NORMAL = 1; // 0x1 578 field public static final String RSSI_CHANGED_ACTION = "android.net.wifi.RSSI_CHANGED"; 579 field public static final String SCAN_RESULTS_AVAILABLE_ACTION = "android.net.wifi.SCAN_RESULTS"; 580 field public static final int STATUS_LOCAL_ONLY_CONNECTION_FAILURE_ASSOCIATION = 1; // 0x1 581 field public static final int STATUS_LOCAL_ONLY_CONNECTION_FAILURE_AUTHENTICATION = 2; // 0x2 582 field public static final int STATUS_LOCAL_ONLY_CONNECTION_FAILURE_IP_PROVISIONING = 3; // 0x3 583 field public static final int STATUS_LOCAL_ONLY_CONNECTION_FAILURE_NOT_FOUND = 4; // 0x4 584 field public static final int STATUS_LOCAL_ONLY_CONNECTION_FAILURE_NO_RESPONSE = 5; // 0x5 585 field public static final int STATUS_LOCAL_ONLY_CONNECTION_FAILURE_UNKNOWN = 0; // 0x0 586 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_ADD_DUPLICATE = 3; // 0x3 587 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_ADD_EXCEEDS_MAX_PER_APP = 4; // 0x4 588 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_ADD_INVALID = 7; // 0x7 589 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_ADD_NOT_ALLOWED = 6; // 0x6 590 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_APP_DISALLOWED = 2; // 0x2 591 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_INTERNAL = 1; // 0x1 592 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_REMOVE_INVALID = 5; // 0x5 593 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_RESTRICTED_BY_ADMIN = 8; // 0x8 594 field public static final int STATUS_NETWORK_SUGGESTIONS_SUCCESS = 0; // 0x0 595 field public static final int STATUS_SUGGESTION_APPROVAL_APPROVED_BY_CARRIER_PRIVILEGE = 4; // 0x4 596 field public static final int STATUS_SUGGESTION_APPROVAL_APPROVED_BY_USER = 2; // 0x2 597 field public static final int STATUS_SUGGESTION_APPROVAL_PENDING = 1; // 0x1 598 field public static final int STATUS_SUGGESTION_APPROVAL_REJECTED_BY_USER = 3; // 0x3 599 field public static final int STATUS_SUGGESTION_APPROVAL_UNKNOWN = 0; // 0x0 600 field public static final int STATUS_SUGGESTION_CONNECTION_FAILURE_ASSOCIATION = 1; // 0x1 601 field public static final int STATUS_SUGGESTION_CONNECTION_FAILURE_AUTHENTICATION = 2; // 0x2 602 field public static final int STATUS_SUGGESTION_CONNECTION_FAILURE_IP_PROVISIONING = 3; // 0x3 603 field public static final int STATUS_SUGGESTION_CONNECTION_FAILURE_UNKNOWN = 0; // 0x0 604 field @Deprecated public static final String SUPPLICANT_CONNECTION_CHANGE_ACTION = "android.net.wifi.supplicant.CONNECTION_CHANGE"; 605 field @Deprecated public static final String SUPPLICANT_STATE_CHANGED_ACTION = "android.net.wifi.supplicant.STATE_CHANGE"; 606 field public static final String UNKNOWN_SSID = "<unknown ssid>"; 607 field public static final int WIFI_INTERFACE_TYPE_AP = 1; // 0x1 608 field public static final int WIFI_INTERFACE_TYPE_AWARE = 2; // 0x2 609 field public static final int WIFI_INTERFACE_TYPE_DIRECT = 3; // 0x3 610 field public static final int WIFI_INTERFACE_TYPE_STA = 0; // 0x0 611 field @Deprecated public static final int WIFI_MODE_FULL = 1; // 0x1 612 field @Deprecated public static final int WIFI_MODE_FULL_HIGH_PERF = 3; // 0x3 613 field public static final int WIFI_MODE_FULL_LOW_LATENCY = 4; // 0x4 614 field @Deprecated public static final int WIFI_MODE_SCAN_ONLY = 2; // 0x2 615 field public static final int WIFI_MULTI_INTERNET_MODE_DBS_AP = 1; // 0x1 616 field public static final int WIFI_MULTI_INTERNET_MODE_DISABLED = 0; // 0x0 617 field public static final int WIFI_MULTI_INTERNET_MODE_MULTI_AP = 2; // 0x2 618 field public static final String WIFI_STATE_CHANGED_ACTION = "android.net.wifi.WIFI_STATE_CHANGED"; 619 field public static final int WIFI_STATE_DISABLED = 1; // 0x1 620 field public static final int WIFI_STATE_DISABLING = 0; // 0x0 621 field public static final int WIFI_STATE_ENABLED = 3; // 0x3 622 field public static final int WIFI_STATE_ENABLING = 2; // 0x2 623 field public static final int WIFI_STATE_UNKNOWN = 4; // 0x4 624 field @Deprecated public static final int WPS_AUTH_FAILURE = 6; // 0x6 625 field @Deprecated public static final int WPS_OVERLAP_ERROR = 3; // 0x3 626 field @Deprecated public static final int WPS_TIMED_OUT = 7; // 0x7 627 field @Deprecated public static final int WPS_TKIP_ONLY_PROHIBITED = 5; // 0x5 628 field @Deprecated public static final int WPS_WEP_PROHIBITED = 4; // 0x4 629 } 630 631 public static final class WifiManager.AddNetworkResult implements android.os.Parcelable { 632 ctor public WifiManager.AddNetworkResult(int, int); 633 method public int describeContents(); 634 method public void writeToParcel(@NonNull android.os.Parcel, int); 635 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.WifiManager.AddNetworkResult> CREATOR; 636 field public static final int STATUS_ADD_PASSPOINT_FAILURE = 3; // 0x3 637 field public static final int STATUS_ADD_WIFI_CONFIG_FAILURE = 4; // 0x4 638 field public static final int STATUS_FAILURE_UNKNOWN = 1; // 0x1 639 field public static final int STATUS_FAILURE_UPDATE_NETWORK_KEYS = 9; // 0x9 640 field public static final int STATUS_INVALID_CONFIGURATION = 5; // 0x5 641 field public static final int STATUS_INVALID_CONFIGURATION_ENTERPRISE = 10; // 0xa 642 field public static final int STATUS_NO_PERMISSION = 2; // 0x2 643 field public static final int STATUS_NO_PERMISSION_MODIFY_CONFIG = 6; // 0x6 644 field public static final int STATUS_NO_PERMISSION_MODIFY_MAC_RANDOMIZATION = 8; // 0x8 645 field public static final int STATUS_NO_PERMISSION_MODIFY_PROXY_SETTING = 7; // 0x7 646 field public static final int STATUS_SUCCESS = 0; // 0x0 647 field public final int networkId; 648 field public final int statusCode; 649 } 650 651 public static class WifiManager.InterfaceCreationImpact { 652 ctor public WifiManager.InterfaceCreationImpact(int, @NonNull java.util.Set<java.lang.String>); 653 method public int getInterfaceType(); 654 method @NonNull public java.util.Set<java.lang.String> getPackages(); 655 } 656 657 public static interface WifiManager.LocalOnlyConnectionFailureListener { 658 method public void onConnectionFailed(@NonNull android.net.wifi.WifiNetworkSpecifier, int); 659 } 660 661 public static class WifiManager.LocalOnlyHotspotCallback { 662 ctor public WifiManager.LocalOnlyHotspotCallback(); 663 method public void onFailed(int); 664 method public void onStarted(android.net.wifi.WifiManager.LocalOnlyHotspotReservation); 665 method public void onStopped(); 666 field public static final int ERROR_GENERIC = 2; // 0x2 667 field public static final int ERROR_INCOMPATIBLE_MODE = 3; // 0x3 668 field public static final int ERROR_NO_CHANNEL = 1; // 0x1 669 field public static final int ERROR_TETHERING_DISALLOWED = 4; // 0x4 670 } 671 672 public class WifiManager.LocalOnlyHotspotReservation implements java.lang.AutoCloseable { 673 method public void close(); 674 method @NonNull public android.net.wifi.SoftApConfiguration getSoftApConfiguration(); 675 method @Deprecated @Nullable public android.net.wifi.WifiConfiguration getWifiConfiguration(); 676 } 677 678 public class WifiManager.MulticastLock { 679 method public void acquire(); 680 method public boolean isHeld(); 681 method public void release(); 682 method public void setReferenceCounted(boolean); 683 } 684 685 public abstract static class WifiManager.ScanResultsCallback { 686 ctor public WifiManager.ScanResultsCallback(); 687 method public abstract void onScanResultsAvailable(); 688 } 689 690 public abstract static class WifiManager.SubsystemRestartTrackingCallback { 691 ctor public WifiManager.SubsystemRestartTrackingCallback(); 692 method public abstract void onSubsystemRestarted(); 693 method public abstract void onSubsystemRestarting(); 694 } 695 696 public static interface WifiManager.SuggestionConnectionStatusListener { 697 method public void onConnectionStatus(@NonNull android.net.wifi.WifiNetworkSuggestion, int); 698 } 699 700 public static interface WifiManager.SuggestionUserApprovalStatusListener { 701 method public void onUserApprovalStatusChange(int); 702 } 703 704 public class WifiManager.WifiLock { 705 method public void acquire(); 706 method public boolean isHeld(); 707 method public void release(); 708 method public void setReferenceCounted(boolean); 709 method public void setWorkSource(android.os.WorkSource); 710 } 711 712 @Deprecated public abstract static class WifiManager.WpsCallback { 713 ctor @Deprecated public WifiManager.WpsCallback(); 714 method @Deprecated public abstract void onFailed(int); 715 method @Deprecated public abstract void onStarted(String); 716 method @Deprecated public abstract void onSucceeded(); 717 } 718 719 public final class WifiNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable { 720 method public int describeContents(); 721 method public int getBand(); 722 method @NonNull public int[] getPreferredChannelFrequenciesMhz(); 723 method public void writeToParcel(android.os.Parcel, int); 724 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.WifiNetworkSpecifier> CREATOR; 725 } 726 727 public static final class WifiNetworkSpecifier.Builder { 728 ctor public WifiNetworkSpecifier.Builder(); 729 method @NonNull public android.net.wifi.WifiNetworkSpecifier build(); 730 method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setBand(int); 731 method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setBssid(@NonNull android.net.MacAddress); 732 method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setBssidPattern(@NonNull android.net.MacAddress, @NonNull android.net.MacAddress); 733 method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setIsEnhancedOpen(boolean); 734 method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setIsHiddenSsid(boolean); 735 method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setPreferredChannelsFrequenciesMhz(@NonNull int[]); 736 method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setSsid(@NonNull String); 737 method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setSsidPattern(@NonNull android.os.PatternMatcher); 738 method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setWpa2EnterpriseConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); 739 method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setWpa2Passphrase(@NonNull String); 740 method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setWpa3Enterprise192BitModeConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); 741 method @Deprecated @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setWpa3EnterpriseConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); 742 method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setWpa3EnterpriseStandardModeConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); 743 method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setWpa3Passphrase(@NonNull String); 744 } 745 746 public final class WifiNetworkSuggestion implements android.os.Parcelable { 747 method public int describeContents(); 748 method @Nullable public android.net.MacAddress getBssid(); 749 method @Nullable public android.net.wifi.WifiEnterpriseConfig getEnterpriseConfig(); 750 method public int getMacRandomizationSetting(); 751 method @Nullable public String getPassphrase(); 752 method @Nullable public android.net.wifi.hotspot2.PasspointConfiguration getPasspointConfig(); 753 method @IntRange(from=0) public int getPriority(); 754 method @IntRange(from=0) public int getPriorityGroup(); 755 method @Nullable public String getSsid(); 756 method @Nullable public android.os.ParcelUuid getSubscriptionGroup(); 757 method public int getSubscriptionId(); 758 method @Nullable public android.net.wifi.WifiSsid getWifiSsid(); 759 method public boolean isAppInteractionRequired(); 760 method public boolean isCarrierMerged(); 761 method public boolean isCredentialSharedWithUser(); 762 method public boolean isEnhancedOpen(); 763 method public boolean isHiddenSsid(); 764 method public boolean isInitialAutojoinEnabled(); 765 method public boolean isMetered(); 766 method public boolean isRestricted(); 767 method public boolean isUntrusted(); 768 method public boolean isUserInteractionRequired(); 769 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public boolean isWifi7Enabled(); 770 method public void writeToParcel(android.os.Parcel, int); 771 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.WifiNetworkSuggestion> CREATOR; 772 field public static final int RANDOMIZATION_NON_PERSISTENT = 1; // 0x1 773 field public static final int RANDOMIZATION_PERSISTENT = 0; // 0x0 774 } 775 776 public static final class WifiNetworkSuggestion.Builder { 777 ctor public WifiNetworkSuggestion.Builder(); 778 method @NonNull public android.net.wifi.WifiNetworkSuggestion build(); 779 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setBssid(@NonNull android.net.MacAddress); 780 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setCarrierMerged(boolean); 781 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setCredentialSharedWithUser(boolean); 782 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setIsAppInteractionRequired(boolean); 783 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setIsEnhancedOpen(boolean); 784 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setIsHiddenSsid(boolean); 785 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setIsInitialAutojoinEnabled(boolean); 786 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setIsMetered(boolean); 787 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setIsUserInteractionRequired(boolean); 788 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setIsWpa3SaeH2eOnlyModeEnabled(boolean); 789 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setMacRandomizationSetting(int); 790 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setPasspointConfig(@NonNull android.net.wifi.hotspot2.PasspointConfiguration); 791 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setPriority(@IntRange(from=0) int); 792 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setPriorityGroup(@IntRange(from=0) int); 793 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setRestricted(boolean); 794 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setSsid(@NonNull String); 795 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setSubscriptionGroup(@NonNull android.os.ParcelUuid); 796 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setSubscriptionId(int); 797 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setUntrusted(boolean); 798 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWapiEnterpriseConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); 799 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWapiPassphrase(@NonNull String); 800 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWifi7Enabled(boolean); 801 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWifiSsid(@NonNull android.net.wifi.WifiSsid); 802 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWpa2EnterpriseConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); 803 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWpa2Passphrase(@NonNull String); 804 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWpa3Enterprise192BitModeConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); 805 method @Deprecated @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWpa3EnterpriseConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); 806 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWpa3EnterpriseStandardModeConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); 807 method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWpa3Passphrase(@NonNull String); 808 } 809 810 public final class WifiSsid implements android.os.Parcelable { 811 method public int describeContents(); 812 method @NonNull public static android.net.wifi.WifiSsid fromBytes(@Nullable byte[]); 813 method @NonNull public byte[] getBytes(); 814 method public void writeToParcel(@NonNull android.os.Parcel, int); 815 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.WifiSsid> CREATOR; 816 } 817 818 public class WpsInfo implements android.os.Parcelable { 819 ctor public WpsInfo(); 820 ctor public WpsInfo(android.net.wifi.WpsInfo); 821 method public int describeContents(); 822 method public void writeToParcel(android.os.Parcel, int); 823 field public String BSSID; 824 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.WpsInfo> CREATOR; 825 field public static final int DISPLAY = 1; // 0x1 826 field public static final int INVALID = 4; // 0x4 827 field public static final int KEYPAD = 2; // 0x2 828 field public static final int LABEL = 3; // 0x3 829 field public static final int PBC = 0; // 0x0 830 field public String pin; 831 field public int setup; 832 } 833 834} 835 836package android.net.wifi.aware { 837 838 public class AttachCallback { 839 ctor public AttachCallback(); 840 method public void onAttachFailed(); 841 method public void onAttached(android.net.wifi.aware.WifiAwareSession); 842 method public void onAwareSessionTerminated(); 843 } 844 845 public final class AwarePairingConfig implements android.os.Parcelable { 846 method public int describeContents(); 847 method public int getBootstrappingMethods(); 848 method public boolean isPairingCacheEnabled(); 849 method public boolean isPairingSetupEnabled(); 850 method public boolean isPairingVerificationEnabled(); 851 method public void writeToParcel(@NonNull android.os.Parcel, int); 852 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.aware.AwarePairingConfig> CREATOR; 853 field public static final int PAIRING_BOOTSTRAPPING_NFC_READER = 256; // 0x100 854 field public static final int PAIRING_BOOTSTRAPPING_NFC_TAG = 16; // 0x10 855 field public static final int PAIRING_BOOTSTRAPPING_OPPORTUNISTIC = 1; // 0x1 856 field public static final int PAIRING_BOOTSTRAPPING_PASSPHRASE_DISPLAY = 4; // 0x4 857 field public static final int PAIRING_BOOTSTRAPPING_PASSPHRASE_KEYPAD = 64; // 0x40 858 field public static final int PAIRING_BOOTSTRAPPING_PIN_CODE_DISPLAY = 2; // 0x2 859 field public static final int PAIRING_BOOTSTRAPPING_PIN_CODE_KEYPAD = 32; // 0x20 860 field public static final int PAIRING_BOOTSTRAPPING_QR_DISPLAY = 8; // 0x8 861 field public static final int PAIRING_BOOTSTRAPPING_QR_SCAN = 128; // 0x80 862 } 863 864 public static final class AwarePairingConfig.Builder { 865 ctor public AwarePairingConfig.Builder(); 866 method @NonNull public android.net.wifi.aware.AwarePairingConfig build(); 867 method @NonNull public android.net.wifi.aware.AwarePairingConfig.Builder setBootstrappingMethods(int); 868 method @NonNull public android.net.wifi.aware.AwarePairingConfig.Builder setPairingCacheEnabled(boolean); 869 method @NonNull public android.net.wifi.aware.AwarePairingConfig.Builder setPairingSetupEnabled(boolean); 870 method @NonNull public android.net.wifi.aware.AwarePairingConfig.Builder setPairingVerificationEnabled(boolean); 871 } 872 873 public final class AwareResources implements android.os.Parcelable { 874 ctor public AwareResources(@IntRange(from=0) int, @IntRange(from=0) int, @IntRange(from=0) int); 875 method public int describeContents(); 876 method @IntRange(from=0) public int getAvailableDataPathsCount(); 877 method @IntRange(from=0) public int getAvailablePublishSessionsCount(); 878 method @IntRange(from=0) public int getAvailableSubscribeSessionsCount(); 879 method public void writeToParcel(@NonNull android.os.Parcel, int); 880 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.aware.AwareResources> CREATOR; 881 } 882 883 public final class Characteristics implements android.os.Parcelable { 884 method public int describeContents(); 885 method public int getMaxMatchFilterLength(); 886 method public int getMaxServiceNameLength(); 887 method public int getMaxServiceSpecificInfoLength(); 888 method @IntRange(from=1) public int getNumberOfSupportedDataInterfaces(); 889 method @IntRange(from=1) public int getNumberOfSupportedDataPaths(); 890 method @IntRange(from=1) public int getNumberOfSupportedPublishSessions(); 891 method @IntRange(from=1) public int getNumberOfSupportedSubscribeSessions(); 892 method public int getSupportedCipherSuites(); 893 method public int getSupportedPairingCipherSuites(); 894 method public boolean isAwarePairingSupported(); 895 method public boolean isInstantCommunicationModeSupported(); 896 method public boolean isSuspensionSupported(); 897 method public void writeToParcel(android.os.Parcel, int); 898 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.aware.Characteristics> CREATOR; 899 field public static final int WIFI_AWARE_CIPHER_SUITE_NCS_PK_128 = 4; // 0x4 900 field public static final int WIFI_AWARE_CIPHER_SUITE_NCS_PK_256 = 8; // 0x8 901 field public static final int WIFI_AWARE_CIPHER_SUITE_NCS_PK_PASN_128 = 16; // 0x10 902 field public static final int WIFI_AWARE_CIPHER_SUITE_NCS_PK_PASN_256 = 32; // 0x20 903 field public static final int WIFI_AWARE_CIPHER_SUITE_NCS_SK_128 = 1; // 0x1 904 field public static final int WIFI_AWARE_CIPHER_SUITE_NCS_SK_256 = 2; // 0x2 905 field public static final int WIFI_AWARE_CIPHER_SUITE_NONE = 0; // 0x0 906 } 907 908 public class DiscoverySession implements java.lang.AutoCloseable { 909 method public void acceptPairingRequest(int, @NonNull android.net.wifi.aware.PeerHandle, @NonNull String, int, @Nullable String); 910 method public void close(); 911 method @Deprecated public android.net.NetworkSpecifier createNetworkSpecifierOpen(@NonNull android.net.wifi.aware.PeerHandle); 912 method @Deprecated public android.net.NetworkSpecifier createNetworkSpecifierPassphrase(@NonNull android.net.wifi.aware.PeerHandle, @NonNull String); 913 method public void initiateBootstrappingRequest(@NonNull android.net.wifi.aware.PeerHandle, int); 914 method public void initiatePairingRequest(@NonNull android.net.wifi.aware.PeerHandle, @NonNull String, int, @Nullable String); 915 method public void rejectPairingRequest(int, @NonNull android.net.wifi.aware.PeerHandle); 916 method public void sendMessage(@NonNull android.net.wifi.aware.PeerHandle, int, @Nullable byte[]); 917 } 918 919 public class DiscoverySessionCallback { 920 ctor public DiscoverySessionCallback(); 921 method public void onBootstrappingFailed(@NonNull android.net.wifi.aware.PeerHandle); 922 method public void onBootstrappingSucceeded(@NonNull android.net.wifi.aware.PeerHandle, int); 923 method public void onMessageReceived(android.net.wifi.aware.PeerHandle, byte[]); 924 method public void onMessageSendFailed(int); 925 method public void onMessageSendSucceeded(int); 926 method public void onPairingSetupFailed(@NonNull android.net.wifi.aware.PeerHandle); 927 method public void onPairingSetupRequestReceived(@NonNull android.net.wifi.aware.PeerHandle, int); 928 method public void onPairingSetupSucceeded(@NonNull android.net.wifi.aware.PeerHandle, @NonNull String); 929 method public void onPairingVerificationFailed(@NonNull android.net.wifi.aware.PeerHandle); 930 method public void onPairingVerificationSucceed(@NonNull android.net.wifi.aware.PeerHandle, @NonNull String); 931 method public void onPublishStarted(@NonNull android.net.wifi.aware.PublishDiscoverySession); 932 method public void onServiceDiscovered(android.net.wifi.aware.PeerHandle, byte[], java.util.List<byte[]>); 933 method public void onServiceDiscovered(@NonNull android.net.wifi.aware.ServiceDiscoveryInfo); 934 method public void onServiceDiscoveredWithinRange(android.net.wifi.aware.PeerHandle, byte[], java.util.List<byte[]>, int); 935 method public void onServiceDiscoveredWithinRange(@NonNull android.net.wifi.aware.ServiceDiscoveryInfo, int); 936 method public void onServiceLost(@NonNull android.net.wifi.aware.PeerHandle, int); 937 method public void onSessionConfigFailed(); 938 method public void onSessionConfigUpdated(); 939 method public void onSessionTerminated(); 940 method public void onSubscribeStarted(@NonNull android.net.wifi.aware.SubscribeDiscoverySession); 941 } 942 943 public class IdentityChangedListener { 944 ctor public IdentityChangedListener(); 945 method public void onClusterIdChanged(int, @NonNull android.net.MacAddress); 946 method public void onIdentityChanged(byte[]); 947 field public static final int CLUSTER_CHANGE_EVENT_JOINED = 1; // 0x1 948 field public static final int CLUSTER_CHANGE_EVENT_STARTED = 0; // 0x0 949 } 950 951 public final class ParcelablePeerHandle extends android.net.wifi.aware.PeerHandle implements android.os.Parcelable { 952 ctor public ParcelablePeerHandle(@NonNull android.net.wifi.aware.PeerHandle); 953 method public int describeContents(); 954 method public void writeToParcel(android.os.Parcel, int); 955 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.aware.ParcelablePeerHandle> CREATOR; 956 } 957 958 public class PeerHandle { 959 } 960 961 public final class PublishConfig implements android.os.Parcelable { 962 method public int describeContents(); 963 method public int getInstantCommunicationBand(); 964 method @Nullable public android.net.wifi.aware.AwarePairingConfig getPairingConfig(); 965 method @Nullable public android.net.wifi.aware.WifiAwareDataPathSecurityConfig getSecurityConfig(); 966 method public boolean isInstantCommunicationModeEnabled(); 967 method public void writeToParcel(android.os.Parcel, int); 968 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.aware.PublishConfig> CREATOR; 969 field public static final int PUBLISH_TYPE_SOLICITED = 1; // 0x1 970 field public static final int PUBLISH_TYPE_UNSOLICITED = 0; // 0x0 971 } 972 973 public static final class PublishConfig.Builder { 974 ctor public PublishConfig.Builder(); 975 method public android.net.wifi.aware.PublishConfig build(); 976 method @NonNull public android.net.wifi.aware.PublishConfig.Builder setDataPathSecurityConfig(@NonNull android.net.wifi.aware.WifiAwareDataPathSecurityConfig); 977 method @NonNull public android.net.wifi.aware.PublishConfig.Builder setInstantCommunicationModeEnabled(boolean, int); 978 method public android.net.wifi.aware.PublishConfig.Builder setMatchFilter(@Nullable java.util.List<byte[]>); 979 method @NonNull public android.net.wifi.aware.PublishConfig.Builder setPairingConfig(@Nullable android.net.wifi.aware.AwarePairingConfig); 980 method public android.net.wifi.aware.PublishConfig.Builder setPublishType(int); 981 method public android.net.wifi.aware.PublishConfig.Builder setRangingEnabled(boolean); 982 method public android.net.wifi.aware.PublishConfig.Builder setServiceName(@NonNull String); 983 method public android.net.wifi.aware.PublishConfig.Builder setServiceSpecificInfo(@Nullable byte[]); 984 method public android.net.wifi.aware.PublishConfig.Builder setTerminateNotificationEnabled(boolean); 985 method public android.net.wifi.aware.PublishConfig.Builder setTtlSec(int); 986 } 987 988 public class PublishDiscoverySession extends android.net.wifi.aware.DiscoverySession { 989 method public void updatePublish(@NonNull android.net.wifi.aware.PublishConfig); 990 } 991 992 public final class ServiceDiscoveryInfo { 993 method @NonNull public java.util.List<byte[]> getMatchFilters(); 994 method @Nullable public String getPairedAlias(); 995 method @Nullable public android.net.wifi.aware.AwarePairingConfig getPairingConfig(); 996 method public int getPeerCipherSuite(); 997 method @NonNull public android.net.wifi.aware.PeerHandle getPeerHandle(); 998 method @Nullable public byte[] getScid(); 999 method @Nullable public byte[] getServiceSpecificInfo(); 1000 } 1001 1002 public final class SubscribeConfig implements android.os.Parcelable { 1003 method public int describeContents(); 1004 method public int getInstantCommunicationBand(); 1005 method @Nullable public android.net.wifi.aware.AwarePairingConfig getPairingConfig(); 1006 method public boolean isInstantCommunicationModeEnabled(); 1007 method public void writeToParcel(android.os.Parcel, int); 1008 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.aware.SubscribeConfig> CREATOR; 1009 field public static final int SUBSCRIBE_TYPE_ACTIVE = 1; // 0x1 1010 field public static final int SUBSCRIBE_TYPE_PASSIVE = 0; // 0x0 1011 } 1012 1013 public static final class SubscribeConfig.Builder { 1014 ctor public SubscribeConfig.Builder(); 1015 method public android.net.wifi.aware.SubscribeConfig build(); 1016 method @NonNull public android.net.wifi.aware.SubscribeConfig.Builder setInstantCommunicationModeEnabled(boolean, int); 1017 method public android.net.wifi.aware.SubscribeConfig.Builder setMatchFilter(@Nullable java.util.List<byte[]>); 1018 method public android.net.wifi.aware.SubscribeConfig.Builder setMaxDistanceMm(int); 1019 method public android.net.wifi.aware.SubscribeConfig.Builder setMinDistanceMm(int); 1020 method @NonNull public android.net.wifi.aware.SubscribeConfig.Builder setPairingConfig(@Nullable android.net.wifi.aware.AwarePairingConfig); 1021 method public android.net.wifi.aware.SubscribeConfig.Builder setServiceName(@NonNull String); 1022 method public android.net.wifi.aware.SubscribeConfig.Builder setServiceSpecificInfo(@Nullable byte[]); 1023 method public android.net.wifi.aware.SubscribeConfig.Builder setSubscribeType(int); 1024 method public android.net.wifi.aware.SubscribeConfig.Builder setTerminateNotificationEnabled(boolean); 1025 method public android.net.wifi.aware.SubscribeConfig.Builder setTtlSec(int); 1026 } 1027 1028 public class SubscribeDiscoverySession extends android.net.wifi.aware.DiscoverySession { 1029 method public void updateSubscribe(@NonNull android.net.wifi.aware.SubscribeConfig); 1030 } 1031 1032 public final class WifiAwareChannelInfo implements android.os.Parcelable { 1033 method public int describeContents(); 1034 method @IntRange(from=0) public int getChannelBandwidth(); 1035 method @IntRange(from=0) public int getChannelFrequencyMhz(); 1036 method @IntRange(from=0) public int getSpatialStreamCount(); 1037 method public void writeToParcel(@NonNull android.os.Parcel, int); 1038 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.aware.WifiAwareChannelInfo> CREATOR; 1039 } 1040 1041 public final class WifiAwareDataPathSecurityConfig implements android.os.Parcelable { 1042 method public int describeContents(); 1043 method public int getCipherSuite(); 1044 method @Nullable public byte[] getPmk(); 1045 method @Nullable public byte[] getPmkId(); 1046 method @Nullable public String getPskPassphrase(); 1047 method public void writeToParcel(@NonNull android.os.Parcel, int); 1048 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.aware.WifiAwareDataPathSecurityConfig> CREATOR; 1049 } 1050 1051 public static final class WifiAwareDataPathSecurityConfig.Builder { 1052 ctor public WifiAwareDataPathSecurityConfig.Builder(int); 1053 method @NonNull public android.net.wifi.aware.WifiAwareDataPathSecurityConfig build(); 1054 method @NonNull public android.net.wifi.aware.WifiAwareDataPathSecurityConfig.Builder setPmk(@NonNull byte[]); 1055 method @NonNull public android.net.wifi.aware.WifiAwareDataPathSecurityConfig.Builder setPmkId(@NonNull byte[]); 1056 method @NonNull public android.net.wifi.aware.WifiAwareDataPathSecurityConfig.Builder setPskPassphrase(@NonNull String); 1057 } 1058 1059 public class WifiAwareManager { 1060 method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.CHANGE_WIFI_STATE}) public void attach(@NonNull android.net.wifi.aware.AttachCallback, @Nullable android.os.Handler); 1061 method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.CHANGE_WIFI_STATE, android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.NEARBY_WIFI_DEVICES}, conditional=true) public void attach(@NonNull android.net.wifi.aware.AttachCallback, @NonNull android.net.wifi.aware.IdentityChangedListener, @Nullable android.os.Handler); 1062 method @Nullable @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public android.net.wifi.aware.AwareResources getAvailableAwareResources(); 1063 method @Nullable @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public android.net.wifi.aware.Characteristics getCharacteristics(); 1064 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void getPairedDevices(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.util.List<java.lang.String>>); 1065 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isAvailable(); 1066 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isDeviceAttached(); 1067 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isInstantCommunicationModeEnabled(); 1068 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void isOpportunisticModeEnabled(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Boolean>); 1069 method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isSetChannelOnDataPathSupported(); 1070 method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public void removePairedDevice(@NonNull String); 1071 method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public void resetPairedDevices(); 1072 method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public void setOpportunisticModeEnabled(boolean); 1073 field @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public static final String ACTION_WIFI_AWARE_RESOURCE_CHANGED = "android.net.wifi.aware.action.WIFI_AWARE_RESOURCE_CHANGED"; 1074 field public static final String ACTION_WIFI_AWARE_STATE_CHANGED = "android.net.wifi.aware.action.WIFI_AWARE_STATE_CHANGED"; 1075 field public static final String EXTRA_AWARE_RESOURCES = "android.net.wifi.aware.extra.AWARE_RESOURCES"; 1076 field public static final int WIFI_AWARE_DATA_PATH_ROLE_INITIATOR = 0; // 0x0 1077 field public static final int WIFI_AWARE_DATA_PATH_ROLE_RESPONDER = 1; // 0x1 1078 field public static final int WIFI_AWARE_DISCOVERY_LOST_REASON_PEER_NOT_VISIBLE = 1; // 0x1 1079 field public static final int WIFI_AWARE_DISCOVERY_LOST_REASON_UNKNOWN = 0; // 0x0 1080 } 1081 1082 public final class WifiAwareNetworkInfo implements android.os.Parcelable android.net.TransportInfo { 1083 method public int describeContents(); 1084 method @NonNull public java.util.List<android.net.wifi.aware.WifiAwareChannelInfo> getChannelInfoList(); 1085 method @Nullable public java.net.Inet6Address getPeerIpv6Addr(); 1086 method public int getPort(); 1087 method public int getTransportProtocol(); 1088 method public void writeToParcel(android.os.Parcel, int); 1089 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.aware.WifiAwareNetworkInfo> CREATOR; 1090 } 1091 1092 public final class WifiAwareNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable { 1093 method public int describeContents(); 1094 method @IntRange(from=0) public int getChannelFrequencyMhz(); 1095 method @Nullable public android.net.wifi.aware.WifiAwareDataPathSecurityConfig getWifiAwareDataPathSecurityConfig(); 1096 method public boolean isChannelRequired(); 1097 method public void writeToParcel(android.os.Parcel, int); 1098 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.aware.WifiAwareNetworkSpecifier> CREATOR; 1099 } 1100 1101 public static final class WifiAwareNetworkSpecifier.Builder { 1102 ctor public WifiAwareNetworkSpecifier.Builder(@NonNull android.net.wifi.aware.DiscoverySession, @NonNull android.net.wifi.aware.PeerHandle); 1103 ctor public WifiAwareNetworkSpecifier.Builder(@NonNull android.net.wifi.aware.PublishDiscoverySession); 1104 method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier build(); 1105 method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder setChannelFrequencyMhz(@IntRange(from=0) int, boolean); 1106 method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder setDataPathSecurityConfig(@NonNull android.net.wifi.aware.WifiAwareDataPathSecurityConfig); 1107 method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder setPmk(@NonNull byte[]); 1108 method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder setPort(@IntRange(from=0, to=65535) int); 1109 method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder setPskPassphrase(@NonNull String); 1110 method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder setTransportProtocol(@IntRange(from=0, to=255) int); 1111 } 1112 1113 public class WifiAwareSession implements java.lang.AutoCloseable { 1114 method public void close(); 1115 method @Deprecated public android.net.NetworkSpecifier createNetworkSpecifierOpen(int, @NonNull byte[]); 1116 method @Deprecated public android.net.NetworkSpecifier createNetworkSpecifierPassphrase(int, @NonNull byte[], @NonNull String); 1117 method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.CHANGE_WIFI_STATE, android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.NEARBY_WIFI_DEVICES}, conditional=true) public void publish(@NonNull android.net.wifi.aware.PublishConfig, @NonNull android.net.wifi.aware.DiscoverySessionCallback, @Nullable android.os.Handler); 1118 method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.CHANGE_WIFI_STATE, android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.NEARBY_WIFI_DEVICES}, conditional=true) public void subscribe(@NonNull android.net.wifi.aware.SubscribeConfig, @NonNull android.net.wifi.aware.DiscoverySessionCallback, @Nullable android.os.Handler); 1119 } 1120 1121} 1122 1123package android.net.wifi.hotspot2 { 1124 1125 public final class ConfigParser { 1126 method public static android.net.wifi.hotspot2.PasspointConfiguration parsePasspointConfig(String, byte[]); 1127 } 1128 1129 public final class PasspointConfiguration implements android.os.Parcelable { 1130 ctor public PasspointConfiguration(); 1131 ctor public PasspointConfiguration(android.net.wifi.hotspot2.PasspointConfiguration); 1132 method public int describeContents(); 1133 method public android.net.wifi.hotspot2.pps.Credential getCredential(); 1134 method @Nullable public String getDecoratedIdentityPrefix(); 1135 method public android.net.wifi.hotspot2.pps.HomeSp getHomeSp(); 1136 method public long getSubscriptionExpirationTimeMillis(); 1137 method @NonNull public String getUniqueId(); 1138 method public boolean isOsuProvisioned(); 1139 method public void setCredential(android.net.wifi.hotspot2.pps.Credential); 1140 method public void setDecoratedIdentityPrefix(@Nullable String); 1141 method public void setHomeSp(android.net.wifi.hotspot2.pps.HomeSp); 1142 method public void setSubscriptionExpirationTimeInMillis(long); 1143 method public void writeToParcel(android.os.Parcel, int); 1144 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.hotspot2.PasspointConfiguration> CREATOR; 1145 } 1146 1147} 1148 1149package android.net.wifi.hotspot2.omadm { 1150 1151 public final class PpsMoParser { 1152 method public static android.net.wifi.hotspot2.PasspointConfiguration parseMoText(String); 1153 } 1154 1155} 1156 1157package android.net.wifi.hotspot2.pps { 1158 1159 public final class Credential implements android.os.Parcelable { 1160 ctor public Credential(); 1161 ctor public Credential(android.net.wifi.hotspot2.pps.Credential); 1162 method public int describeContents(); 1163 method public java.security.cert.X509Certificate getCaCertificate(); 1164 method public android.net.wifi.hotspot2.pps.Credential.CertificateCredential getCertCredential(); 1165 method public java.security.cert.X509Certificate[] getClientCertificateChain(); 1166 method public java.security.PrivateKey getClientPrivateKey(); 1167 method public int getMinimumTlsVersion(); 1168 method public String getRealm(); 1169 method public android.net.wifi.hotspot2.pps.Credential.SimCredential getSimCredential(); 1170 method public android.net.wifi.hotspot2.pps.Credential.UserCredential getUserCredential(); 1171 method public void setCaCertificate(java.security.cert.X509Certificate); 1172 method public void setCertCredential(android.net.wifi.hotspot2.pps.Credential.CertificateCredential); 1173 method public void setClientCertificateChain(java.security.cert.X509Certificate[]); 1174 method public void setClientPrivateKey(java.security.PrivateKey); 1175 method public void setMinimumTlsVersion(int) throws java.lang.IllegalArgumentException; 1176 method public void setRealm(String); 1177 method public void setSimCredential(android.net.wifi.hotspot2.pps.Credential.SimCredential); 1178 method public void setUserCredential(android.net.wifi.hotspot2.pps.Credential.UserCredential); 1179 method public void writeToParcel(android.os.Parcel, int); 1180 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.hotspot2.pps.Credential> CREATOR; 1181 } 1182 1183 public static final class Credential.CertificateCredential implements android.os.Parcelable { 1184 ctor public Credential.CertificateCredential(); 1185 ctor public Credential.CertificateCredential(android.net.wifi.hotspot2.pps.Credential.CertificateCredential); 1186 method public int describeContents(); 1187 method public byte[] getCertSha256Fingerprint(); 1188 method public String getCertType(); 1189 method public void setCertSha256Fingerprint(byte[]); 1190 method public void setCertType(String); 1191 method public void writeToParcel(android.os.Parcel, int); 1192 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.hotspot2.pps.Credential.CertificateCredential> CREATOR; 1193 } 1194 1195 public static final class Credential.SimCredential implements android.os.Parcelable { 1196 ctor public Credential.SimCredential(); 1197 ctor public Credential.SimCredential(android.net.wifi.hotspot2.pps.Credential.SimCredential); 1198 method public int describeContents(); 1199 method public int getEapType(); 1200 method public String getImsi(); 1201 method public void setEapType(int); 1202 method public void setImsi(String); 1203 method public void writeToParcel(android.os.Parcel, int); 1204 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.hotspot2.pps.Credential.SimCredential> CREATOR; 1205 } 1206 1207 public static final class Credential.UserCredential implements android.os.Parcelable { 1208 ctor public Credential.UserCredential(); 1209 ctor public Credential.UserCredential(android.net.wifi.hotspot2.pps.Credential.UserCredential); 1210 method public int describeContents(); 1211 method public int getEapType(); 1212 method public String getNonEapInnerMethod(); 1213 method public String getPassword(); 1214 method public String getUsername(); 1215 method public void setEapType(int); 1216 method public void setNonEapInnerMethod(String); 1217 method public void setPassword(String); 1218 method public void setUsername(String); 1219 method public void writeToParcel(android.os.Parcel, int); 1220 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.hotspot2.pps.Credential.UserCredential> CREATOR; 1221 } 1222 1223 public final class HomeSp implements android.os.Parcelable { 1224 ctor public HomeSp(); 1225 ctor public HomeSp(android.net.wifi.hotspot2.pps.HomeSp); 1226 method public int describeContents(); 1227 method public String getFqdn(); 1228 method public String getFriendlyName(); 1229 method @Nullable public long[] getMatchAllOis(); 1230 method @Nullable public long[] getMatchAnyOis(); 1231 method @NonNull public java.util.Collection<java.lang.String> getOtherHomePartnersList(); 1232 method public long[] getRoamingConsortiumOis(); 1233 method public void setFqdn(String); 1234 method public void setFriendlyName(String); 1235 method public void setMatchAllOis(@Nullable long[]); 1236 method public void setMatchAnyOis(@Nullable long[]); 1237 method public void setOtherHomePartnersList(@NonNull java.util.Collection<java.lang.String>); 1238 method public void setRoamingConsortiumOis(long[]); 1239 method public void writeToParcel(android.os.Parcel, int); 1240 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.hotspot2.pps.HomeSp> CREATOR; 1241 } 1242 1243} 1244 1245package android.net.wifi.p2p { 1246 1247 public class WifiP2pConfig implements android.os.Parcelable { 1248 ctor public WifiP2pConfig(); 1249 ctor public WifiP2pConfig(android.net.wifi.p2p.WifiP2pConfig); 1250 method public int describeContents(); 1251 method public int getGroupClientIpProvisioningMode(); 1252 method public int getGroupOwnerBand(); 1253 method public int getNetworkId(); 1254 method @Nullable public String getNetworkName(); 1255 method @Nullable public String getPassphrase(); 1256 method public void writeToParcel(android.os.Parcel, int); 1257 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.p2p.WifiP2pConfig> CREATOR; 1258 field public static final int GROUP_CLIENT_IP_PROVISIONING_MODE_IPV4_DHCP = 0; // 0x0 1259 field public static final int GROUP_CLIENT_IP_PROVISIONING_MODE_IPV6_LINK_LOCAL = 1; // 0x1 1260 field public static final int GROUP_OWNER_BAND_2GHZ = 1; // 0x1 1261 field public static final int GROUP_OWNER_BAND_5GHZ = 2; // 0x2 1262 field public static final int GROUP_OWNER_BAND_AUTO = 0; // 0x0 1263 field public static final int GROUP_OWNER_INTENT_AUTO = -1; // 0xffffffff 1264 field public static final int GROUP_OWNER_INTENT_MAX = 15; // 0xf 1265 field public static final int GROUP_OWNER_INTENT_MIN = 0; // 0x0 1266 field public String deviceAddress; 1267 field @IntRange(from=0, to=15) public int groupOwnerIntent; 1268 field public android.net.wifi.WpsInfo wps; 1269 } 1270 1271 public static final class WifiP2pConfig.Builder { 1272 ctor public WifiP2pConfig.Builder(); 1273 method @NonNull public android.net.wifi.p2p.WifiP2pConfig build(); 1274 method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder enablePersistentMode(boolean); 1275 method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder setDeviceAddress(@Nullable android.net.MacAddress); 1276 method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder setGroupClientIpProvisioningMode(int); 1277 method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder setGroupOperatingBand(int); 1278 method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder setGroupOperatingFrequency(int); 1279 method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder setNetworkName(@NonNull String); 1280 method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder setPassphrase(@NonNull String); 1281 } 1282 1283 public class WifiP2pDevice implements android.os.Parcelable { 1284 ctor public WifiP2pDevice(); 1285 ctor public WifiP2pDevice(android.net.wifi.p2p.WifiP2pDevice); 1286 method public int describeContents(); 1287 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @Nullable public java.net.InetAddress getIpAddress(); 1288 method @NonNull public java.util.List<android.net.wifi.ScanResult.InformationElement> getVendorElements(); 1289 method @Nullable public android.net.wifi.p2p.WifiP2pWfdInfo getWfdInfo(); 1290 method public boolean isGroupOwner(); 1291 method public boolean isServiceDiscoveryCapable(); 1292 method public void update(@NonNull android.net.wifi.p2p.WifiP2pDevice); 1293 method public boolean wpsDisplaySupported(); 1294 method public boolean wpsKeypadSupported(); 1295 method public boolean wpsPbcSupported(); 1296 method public void writeToParcel(android.os.Parcel, int); 1297 field public static final int AVAILABLE = 3; // 0x3 1298 field public static final int CONNECTED = 0; // 0x0 1299 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.p2p.WifiP2pDevice> CREATOR; 1300 field public static final int FAILED = 2; // 0x2 1301 field public static final int INVITED = 1; // 0x1 1302 field public static final int UNAVAILABLE = 4; // 0x4 1303 field public String deviceAddress; 1304 field public String deviceName; 1305 field public String primaryDeviceType; 1306 field public String secondaryDeviceType; 1307 field public int status; 1308 } 1309 1310 public class WifiP2pDeviceList implements android.os.Parcelable { 1311 ctor public WifiP2pDeviceList(); 1312 ctor public WifiP2pDeviceList(android.net.wifi.p2p.WifiP2pDeviceList); 1313 method public int describeContents(); 1314 method public android.net.wifi.p2p.WifiP2pDevice get(String); 1315 method public java.util.Collection<android.net.wifi.p2p.WifiP2pDevice> getDeviceList(); 1316 method public void writeToParcel(android.os.Parcel, int); 1317 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.p2p.WifiP2pDeviceList> CREATOR; 1318 } 1319 1320 @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public final class WifiP2pDiscoveryConfig implements android.os.Parcelable { 1321 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public int describeContents(); 1322 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public int getFrequencyMhz(); 1323 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public int getScanType(); 1324 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public void writeToParcel(@NonNull android.os.Parcel, int); 1325 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.p2p.WifiP2pDiscoveryConfig> CREATOR; 1326 } 1327 1328 @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final class WifiP2pDiscoveryConfig.Builder { 1329 ctor @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public WifiP2pDiscoveryConfig.Builder(int); 1330 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.p2p.WifiP2pDiscoveryConfig build(); 1331 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.p2p.WifiP2pDiscoveryConfig.Builder setFrequencyMhz(@IntRange(from=0) int); 1332 } 1333 1334 public class WifiP2pGroup implements android.os.Parcelable { 1335 ctor public WifiP2pGroup(); 1336 ctor public WifiP2pGroup(android.net.wifi.p2p.WifiP2pGroup); 1337 method public int describeContents(); 1338 method public java.util.Collection<android.net.wifi.p2p.WifiP2pDevice> getClientList(); 1339 method public int getFrequency(); 1340 method public String getInterface(); 1341 method public int getNetworkId(); 1342 method public String getNetworkName(); 1343 method public android.net.wifi.p2p.WifiP2pDevice getOwner(); 1344 method public String getPassphrase(); 1345 method public boolean isGroupOwner(); 1346 method public void writeToParcel(android.os.Parcel, int); 1347 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.p2p.WifiP2pGroup> CREATOR; 1348 field public static final int NETWORK_ID_PERSISTENT = -2; // 0xfffffffe 1349 field public static final int NETWORK_ID_TEMPORARY = -1; // 0xffffffff 1350 } 1351 1352 public class WifiP2pInfo implements android.os.Parcelable { 1353 ctor public WifiP2pInfo(); 1354 ctor public WifiP2pInfo(android.net.wifi.p2p.WifiP2pInfo); 1355 method public int describeContents(); 1356 method public void writeToParcel(android.os.Parcel, int); 1357 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.p2p.WifiP2pInfo> CREATOR; 1358 field public boolean groupFormed; 1359 field public java.net.InetAddress groupOwnerAddress; 1360 field public boolean isGroupOwner; 1361 } 1362 1363 public class WifiP2pManager { 1364 method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void addExternalApprover(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.MacAddress, @NonNull android.net.wifi.p2p.WifiP2pManager.ExternalApproverRequestListener); 1365 method @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void addLocalService(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.nsd.WifiP2pServiceInfo, android.net.wifi.p2p.WifiP2pManager.ActionListener); 1366 method public void addServiceRequest(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.nsd.WifiP2pServiceRequest, android.net.wifi.p2p.WifiP2pManager.ActionListener); 1367 method public void cancelConnect(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ActionListener); 1368 method public void clearLocalServices(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ActionListener); 1369 method public void clearServiceRequests(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ActionListener); 1370 method @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void connect(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pConfig, android.net.wifi.p2p.WifiP2pManager.ActionListener); 1371 method @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void createGroup(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ActionListener); 1372 method @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void createGroup(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @Nullable android.net.wifi.p2p.WifiP2pConfig, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); 1373 method @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void discoverPeers(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ActionListener); 1374 method @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void discoverPeersOnSocialChannels(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); 1375 method @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void discoverPeersOnSpecificFrequency(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, int, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); 1376 method @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void discoverServices(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ActionListener); 1377 method @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void getListenState(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer<java.lang.Integer>); 1378 method public static int getP2pMaxAllowedVendorElementsLengthBytes(); 1379 method public android.net.wifi.p2p.WifiP2pManager.Channel initialize(android.content.Context, android.os.Looper, android.net.wifi.p2p.WifiP2pManager.ChannelListener); 1380 method public boolean isChannelConstrainedDiscoverySupported(); 1381 method public boolean isGroupClientRemovalSupported(); 1382 method public boolean isGroupOwnerIPv6LinkLocalAddressProvided(); 1383 method public boolean isSetVendorElementsSupported(); 1384 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_WIFI_STATE}, conditional=true) public void registerWifiP2pListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.p2p.WifiP2pManager.WifiP2pListener); 1385 method public void removeClient(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.MacAddress, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); 1386 method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void removeExternalApprover(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.MacAddress, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); 1387 method public void removeGroup(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ActionListener); 1388 method public void removeLocalService(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.nsd.WifiP2pServiceInfo, android.net.wifi.p2p.WifiP2pManager.ActionListener); 1389 method public void removeServiceRequest(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.nsd.WifiP2pServiceRequest, android.net.wifi.p2p.WifiP2pManager.ActionListener); 1390 method public void requestConnectionInfo(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ConnectionInfoListener); 1391 method @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void requestDeviceInfo(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.wifi.p2p.WifiP2pManager.DeviceInfoListener); 1392 method public void requestDiscoveryState(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.wifi.p2p.WifiP2pManager.DiscoveryStateListener); 1393 method @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void requestGroupInfo(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.GroupInfoListener); 1394 method public void requestNetworkInfo(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.wifi.p2p.WifiP2pManager.NetworkInfoListener); 1395 method public void requestP2pState(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.wifi.p2p.WifiP2pManager.P2pStateListener); 1396 method @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void requestPeers(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.PeerListListener); 1397 method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void setConnectionRequestResult(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.MacAddress, int, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); 1398 method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void setConnectionRequestResult(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.MacAddress, int, @Nullable String, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); 1399 method public void setDnsSdResponseListeners(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.DnsSdServiceResponseListener, android.net.wifi.p2p.WifiP2pManager.DnsSdTxtRecordListener); 1400 method public void setServiceResponseListener(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ServiceResponseListener); 1401 method public void setUpnpServiceResponseListener(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.UpnpServiceResponseListener); 1402 method @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public void setVendorElements(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull java.util.List<android.net.wifi.ScanResult.InformationElement>, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); 1403 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); 1404 method @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void startListening(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); 1405 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void startPeerDiscovery(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.wifi.p2p.WifiP2pDiscoveryConfig, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); 1406 method public void stopListening(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); 1407 method public void stopPeerDiscovery(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ActionListener); 1408 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public void unregisterWifiP2pListener(@NonNull android.net.wifi.p2p.WifiP2pManager.WifiP2pListener); 1409 field public static final String ACTION_WIFI_P2P_LISTEN_STATE_CHANGED = "android.net.wifi.p2p.action.WIFI_P2P_LISTEN_STATE_CHANGED"; 1410 field public static final String ACTION_WIFI_P2P_REQUEST_RESPONSE_CHANGED = "android.net.wifi.p2p.action.WIFI_P2P_REQUEST_RESPONSE_CHANGED"; 1411 field public static final int BUSY = 2; // 0x2 1412 field public static final int CONNECTION_REQUEST_ACCEPT = 0; // 0x0 1413 field public static final int CONNECTION_REQUEST_DEFER_SHOW_PIN_TO_SERVICE = 3; // 0x3 1414 field public static final int CONNECTION_REQUEST_DEFER_TO_SERVICE = 2; // 0x2 1415 field public static final int CONNECTION_REQUEST_REJECT = 1; // 0x1 1416 field public static final int ERROR = 0; // 0x0 1417 field public static final String EXTRA_DISCOVERY_STATE = "discoveryState"; 1418 field public static final String EXTRA_LISTEN_STATE = "android.net.wifi.p2p.extra.LISTEN_STATE"; 1419 field public static final String EXTRA_NETWORK_INFO = "networkInfo"; 1420 field public static final String EXTRA_P2P_DEVICE_LIST = "wifiP2pDeviceList"; 1421 field public static final String EXTRA_REQUEST_CONFIG = "android.net.wifi.p2p.extra.REQUEST_CONFIG"; 1422 field public static final String EXTRA_REQUEST_RESPONSE = "android.net.wifi.p2p.extra.REQUEST_RESPONSE"; 1423 field public static final String EXTRA_WIFI_P2P_DEVICE = "wifiP2pDevice"; 1424 field public static final String EXTRA_WIFI_P2P_GROUP = "p2pGroupInfo"; 1425 field public static final String EXTRA_WIFI_P2P_INFO = "wifiP2pInfo"; 1426 field public static final String EXTRA_WIFI_STATE = "wifi_p2p_state"; 1427 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final int GROUP_CREATION_FAILURE_REASON_CONNECTION_CANCELLED = 0; // 0x0 1428 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final int GROUP_CREATION_FAILURE_REASON_GROUP_REMOVED = 4; // 0x4 1429 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final int GROUP_CREATION_FAILURE_REASON_INVITATION_FAILED = 5; // 0x5 1430 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final int GROUP_CREATION_FAILURE_REASON_PROVISION_DISCOVERY_FAILED = 3; // 0x3 1431 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final int GROUP_CREATION_FAILURE_REASON_TIMED_OUT = 1; // 0x1 1432 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final int GROUP_CREATION_FAILURE_REASON_USER_REJECTED = 2; // 0x2 1433 field public static final int NO_SERVICE_REQUESTS = 3; // 0x3 1434 field public static final int P2P_UNSUPPORTED = 1; // 0x1 1435 field public static final String WIFI_P2P_CONNECTION_CHANGED_ACTION = "android.net.wifi.p2p.CONNECTION_STATE_CHANGE"; 1436 field public static final String WIFI_P2P_DISCOVERY_CHANGED_ACTION = "android.net.wifi.p2p.DISCOVERY_STATE_CHANGE"; 1437 field public static final int WIFI_P2P_DISCOVERY_STARTED = 2; // 0x2 1438 field public static final int WIFI_P2P_DISCOVERY_STOPPED = 1; // 0x1 1439 field public static final int WIFI_P2P_LISTEN_STARTED = 2; // 0x2 1440 field public static final int WIFI_P2P_LISTEN_STOPPED = 1; // 0x1 1441 field public static final String WIFI_P2P_PEERS_CHANGED_ACTION = "android.net.wifi.p2p.PEERS_CHANGED"; 1442 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final int WIFI_P2P_SCAN_FULL = 0; // 0x0 1443 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final int WIFI_P2P_SCAN_SINGLE_FREQ = 2; // 0x2 1444 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final int WIFI_P2P_SCAN_SOCIAL = 1; // 0x1 1445 field public static final String WIFI_P2P_STATE_CHANGED_ACTION = "android.net.wifi.p2p.STATE_CHANGED"; 1446 field public static final int WIFI_P2P_STATE_DISABLED = 1; // 0x1 1447 field public static final int WIFI_P2P_STATE_ENABLED = 2; // 0x2 1448 field public static final String WIFI_P2P_THIS_DEVICE_CHANGED_ACTION = "android.net.wifi.p2p.THIS_DEVICE_CHANGED"; 1449 } 1450 1451 public static interface WifiP2pManager.ActionListener { 1452 method public void onFailure(int); 1453 method public void onSuccess(); 1454 } 1455 1456 public static class WifiP2pManager.Channel implements java.lang.AutoCloseable { 1457 method public void close(); 1458 } 1459 1460 public static interface WifiP2pManager.ChannelListener { 1461 method public void onChannelDisconnected(); 1462 } 1463 1464 public static interface WifiP2pManager.ConnectionInfoListener { 1465 method public void onConnectionInfoAvailable(android.net.wifi.p2p.WifiP2pInfo); 1466 } 1467 1468 public static interface WifiP2pManager.DeviceInfoListener { 1469 method public void onDeviceInfoAvailable(@Nullable android.net.wifi.p2p.WifiP2pDevice); 1470 } 1471 1472 public static interface WifiP2pManager.DiscoveryStateListener { 1473 method public void onDiscoveryStateAvailable(int); 1474 } 1475 1476 public static interface WifiP2pManager.DnsSdServiceResponseListener { 1477 method public void onDnsSdServiceAvailable(String, String, android.net.wifi.p2p.WifiP2pDevice); 1478 } 1479 1480 public static interface WifiP2pManager.DnsSdTxtRecordListener { 1481 method public void onDnsSdTxtRecordAvailable(String, java.util.Map<java.lang.String,java.lang.String>, android.net.wifi.p2p.WifiP2pDevice); 1482 } 1483 1484 public static interface WifiP2pManager.ExternalApproverRequestListener { 1485 method public void onAttached(@NonNull android.net.MacAddress); 1486 method public void onConnectionRequested(int, @NonNull android.net.wifi.p2p.WifiP2pConfig, @NonNull android.net.wifi.p2p.WifiP2pDevice); 1487 method public void onDetached(@NonNull android.net.MacAddress, int); 1488 method public void onPinGenerated(@NonNull android.net.MacAddress, @NonNull String); 1489 field public static final int APPROVER_DETACH_REASON_CLOSE = 3; // 0x3 1490 field public static final int APPROVER_DETACH_REASON_FAILURE = 1; // 0x1 1491 field public static final int APPROVER_DETACH_REASON_REMOVE = 0; // 0x0 1492 field public static final int APPROVER_DETACH_REASON_REPLACE = 2; // 0x2 1493 field public static final int REQUEST_TYPE_INVITATION = 1; // 0x1 1494 field public static final int REQUEST_TYPE_JOIN = 2; // 0x2 1495 field public static final int REQUEST_TYPE_NEGOTIATION = 0; // 0x0 1496 } 1497 1498 public static interface WifiP2pManager.GroupInfoListener { 1499 method public void onGroupInfoAvailable(android.net.wifi.p2p.WifiP2pGroup); 1500 } 1501 1502 public static interface WifiP2pManager.NetworkInfoListener { 1503 method public void onNetworkInfoAvailable(@NonNull android.net.NetworkInfo); 1504 } 1505 1506 public static interface WifiP2pManager.P2pStateListener { 1507 method public void onP2pStateAvailable(int); 1508 } 1509 1510 public static interface WifiP2pManager.PeerListListener { 1511 method public void onPeersAvailable(android.net.wifi.p2p.WifiP2pDeviceList); 1512 } 1513 1514 public static interface WifiP2pManager.ServiceResponseListener { 1515 method public void onServiceAvailable(int, byte[], android.net.wifi.p2p.WifiP2pDevice); 1516 } 1517 1518 public static interface WifiP2pManager.UpnpServiceResponseListener { 1519 method public void onUpnpServiceAvailable(java.util.List<java.lang.String>, android.net.wifi.p2p.WifiP2pDevice); 1520 } 1521 1522 @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static interface WifiP2pManager.WifiP2pListener { 1523 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public default void onDeviceConfigurationChanged(@Nullable android.net.wifi.p2p.WifiP2pDevice); 1524 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public default void onDiscoveryStateChanged(int); 1525 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public default void onFrequencyChanged(@NonNull android.net.wifi.p2p.WifiP2pInfo, @NonNull android.net.wifi.p2p.WifiP2pGroup); 1526 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public default void onGroupCreated(@NonNull android.net.wifi.p2p.WifiP2pInfo, @NonNull android.net.wifi.p2p.WifiP2pGroup); 1527 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public default void onGroupCreating(); 1528 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public default void onGroupCreationFailed(int); 1529 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public default void onGroupNegotiationRejectedByUser(); 1530 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public default void onGroupRemoved(); 1531 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public default void onListenStateChanged(int); 1532 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public default void onP2pStateChanged(int); 1533 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public default void onPeerClientDisconnected(@NonNull android.net.wifi.p2p.WifiP2pInfo, @NonNull android.net.wifi.p2p.WifiP2pGroup); 1534 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public default void onPeerClientJoined(@NonNull android.net.wifi.p2p.WifiP2pInfo, @NonNull android.net.wifi.p2p.WifiP2pGroup); 1535 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public default void onPeerListChanged(@NonNull android.net.wifi.p2p.WifiP2pDeviceList); 1536 } 1537 1538 public final class WifiP2pWfdInfo implements android.os.Parcelable { 1539 ctor public WifiP2pWfdInfo(); 1540 ctor public WifiP2pWfdInfo(@Nullable android.net.wifi.p2p.WifiP2pWfdInfo); 1541 method public int describeContents(); 1542 method public int getControlPort(); 1543 method public int getDeviceInfo(); 1544 method public int getDeviceType(); 1545 method public int getMaxThroughput(); 1546 method public int getR2DeviceInfo(); 1547 method public int getR2DeviceType(); 1548 method public boolean isContentProtectionSupported(); 1549 method public boolean isCoupledSinkSupportedAtSink(); 1550 method public boolean isCoupledSinkSupportedAtSource(); 1551 method public boolean isEnabled(); 1552 method public boolean isR2Supported(); 1553 method public boolean isSessionAvailable(); 1554 method public void setContentProtectionSupported(boolean); 1555 method public void setControlPort(@IntRange(from=0) int); 1556 method public void setCoupledSinkSupportAtSink(boolean); 1557 method public void setCoupledSinkSupportAtSource(boolean); 1558 method public boolean setDeviceType(int); 1559 method public void setEnabled(boolean); 1560 method public void setMaxThroughput(@IntRange(from=0) int); 1561 method public boolean setR2DeviceType(int); 1562 method public void setSessionAvailable(boolean); 1563 method public void writeToParcel(@NonNull android.os.Parcel, int); 1564 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.p2p.WifiP2pWfdInfo> CREATOR; 1565 field public static final int DEVICE_INFO_AUDIO_ONLY_SUPPORT_AT_SOURCE = 2048; // 0x800 1566 field public static final int DEVICE_INFO_AUDIO_UNSUPPORTED_AT_PRIMARY_SINK = 1024; // 0x400 1567 field public static final int DEVICE_INFO_CONTENT_PROTECTION_SUPPORT = 256; // 0x100 1568 field public static final int DEVICE_INFO_COUPLED_SINK_SUPPORT_AT_SINK = 8; // 0x8 1569 field public static final int DEVICE_INFO_COUPLED_SINK_SUPPORT_AT_SOURCE = 4; // 0x4 1570 field public static final int DEVICE_INFO_DEVICE_TYPE_MASK = 3; // 0x3 1571 field public static final int DEVICE_INFO_PREFERRED_CONNECTIVITY_MASK = 128; // 0x80 1572 field public static final int DEVICE_INFO_SESSION_AVAILABLE_MASK = 48; // 0x30 1573 field public static final int DEVICE_INFO_TDLS_PERSISTENT_GROUP = 4096; // 0x1000 1574 field public static final int DEVICE_INFO_TDLS_PERSISTENT_GROUP_REINVOKE = 8192; // 0x2000 1575 field public static final int DEVICE_INFO_TIME_SYNCHRONIZATION_SUPPORT = 512; // 0x200 1576 field public static final int DEVICE_INFO_WFD_SERVICE_DISCOVERY_SUPPORT = 64; // 0x40 1577 field public static final int DEVICE_TYPE_PRIMARY_SINK = 1; // 0x1 1578 field public static final int DEVICE_TYPE_SECONDARY_SINK = 2; // 0x2 1579 field public static final int DEVICE_TYPE_SOURCE_OR_PRIMARY_SINK = 3; // 0x3 1580 field public static final int DEVICE_TYPE_WFD_SOURCE = 0; // 0x0 1581 field public static final int PREFERRED_CONNECTIVITY_P2P = 0; // 0x0 1582 field public static final int PREFERRED_CONNECTIVITY_TDLS = 1; // 0x1 1583 } 1584 1585} 1586 1587package android.net.wifi.p2p.nsd { 1588 1589 public class WifiP2pDnsSdServiceInfo extends android.net.wifi.p2p.nsd.WifiP2pServiceInfo { 1590 method public static android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceInfo newInstance(String, String, java.util.Map<java.lang.String,java.lang.String>); 1591 } 1592 1593 public class WifiP2pDnsSdServiceRequest extends android.net.wifi.p2p.nsd.WifiP2pServiceRequest { 1594 method public static android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceRequest newInstance(); 1595 method public static android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceRequest newInstance(String); 1596 method public static android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceRequest newInstance(String, String); 1597 } 1598 1599 public class WifiP2pServiceInfo implements android.os.Parcelable { 1600 method public int describeContents(); 1601 method public void writeToParcel(android.os.Parcel, int); 1602 field public static final int SERVICE_TYPE_ALL = 0; // 0x0 1603 field public static final int SERVICE_TYPE_BONJOUR = 1; // 0x1 1604 field public static final int SERVICE_TYPE_UPNP = 2; // 0x2 1605 field public static final int SERVICE_TYPE_VENDOR_SPECIFIC = 255; // 0xff 1606 } 1607 1608 public class WifiP2pServiceRequest implements android.os.Parcelable { 1609 method public int describeContents(); 1610 method public static android.net.wifi.p2p.nsd.WifiP2pServiceRequest newInstance(int, String); 1611 method public static android.net.wifi.p2p.nsd.WifiP2pServiceRequest newInstance(int); 1612 method public void writeToParcel(android.os.Parcel, int); 1613 } 1614 1615 public class WifiP2pUpnpServiceInfo extends android.net.wifi.p2p.nsd.WifiP2pServiceInfo { 1616 method public static android.net.wifi.p2p.nsd.WifiP2pUpnpServiceInfo newInstance(String, String, java.util.List<java.lang.String>); 1617 } 1618 1619 public class WifiP2pUpnpServiceRequest extends android.net.wifi.p2p.nsd.WifiP2pServiceRequest { 1620 method public static android.net.wifi.p2p.nsd.WifiP2pUpnpServiceRequest newInstance(); 1621 method public static android.net.wifi.p2p.nsd.WifiP2pUpnpServiceRequest newInstance(String); 1622 } 1623 1624} 1625 1626package android.net.wifi.rtt { 1627 1628 public class CivicLocationKeys { 1629 field public static final int ADDITIONAL_CODE = 32; // 0x20 1630 field public static final int APT = 26; // 0x1a 1631 field public static final int BOROUGH = 4; // 0x4 1632 field public static final int BRANCH_ROAD_NAME = 36; // 0x24 1633 field public static final int BUILDING = 25; // 0x19 1634 field public static final int CITY = 3; // 0x3 1635 field public static final int COUNTY = 2; // 0x2 1636 field public static final int DESK = 33; // 0x21 1637 field public static final int FLOOR = 27; // 0x1b 1638 field public static final int GROUP_OF_STREETS = 6; // 0x6 1639 field public static final int HNO = 19; // 0x13 1640 field public static final int HNS = 20; // 0x14 1641 field public static final int LANGUAGE = 0; // 0x0 1642 field public static final int LMK = 21; // 0x15 1643 field public static final int LOC = 22; // 0x16 1644 field public static final int NAM = 23; // 0x17 1645 field public static final int NEIGHBORHOOD = 5; // 0x5 1646 field public static final int PCN = 30; // 0x1e 1647 field public static final int POD = 17; // 0x11 1648 field public static final int POSTAL_CODE = 24; // 0x18 1649 field public static final int PO_BOX = 31; // 0x1f 1650 field public static final int PRD = 16; // 0x10 1651 field public static final int PRIMARY_ROAD_NAME = 34; // 0x22 1652 field public static final int ROAD_SECTION = 35; // 0x23 1653 field public static final int ROOM = 28; // 0x1c 1654 field public static final int SCRIPT = 128; // 0x80 1655 field public static final int STATE = 1; // 0x1 1656 field public static final int STREET_NAME_POST_MODIFIER = 39; // 0x27 1657 field public static final int STREET_NAME_PRE_MODIFIER = 38; // 0x26 1658 field public static final int STS = 18; // 0x12 1659 field public static final int SUBBRANCH_ROAD_NAME = 37; // 0x25 1660 field public static final int TYPE_OF_PLACE = 29; // 0x1d 1661 } 1662 1663 public final class RangingRequest implements android.os.Parcelable { 1664 method public int describeContents(); 1665 method public static int getDefaultRttBurstSize(); 1666 method public static int getMaxPeers(); 1667 method public static int getMaxRttBurstSize(); 1668 method public static int getMinRttBurstSize(); 1669 method public int getRttBurstSize(); 1670 method public void writeToParcel(android.os.Parcel, int); 1671 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.rtt.RangingRequest> CREATOR; 1672 } 1673 1674 public static final class RangingRequest.Builder { 1675 ctor public RangingRequest.Builder(); 1676 method @NonNull public android.net.wifi.rtt.RangingRequest.Builder addAccessPoint(@NonNull android.net.wifi.ScanResult); 1677 method @NonNull public android.net.wifi.rtt.RangingRequest.Builder addAccessPoints(@NonNull java.util.List<android.net.wifi.ScanResult>); 1678 method @NonNull public android.net.wifi.rtt.RangingRequest.Builder addNon80211mcCapableAccessPoint(@NonNull android.net.wifi.ScanResult); 1679 method @NonNull public android.net.wifi.rtt.RangingRequest.Builder addNon80211mcCapableAccessPoints(@NonNull java.util.List<android.net.wifi.ScanResult>); 1680 method @NonNull public android.net.wifi.rtt.RangingRequest.Builder addResponder(@NonNull android.net.wifi.rtt.ResponderConfig); 1681 method @NonNull public android.net.wifi.rtt.RangingRequest.Builder addResponders(@NonNull java.util.List<android.net.wifi.rtt.ResponderConfig>); 1682 method public android.net.wifi.rtt.RangingRequest.Builder addWifiAwarePeer(@NonNull android.net.MacAddress); 1683 method public android.net.wifi.rtt.RangingRequest.Builder addWifiAwarePeer(@NonNull android.net.wifi.aware.PeerHandle); 1684 method public android.net.wifi.rtt.RangingRequest build(); 1685 method @NonNull public android.net.wifi.rtt.RangingRequest.Builder setRttBurstSize(int); 1686 } 1687 1688 public final class RangingResult implements android.os.Parcelable { 1689 method public int describeContents(); 1690 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public int get80211azInitiatorTxLtfRepetitionsCount(); 1691 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public int get80211azNumberOfRxSpatialStreams(); 1692 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public int get80211azNumberOfTxSpatialStreams(); 1693 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public int get80211azResponderTxLtfRepetitionsCount(); 1694 method public int getDistanceMm(); 1695 method public int getDistanceStdDevMm(); 1696 method @NonNull public byte[] getLci(); 1697 method @NonNull public byte[] getLcr(); 1698 method @Nullable public android.net.MacAddress getMacAddress(); 1699 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public long getMaxTimeBetweenNtbMeasurementsMicros(); 1700 method public int getMeasurementBandwidth(); 1701 method public int getMeasurementChannelFrequencyMHz(); 1702 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public long getMinTimeBetweenNtbMeasurementsMicros(); 1703 method public int getNumAttemptedMeasurements(); 1704 method public int getNumSuccessfulMeasurements(); 1705 method @Nullable public android.net.wifi.aware.PeerHandle getPeerHandle(); 1706 method public long getRangingTimestampMillis(); 1707 method public int getRssi(); 1708 method public int getStatus(); 1709 method @Nullable public android.net.wifi.rtt.ResponderLocation getUnverifiedResponderLocation(); 1710 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public boolean is80211azNtbMeasurement(); 1711 method public boolean is80211mcMeasurement(); 1712 method public void writeToParcel(android.os.Parcel, int); 1713 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.rtt.RangingResult> CREATOR; 1714 field public static final int STATUS_FAIL = 1; // 0x1 1715 field public static final int STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC = 2; // 0x2 1716 field public static final int STATUS_SUCCESS = 0; // 0x0 1717 field public static final int UNSPECIFIED = -1; // 0xffffffff 1718 } 1719 1720 @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final class RangingResult.Builder { 1721 ctor public RangingResult.Builder(); 1722 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult build(); 1723 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder set80211azInitiatorTxLtfRepetitionsCount(int); 1724 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder set80211azNtbMeasurement(boolean); 1725 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder set80211azNumberOfRxSpatialStreams(int); 1726 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder set80211azNumberOfTxSpatialStreams(int); 1727 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder set80211azResponderTxLtfRepetitionsCount(int); 1728 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder set80211mcMeasurement(boolean); 1729 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setDistanceMm(int); 1730 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setDistanceStdDevMm(int); 1731 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setLci(@Nullable byte[]); 1732 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setLcr(@Nullable byte[]); 1733 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setMacAddress(@Nullable android.net.MacAddress); 1734 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setMaxTimeBetweenNtbMeasurementsMicros(long); 1735 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setMeasurementBandwidth(int); 1736 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setMeasurementChannelFrequencyMHz(int); 1737 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setMinTimeBetweenNtbMeasurementsMicros(long); 1738 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setNumAttemptedMeasurements(int); 1739 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setNumSuccessfulMeasurements(int); 1740 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setPeerHandle(@Nullable android.net.wifi.aware.PeerHandle); 1741 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setRangingTimestampMillis(long); 1742 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setRssi(int); 1743 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setStatus(int); 1744 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.RangingResult.Builder setUnverifiedResponderLocation(@Nullable android.net.wifi.rtt.ResponderLocation); 1745 } 1746 1747 public abstract class RangingResultCallback { 1748 ctor public RangingResultCallback(); 1749 method public abstract void onRangingFailure(int); 1750 method public abstract void onRangingResults(@NonNull java.util.List<android.net.wifi.rtt.RangingResult>); 1751 field public static final int STATUS_CODE_FAIL = 1; // 0x1 1752 field public static final int STATUS_CODE_FAIL_RTT_NOT_AVAILABLE = 2; // 0x2 1753 } 1754 1755 public final class ResponderConfig implements android.os.Parcelable { 1756 method public int describeContents(); 1757 method @NonNull public static android.net.wifi.rtt.ResponderConfig fromScanResult(@NonNull android.net.wifi.ScanResult); 1758 method @IntRange(from=0) public int getCenterFreq0Mhz(); 1759 method @IntRange(from=0) public int getCenterFreq1Mhz(); 1760 method public int getChannelWidth(); 1761 method @IntRange(from=0) public int getFrequencyMhz(); 1762 method @Nullable public android.net.MacAddress getMacAddress(); 1763 method public int getPreamble(); 1764 method public int getResponderType(); 1765 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public boolean is80211azNtbSupported(); 1766 method public boolean is80211mcSupported(); 1767 method public void writeToParcel(@NonNull android.os.Parcel, int); 1768 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.rtt.ResponderConfig> CREATOR; 1769 field public static final int RESPONDER_AP = 0; // 0x0 1770 field public static final int RESPONDER_STA = 1; // 0x1 1771 } 1772 1773 public static final class ResponderConfig.Builder { 1774 ctor public ResponderConfig.Builder(); 1775 method @NonNull public android.net.wifi.rtt.ResponderConfig build(); 1776 method @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") @NonNull public android.net.wifi.rtt.ResponderConfig.Builder set80211azNtbSupported(boolean); 1777 method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder set80211mcSupported(boolean); 1778 method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder setCenterFreq0Mhz(@IntRange(from=0) int); 1779 method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder setCenterFreq1Mhz(@IntRange(from=0) int); 1780 method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder setChannelWidth(int); 1781 method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder setFrequencyMhz(@IntRange(from=0) int); 1782 method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder setMacAddress(@NonNull android.net.MacAddress); 1783 method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder setPreamble(int); 1784 method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder setResponderType(int); 1785 } 1786 1787 public final class ResponderLocation implements android.os.Parcelable { 1788 method public int describeContents(); 1789 method public double getAltitude(); 1790 method public int getAltitudeType(); 1791 method public double getAltitudeUncertainty(); 1792 method public java.util.List<android.net.MacAddress> getColocatedBssids(); 1793 method public int getDatum(); 1794 method public int getExpectedToMove(); 1795 method public double getFloorNumber(); 1796 method public double getHeightAboveFloorMeters(); 1797 method public double getHeightAboveFloorUncertaintyMeters(); 1798 method public double getLatitude(); 1799 method public double getLatitudeUncertainty(); 1800 method public int getLciVersion(); 1801 method public double getLongitude(); 1802 method public double getLongitudeUncertainty(); 1803 method @Nullable public String getMapImageMimeType(); 1804 method @Nullable public android.net.Uri getMapImageUri(); 1805 method public boolean getRegisteredLocationAgreementIndication(); 1806 method public boolean isLciSubelementValid(); 1807 method public boolean isZaxisSubelementValid(); 1808 method @Nullable public android.location.Address toCivicLocationAddress(); 1809 method @Nullable public android.util.SparseArray<java.lang.String> toCivicLocationSparseArray(); 1810 method @NonNull public android.location.Location toLocation(); 1811 method public void writeToParcel(android.os.Parcel, int); 1812 field public static final int ALTITUDE_FLOORS = 2; // 0x2 1813 field public static final int ALTITUDE_METERS = 1; // 0x1 1814 field public static final int ALTITUDE_UNDEFINED = 0; // 0x0 1815 field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.rtt.ResponderLocation> CREATOR; 1816 field public static final int DATUM_NAD83_MLLW = 3; // 0x3 1817 field public static final int DATUM_NAD83_NAV88 = 2; // 0x2 1818 field public static final int DATUM_UNDEFINED = 0; // 0x0 1819 field public static final int DATUM_WGS84 = 1; // 0x1 1820 field public static final int LCI_VERSION_1 = 1; // 0x1 1821 field public static final int LOCATION_FIXED = 0; // 0x0 1822 field public static final int LOCATION_MOVEMENT_UNKNOWN = 2; // 0x2 1823 field public static final int LOCATION_RESERVED = 3; // 0x3 1824 field public static final int LOCATION_VARIABLE = 1; // 0x1 1825 } 1826 1827 public class WifiRttManager { 1828 method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public android.os.Bundle getRttCharacteristics(); 1829 method public boolean isAvailable(); 1830 method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.CHANGE_WIFI_STATE, android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.NEARBY_WIFI_DEVICES}) public void startRanging(@NonNull android.net.wifi.rtt.RangingRequest, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.rtt.RangingResultCallback); 1831 field public static final String ACTION_WIFI_RTT_STATE_CHANGED = "android.net.wifi.rtt.action.WIFI_RTT_STATE_CHANGED"; 1832 field public static final String CHARACTERISTICS_KEY_BOOLEAN_LCI = "key_lci"; 1833 field public static final String CHARACTERISTICS_KEY_BOOLEAN_LCR = "key_lcr"; 1834 field @FlaggedApi("com.android.wifi.flags.android_v_wifi_api") public static final String CHARACTERISTICS_KEY_BOOLEAN_NTB_INITIATOR = "key_ntb_initiator"; 1835 field public static final String CHARACTERISTICS_KEY_BOOLEAN_ONE_SIDED_RTT = "key_one_sided_rtt"; 1836 field public static final String CHARACTERISTICS_KEY_BOOLEAN_STA_RESPONDER = "key_sta_responder"; 1837 } 1838 1839} 1840 1841