// Signature format: 2.0 package android.net.wifi { public abstract class EasyConnectStatusCallback { field public static final int EASY_CONNECT_EVENT_FAILURE_AUTHENTICATION = -2; // 0xfffffffe field public static final int EASY_CONNECT_EVENT_FAILURE_BUSY = -5; // 0xfffffffb field public static final int EASY_CONNECT_EVENT_FAILURE_CANNOT_FIND_NETWORK = -10; // 0xfffffff6 field public static final int EASY_CONNECT_EVENT_FAILURE_CONFIGURATION = -4; // 0xfffffffc field public static final int EASY_CONNECT_EVENT_FAILURE_ENROLLEE_AUTHENTICATION = -11; // 0xfffffff5 field public static final int EASY_CONNECT_EVENT_FAILURE_ENROLLEE_FAILED_TO_SCAN_NETWORK_CHANNEL = -14; // 0xfffffff2 field public static final int EASY_CONNECT_EVENT_FAILURE_ENROLLEE_REJECTED_CONFIGURATION = -12; // 0xfffffff4 field public static final int EASY_CONNECT_EVENT_FAILURE_GENERIC = -7; // 0xfffffff9 field public static final int EASY_CONNECT_EVENT_FAILURE_INVALID_NETWORK = -9; // 0xfffffff7 field public static final int EASY_CONNECT_EVENT_FAILURE_INVALID_URI = -1; // 0xffffffff field public static final int EASY_CONNECT_EVENT_FAILURE_NOT_COMPATIBLE = -3; // 0xfffffffd field public static final int EASY_CONNECT_EVENT_FAILURE_NOT_SUPPORTED = -8; // 0xfffffff8 field public static final int EASY_CONNECT_EVENT_FAILURE_TIMEOUT = -6; // 0xfffffffa field public static final int EASY_CONNECT_EVENT_FAILURE_URI_GENERATION = -13; // 0xfffffff3 } public final class MloLink implements android.os.Parcelable { ctor public MloLink(); method public int describeContents(); method @Nullable public android.net.MacAddress getApMacAddress(); method public int getBand(); method @IntRange(from=1) public int getChannel(); method @IntRange(from=android.net.wifi.MloLink.INVALID_MLO_LINK_ID, to=0xf) public int getLinkId(); method public int getRssi(); method @IntRange(from=0xffffffff) public int getRxLinkSpeedMbps(); method @Nullable public android.net.MacAddress getStaMacAddress(); method public int getState(); method @IntRange(from=0xffffffff) public int getTxLinkSpeedMbps(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int INVALID_MLO_LINK_ID = -1; // 0xffffffff field public static final int MLO_LINK_STATE_ACTIVE = 3; // 0x3 field public static final int MLO_LINK_STATE_IDLE = 2; // 0x2 field public static final int MLO_LINK_STATE_INVALID = 0; // 0x0 field public static final int MLO_LINK_STATE_UNASSOCIATED = 1; // 0x1 } public final class ScanResult implements android.os.Parcelable { ctor public ScanResult(@NonNull android.net.wifi.ScanResult); ctor public ScanResult(); method public static int convertChannelToFrequencyMhzIfSupported(int, int); method public static int convertFrequencyMhzToChannelIfSupported(int); method public int describeContents(); method @NonNull public java.util.List getAffiliatedMloLinks(); method @Nullable public android.net.MacAddress getApMldMacAddress(); method @IntRange(from=android.net.wifi.MloLink.INVALID_MLO_LINK_ID, to=0xf) public int getApMloLinkId(); method @NonNull public java.util.List getInformationElements(); method @NonNull public int[] getSecurityTypes(); method @Nullable public android.net.wifi.WifiSsid getWifiSsid(); method public int getWifiStandard(); method public boolean is80211mcResponder(); method public boolean isPasspointNetwork(); method public void writeToParcel(android.os.Parcel, int); field public String BSSID; field public static final int CHANNEL_WIDTH_160MHZ = 3; // 0x3 field public static final int CHANNEL_WIDTH_20MHZ = 0; // 0x0 field public static final int CHANNEL_WIDTH_320MHZ = 5; // 0x5 field public static final int CHANNEL_WIDTH_40MHZ = 1; // 0x1 field public static final int CHANNEL_WIDTH_80MHZ = 2; // 0x2 field public static final int CHANNEL_WIDTH_80MHZ_PLUS_MHZ = 4; // 0x4 field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int PREAMBLE_EHT = 4; // 0x4 field public static final int PREAMBLE_HE = 3; // 0x3 field public static final int PREAMBLE_HT = 1; // 0x1 field public static final int PREAMBLE_LEGACY = 0; // 0x0 field public static final int PREAMBLE_VHT = 2; // 0x2 field @Deprecated public String SSID; field public static final int UNSPECIFIED = -1; // 0xffffffff field public static final int WIFI_BAND_24_GHZ = 1; // 0x1 field public static final int WIFI_BAND_5_GHZ = 2; // 0x2 field public static final int WIFI_BAND_60_GHZ = 16; // 0x10 field public static final int WIFI_BAND_6_GHZ = 8; // 0x8 field public static final int WIFI_STANDARD_11AC = 5; // 0x5 field public static final int WIFI_STANDARD_11AD = 7; // 0x7 field public static final int WIFI_STANDARD_11AX = 6; // 0x6 field public static final int WIFI_STANDARD_11BE = 8; // 0x8 field public static final int WIFI_STANDARD_11N = 4; // 0x4 field public static final int WIFI_STANDARD_LEGACY = 1; // 0x1 field public static final int WIFI_STANDARD_UNKNOWN = 0; // 0x0 field public String capabilities; field public int centerFreq0; field public int centerFreq1; field public int channelWidth; field public int frequency; field public int level; field @Deprecated public CharSequence operatorFriendlyName; field public long timestamp; field @Deprecated public CharSequence venueName; } public static class ScanResult.InformationElement implements android.os.Parcelable { ctor public ScanResult.InformationElement(int, int, @NonNull byte[]); ctor public ScanResult.InformationElement(@NonNull android.net.wifi.ScanResult.InformationElement); method public int describeContents(); method @NonNull public java.nio.ByteBuffer getBytes(); method public int getId(); method public int getIdExt(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public final class SoftApConfiguration implements android.os.Parcelable { method public int describeContents(); method @Nullable public android.net.MacAddress getBssid(); method @Nullable public String getPassphrase(); method public int getSecurityType(); method @Deprecated @Nullable public String getSsid(); method @Nullable public android.net.wifi.WifiSsid getWifiSsid(); method public boolean isHiddenSsid(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int SECURITY_TYPE_OPEN = 0; // 0x0 field public static final int SECURITY_TYPE_WPA2_PSK = 1; // 0x1 field public static final int SECURITY_TYPE_WPA3_OWE = 5; // 0x5 field public static final int SECURITY_TYPE_WPA3_OWE_TRANSITION = 4; // 0x4 field public static final int SECURITY_TYPE_WPA3_SAE = 3; // 0x3 field public static final int SECURITY_TYPE_WPA3_SAE_TRANSITION = 2; // 0x2 } public enum SupplicantState implements android.os.Parcelable { method public int describeContents(); method public static boolean isValidState(android.net.wifi.SupplicantState); method public void writeToParcel(android.os.Parcel, int); enum_constant public static final android.net.wifi.SupplicantState ASSOCIATED; enum_constant public static final android.net.wifi.SupplicantState ASSOCIATING; enum_constant public static final android.net.wifi.SupplicantState AUTHENTICATING; enum_constant public static final android.net.wifi.SupplicantState COMPLETED; enum_constant public static final android.net.wifi.SupplicantState DISCONNECTED; enum_constant public static final android.net.wifi.SupplicantState DORMANT; enum_constant public static final android.net.wifi.SupplicantState FOUR_WAY_HANDSHAKE; enum_constant public static final android.net.wifi.SupplicantState GROUP_HANDSHAKE; enum_constant public static final android.net.wifi.SupplicantState INACTIVE; enum_constant public static final android.net.wifi.SupplicantState INTERFACE_DISABLED; enum_constant public static final android.net.wifi.SupplicantState INVALID; enum_constant public static final android.net.wifi.SupplicantState SCANNING; enum_constant public static final android.net.wifi.SupplicantState UNINITIALIZED; } public final class WifiAvailableChannel implements android.os.Parcelable { ctor public WifiAvailableChannel(int, int); method public int describeContents(); method public int getFrequencyMhz(); method public int getOperationalModes(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int OP_MODE_SAP = 2; // 0x2 field public static final int OP_MODE_STA = 1; // 0x1 field public static final int OP_MODE_TDLS = 32; // 0x20 field public static final int OP_MODE_WIFI_AWARE = 16; // 0x10 field public static final int OP_MODE_WIFI_DIRECT_CLI = 4; // 0x4 field public static final int OP_MODE_WIFI_DIRECT_GO = 8; // 0x8 } @Deprecated public class WifiConfiguration implements android.os.Parcelable { ctor @Deprecated public WifiConfiguration(); ctor @Deprecated public WifiConfiguration(@NonNull android.net.wifi.WifiConfiguration); method public int describeContents(); method @Deprecated public android.net.ProxyInfo getHttpProxy(); method @Deprecated @NonNull public String getKey(); method @Deprecated public int getMacRandomizationSetting(); method @Deprecated @NonNull public android.net.MacAddress getRandomizedMacAddress(); method @Deprecated public boolean isDppConfigurator(); method @Deprecated public boolean isPasspoint(); method @Deprecated public void setHttpProxy(android.net.ProxyInfo); method @Deprecated public void setIpConfiguration(@Nullable android.net.IpConfiguration); method @Deprecated public void setMacRandomizationSetting(int); method @Deprecated public void setSecurityParams(int); method public void writeToParcel(android.os.Parcel, int); field @Deprecated public String BSSID; field @Deprecated public String FQDN; field @Deprecated public static final int RANDOMIZATION_AUTO = 3; // 0x3 field @Deprecated public static final int RANDOMIZATION_NONE = 0; // 0x0 field @Deprecated public static final int RANDOMIZATION_NON_PERSISTENT = 2; // 0x2 field @Deprecated public static final int RANDOMIZATION_PERSISTENT = 1; // 0x1 field @Deprecated public static final int SECURITY_TYPE_DPP = 13; // 0xd field @Deprecated public static final int SECURITY_TYPE_EAP = 3; // 0x3 field @Deprecated public static final int SECURITY_TYPE_EAP_SUITE_B = 5; // 0x5 field @Deprecated public static final int SECURITY_TYPE_EAP_WPA3_ENTERPRISE = 9; // 0x9 field @Deprecated public static final int SECURITY_TYPE_EAP_WPA3_ENTERPRISE_192_BIT = 5; // 0x5 field @Deprecated public static final int SECURITY_TYPE_OPEN = 0; // 0x0 field @Deprecated public static final int SECURITY_TYPE_OWE = 6; // 0x6 field @Deprecated public static final int SECURITY_TYPE_PSK = 2; // 0x2 field @Deprecated public static final int SECURITY_TYPE_SAE = 4; // 0x4 field @Deprecated public static final int SECURITY_TYPE_WAPI_CERT = 8; // 0x8 field @Deprecated public static final int SECURITY_TYPE_WAPI_PSK = 7; // 0x7 field @Deprecated public static final int SECURITY_TYPE_WEP = 1; // 0x1 field @Deprecated public String SSID; field @Deprecated @NonNull public java.util.BitSet allowedAuthAlgorithms; field @Deprecated @NonNull public java.util.BitSet allowedGroupCiphers; field @Deprecated @NonNull public java.util.BitSet allowedGroupManagementCiphers; field @Deprecated @NonNull public java.util.BitSet allowedKeyManagement; field @Deprecated @NonNull public java.util.BitSet allowedPairwiseCiphers; field @Deprecated @NonNull public java.util.BitSet allowedProtocols; field @Deprecated @NonNull public java.util.BitSet allowedSuiteBCiphers; field @Deprecated public android.net.wifi.WifiEnterpriseConfig enterpriseConfig; field @Deprecated public boolean hiddenSSID; field @Deprecated public boolean isHomeProviderNetwork; field @Deprecated public int networkId; field @Deprecated public String preSharedKey; field @Deprecated public int priority; field @Deprecated public String providerFriendlyName; field @Deprecated public long[] roamingConsortiumIds; field @Deprecated public int status; field @Deprecated public String[] wepKeys; field @Deprecated public int wepTxKeyIndex; } @Deprecated public static class WifiConfiguration.AuthAlgorithm { field @Deprecated public static final int LEAP = 2; // 0x2 field @Deprecated public static final int OPEN = 0; // 0x0 field @Deprecated public static final int SAE = 3; // 0x3 field @Deprecated public static final int SHARED = 1; // 0x1 field @Deprecated public static final String[] strings; field @Deprecated public static final String varName = "auth_alg"; } @Deprecated public static class WifiConfiguration.GroupCipher { field @Deprecated public static final int CCMP = 3; // 0x3 field @Deprecated public static final int GCMP_128 = 7; // 0x7 field @Deprecated public static final int GCMP_256 = 5; // 0x5 field @Deprecated public static final int SMS4 = 6; // 0x6 field @Deprecated public static final int TKIP = 2; // 0x2 field @Deprecated public static final int WEP104 = 1; // 0x1 field @Deprecated public static final int WEP40 = 0; // 0x0 field @Deprecated public static final String[] strings; field @Deprecated public static final String varName = "group"; } @Deprecated public static class WifiConfiguration.GroupMgmtCipher { field @Deprecated public static final int BIP_CMAC_256 = 0; // 0x0 field @Deprecated public static final int BIP_GMAC_128 = 1; // 0x1 field @Deprecated public static final int BIP_GMAC_256 = 2; // 0x2 } @Deprecated public static class WifiConfiguration.KeyMgmt { field @Deprecated public static final int DPP = 17; // 0x11 field @Deprecated public static final int FILS_SHA256 = 15; // 0xf field @Deprecated public static final int FILS_SHA384 = 16; // 0x10 field @Deprecated public static final int FT_EAP = 7; // 0x7 field @Deprecated public static final int FT_PSK = 6; // 0x6 field @Deprecated public static final int IEEE8021X = 3; // 0x3 field @Deprecated public static final int NONE = 0; // 0x0 field @Deprecated public static final int OSEN = 5; // 0x5 field @Deprecated public static final int OWE = 9; // 0x9 field @Deprecated public static final int SAE = 8; // 0x8 field @Deprecated public static final int SUITE_B_192 = 10; // 0xa field @Deprecated public static final int WAPI_CERT = 14; // 0xe field @Deprecated public static final int WAPI_PSK = 13; // 0xd field @Deprecated public static final int WPA2_PSK = 4; // 0x4 field @Deprecated public static final int WPA_EAP = 2; // 0x2 field @Deprecated public static final int WPA_EAP_SHA256 = 12; // 0xc field @Deprecated public static final int WPA_PSK = 1; // 0x1 field @Deprecated public static final int WPA_PSK_SHA256 = 11; // 0xb field @Deprecated public static final String[] strings; field @Deprecated public static final String varName = "key_mgmt"; } @Deprecated public static class WifiConfiguration.PairwiseCipher { field @Deprecated public static final int CCMP = 2; // 0x2 field @Deprecated public static final int GCMP_128 = 5; // 0x5 field @Deprecated public static final int GCMP_256 = 3; // 0x3 field @Deprecated public static final int NONE = 0; // 0x0 field @Deprecated public static final int SMS4 = 4; // 0x4 field @Deprecated public static final int TKIP = 1; // 0x1 field @Deprecated public static final String[] strings; field @Deprecated public static final String varName = "pairwise"; } @Deprecated public static class WifiConfiguration.Protocol { field @Deprecated public static final int RSN = 1; // 0x1 field @Deprecated public static final int WAPI = 3; // 0x3 field @Deprecated public static final int WPA = 0; // 0x0 field @Deprecated public static final String[] strings; field @Deprecated public static final String varName = "proto"; } @Deprecated public static class WifiConfiguration.Status { field @Deprecated public static final int CURRENT = 0; // 0x0 field @Deprecated public static final int DISABLED = 1; // 0x1 field @Deprecated public static final int ENABLED = 2; // 0x2 field @Deprecated public static final String[] strings; } public class WifiEnterpriseConfig implements android.os.Parcelable { ctor public WifiEnterpriseConfig(); ctor public WifiEnterpriseConfig(android.net.wifi.WifiEnterpriseConfig); method public int describeContents(); method public void enableTrustOnFirstUse(boolean); method public String getAltSubjectMatch(); method public String getAnonymousIdentity(); method @Nullable public java.security.cert.X509Certificate getCaCertificate(); method @Nullable public java.security.cert.X509Certificate[] getCaCertificates(); method public java.security.cert.X509Certificate getClientCertificate(); method @Nullable public java.security.cert.X509Certificate[] getClientCertificateChain(); method @Nullable public String getClientKeyPairAlias(); method @Nullable public java.security.PrivateKey getClientPrivateKey(); method @Nullable public String getDecoratedIdentityPrefix(); method public String getDomainSuffixMatch(); method public int getEapMethod(); method public String getIdentity(); method public int getMinimumTlsVersion(); method public String getPassword(); method public int getPhase2Method(); method public String getPlmn(); method public String getRealm(); method @Deprecated public String getSubjectMatch(); method public boolean hasCaCertificate(); method public boolean isAuthenticationSimBased(); method public boolean isEapMethodServerCertUsed(); method public boolean isServerCertValidationEnabled(); method public boolean isTrustOnFirstUseEnabled(); method public void setAltSubjectMatch(String); method public void setAnonymousIdentity(String); method public void setCaCertificate(@Nullable java.security.cert.X509Certificate); method public void setCaCertificates(@Nullable java.security.cert.X509Certificate[]); method public void setClientKeyEntry(java.security.PrivateKey, java.security.cert.X509Certificate); method public void setClientKeyEntryWithCertificateChain(java.security.PrivateKey, java.security.cert.X509Certificate[]); method public void setClientKeyPairAlias(@NonNull String); method public void setDecoratedIdentityPrefix(@Nullable String); method public void setDomainSuffixMatch(String); method public void setEapMethod(int); method public void setIdentity(String); method public void setMinimumTlsVersion(int) throws java.lang.IllegalArgumentException; method public void setPassword(String); method public void setPhase2Method(int); method public void setPlmn(String); method public void setRealm(String); method @Deprecated public void setSubjectMatch(String); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final String EXTRA_WAPI_AS_CERTIFICATE_DATA = "android.net.wifi.extra.WAPI_AS_CERTIFICATE_DATA"; field public static final String EXTRA_WAPI_AS_CERTIFICATE_NAME = "android.net.wifi.extra.WAPI_AS_CERTIFICATE_NAME"; field public static final String EXTRA_WAPI_USER_CERTIFICATE_DATA = "android.net.wifi.extra.WAPI_USER_CERTIFICATE_DATA"; field public static final String EXTRA_WAPI_USER_CERTIFICATE_NAME = "android.net.wifi.extra.WAPI_USER_CERTIFICATE_NAME"; field public static final int TLS_V1_0 = 0; // 0x0 field public static final int TLS_V1_1 = 1; // 0x1 field public static final int TLS_V1_2 = 2; // 0x2 field public static final int TLS_V1_3 = 3; // 0x3 field public static final String WAPI_AS_CERTIFICATE = "WAPIAS_"; field public static final String WAPI_USER_CERTIFICATE = "WAPIUSR_"; } public static final class WifiEnterpriseConfig.Eap { field public static final int AKA = 5; // 0x5 field public static final int AKA_PRIME = 6; // 0x6 field public static final int NONE = -1; // 0xffffffff field public static final int PEAP = 0; // 0x0 field public static final int PWD = 3; // 0x3 field public static final int SIM = 4; // 0x4 field public static final int TLS = 1; // 0x1 field public static final int TTLS = 2; // 0x2 field public static final int UNAUTH_TLS = 7; // 0x7 field public static final int WAPI_CERT = 8; // 0x8 } public static final class WifiEnterpriseConfig.Phase2 { field public static final int AKA = 6; // 0x6 field public static final int AKA_PRIME = 7; // 0x7 field public static final int GTC = 4; // 0x4 field public static final int MSCHAP = 2; // 0x2 field public static final int MSCHAPV2 = 3; // 0x3 field public static final int NONE = 0; // 0x0 field public static final int PAP = 1; // 0x1 field public static final int SIM = 5; // 0x5 } public class WifiInfo implements android.os.Parcelable android.net.TransportInfo { method public int describeContents(); method @NonNull public java.util.List getAffiliatedMloLinks(); method @Nullable public android.net.MacAddress getApMldMacAddress(); method @IntRange(from=android.net.wifi.MloLink.INVALID_MLO_LINK_ID, to=0xf) public int getApMloLinkId(); method @NonNull public java.util.List getAssociatedMloLinks(); method public String getBSSID(); method public int getCurrentSecurityType(); method public static android.net.NetworkInfo.DetailedState getDetailedStateOf(android.net.wifi.SupplicantState); method public int getFrequency(); method public boolean getHiddenSSID(); method @Nullable public java.util.List getInformationElements(); method @Deprecated public int getIpAddress(); method public int getLinkSpeed(); method public String getMacAddress(); method public int getMaxSupportedRxLinkSpeedMbps(); method public int getMaxSupportedTxLinkSpeedMbps(); method public int getNetworkId(); method @Nullable public String getPasspointFqdn(); method @Nullable public String getPasspointProviderFriendlyName(); method public int getRssi(); method @IntRange(from=0xffffffff) public int getRxLinkSpeedMbps(); method public String getSSID(); method public int getSubscriptionId(); method public android.net.wifi.SupplicantState getSupplicantState(); method @IntRange(from=0xffffffff) public int getTxLinkSpeedMbps(); method public int getWifiStandard(); method public boolean isRestricted(); method @NonNull public android.net.wifi.WifiInfo makeCopy(long); method public void writeToParcel(android.os.Parcel, int); field public static final String FREQUENCY_UNITS = "MHz"; field public static final String LINK_SPEED_UNITS = "Mbps"; field public static final int LINK_SPEED_UNKNOWN = -1; // 0xffffffff field public static final int SECURITY_TYPE_DPP = 13; // 0xd field public static final int SECURITY_TYPE_EAP = 3; // 0x3 field public static final int SECURITY_TYPE_EAP_WPA3_ENTERPRISE = 9; // 0x9 field public static final int SECURITY_TYPE_EAP_WPA3_ENTERPRISE_192_BIT = 5; // 0x5 field public static final int SECURITY_TYPE_OPEN = 0; // 0x0 field public static final int SECURITY_TYPE_OSEN = 10; // 0xa field public static final int SECURITY_TYPE_OWE = 6; // 0x6 field public static final int SECURITY_TYPE_PASSPOINT_R1_R2 = 11; // 0xb field public static final int SECURITY_TYPE_PASSPOINT_R3 = 12; // 0xc field public static final int SECURITY_TYPE_PSK = 2; // 0x2 field public static final int SECURITY_TYPE_SAE = 4; // 0x4 field public static final int SECURITY_TYPE_UNKNOWN = -1; // 0xffffffff field public static final int SECURITY_TYPE_WAPI_CERT = 8; // 0x8 field public static final int SECURITY_TYPE_WAPI_PSK = 7; // 0x7 field public static final int SECURITY_TYPE_WEP = 1; // 0x1 } public static final class WifiInfo.Builder { ctor public WifiInfo.Builder(); method @NonNull public android.net.wifi.WifiInfo build(); method @NonNull public android.net.wifi.WifiInfo.Builder setBssid(@NonNull String); method @NonNull public android.net.wifi.WifiInfo.Builder setCurrentSecurityType(int); method @NonNull public android.net.wifi.WifiInfo.Builder setNetworkId(int); method @NonNull public android.net.wifi.WifiInfo.Builder setRssi(int); method @NonNull public android.net.wifi.WifiInfo.Builder setSsid(@NonNull byte[]); } public class WifiManager { method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void addLocalOnlyConnectionFailureListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.LocalOnlyConnectionFailureListener); method @Deprecated public int addNetwork(android.net.wifi.WifiConfiguration); 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); method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public int addNetworkSuggestions(@NonNull java.util.List); method public void addOrUpdatePasspointConfiguration(android.net.wifi.hotspot2.PasspointConfiguration); 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); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void addSuggestionUserApprovalStatusListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.SuggestionUserApprovalStatusListener); method public void allowAutojoinGlobal(boolean); method @Deprecated public static int calculateSignalLevel(int, int); method @IntRange(from=0) public int calculateSignalLevel(int); method @Deprecated public void cancelWps(android.net.wifi.WifiManager.WpsCallback); method public static int compareSignalLevel(int, int); method public android.net.wifi.WifiManager.MulticastLock createMulticastLock(String); method public android.net.wifi.WifiManager.WifiLock createWifiLock(int, String); method @Deprecated public android.net.wifi.WifiManager.WifiLock createWifiLock(String); method @Deprecated public boolean disableNetwork(int); method @Deprecated public boolean disconnect(); method @Deprecated public boolean enableNetwork(int, boolean); 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(); method @NonNull @RequiresPermission(android.Manifest.permission.NEARBY_WIFI_DEVICES) public java.util.List getAllowedChannels(int, int); method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public java.util.List getCallerConfiguredNetworks(); method @RequiresPermission(android.Manifest.permission.NEARBY_WIFI_DEVICES) public void getChannelData(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_WIFI_STATE}) public java.util.List getConfiguredNetworks(); method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public android.net.wifi.WifiInfo getConnectionInfo(); method @Deprecated public android.net.DhcpInfo getDhcpInfo(); method public int getMaxNumberOfChannelsPerNetworkSpecifierRequest(); method public int getMaxNumberOfNetworkSuggestionsPerApp(); method @IntRange(from=0) public int getMaxSignalLevel(); method public void getMaxSupportedConcurrentTdlsSessions(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public java.util.List getNetworkSuggestions(); method public void getNumberOfEnabledTdlsSessions(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @Deprecated public java.util.List getPasspointConfigurations(); method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.ACCESS_FINE_LOCATION}) public java.util.List getScanResults(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public int getStaConcurrencyForMultiInternetMode(); method @NonNull @RequiresPermission(android.Manifest.permission.NEARBY_WIFI_DEVICES) public java.util.List getUsableChannels(int, int); method public int getWifiState(); method public boolean is24GHzBandSupported(); method public boolean is5GHzBandSupported(); method public boolean is60GHzBandSupported(); method public boolean is6GHzBandSupported(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isAutoWakeupEnabled(); method public boolean isBridgedApConcurrencySupported(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isCarrierNetworkOffloadEnabled(int, boolean); method public boolean isDecoratedIdentitySupported(); method @Deprecated public boolean isDeviceToApRttSupported(); method public boolean isDualBandSimultaneousSupported(); method public boolean isEasyConnectDppAkmSupported(); method public boolean isEasyConnectEnrolleeResponderModeSupported(); method public boolean isEasyConnectSupported(); method public boolean isEnhancedOpenSupported(); method public boolean isEnhancedPowerReportingSupported(); method public boolean isMakeBeforeBreakWifiSwitchingSupported(); method public boolean isP2pSupported(); method public boolean isPasspointTermsAndConditionsSupported(); method public boolean isPreferredNetworkOffloadSupported(); method @Deprecated public boolean isScanAlwaysAvailable(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isScanThrottleEnabled(); method public boolean isStaApConcurrencySupported(); method public boolean isStaBridgedApConcurrencySupported(); method public boolean isStaConcurrencyForLocalOnlyConnectionsSupported(); method public boolean isStaConcurrencyForMultiInternetSupported(); method public void isTdlsOperationCurrentlyAvailable(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method public boolean isTdlsSupported(); method public boolean isTidToLinkMappingNegotiationSupported(); method public boolean isTlsMinimumVersionSupported(); method public boolean isTlsV13Supported(); method public boolean isTrustOnFirstUseSupported(); method public boolean isWapiSupported(); method public boolean isWifiDisplayR2Supported(); method public boolean isWifiEnabled(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isWifiPasspointEnabled(); method public boolean isWifiStandardSupported(int); method public boolean isWpa3SaeH2eSupported(); method public boolean isWpa3SaePublicKeySupported(); method public boolean isWpa3SaeSupported(); method public boolean isWpa3SuiteBSupported(); method @Deprecated public boolean pingSupplicant(); method public void queryAutojoinGlobal(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @Deprecated public boolean reassociate(); method @Deprecated public boolean reconnect(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void registerScanResultsCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.ScanResultsCallback); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void registerSubsystemRestartTrackingCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.SubsystemRestartTrackingCallback); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void removeLocalOnlyConnectionFailureListener(@NonNull android.net.wifi.WifiManager.LocalOnlyConnectionFailureListener); method @Deprecated public boolean removeNetwork(int); method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public int removeNetworkSuggestions(@NonNull java.util.List); method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public int removeNetworkSuggestions(@NonNull java.util.List, int); method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public boolean removeNonCallerConfiguredNetworks(); method @Deprecated public void removePasspointConfiguration(String); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void removeSuggestionConnectionStatusListener(@NonNull android.net.wifi.WifiManager.SuggestionConnectionStatusListener); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void removeSuggestionUserApprovalStatusListener(@NonNull android.net.wifi.WifiManager.SuggestionUserApprovalStatusListener); 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>); method @Deprecated public boolean saveConfiguration(); method public void setTdlsEnabled(java.net.InetAddress, boolean); method public void setTdlsEnabled(@NonNull java.net.InetAddress, boolean, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method public void setTdlsEnabledWithMacAddress(String, boolean); method public void setTdlsEnabledWithMacAddress(@NonNull String, boolean, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @Deprecated public boolean setWifiEnabled(boolean); 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); method @Deprecated public boolean startScan(); method @Deprecated public void startWps(android.net.wifi.WpsInfo, android.net.wifi.WifiManager.WpsCallback); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void unregisterScanResultsCallback(@NonNull android.net.wifi.WifiManager.ScanResultsCallback); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void unregisterSubsystemRestartTrackingCallback(@NonNull android.net.wifi.WifiManager.SubsystemRestartTrackingCallback); method @Deprecated public int updateNetwork(android.net.wifi.WifiConfiguration); method public boolean validateSoftApConfiguration(@NonNull android.net.wifi.SoftApConfiguration); field public static final String ACTION_PICK_WIFI_NETWORK = "android.net.wifi.PICK_WIFI_NETWORK"; field public static final int ACTION_REMOVE_SUGGESTION_DISCONNECT = 2; // 0x2 field public static final int ACTION_REMOVE_SUGGESTION_LINGER = 1; // 0x1 field public static final String ACTION_REQUEST_SCAN_ALWAYS_AVAILABLE = "android.net.wifi.action.REQUEST_SCAN_ALWAYS_AVAILABLE"; field public static final String ACTION_WIFI_NETWORK_SUGGESTION_POST_CONNECTION = "android.net.wifi.action.WIFI_NETWORK_SUGGESTION_POST_CONNECTION"; field public static final String ACTION_WIFI_SCAN_AVAILABILITY_CHANGED = "android.net.wifi.action.WIFI_SCAN_AVAILABILITY_CHANGED"; field public static final String CHANNEL_DATA_KEY_FREQUENCY_MHZ = "CHANNEL_DATA_KEY_FREQUENCY_MHZ"; field public static final String CHANNEL_DATA_KEY_NUM_AP = "CHANNEL_DATA_KEY_NUM_AP"; field @Deprecated public static final int ERROR_AUTHENTICATING = 1; // 0x1 field @Deprecated public static final String EXTRA_BSSID = "bssid"; field public static final String EXTRA_NETWORK_INFO = "networkInfo"; field public static final String EXTRA_NETWORK_SUGGESTION = "android.net.wifi.extra.NETWORK_SUGGESTION"; field public static final String EXTRA_NEW_RSSI = "newRssi"; field @Deprecated public static final String EXTRA_NEW_STATE = "newState"; field public static final String EXTRA_PREVIOUS_WIFI_STATE = "previous_wifi_state"; field public static final String EXTRA_RESULTS_UPDATED = "resultsUpdated"; field public static final String EXTRA_SCAN_AVAILABLE = "android.net.wifi.extra.SCAN_AVAILABLE"; field @Deprecated public static final String EXTRA_SUPPLICANT_CONNECTED = "connected"; field @Deprecated public static final String EXTRA_SUPPLICANT_ERROR = "supplicantError"; field @Deprecated public static final String EXTRA_WIFI_INFO = "wifiInfo"; field public static final String EXTRA_WIFI_STATE = "wifi_state"; field public static final String NETWORK_IDS_CHANGED_ACTION = "android.net.wifi.NETWORK_IDS_CHANGED"; field public static final String NETWORK_STATE_CHANGED_ACTION = "android.net.wifi.STATE_CHANGE"; field public static final String RSSI_CHANGED_ACTION = "android.net.wifi.RSSI_CHANGED"; field public static final String SCAN_RESULTS_AVAILABLE_ACTION = "android.net.wifi.SCAN_RESULTS"; field public static final int STATUS_LOCAL_ONLY_CONNECTION_FAILURE_ASSOCIATION = 1; // 0x1 field public static final int STATUS_LOCAL_ONLY_CONNECTION_FAILURE_AUTHENTICATION = 2; // 0x2 field public static final int STATUS_LOCAL_ONLY_CONNECTION_FAILURE_IP_PROVISIONING = 3; // 0x3 field public static final int STATUS_LOCAL_ONLY_CONNECTION_FAILURE_NOT_FOUND = 4; // 0x4 field public static final int STATUS_LOCAL_ONLY_CONNECTION_FAILURE_NO_RESPONSE = 5; // 0x5 field public static final int STATUS_LOCAL_ONLY_CONNECTION_FAILURE_UNKNOWN = 0; // 0x0 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_ADD_DUPLICATE = 3; // 0x3 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_ADD_EXCEEDS_MAX_PER_APP = 4; // 0x4 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_ADD_INVALID = 7; // 0x7 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_ADD_NOT_ALLOWED = 6; // 0x6 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_APP_DISALLOWED = 2; // 0x2 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_INTERNAL = 1; // 0x1 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_REMOVE_INVALID = 5; // 0x5 field public static final int STATUS_NETWORK_SUGGESTIONS_ERROR_RESTRICTED_BY_ADMIN = 8; // 0x8 field public static final int STATUS_NETWORK_SUGGESTIONS_SUCCESS = 0; // 0x0 field public static final int STATUS_SUGGESTION_APPROVAL_APPROVED_BY_CARRIER_PRIVILEGE = 4; // 0x4 field public static final int STATUS_SUGGESTION_APPROVAL_APPROVED_BY_USER = 2; // 0x2 field public static final int STATUS_SUGGESTION_APPROVAL_PENDING = 1; // 0x1 field public static final int STATUS_SUGGESTION_APPROVAL_REJECTED_BY_USER = 3; // 0x3 field public static final int STATUS_SUGGESTION_APPROVAL_UNKNOWN = 0; // 0x0 field public static final int STATUS_SUGGESTION_CONNECTION_FAILURE_ASSOCIATION = 1; // 0x1 field public static final int STATUS_SUGGESTION_CONNECTION_FAILURE_AUTHENTICATION = 2; // 0x2 field public static final int STATUS_SUGGESTION_CONNECTION_FAILURE_IP_PROVISIONING = 3; // 0x3 field public static final int STATUS_SUGGESTION_CONNECTION_FAILURE_UNKNOWN = 0; // 0x0 field @Deprecated public static final String SUPPLICANT_CONNECTION_CHANGE_ACTION = "android.net.wifi.supplicant.CONNECTION_CHANGE"; field @Deprecated public static final String SUPPLICANT_STATE_CHANGED_ACTION = "android.net.wifi.supplicant.STATE_CHANGE"; field public static final String UNKNOWN_SSID = ""; field public static final int WIFI_INTERFACE_TYPE_AP = 1; // 0x1 field public static final int WIFI_INTERFACE_TYPE_AWARE = 2; // 0x2 field public static final int WIFI_INTERFACE_TYPE_DIRECT = 3; // 0x3 field public static final int WIFI_INTERFACE_TYPE_STA = 0; // 0x0 field @Deprecated public static final int WIFI_MODE_FULL = 1; // 0x1 field @Deprecated public static final int WIFI_MODE_FULL_HIGH_PERF = 3; // 0x3 field public static final int WIFI_MODE_FULL_LOW_LATENCY = 4; // 0x4 field @Deprecated public static final int WIFI_MODE_SCAN_ONLY = 2; // 0x2 field public static final int WIFI_MULTI_INTERNET_MODE_DBS_AP = 1; // 0x1 field public static final int WIFI_MULTI_INTERNET_MODE_DISABLED = 0; // 0x0 field public static final int WIFI_MULTI_INTERNET_MODE_MULTI_AP = 2; // 0x2 field public static final String WIFI_STATE_CHANGED_ACTION = "android.net.wifi.WIFI_STATE_CHANGED"; field public static final int WIFI_STATE_DISABLED = 1; // 0x1 field public static final int WIFI_STATE_DISABLING = 0; // 0x0 field public static final int WIFI_STATE_ENABLED = 3; // 0x3 field public static final int WIFI_STATE_ENABLING = 2; // 0x2 field public static final int WIFI_STATE_UNKNOWN = 4; // 0x4 field @Deprecated public static final int WPS_AUTH_FAILURE = 6; // 0x6 field @Deprecated public static final int WPS_OVERLAP_ERROR = 3; // 0x3 field @Deprecated public static final int WPS_TIMED_OUT = 7; // 0x7 field @Deprecated public static final int WPS_TKIP_ONLY_PROHIBITED = 5; // 0x5 field @Deprecated public static final int WPS_WEP_PROHIBITED = 4; // 0x4 } public static final class WifiManager.AddNetworkResult implements android.os.Parcelable { ctor public WifiManager.AddNetworkResult(int, int); method public int describeContents(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int STATUS_ADD_PASSPOINT_FAILURE = 3; // 0x3 field public static final int STATUS_ADD_WIFI_CONFIG_FAILURE = 4; // 0x4 field public static final int STATUS_FAILURE_UNKNOWN = 1; // 0x1 field public static final int STATUS_FAILURE_UPDATE_NETWORK_KEYS = 9; // 0x9 field public static final int STATUS_INVALID_CONFIGURATION = 5; // 0x5 field public static final int STATUS_INVALID_CONFIGURATION_ENTERPRISE = 10; // 0xa field public static final int STATUS_NO_PERMISSION = 2; // 0x2 field public static final int STATUS_NO_PERMISSION_MODIFY_CONFIG = 6; // 0x6 field public static final int STATUS_NO_PERMISSION_MODIFY_MAC_RANDOMIZATION = 8; // 0x8 field public static final int STATUS_NO_PERMISSION_MODIFY_PROXY_SETTING = 7; // 0x7 field public static final int STATUS_SUCCESS = 0; // 0x0 field public final int networkId; field public final int statusCode; } public static class WifiManager.InterfaceCreationImpact { ctor public WifiManager.InterfaceCreationImpact(int, @NonNull java.util.Set); method public int getInterfaceType(); method @NonNull public java.util.Set getPackages(); } public static interface WifiManager.LocalOnlyConnectionFailureListener { method public void onConnectionFailed(@NonNull android.net.wifi.WifiNetworkSpecifier, int); } public static class WifiManager.LocalOnlyHotspotCallback { ctor public WifiManager.LocalOnlyHotspotCallback(); method public void onFailed(int); method public void onStarted(android.net.wifi.WifiManager.LocalOnlyHotspotReservation); method public void onStopped(); field public static final int ERROR_GENERIC = 2; // 0x2 field public static final int ERROR_INCOMPATIBLE_MODE = 3; // 0x3 field public static final int ERROR_NO_CHANNEL = 1; // 0x1 field public static final int ERROR_TETHERING_DISALLOWED = 4; // 0x4 } public class WifiManager.LocalOnlyHotspotReservation implements java.lang.AutoCloseable { method public void close(); method @NonNull public android.net.wifi.SoftApConfiguration getSoftApConfiguration(); method @Deprecated @Nullable public android.net.wifi.WifiConfiguration getWifiConfiguration(); } public class WifiManager.MulticastLock { method public void acquire(); method public boolean isHeld(); method public void release(); method public void setReferenceCounted(boolean); } public abstract static class WifiManager.ScanResultsCallback { ctor public WifiManager.ScanResultsCallback(); method public abstract void onScanResultsAvailable(); } public abstract static class WifiManager.SubsystemRestartTrackingCallback { ctor public WifiManager.SubsystemRestartTrackingCallback(); method public abstract void onSubsystemRestarted(); method public abstract void onSubsystemRestarting(); } public static interface WifiManager.SuggestionConnectionStatusListener { method public void onConnectionStatus(@NonNull android.net.wifi.WifiNetworkSuggestion, int); } public static interface WifiManager.SuggestionUserApprovalStatusListener { method public void onUserApprovalStatusChange(int); } public class WifiManager.WifiLock { method public void acquire(); method public boolean isHeld(); method public void release(); method public void setReferenceCounted(boolean); method public void setWorkSource(android.os.WorkSource); } @Deprecated public abstract static class WifiManager.WpsCallback { ctor @Deprecated public WifiManager.WpsCallback(); method @Deprecated public abstract void onFailed(int); method @Deprecated public abstract void onStarted(String); method @Deprecated public abstract void onSucceeded(); } public final class WifiNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable { method public int describeContents(); method public int getBand(); method @NonNull public int[] getPreferredChannelFrequenciesMhz(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class WifiNetworkSpecifier.Builder { ctor public WifiNetworkSpecifier.Builder(); method @NonNull public android.net.wifi.WifiNetworkSpecifier build(); method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setBand(int); method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setBssid(@NonNull android.net.MacAddress); method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setBssidPattern(@NonNull android.net.MacAddress, @NonNull android.net.MacAddress); method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setIsEnhancedOpen(boolean); method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setIsHiddenSsid(boolean); method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setPreferredChannelsFrequenciesMhz(@NonNull int[]); method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setSsid(@NonNull String); method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setSsidPattern(@NonNull android.os.PatternMatcher); method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setWpa2EnterpriseConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setWpa2Passphrase(@NonNull String); method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setWpa3Enterprise192BitModeConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); method @Deprecated @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setWpa3EnterpriseConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setWpa3EnterpriseStandardModeConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); method @NonNull public android.net.wifi.WifiNetworkSpecifier.Builder setWpa3Passphrase(@NonNull String); } public final class WifiNetworkSuggestion implements android.os.Parcelable { method public int describeContents(); method @Nullable public android.net.MacAddress getBssid(); method @Nullable public android.net.wifi.WifiEnterpriseConfig getEnterpriseConfig(); method public int getMacRandomizationSetting(); method @Nullable public String getPassphrase(); method @Nullable public android.net.wifi.hotspot2.PasspointConfiguration getPasspointConfig(); method @IntRange(from=0) public int getPriority(); method @IntRange(from=0) public int getPriorityGroup(); method @Nullable public String getSsid(); method @Nullable public android.os.ParcelUuid getSubscriptionGroup(); method public int getSubscriptionId(); method @Nullable public android.net.wifi.WifiSsid getWifiSsid(); method public boolean isAppInteractionRequired(); method public boolean isCarrierMerged(); method public boolean isCredentialSharedWithUser(); method public boolean isEnhancedOpen(); method public boolean isHiddenSsid(); method public boolean isInitialAutojoinEnabled(); method public boolean isMetered(); method public boolean isRestricted(); method public boolean isUntrusted(); method public boolean isUserInteractionRequired(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int RANDOMIZATION_NON_PERSISTENT = 1; // 0x1 field public static final int RANDOMIZATION_PERSISTENT = 0; // 0x0 } public static final class WifiNetworkSuggestion.Builder { ctor public WifiNetworkSuggestion.Builder(); method @NonNull public android.net.wifi.WifiNetworkSuggestion build(); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setBssid(@NonNull android.net.MacAddress); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setCarrierMerged(boolean); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setCredentialSharedWithUser(boolean); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setIsAppInteractionRequired(boolean); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setIsEnhancedOpen(boolean); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setIsHiddenSsid(boolean); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setIsInitialAutojoinEnabled(boolean); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setIsMetered(boolean); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setIsUserInteractionRequired(boolean); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setIsWpa3SaeH2eOnlyModeEnabled(boolean); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setMacRandomizationSetting(int); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setPasspointConfig(@NonNull android.net.wifi.hotspot2.PasspointConfiguration); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setPriority(@IntRange(from=0) int); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setPriorityGroup(@IntRange(from=0) int); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setRestricted(boolean); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setSsid(@NonNull String); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setSubscriptionGroup(@NonNull android.os.ParcelUuid); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setSubscriptionId(int); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setUntrusted(boolean); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWapiEnterpriseConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWapiPassphrase(@NonNull String); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWifiSsid(@NonNull android.net.wifi.WifiSsid); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWpa2EnterpriseConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWpa2Passphrase(@NonNull String); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWpa3Enterprise192BitModeConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); method @Deprecated @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWpa3EnterpriseConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWpa3EnterpriseStandardModeConfig(@NonNull android.net.wifi.WifiEnterpriseConfig); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setWpa3Passphrase(@NonNull String); } public final class WifiSsid implements android.os.Parcelable { method public int describeContents(); method @NonNull public static android.net.wifi.WifiSsid fromBytes(@Nullable byte[]); method @NonNull public byte[] getBytes(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public class WpsInfo implements android.os.Parcelable { ctor public WpsInfo(); ctor public WpsInfo(android.net.wifi.WpsInfo); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field public String BSSID; field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int DISPLAY = 1; // 0x1 field public static final int INVALID = 4; // 0x4 field public static final int KEYPAD = 2; // 0x2 field public static final int LABEL = 3; // 0x3 field public static final int PBC = 0; // 0x0 field public String pin; field public int setup; } } package android.net.wifi.aware { public class AttachCallback { ctor public AttachCallback(); method public void onAttachFailed(); method public void onAttached(android.net.wifi.aware.WifiAwareSession); method public void onAwareSessionTerminated(); } public final class AwarePairingConfig implements android.os.Parcelable { method public int describeContents(); method public int getBootstrappingMethods(); method public boolean isPairingCacheEnabled(); method public boolean isPairingSetupEnabled(); method public boolean isPairingVerificationEnabled(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int PAIRING_BOOTSTRAPPING_NFC_READER = 256; // 0x100 field public static final int PAIRING_BOOTSTRAPPING_NFC_TAG = 16; // 0x10 field public static final int PAIRING_BOOTSTRAPPING_OPPORTUNISTIC = 1; // 0x1 field public static final int PAIRING_BOOTSTRAPPING_PASSPHRASE_DISPLAY = 4; // 0x4 field public static final int PAIRING_BOOTSTRAPPING_PASSPHRASE_KEYPAD = 64; // 0x40 field public static final int PAIRING_BOOTSTRAPPING_PIN_CODE_DISPLAY = 2; // 0x2 field public static final int PAIRING_BOOTSTRAPPING_PIN_CODE_KEYPAD = 32; // 0x20 field public static final int PAIRING_BOOTSTRAPPING_QR_DISPLAY = 8; // 0x8 field public static final int PAIRING_BOOTSTRAPPING_QR_SCAN = 128; // 0x80 } public static final class AwarePairingConfig.Builder { ctor public AwarePairingConfig.Builder(); method @NonNull public android.net.wifi.aware.AwarePairingConfig build(); method @NonNull public android.net.wifi.aware.AwarePairingConfig.Builder setBootstrappingMethods(int); method @NonNull public android.net.wifi.aware.AwarePairingConfig.Builder setPairingCacheEnabled(boolean); method @NonNull public android.net.wifi.aware.AwarePairingConfig.Builder setPairingSetupEnabled(boolean); method @NonNull public android.net.wifi.aware.AwarePairingConfig.Builder setPairingVerificationEnabled(boolean); } public final class AwareResources implements android.os.Parcelable { ctor public AwareResources(@IntRange(from=0) int, @IntRange(from=0) int, @IntRange(from=0) int); method public int describeContents(); method @IntRange(from=0) public int getAvailableDataPathsCount(); method @IntRange(from=0) public int getAvailablePublishSessionsCount(); method @IntRange(from=0) public int getAvailableSubscribeSessionsCount(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public final class Characteristics implements android.os.Parcelable { method public int describeContents(); method public int getMaxMatchFilterLength(); method public int getMaxServiceNameLength(); method public int getMaxServiceSpecificInfoLength(); method @IntRange(from=1) public int getNumberOfSupportedDataInterfaces(); method @IntRange(from=1) public int getNumberOfSupportedDataPaths(); method @IntRange(from=1) public int getNumberOfSupportedPublishSessions(); method @IntRange(from=1) public int getNumberOfSupportedSubscribeSessions(); method public int getSupportedCipherSuites(); method public int getSupportedPairingCipherSuites(); method public boolean isAwarePairingSupported(); method public boolean isInstantCommunicationModeSupported(); method public boolean isSuspensionSupported(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int WIFI_AWARE_CIPHER_SUITE_NCS_PK_128 = 4; // 0x4 field public static final int WIFI_AWARE_CIPHER_SUITE_NCS_PK_256 = 8; // 0x8 field public static final int WIFI_AWARE_CIPHER_SUITE_NCS_PK_PASN_128 = 16; // 0x10 field public static final int WIFI_AWARE_CIPHER_SUITE_NCS_PK_PASN_256 = 32; // 0x20 field public static final int WIFI_AWARE_CIPHER_SUITE_NCS_SK_128 = 1; // 0x1 field public static final int WIFI_AWARE_CIPHER_SUITE_NCS_SK_256 = 2; // 0x2 field public static final int WIFI_AWARE_CIPHER_SUITE_NONE = 0; // 0x0 } public class DiscoverySession implements java.lang.AutoCloseable { method public void acceptPairingRequest(int, @NonNull android.net.wifi.aware.PeerHandle, @NonNull String, int, @Nullable String); method public void close(); method @Deprecated public android.net.NetworkSpecifier createNetworkSpecifierOpen(@NonNull android.net.wifi.aware.PeerHandle); method @Deprecated public android.net.NetworkSpecifier createNetworkSpecifierPassphrase(@NonNull android.net.wifi.aware.PeerHandle, @NonNull String); method public void initiateBootstrappingRequest(@NonNull android.net.wifi.aware.PeerHandle, int); method public void initiatePairingRequest(@NonNull android.net.wifi.aware.PeerHandle, @NonNull String, int, @Nullable String); method public void rejectPairingRequest(int, @NonNull android.net.wifi.aware.PeerHandle); method public void sendMessage(@NonNull android.net.wifi.aware.PeerHandle, int, @Nullable byte[]); } public class DiscoverySessionCallback { ctor public DiscoverySessionCallback(); method public void onBootstrappingFailed(@NonNull android.net.wifi.aware.PeerHandle); method public void onBootstrappingSucceeded(@NonNull android.net.wifi.aware.PeerHandle, int); method public void onMessageReceived(android.net.wifi.aware.PeerHandle, byte[]); method public void onMessageSendFailed(int); method public void onMessageSendSucceeded(int); method public void onPairingSetupFailed(@NonNull android.net.wifi.aware.PeerHandle); method public void onPairingSetupRequestReceived(@NonNull android.net.wifi.aware.PeerHandle, int); method public void onPairingSetupSucceeded(@NonNull android.net.wifi.aware.PeerHandle, @NonNull String); method public void onPairingVerificationFailed(@NonNull android.net.wifi.aware.PeerHandle); method public void onPairingVerificationSucceed(@NonNull android.net.wifi.aware.PeerHandle, @NonNull String); method public void onPublishStarted(@NonNull android.net.wifi.aware.PublishDiscoverySession); method public void onServiceDiscovered(android.net.wifi.aware.PeerHandle, byte[], java.util.List); method public void onServiceDiscovered(@NonNull android.net.wifi.aware.ServiceDiscoveryInfo); method public void onServiceDiscoveredWithinRange(android.net.wifi.aware.PeerHandle, byte[], java.util.List, int); method public void onServiceDiscoveredWithinRange(@NonNull android.net.wifi.aware.ServiceDiscoveryInfo, int); method public void onServiceLost(@NonNull android.net.wifi.aware.PeerHandle, int); method public void onSessionConfigFailed(); method public void onSessionConfigUpdated(); method public void onSessionTerminated(); method public void onSubscribeStarted(@NonNull android.net.wifi.aware.SubscribeDiscoverySession); } public class IdentityChangedListener { ctor public IdentityChangedListener(); method public void onClusterIdChanged(int, @NonNull android.net.MacAddress); method public void onIdentityChanged(byte[]); field public static final int CLUSTER_CHANGE_EVENT_JOINED = 1; // 0x1 field public static final int CLUSTER_CHANGE_EVENT_STARTED = 0; // 0x0 } public final class ParcelablePeerHandle extends android.net.wifi.aware.PeerHandle implements android.os.Parcelable { ctor public ParcelablePeerHandle(@NonNull android.net.wifi.aware.PeerHandle); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public class PeerHandle { } public final class PublishConfig implements android.os.Parcelable { method public int describeContents(); method public int getInstantCommunicationBand(); method @Nullable public android.net.wifi.aware.AwarePairingConfig getPairingConfig(); method @Nullable public android.net.wifi.aware.WifiAwareDataPathSecurityConfig getSecurityConfig(); method public boolean isInstantCommunicationModeEnabled(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int PUBLISH_TYPE_SOLICITED = 1; // 0x1 field public static final int PUBLISH_TYPE_UNSOLICITED = 0; // 0x0 } public static final class PublishConfig.Builder { ctor public PublishConfig.Builder(); method public android.net.wifi.aware.PublishConfig build(); method @NonNull public android.net.wifi.aware.PublishConfig.Builder setDataPathSecurityConfig(@NonNull android.net.wifi.aware.WifiAwareDataPathSecurityConfig); method @NonNull public android.net.wifi.aware.PublishConfig.Builder setInstantCommunicationModeEnabled(boolean, int); method public android.net.wifi.aware.PublishConfig.Builder setMatchFilter(@Nullable java.util.List); method @NonNull public android.net.wifi.aware.PublishConfig.Builder setPairingConfig(@Nullable android.net.wifi.aware.AwarePairingConfig); method public android.net.wifi.aware.PublishConfig.Builder setPublishType(int); method public android.net.wifi.aware.PublishConfig.Builder setRangingEnabled(boolean); method public android.net.wifi.aware.PublishConfig.Builder setServiceName(@NonNull String); method public android.net.wifi.aware.PublishConfig.Builder setServiceSpecificInfo(@Nullable byte[]); method public android.net.wifi.aware.PublishConfig.Builder setTerminateNotificationEnabled(boolean); method public android.net.wifi.aware.PublishConfig.Builder setTtlSec(int); } public class PublishDiscoverySession extends android.net.wifi.aware.DiscoverySession { method public void updatePublish(@NonNull android.net.wifi.aware.PublishConfig); } public final class ServiceDiscoveryInfo { method @NonNull public java.util.List getMatchFilters(); method @Nullable public String getPairedAlias(); method @Nullable public android.net.wifi.aware.AwarePairingConfig getPairingConfig(); method public int getPeerCipherSuite(); method @NonNull public android.net.wifi.aware.PeerHandle getPeerHandle(); method @Nullable public byte[] getScid(); method @Nullable public byte[] getServiceSpecificInfo(); } public final class SubscribeConfig implements android.os.Parcelable { method public int describeContents(); method public int getInstantCommunicationBand(); method @Nullable public android.net.wifi.aware.AwarePairingConfig getPairingConfig(); method public boolean isInstantCommunicationModeEnabled(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int SUBSCRIBE_TYPE_ACTIVE = 1; // 0x1 field public static final int SUBSCRIBE_TYPE_PASSIVE = 0; // 0x0 } public static final class SubscribeConfig.Builder { ctor public SubscribeConfig.Builder(); method public android.net.wifi.aware.SubscribeConfig build(); method @NonNull public android.net.wifi.aware.SubscribeConfig.Builder setInstantCommunicationModeEnabled(boolean, int); method public android.net.wifi.aware.SubscribeConfig.Builder setMatchFilter(@Nullable java.util.List); method public android.net.wifi.aware.SubscribeConfig.Builder setMaxDistanceMm(int); method public android.net.wifi.aware.SubscribeConfig.Builder setMinDistanceMm(int); method @NonNull public android.net.wifi.aware.SubscribeConfig.Builder setPairingConfig(@Nullable android.net.wifi.aware.AwarePairingConfig); method public android.net.wifi.aware.SubscribeConfig.Builder setServiceName(@NonNull String); method public android.net.wifi.aware.SubscribeConfig.Builder setServiceSpecificInfo(@Nullable byte[]); method public android.net.wifi.aware.SubscribeConfig.Builder setSubscribeType(int); method public android.net.wifi.aware.SubscribeConfig.Builder setTerminateNotificationEnabled(boolean); method public android.net.wifi.aware.SubscribeConfig.Builder setTtlSec(int); } public class SubscribeDiscoverySession extends android.net.wifi.aware.DiscoverySession { method public void updateSubscribe(@NonNull android.net.wifi.aware.SubscribeConfig); } public final class WifiAwareChannelInfo implements android.os.Parcelable { method public int describeContents(); method @IntRange(from=0) public int getChannelBandwidth(); method @IntRange(from=0) public int getChannelFrequencyMhz(); method @IntRange(from=0) public int getSpatialStreamCount(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public final class WifiAwareDataPathSecurityConfig implements android.os.Parcelable { method public int describeContents(); method public int getCipherSuite(); method @Nullable public byte[] getPmk(); method @Nullable public byte[] getPmkId(); method @Nullable public String getPskPassphrase(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class WifiAwareDataPathSecurityConfig.Builder { ctor public WifiAwareDataPathSecurityConfig.Builder(int); method @NonNull public android.net.wifi.aware.WifiAwareDataPathSecurityConfig build(); method @NonNull public android.net.wifi.aware.WifiAwareDataPathSecurityConfig.Builder setPmk(@NonNull byte[]); method @NonNull public android.net.wifi.aware.WifiAwareDataPathSecurityConfig.Builder setPmkId(@NonNull byte[]); method @NonNull public android.net.wifi.aware.WifiAwareDataPathSecurityConfig.Builder setPskPassphrase(@NonNull String); } public class WifiAwareManager { 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); 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); method @Nullable @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public android.net.wifi.aware.AwareResources getAvailableAwareResources(); method @Nullable @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public android.net.wifi.aware.Characteristics getCharacteristics(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void getPairedDevices(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isAvailable(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isDeviceAttached(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isInstantCommunicationModeEnabled(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void isOpportunisticModeEnabled(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isSetChannelOnDataPathSupported(); method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public void removePairedDevice(@NonNull String); method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public void resetPairedDevices(); method @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public void setOpportunisticModeEnabled(boolean); 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"; field public static final String ACTION_WIFI_AWARE_STATE_CHANGED = "android.net.wifi.aware.action.WIFI_AWARE_STATE_CHANGED"; field public static final String EXTRA_AWARE_RESOURCES = "android.net.wifi.aware.extra.AWARE_RESOURCES"; field public static final int WIFI_AWARE_DATA_PATH_ROLE_INITIATOR = 0; // 0x0 field public static final int WIFI_AWARE_DATA_PATH_ROLE_RESPONDER = 1; // 0x1 field public static final int WIFI_AWARE_DISCOVERY_LOST_REASON_PEER_NOT_VISIBLE = 1; // 0x1 field public static final int WIFI_AWARE_DISCOVERY_LOST_REASON_UNKNOWN = 0; // 0x0 } public final class WifiAwareNetworkInfo implements android.os.Parcelable android.net.TransportInfo { method public int describeContents(); method @NonNull public java.util.List getChannelInfoList(); method @Nullable public java.net.Inet6Address getPeerIpv6Addr(); method public int getPort(); method public int getTransportProtocol(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public final class WifiAwareNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable { method public int describeContents(); method @IntRange(from=0) public int getChannelFrequencyMhz(); method @Nullable public android.net.wifi.aware.WifiAwareDataPathSecurityConfig getWifiAwareDataPathSecurityConfig(); method public boolean isChannelRequired(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class WifiAwareNetworkSpecifier.Builder { ctor public WifiAwareNetworkSpecifier.Builder(@NonNull android.net.wifi.aware.DiscoverySession, @NonNull android.net.wifi.aware.PeerHandle); ctor public WifiAwareNetworkSpecifier.Builder(@NonNull android.net.wifi.aware.PublishDiscoverySession); method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier build(); method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder setChannelFrequencyMhz(@IntRange(from=0) int, boolean); method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder setDataPathSecurityConfig(@NonNull android.net.wifi.aware.WifiAwareDataPathSecurityConfig); method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder setPmk(@NonNull byte[]); method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder setPort(@IntRange(from=0, to=65535) int); method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder setPskPassphrase(@NonNull String); method @NonNull public android.net.wifi.aware.WifiAwareNetworkSpecifier.Builder setTransportProtocol(@IntRange(from=0, to=255) int); } public class WifiAwareSession implements java.lang.AutoCloseable { method public void close(); method @Deprecated public android.net.NetworkSpecifier createNetworkSpecifierOpen(int, @NonNull byte[]); method @Deprecated public android.net.NetworkSpecifier createNetworkSpecifierPassphrase(int, @NonNull byte[], @NonNull String); 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); 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); } } package android.net.wifi.hotspot2 { public final class ConfigParser { method public static android.net.wifi.hotspot2.PasspointConfiguration parsePasspointConfig(String, byte[]); } public final class PasspointConfiguration implements android.os.Parcelable { ctor public PasspointConfiguration(); ctor public PasspointConfiguration(android.net.wifi.hotspot2.PasspointConfiguration); method public int describeContents(); method public android.net.wifi.hotspot2.pps.Credential getCredential(); method @Nullable public String getDecoratedIdentityPrefix(); method public android.net.wifi.hotspot2.pps.HomeSp getHomeSp(); method public long getSubscriptionExpirationTimeMillis(); method @NonNull public String getUniqueId(); method public boolean isOsuProvisioned(); method public void setCredential(android.net.wifi.hotspot2.pps.Credential); method public void setDecoratedIdentityPrefix(@Nullable String); method public void setHomeSp(android.net.wifi.hotspot2.pps.HomeSp); method public void setSubscriptionExpirationTimeInMillis(long); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } } package android.net.wifi.hotspot2.omadm { public final class PpsMoParser { method public static android.net.wifi.hotspot2.PasspointConfiguration parseMoText(String); } } package android.net.wifi.hotspot2.pps { public final class Credential implements android.os.Parcelable { ctor public Credential(); ctor public Credential(android.net.wifi.hotspot2.pps.Credential); method public int describeContents(); method public java.security.cert.X509Certificate getCaCertificate(); method public android.net.wifi.hotspot2.pps.Credential.CertificateCredential getCertCredential(); method public java.security.cert.X509Certificate[] getClientCertificateChain(); method public java.security.PrivateKey getClientPrivateKey(); method public int getMinimumTlsVersion(); method public String getRealm(); method public android.net.wifi.hotspot2.pps.Credential.SimCredential getSimCredential(); method public android.net.wifi.hotspot2.pps.Credential.UserCredential getUserCredential(); method public void setCaCertificate(java.security.cert.X509Certificate); method public void setCertCredential(android.net.wifi.hotspot2.pps.Credential.CertificateCredential); method public void setClientCertificateChain(java.security.cert.X509Certificate[]); method public void setClientPrivateKey(java.security.PrivateKey); method public void setMinimumTlsVersion(int) throws java.lang.IllegalArgumentException; method public void setRealm(String); method public void setSimCredential(android.net.wifi.hotspot2.pps.Credential.SimCredential); method public void setUserCredential(android.net.wifi.hotspot2.pps.Credential.UserCredential); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class Credential.CertificateCredential implements android.os.Parcelable { ctor public Credential.CertificateCredential(); ctor public Credential.CertificateCredential(android.net.wifi.hotspot2.pps.Credential.CertificateCredential); method public int describeContents(); method public byte[] getCertSha256Fingerprint(); method public String getCertType(); method public void setCertSha256Fingerprint(byte[]); method public void setCertType(String); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class Credential.SimCredential implements android.os.Parcelable { ctor public Credential.SimCredential(); ctor public Credential.SimCredential(android.net.wifi.hotspot2.pps.Credential.SimCredential); method public int describeContents(); method public int getEapType(); method public String getImsi(); method public void setEapType(int); method public void setImsi(String); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class Credential.UserCredential implements android.os.Parcelable { ctor public Credential.UserCredential(); ctor public Credential.UserCredential(android.net.wifi.hotspot2.pps.Credential.UserCredential); method public int describeContents(); method public int getEapType(); method public String getNonEapInnerMethod(); method public String getPassword(); method public String getUsername(); method public void setEapType(int); method public void setNonEapInnerMethod(String); method public void setPassword(String); method public void setUsername(String); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public final class HomeSp implements android.os.Parcelable { ctor public HomeSp(); ctor public HomeSp(android.net.wifi.hotspot2.pps.HomeSp); method public int describeContents(); method public String getFqdn(); method public String getFriendlyName(); method @Nullable public long[] getMatchAllOis(); method @Nullable public long[] getMatchAnyOis(); method @NonNull public java.util.Collection getOtherHomePartnersList(); method public long[] getRoamingConsortiumOis(); method public void setFqdn(String); method public void setFriendlyName(String); method public void setMatchAllOis(@Nullable long[]); method public void setMatchAnyOis(@Nullable long[]); method public void setOtherHomePartnersList(@NonNull java.util.Collection); method public void setRoamingConsortiumOis(long[]); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } } package android.net.wifi.p2p { public class WifiP2pConfig implements android.os.Parcelable { ctor public WifiP2pConfig(); ctor public WifiP2pConfig(android.net.wifi.p2p.WifiP2pConfig); method public int describeContents(); method public int getGroupClientIpProvisioningMode(); method public int getGroupOwnerBand(); method public int getNetworkId(); method @Nullable public String getNetworkName(); method @Nullable public String getPassphrase(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int GROUP_CLIENT_IP_PROVISIONING_MODE_IPV4_DHCP = 0; // 0x0 field public static final int GROUP_CLIENT_IP_PROVISIONING_MODE_IPV6_LINK_LOCAL = 1; // 0x1 field public static final int GROUP_OWNER_BAND_2GHZ = 1; // 0x1 field public static final int GROUP_OWNER_BAND_5GHZ = 2; // 0x2 field public static final int GROUP_OWNER_BAND_AUTO = 0; // 0x0 field public static final int GROUP_OWNER_INTENT_AUTO = -1; // 0xffffffff field public static final int GROUP_OWNER_INTENT_MAX = 15; // 0xf field public static final int GROUP_OWNER_INTENT_MIN = 0; // 0x0 field public String deviceAddress; field @IntRange(from=0, to=15) public int groupOwnerIntent; field public android.net.wifi.WpsInfo wps; } public static final class WifiP2pConfig.Builder { ctor public WifiP2pConfig.Builder(); method @NonNull public android.net.wifi.p2p.WifiP2pConfig build(); method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder enablePersistentMode(boolean); method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder setDeviceAddress(@Nullable android.net.MacAddress); method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder setGroupClientIpProvisioningMode(int); method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder setGroupOperatingBand(int); method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder setGroupOperatingFrequency(int); method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder setNetworkName(@NonNull String); method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder setPassphrase(@NonNull String); } public class WifiP2pDevice implements android.os.Parcelable { ctor public WifiP2pDevice(); ctor public WifiP2pDevice(android.net.wifi.p2p.WifiP2pDevice); method public int describeContents(); method @NonNull public java.util.List getVendorElements(); method @Nullable public android.net.wifi.p2p.WifiP2pWfdInfo getWfdInfo(); method public boolean isGroupOwner(); method public boolean isServiceDiscoveryCapable(); method public void update(@NonNull android.net.wifi.p2p.WifiP2pDevice); method public boolean wpsDisplaySupported(); method public boolean wpsKeypadSupported(); method public boolean wpsPbcSupported(); method public void writeToParcel(android.os.Parcel, int); field public static final int AVAILABLE = 3; // 0x3 field public static final int CONNECTED = 0; // 0x0 field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int FAILED = 2; // 0x2 field public static final int INVITED = 1; // 0x1 field public static final int UNAVAILABLE = 4; // 0x4 field public String deviceAddress; field public String deviceName; field public String primaryDeviceType; field public String secondaryDeviceType; field public int status; } public class WifiP2pDeviceList implements android.os.Parcelable { ctor public WifiP2pDeviceList(); ctor public WifiP2pDeviceList(android.net.wifi.p2p.WifiP2pDeviceList); method public int describeContents(); method public android.net.wifi.p2p.WifiP2pDevice get(String); method public java.util.Collection getDeviceList(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public class WifiP2pGroup implements android.os.Parcelable { ctor public WifiP2pGroup(); ctor public WifiP2pGroup(android.net.wifi.p2p.WifiP2pGroup); method public int describeContents(); method public java.util.Collection getClientList(); method public int getFrequency(); method public String getInterface(); method public int getNetworkId(); method public String getNetworkName(); method public android.net.wifi.p2p.WifiP2pDevice getOwner(); method public String getPassphrase(); method public boolean isGroupOwner(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int NETWORK_ID_PERSISTENT = -2; // 0xfffffffe field public static final int NETWORK_ID_TEMPORARY = -1; // 0xffffffff } public class WifiP2pInfo implements android.os.Parcelable { ctor public WifiP2pInfo(); ctor public WifiP2pInfo(android.net.wifi.p2p.WifiP2pInfo); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public boolean groupFormed; field public java.net.InetAddress groupOwnerAddress; field public boolean isGroupOwner; } public class WifiP2pManager { 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); 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); method public void addServiceRequest(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.nsd.WifiP2pServiceRequest, android.net.wifi.p2p.WifiP2pManager.ActionListener); method public void cancelConnect(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ActionListener); method public void clearLocalServices(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ActionListener); method public void clearServiceRequests(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ActionListener); 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); 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); 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); 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); 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); 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); 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); 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); method public static int getP2pMaxAllowedVendorElementsLengthBytes(); method public android.net.wifi.p2p.WifiP2pManager.Channel initialize(android.content.Context, android.os.Looper, android.net.wifi.p2p.WifiP2pManager.ChannelListener); method public boolean isChannelConstrainedDiscoverySupported(); method public boolean isGroupClientRemovalSupported(); method public boolean isGroupOwnerIPv6LinkLocalAddressProvided(); method public boolean isSetVendorElementsSupported(); method public void removeClient(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.MacAddress, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); 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); method public void removeGroup(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ActionListener); method public void removeLocalService(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.nsd.WifiP2pServiceInfo, android.net.wifi.p2p.WifiP2pManager.ActionListener); method public void removeServiceRequest(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.nsd.WifiP2pServiceRequest, android.net.wifi.p2p.WifiP2pManager.ActionListener); method public void requestConnectionInfo(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ConnectionInfoListener); 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); method public void requestDiscoveryState(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.wifi.p2p.WifiP2pManager.DiscoveryStateListener); 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); method public void requestNetworkInfo(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.wifi.p2p.WifiP2pManager.NetworkInfoListener); method public void requestP2pState(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull android.net.wifi.p2p.WifiP2pManager.P2pStateListener); 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); 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); 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); method public void setDnsSdResponseListeners(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.DnsSdServiceResponseListener, android.net.wifi.p2p.WifiP2pManager.DnsSdTxtRecordListener); method public void setServiceResponseListener(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ServiceResponseListener); method public void setUpnpServiceResponseListener(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.UpnpServiceResponseListener); 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, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); 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); 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); method public void stopListening(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); method public void stopPeerDiscovery(android.net.wifi.p2p.WifiP2pManager.Channel, android.net.wifi.p2p.WifiP2pManager.ActionListener); field public static final String ACTION_WIFI_P2P_LISTEN_STATE_CHANGED = "android.net.wifi.p2p.action.WIFI_P2P_LISTEN_STATE_CHANGED"; field public static final String ACTION_WIFI_P2P_REQUEST_RESPONSE_CHANGED = "android.net.wifi.p2p.action.WIFI_P2P_REQUEST_RESPONSE_CHANGED"; field public static final int BUSY = 2; // 0x2 field public static final int CONNECTION_REQUEST_ACCEPT = 0; // 0x0 field public static final int CONNECTION_REQUEST_DEFER_SHOW_PIN_TO_SERVICE = 3; // 0x3 field public static final int CONNECTION_REQUEST_DEFER_TO_SERVICE = 2; // 0x2 field public static final int CONNECTION_REQUEST_REJECT = 1; // 0x1 field public static final int ERROR = 0; // 0x0 field public static final String EXTRA_DISCOVERY_STATE = "discoveryState"; field public static final String EXTRA_LISTEN_STATE = "android.net.wifi.p2p.extra.LISTEN_STATE"; field public static final String EXTRA_NETWORK_INFO = "networkInfo"; field public static final String EXTRA_P2P_DEVICE_LIST = "wifiP2pDeviceList"; field public static final String EXTRA_REQUEST_CONFIG = "android.net.wifi.p2p.extra.REQUEST_CONFIG"; field public static final String EXTRA_REQUEST_RESPONSE = "android.net.wifi.p2p.extra.REQUEST_RESPONSE"; field public static final String EXTRA_WIFI_P2P_DEVICE = "wifiP2pDevice"; field public static final String EXTRA_WIFI_P2P_GROUP = "p2pGroupInfo"; field public static final String EXTRA_WIFI_P2P_INFO = "wifiP2pInfo"; field public static final String EXTRA_WIFI_STATE = "wifi_p2p_state"; field public static final int NO_SERVICE_REQUESTS = 3; // 0x3 field public static final int P2P_UNSUPPORTED = 1; // 0x1 field public static final String WIFI_P2P_CONNECTION_CHANGED_ACTION = "android.net.wifi.p2p.CONNECTION_STATE_CHANGE"; field public static final String WIFI_P2P_DISCOVERY_CHANGED_ACTION = "android.net.wifi.p2p.DISCOVERY_STATE_CHANGE"; field public static final int WIFI_P2P_DISCOVERY_STARTED = 2; // 0x2 field public static final int WIFI_P2P_DISCOVERY_STOPPED = 1; // 0x1 field public static final int WIFI_P2P_LISTEN_STARTED = 2; // 0x2 field public static final int WIFI_P2P_LISTEN_STOPPED = 1; // 0x1 field public static final String WIFI_P2P_PEERS_CHANGED_ACTION = "android.net.wifi.p2p.PEERS_CHANGED"; field public static final String WIFI_P2P_STATE_CHANGED_ACTION = "android.net.wifi.p2p.STATE_CHANGED"; field public static final int WIFI_P2P_STATE_DISABLED = 1; // 0x1 field public static final int WIFI_P2P_STATE_ENABLED = 2; // 0x2 field public static final String WIFI_P2P_THIS_DEVICE_CHANGED_ACTION = "android.net.wifi.p2p.THIS_DEVICE_CHANGED"; } public static interface WifiP2pManager.ActionListener { method public void onFailure(int); method public void onSuccess(); } public static class WifiP2pManager.Channel implements java.lang.AutoCloseable { method public void close(); } public static interface WifiP2pManager.ChannelListener { method public void onChannelDisconnected(); } public static interface WifiP2pManager.ConnectionInfoListener { method public void onConnectionInfoAvailable(android.net.wifi.p2p.WifiP2pInfo); } public static interface WifiP2pManager.DeviceInfoListener { method public void onDeviceInfoAvailable(@Nullable android.net.wifi.p2p.WifiP2pDevice); } public static interface WifiP2pManager.DiscoveryStateListener { method public void onDiscoveryStateAvailable(int); } public static interface WifiP2pManager.DnsSdServiceResponseListener { method public void onDnsSdServiceAvailable(String, String, android.net.wifi.p2p.WifiP2pDevice); } public static interface WifiP2pManager.DnsSdTxtRecordListener { method public void onDnsSdTxtRecordAvailable(String, java.util.Map, android.net.wifi.p2p.WifiP2pDevice); } public static interface WifiP2pManager.ExternalApproverRequestListener { method public void onAttached(@NonNull android.net.MacAddress); method public void onConnectionRequested(int, @NonNull android.net.wifi.p2p.WifiP2pConfig, @NonNull android.net.wifi.p2p.WifiP2pDevice); method public void onDetached(@NonNull android.net.MacAddress, int); method public void onPinGenerated(@NonNull android.net.MacAddress, @NonNull String); field public static final int APPROVER_DETACH_REASON_CLOSE = 3; // 0x3 field public static final int APPROVER_DETACH_REASON_FAILURE = 1; // 0x1 field public static final int APPROVER_DETACH_REASON_REMOVE = 0; // 0x0 field public static final int APPROVER_DETACH_REASON_REPLACE = 2; // 0x2 field public static final int REQUEST_TYPE_INVITATION = 1; // 0x1 field public static final int REQUEST_TYPE_JOIN = 2; // 0x2 field public static final int REQUEST_TYPE_NEGOTIATION = 0; // 0x0 } public static interface WifiP2pManager.GroupInfoListener { method public void onGroupInfoAvailable(android.net.wifi.p2p.WifiP2pGroup); } public static interface WifiP2pManager.NetworkInfoListener { method public void onNetworkInfoAvailable(@NonNull android.net.NetworkInfo); } public static interface WifiP2pManager.P2pStateListener { method public void onP2pStateAvailable(int); } public static interface WifiP2pManager.PeerListListener { method public void onPeersAvailable(android.net.wifi.p2p.WifiP2pDeviceList); } public static interface WifiP2pManager.ServiceResponseListener { method public void onServiceAvailable(int, byte[], android.net.wifi.p2p.WifiP2pDevice); } public static interface WifiP2pManager.UpnpServiceResponseListener { method public void onUpnpServiceAvailable(java.util.List, android.net.wifi.p2p.WifiP2pDevice); } public final class WifiP2pWfdInfo implements android.os.Parcelable { ctor public WifiP2pWfdInfo(); ctor public WifiP2pWfdInfo(@Nullable android.net.wifi.p2p.WifiP2pWfdInfo); method public int describeContents(); method public int getControlPort(); method public int getDeviceInfo(); method public int getDeviceType(); method public int getMaxThroughput(); method public int getR2DeviceInfo(); method public int getR2DeviceType(); method public boolean isContentProtectionSupported(); method public boolean isCoupledSinkSupportedAtSink(); method public boolean isCoupledSinkSupportedAtSource(); method public boolean isEnabled(); method public boolean isR2Supported(); method public boolean isSessionAvailable(); method public void setContentProtectionSupported(boolean); method public void setControlPort(@IntRange(from=0) int); method public void setCoupledSinkSupportAtSink(boolean); method public void setCoupledSinkSupportAtSource(boolean); method public boolean setDeviceType(int); method public void setEnabled(boolean); method public void setMaxThroughput(@IntRange(from=0) int); method public boolean setR2DeviceType(int); method public void setSessionAvailable(boolean); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int DEVICE_INFO_AUDIO_ONLY_SUPPORT_AT_SOURCE = 2048; // 0x800 field public static final int DEVICE_INFO_AUDIO_UNSUPPORTED_AT_PRIMARY_SINK = 1024; // 0x400 field public static final int DEVICE_INFO_CONTENT_PROTECTION_SUPPORT = 256; // 0x100 field public static final int DEVICE_INFO_COUPLED_SINK_SUPPORT_AT_SINK = 8; // 0x8 field public static final int DEVICE_INFO_COUPLED_SINK_SUPPORT_AT_SOURCE = 4; // 0x4 field public static final int DEVICE_INFO_DEVICE_TYPE_MASK = 3; // 0x3 field public static final int DEVICE_INFO_PREFERRED_CONNECTIVITY_MASK = 128; // 0x80 field public static final int DEVICE_INFO_SESSION_AVAILABLE_MASK = 48; // 0x30 field public static final int DEVICE_INFO_TDLS_PERSISTENT_GROUP = 4096; // 0x1000 field public static final int DEVICE_INFO_TDLS_PERSISTENT_GROUP_REINVOKE = 8192; // 0x2000 field public static final int DEVICE_INFO_TIME_SYNCHRONIZATION_SUPPORT = 512; // 0x200 field public static final int DEVICE_INFO_WFD_SERVICE_DISCOVERY_SUPPORT = 64; // 0x40 field public static final int DEVICE_TYPE_PRIMARY_SINK = 1; // 0x1 field public static final int DEVICE_TYPE_SECONDARY_SINK = 2; // 0x2 field public static final int DEVICE_TYPE_SOURCE_OR_PRIMARY_SINK = 3; // 0x3 field public static final int DEVICE_TYPE_WFD_SOURCE = 0; // 0x0 field public static final int PREFERRED_CONNECTIVITY_P2P = 0; // 0x0 field public static final int PREFERRED_CONNECTIVITY_TDLS = 1; // 0x1 } } package android.net.wifi.p2p.nsd { public class WifiP2pDnsSdServiceInfo extends android.net.wifi.p2p.nsd.WifiP2pServiceInfo { method public static android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceInfo newInstance(String, String, java.util.Map); } public class WifiP2pDnsSdServiceRequest extends android.net.wifi.p2p.nsd.WifiP2pServiceRequest { method public static android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceRequest newInstance(); method public static android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceRequest newInstance(String); method public static android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceRequest newInstance(String, String); } public class WifiP2pServiceInfo implements android.os.Parcelable { method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field public static final int SERVICE_TYPE_ALL = 0; // 0x0 field public static final int SERVICE_TYPE_BONJOUR = 1; // 0x1 field public static final int SERVICE_TYPE_UPNP = 2; // 0x2 field public static final int SERVICE_TYPE_VENDOR_SPECIFIC = 255; // 0xff } public class WifiP2pServiceRequest implements android.os.Parcelable { method public int describeContents(); method public static android.net.wifi.p2p.nsd.WifiP2pServiceRequest newInstance(int, String); method public static android.net.wifi.p2p.nsd.WifiP2pServiceRequest newInstance(int); method public void writeToParcel(android.os.Parcel, int); } public class WifiP2pUpnpServiceInfo extends android.net.wifi.p2p.nsd.WifiP2pServiceInfo { method public static android.net.wifi.p2p.nsd.WifiP2pUpnpServiceInfo newInstance(String, String, java.util.List); } public class WifiP2pUpnpServiceRequest extends android.net.wifi.p2p.nsd.WifiP2pServiceRequest { method public static android.net.wifi.p2p.nsd.WifiP2pUpnpServiceRequest newInstance(); method public static android.net.wifi.p2p.nsd.WifiP2pUpnpServiceRequest newInstance(String); } } package android.net.wifi.rtt { public class CivicLocationKeys { field public static final int ADDITIONAL_CODE = 32; // 0x20 field public static final int APT = 26; // 0x1a field public static final int BOROUGH = 4; // 0x4 field public static final int BRANCH_ROAD_NAME = 36; // 0x24 field public static final int BUILDING = 25; // 0x19 field public static final int CITY = 3; // 0x3 field public static final int COUNTY = 2; // 0x2 field public static final int DESK = 33; // 0x21 field public static final int FLOOR = 27; // 0x1b field public static final int GROUP_OF_STREETS = 6; // 0x6 field public static final int HNO = 19; // 0x13 field public static final int HNS = 20; // 0x14 field public static final int LANGUAGE = 0; // 0x0 field public static final int LMK = 21; // 0x15 field public static final int LOC = 22; // 0x16 field public static final int NAM = 23; // 0x17 field public static final int NEIGHBORHOOD = 5; // 0x5 field public static final int PCN = 30; // 0x1e field public static final int POD = 17; // 0x11 field public static final int POSTAL_CODE = 24; // 0x18 field public static final int PO_BOX = 31; // 0x1f field public static final int PRD = 16; // 0x10 field public static final int PRIMARY_ROAD_NAME = 34; // 0x22 field public static final int ROAD_SECTION = 35; // 0x23 field public static final int ROOM = 28; // 0x1c field public static final int SCRIPT = 128; // 0x80 field public static final int STATE = 1; // 0x1 field public static final int STREET_NAME_POST_MODIFIER = 39; // 0x27 field public static final int STREET_NAME_PRE_MODIFIER = 38; // 0x26 field public static final int STS = 18; // 0x12 field public static final int SUBBRANCH_ROAD_NAME = 37; // 0x25 field public static final int TYPE_OF_PLACE = 29; // 0x1d } public final class RangingRequest implements android.os.Parcelable { method public int describeContents(); method public static int getDefaultRttBurstSize(); method public static int getMaxPeers(); method public static int getMaxRttBurstSize(); method public static int getMinRttBurstSize(); method public int getRttBurstSize(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class RangingRequest.Builder { ctor public RangingRequest.Builder(); method @NonNull public android.net.wifi.rtt.RangingRequest.Builder addAccessPoint(@NonNull android.net.wifi.ScanResult); method @NonNull public android.net.wifi.rtt.RangingRequest.Builder addAccessPoints(@NonNull java.util.List); method @NonNull public android.net.wifi.rtt.RangingRequest.Builder addNon80211mcCapableAccessPoint(@NonNull android.net.wifi.ScanResult); method @NonNull public android.net.wifi.rtt.RangingRequest.Builder addNon80211mcCapableAccessPoints(@NonNull java.util.List); method @NonNull public android.net.wifi.rtt.RangingRequest.Builder addResponder(@NonNull android.net.wifi.rtt.ResponderConfig); method @NonNull public android.net.wifi.rtt.RangingRequest.Builder addResponders(@NonNull java.util.List); method public android.net.wifi.rtt.RangingRequest.Builder addWifiAwarePeer(@NonNull android.net.MacAddress); method public android.net.wifi.rtt.RangingRequest.Builder addWifiAwarePeer(@NonNull android.net.wifi.aware.PeerHandle); method public android.net.wifi.rtt.RangingRequest build(); method @NonNull public android.net.wifi.rtt.RangingRequest.Builder setRttBurstSize(int); } public final class RangingResult implements android.os.Parcelable { method public int describeContents(); method public int getDistanceMm(); method public int getDistanceStdDevMm(); method @Nullable public android.net.MacAddress getMacAddress(); method public int getMeasurementBandwidth(); method public int getMeasurementChannelFrequencyMHz(); method public int getNumAttemptedMeasurements(); method public int getNumSuccessfulMeasurements(); method @Nullable public android.net.wifi.aware.PeerHandle getPeerHandle(); method public long getRangingTimestampMillis(); method public int getRssi(); method public int getStatus(); method @Nullable public android.net.wifi.rtt.ResponderLocation getUnverifiedResponderLocation(); method public boolean is80211mcMeasurement(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int STATUS_FAIL = 1; // 0x1 field public static final int STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC = 2; // 0x2 field public static final int STATUS_SUCCESS = 0; // 0x0 field public static final int UNSPECIFIED = -1; // 0xffffffff } public abstract class RangingResultCallback { ctor public RangingResultCallback(); method public abstract void onRangingFailure(int); method public abstract void onRangingResults(@NonNull java.util.List); field public static final int STATUS_CODE_FAIL = 1; // 0x1 field public static final int STATUS_CODE_FAIL_RTT_NOT_AVAILABLE = 2; // 0x2 } public final class ResponderConfig implements android.os.Parcelable { method public int describeContents(); method @NonNull public static android.net.wifi.rtt.ResponderConfig fromScanResult(@NonNull android.net.wifi.ScanResult); method @IntRange(from=0) public int getCenterFreq0Mhz(); method @IntRange(from=0) public int getCenterFreq1Mhz(); method public int getChannelWidth(); method @IntRange(from=0) public int getFrequencyMhz(); method @Nullable public android.net.MacAddress getMacAddress(); method public int getPreamble(); method public int getResponderType(); method public boolean is80211mcSupported(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int RESPONDER_AP = 0; // 0x0 field public static final int RESPONDER_STA = 1; // 0x1 } public static final class ResponderConfig.Builder { ctor public ResponderConfig.Builder(); method @NonNull public android.net.wifi.rtt.ResponderConfig build(); method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder set80211mcSupported(boolean); method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder setCenterFreq0Mhz(@IntRange(from=0) int); method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder setCenterFreq1Mhz(@IntRange(from=0) int); method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder setChannelWidth(int); method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder setFrequencyMhz(@IntRange(from=0) int); method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder setMacAddress(@NonNull android.net.MacAddress); method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder setPreamble(int); method @NonNull public android.net.wifi.rtt.ResponderConfig.Builder setResponderType(int); } public final class ResponderLocation implements android.os.Parcelable { method public int describeContents(); method public double getAltitude(); method public int getAltitudeType(); method public double getAltitudeUncertainty(); method public java.util.List getColocatedBssids(); method public int getDatum(); method public int getExpectedToMove(); method public double getFloorNumber(); method public double getHeightAboveFloorMeters(); method public double getHeightAboveFloorUncertaintyMeters(); method public double getLatitude(); method public double getLatitudeUncertainty(); method public int getLciVersion(); method public double getLongitude(); method public double getLongitudeUncertainty(); method @Nullable public String getMapImageMimeType(); method @Nullable public android.net.Uri getMapImageUri(); method public boolean getRegisteredLocationAgreementIndication(); method public boolean isLciSubelementValid(); method public boolean isZaxisSubelementValid(); method @Nullable public android.location.Address toCivicLocationAddress(); method @Nullable public android.util.SparseArray toCivicLocationSparseArray(); method @NonNull public android.location.Location toLocation(); method public void writeToParcel(android.os.Parcel, int); field public static final int ALTITUDE_FLOORS = 2; // 0x2 field public static final int ALTITUDE_METERS = 1; // 0x1 field public static final int ALTITUDE_UNDEFINED = 0; // 0x0 field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int DATUM_NAD83_MLLW = 3; // 0x3 field public static final int DATUM_NAD83_NAV88 = 2; // 0x2 field public static final int DATUM_UNDEFINED = 0; // 0x0 field public static final int DATUM_WGS84 = 1; // 0x1 field public static final int LCI_VERSION_1 = 1; // 0x1 field public static final int LOCATION_FIXED = 0; // 0x0 field public static final int LOCATION_MOVEMENT_UNKNOWN = 2; // 0x2 field public static final int LOCATION_RESERVED = 3; // 0x3 field public static final int LOCATION_VARIABLE = 1; // 0x1 } public class WifiRttManager { method @NonNull @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public android.os.Bundle getRttCharacteristics(); method public boolean isAvailable(); 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); field public static final String ACTION_WIFI_RTT_STATE_CHANGED = "android.net.wifi.rtt.action.WIFI_RTT_STATE_CHANGED"; field public static final String CHARACTERISTICS_KEY_BOOLEAN_LCI = "key_lci"; field public static final String CHARACTERISTICS_KEY_BOOLEAN_LCR = "key_lcr"; field public static final String CHARACTERISTICS_KEY_BOOLEAN_ONE_SIDED_RTT = "key_one_sided_rtt"; field public static final String CHARACTERISTICS_KEY_BOOLEAN_STA_RESPONDER = "key_sta_responder"; } }