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