// Signature format: 2.0 package android.net.wifi { public final class CoexUnsafeChannel implements android.os.Parcelable { ctor public CoexUnsafeChannel(int, int); ctor public CoexUnsafeChannel(int, int, int); method public int describeContents(); method public int getBand(); method public int getChannel(); method public int getPowerCapDbm(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int POWER_CAP_NONE = 2147483647; // 0x7fffffff } public abstract class EasyConnectStatusCallback { ctor public EasyConnectStatusCallback(); method public void onBootstrapUriGenerated(@NonNull android.net.Uri); method public abstract void onConfiguratorSuccess(int); method public abstract void onEnrolleeSuccess(int); method public void onFailure(int); method public void onFailure(int, @Nullable String, @NonNull android.util.SparseArray, @NonNull int[]); method public abstract void onProgress(int); field public static final int EASY_CONNECT_EVENT_PROGRESS_AUTHENTICATION_SUCCESS = 0; // 0x0 field public static final int EASY_CONNECT_EVENT_PROGRESS_CONFIGURATION_ACCEPTED = 3; // 0x3 field public static final int EASY_CONNECT_EVENT_PROGRESS_CONFIGURATION_SENT_WAITING_RESPONSE = 2; // 0x2 field public static final int EASY_CONNECT_EVENT_PROGRESS_RESPONSE_PENDING = 1; // 0x1 field public static final int EASY_CONNECT_EVENT_SUCCESS_CONFIGURATION_APPLIED = 1; // 0x1 field public static final int EASY_CONNECT_EVENT_SUCCESS_CONFIGURATION_SENT = 0; // 0x0 } public final class MscsParams implements android.os.Parcelable { method public int describeContents(); method public int getFrameClassifierFields(); method @IntRange(from=0, to=0x3938700) public int getStreamTimeoutUs(); method public int getUserPriorityBitmap(); method @IntRange(from=0, to=7) public int getUserPriorityLimit(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int FRAME_CLASSIFIER_DSCP = 32; // 0x20 field public static final int FRAME_CLASSIFIER_DST_IP_ADDR = 4; // 0x4 field public static final int FRAME_CLASSIFIER_DST_PORT = 16; // 0x10 field public static final int FRAME_CLASSIFIER_FLOW_LABEL = 128; // 0x80 field public static final int FRAME_CLASSIFIER_IP_VERSION = 1; // 0x1 field public static final int FRAME_CLASSIFIER_PROTOCOL_NEXT_HDR = 64; // 0x40 field public static final int FRAME_CLASSIFIER_SRC_IP_ADDR = 2; // 0x2 field public static final int FRAME_CLASSIFIER_SRC_PORT = 8; // 0x8 } public static final class MscsParams.Builder { ctor public MscsParams.Builder(); method @NonNull public android.net.wifi.MscsParams build(); method @NonNull public android.net.wifi.MscsParams.Builder setFrameClassifierFields(int); method @NonNull public android.net.wifi.MscsParams.Builder setStreamTimeoutUs(@IntRange(from=0, to=0x3938700) int); method @NonNull public android.net.wifi.MscsParams.Builder setUserPriorityBitmap(int); method @NonNull public android.net.wifi.MscsParams.Builder setUserPriorityLimit(@IntRange(from=0, to=7) int); } public final class OuiKeyedData implements android.os.Parcelable { method public int describeContents(); method @NonNull public android.os.PersistableBundle getData(); method public int getOui(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class OuiKeyedData.Builder { ctor public OuiKeyedData.Builder(int, @NonNull android.os.PersistableBundle); method @NonNull public android.net.wifi.OuiKeyedData build(); } public final class QosCharacteristics implements android.os.Parcelable { method public int describeContents(); method @IntRange(from=1, to=java.lang.Integer.MAX_VALUE) public int getBurstSizeOctets(); method @IntRange(from=0, to=15) public int getCountExponent(); method @IntRange(from=1, to=java.lang.Integer.MAX_VALUE) public int getDelayBoundMicros(); method public int getDeliveryRatio(); method @IntRange(from=1, to=java.lang.Short.MAX_VALUE) public int getMaxMsduSizeOctets(); method @IntRange(from=1, to=java.lang.Integer.MAX_VALUE) public int getMaxServiceIntervalMicros(); method @IntRange(from=1, to=java.lang.Integer.MAX_VALUE) public int getMeanDataRateKbps(); method @IntRange(from=1, to=java.lang.Integer.MAX_VALUE) public int getMinDataRateKbps(); method @IntRange(from=1, to=java.lang.Integer.MAX_VALUE) public int getMinServiceIntervalMicros(); method @IntRange(from=1, to=java.lang.Short.MAX_VALUE) public int getMsduLifetimeMillis(); method public int getServiceStartTimeLinkId(); method @IntRange(from=0, to=java.lang.Integer.MAX_VALUE) public int getServiceStartTimeMicros(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int DELIVERY_RATIO_95 = 0; // 0x0 field public static final int DELIVERY_RATIO_96 = 1; // 0x1 field public static final int DELIVERY_RATIO_97 = 2; // 0x2 field public static final int DELIVERY_RATIO_98 = 3; // 0x3 field public static final int DELIVERY_RATIO_99 = 5; // 0x5 field public static final int DELIVERY_RATIO_99_9 = 6; // 0x6 field public static final int DELIVERY_RATIO_99_99 = 7; // 0x7 field public static final int DELIVERY_RATIO_99_999 = 8; // 0x8 field public static final int DELIVERY_RATIO_99_9999 = 9; // 0x9 } public static final class QosCharacteristics.Builder { ctor public QosCharacteristics.Builder(@IntRange(from=1, to=java.lang.Integer.MAX_VALUE) int, @IntRange(from=1, to=java.lang.Integer.MAX_VALUE) int, @IntRange(from=1, to=java.lang.Integer.MAX_VALUE) int, @IntRange(from=1, to=java.lang.Integer.MAX_VALUE) int); method @NonNull public android.net.wifi.QosCharacteristics build(); method @NonNull public android.net.wifi.QosCharacteristics.Builder setBurstSizeOctets(@IntRange(from=1, to=java.lang.Integer.MAX_VALUE) int); method @NonNull public android.net.wifi.QosCharacteristics.Builder setMaxMsduSizeOctets(@IntRange(from=1, to=java.lang.Short.MAX_VALUE) int); method @NonNull public android.net.wifi.QosCharacteristics.Builder setMeanDataRateKbps(@IntRange(from=1, to=java.lang.Integer.MAX_VALUE) int); method @NonNull public android.net.wifi.QosCharacteristics.Builder setMsduDeliveryInfo(int, @IntRange(from=0, to=15) int); method @NonNull public android.net.wifi.QosCharacteristics.Builder setMsduLifetimeMillis(@IntRange(from=1, to=java.lang.Short.MAX_VALUE) int); method @NonNull public android.net.wifi.QosCharacteristics.Builder setServiceStartTimeInfo(@IntRange(from=0, to=java.lang.Integer.MAX_VALUE) int, int); } public final class QosPolicyParams implements android.os.Parcelable { method public int describeContents(); method @Nullable public java.net.InetAddress getDestinationAddress(); method @IntRange(from=android.net.wifi.QosPolicyParams.DESTINATION_PORT_ANY, to=65535) public int getDestinationPort(); method @Nullable public int[] getDestinationPortRange(); method public int getDirection(); method @IntRange(from=android.net.wifi.QosPolicyParams.DSCP_ANY, to=63) public int getDscp(); method @Nullable public byte[] getFlowLabel(); method public int getIpVersion(); method @IntRange(from=1, to=255) public int getPolicyId(); method public int getProtocol(); method @Nullable public android.net.wifi.QosCharacteristics getQosCharacteristics(); method @Nullable public java.net.InetAddress getSourceAddress(); method @IntRange(from=android.net.DscpPolicy.SOURCE_PORT_ANY, to=65535) public int getSourcePort(); method public int getUserPriority(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int DESTINATION_PORT_ANY = -1; // 0xffffffff field public static final int DIRECTION_DOWNLINK = 1; // 0x1 field public static final int DIRECTION_UPLINK = 0; // 0x0 field public static final int DSCP_ANY = -1; // 0xffffffff field public static final int IP_VERSION_4 = 4; // 0x4 field public static final int IP_VERSION_6 = 6; // 0x6 field public static final int IP_VERSION_ANY = -1; // 0xffffffff field public static final int PROTOCOL_ANY = -1; // 0xffffffff field public static final int PROTOCOL_ESP = 50; // 0x32 field public static final int PROTOCOL_TCP = 6; // 0x6 field public static final int PROTOCOL_UDP = 17; // 0x11 field public static final int USER_PRIORITY_ANY = -1; // 0xffffffff field public static final int USER_PRIORITY_BACKGROUND_HIGH = 2; // 0x2 field public static final int USER_PRIORITY_BACKGROUND_LOW = 1; // 0x1 field public static final int USER_PRIORITY_BEST_EFFORT_HIGH = 3; // 0x3 field public static final int USER_PRIORITY_BEST_EFFORT_LOW = 0; // 0x0 field public static final int USER_PRIORITY_VIDEO_HIGH = 5; // 0x5 field public static final int USER_PRIORITY_VIDEO_LOW = 4; // 0x4 field public static final int USER_PRIORITY_VOICE_HIGH = 7; // 0x7 field public static final int USER_PRIORITY_VOICE_LOW = 6; // 0x6 } public static final class QosPolicyParams.Builder { ctor public QosPolicyParams.Builder(@IntRange(from=1, to=255) int, int); method @NonNull public android.net.wifi.QosPolicyParams build(); method @NonNull public android.net.wifi.QosPolicyParams.Builder setDestinationAddress(@Nullable java.net.InetAddress); method @NonNull public android.net.wifi.QosPolicyParams.Builder setDestinationPort(@IntRange(from=android.net.wifi.QosPolicyParams.DESTINATION_PORT_ANY, to=65535) int); method @NonNull public android.net.wifi.QosPolicyParams.Builder setDestinationPortRange(@IntRange(from=0, to=65535) int, @IntRange(from=0, to=65535) int); method @NonNull public android.net.wifi.QosPolicyParams.Builder setDscp(@IntRange(from=android.net.wifi.QosPolicyParams.DSCP_ANY, to=63) int); method @NonNull public android.net.wifi.QosPolicyParams.Builder setFlowLabel(@Nullable byte[]); method @NonNull public android.net.wifi.QosPolicyParams.Builder setIpVersion(int); method @NonNull public android.net.wifi.QosPolicyParams.Builder setProtocol(int); method @NonNull public android.net.wifi.QosPolicyParams.Builder setQosCharacteristics(@Nullable android.net.wifi.QosCharacteristics); method @NonNull public android.net.wifi.QosPolicyParams.Builder setSourceAddress(@Nullable java.net.InetAddress); method @NonNull public android.net.wifi.QosPolicyParams.Builder setSourcePort(@IntRange(from=android.net.DscpPolicy.SOURCE_PORT_ANY, to=65535) int); method @NonNull public android.net.wifi.QosPolicyParams.Builder setUserPriority(int); } @Deprecated public class RttManager { method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void disableResponder(android.net.wifi.RttManager.ResponderCallback); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void enableResponder(android.net.wifi.RttManager.ResponderCallback); method @Deprecated public android.net.wifi.RttManager.Capabilities getCapabilities(); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public android.net.wifi.RttManager.RttCapabilities getRttCapabilities(); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startRanging(android.net.wifi.RttManager.RttParams[], android.net.wifi.RttManager.RttListener); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void stopRanging(android.net.wifi.RttManager.RttListener); field @Deprecated public static final int BASE = 160256; // 0x27200 field @Deprecated public static final int CMD_OP_ABORTED = 160260; // 0x27204 field @Deprecated public static final int CMD_OP_DISABLE_RESPONDER = 160262; // 0x27206 field @Deprecated public static final int CMD_OP_ENABLE_RESPONDER = 160261; // 0x27205 field @Deprecated public static final int CMD_OP_ENALBE_RESPONDER_FAILED = 160264; // 0x27208 field @Deprecated public static final int CMD_OP_ENALBE_RESPONDER_SUCCEEDED = 160263; // 0x27207 field @Deprecated public static final int CMD_OP_FAILED = 160258; // 0x27202 field @Deprecated public static final int CMD_OP_START_RANGING = 160256; // 0x27200 field @Deprecated public static final int CMD_OP_STOP_RANGING = 160257; // 0x27201 field @Deprecated public static final int CMD_OP_SUCCEEDED = 160259; // 0x27203 field @Deprecated public static final String DESCRIPTION_KEY = "android.net.wifi.RttManager.Description"; field @Deprecated public static final int PREAMBLE_HT = 2; // 0x2 field @Deprecated public static final int PREAMBLE_LEGACY = 1; // 0x1 field @Deprecated public static final int PREAMBLE_VHT = 4; // 0x4 field @Deprecated public static final int REASON_INITIATOR_NOT_ALLOWED_WHEN_RESPONDER_ON = -6; // 0xfffffffa field @Deprecated public static final int REASON_INVALID_LISTENER = -3; // 0xfffffffd field @Deprecated public static final int REASON_INVALID_REQUEST = -4; // 0xfffffffc field @Deprecated public static final int REASON_NOT_AVAILABLE = -2; // 0xfffffffe field @Deprecated public static final int REASON_PERMISSION_DENIED = -5; // 0xfffffffb field @Deprecated public static final int REASON_UNSPECIFIED = -1; // 0xffffffff field @Deprecated public static final int RTT_BW_10_SUPPORT = 2; // 0x2 field @Deprecated public static final int RTT_BW_160_SUPPORT = 32; // 0x20 field @Deprecated public static final int RTT_BW_20_SUPPORT = 4; // 0x4 field @Deprecated public static final int RTT_BW_40_SUPPORT = 8; // 0x8 field @Deprecated public static final int RTT_BW_5_SUPPORT = 1; // 0x1 field @Deprecated public static final int RTT_BW_80_SUPPORT = 16; // 0x10 field @Deprecated public static final int RTT_CHANNEL_WIDTH_10 = 6; // 0x6 field @Deprecated public static final int RTT_CHANNEL_WIDTH_160 = 3; // 0x3 field @Deprecated public static final int RTT_CHANNEL_WIDTH_20 = 0; // 0x0 field @Deprecated public static final int RTT_CHANNEL_WIDTH_40 = 1; // 0x1 field @Deprecated public static final int RTT_CHANNEL_WIDTH_5 = 5; // 0x5 field @Deprecated public static final int RTT_CHANNEL_WIDTH_80 = 2; // 0x2 field @Deprecated public static final int RTT_CHANNEL_WIDTH_80P80 = 4; // 0x4 field @Deprecated public static final int RTT_CHANNEL_WIDTH_UNSPECIFIED = -1; // 0xffffffff field @Deprecated public static final int RTT_PEER_NAN = 5; // 0x5 field @Deprecated public static final int RTT_PEER_P2P_CLIENT = 4; // 0x4 field @Deprecated public static final int RTT_PEER_P2P_GO = 3; // 0x3 field @Deprecated public static final int RTT_PEER_TYPE_AP = 1; // 0x1 field @Deprecated public static final int RTT_PEER_TYPE_STA = 2; // 0x2 field @Deprecated public static final int RTT_PEER_TYPE_UNSPECIFIED = 0; // 0x0 field @Deprecated public static final int RTT_STATUS_ABORTED = 8; // 0x8 field @Deprecated public static final int RTT_STATUS_FAILURE = 1; // 0x1 field @Deprecated public static final int RTT_STATUS_FAIL_AP_ON_DIFF_CHANNEL = 6; // 0x6 field @Deprecated public static final int RTT_STATUS_FAIL_BUSY_TRY_LATER = 12; // 0xc field @Deprecated public static final int RTT_STATUS_FAIL_FTM_PARAM_OVERRIDE = 15; // 0xf field @Deprecated public static final int RTT_STATUS_FAIL_INVALID_TS = 9; // 0x9 field @Deprecated public static final int RTT_STATUS_FAIL_NOT_SCHEDULED_YET = 4; // 0x4 field @Deprecated public static final int RTT_STATUS_FAIL_NO_CAPABILITY = 7; // 0x7 field @Deprecated public static final int RTT_STATUS_FAIL_NO_RSP = 2; // 0x2 field @Deprecated public static final int RTT_STATUS_FAIL_PROTOCOL = 10; // 0xa field @Deprecated public static final int RTT_STATUS_FAIL_REJECTED = 3; // 0x3 field @Deprecated public static final int RTT_STATUS_FAIL_SCHEDULE = 11; // 0xb field @Deprecated public static final int RTT_STATUS_FAIL_TM_TIMEOUT = 5; // 0x5 field @Deprecated public static final int RTT_STATUS_INVALID_REQ = 13; // 0xd field @Deprecated public static final int RTT_STATUS_NO_WIFI = 14; // 0xe field @Deprecated public static final int RTT_STATUS_SUCCESS = 0; // 0x0 field @Deprecated public static final int RTT_TYPE_11_MC = 4; // 0x4 field @Deprecated public static final int RTT_TYPE_11_V = 2; // 0x2 field @Deprecated public static final int RTT_TYPE_ONE_SIDED = 1; // 0x1 field @Deprecated public static final int RTT_TYPE_TWO_SIDED = 2; // 0x2 field @Deprecated public static final int RTT_TYPE_UNSPECIFIED = 0; // 0x0 } @Deprecated public class RttManager.Capabilities { ctor @Deprecated public RttManager.Capabilities(); field @Deprecated public int supportedPeerType; field @Deprecated public int supportedType; } @Deprecated public static class RttManager.ParcelableRttParams implements android.os.Parcelable { method @Deprecated public int describeContents(); method @Deprecated public void writeToParcel(android.os.Parcel, int); field @Deprecated @NonNull public android.net.wifi.RttManager.RttParams[] mParams; } @Deprecated public static class RttManager.ParcelableRttResults implements android.os.Parcelable { ctor @Deprecated public RttManager.ParcelableRttResults(android.net.wifi.RttManager.RttResult[]); method @Deprecated public int describeContents(); method @Deprecated public void writeToParcel(android.os.Parcel, int); field @Deprecated public android.net.wifi.RttManager.RttResult[] mResults; } @Deprecated public abstract static class RttManager.ResponderCallback { ctor @Deprecated public RttManager.ResponderCallback(); method @Deprecated public abstract void onResponderEnableFailure(int); method @Deprecated public abstract void onResponderEnabled(android.net.wifi.RttManager.ResponderConfig); } @Deprecated public static class RttManager.ResponderConfig implements android.os.Parcelable { ctor @Deprecated public RttManager.ResponderConfig(); method @Deprecated public int describeContents(); method @Deprecated public void writeToParcel(android.os.Parcel, int); field @Deprecated @NonNull public static final android.os.Parcelable.Creator CREATOR; field @Deprecated public int centerFreq0; field @Deprecated public int centerFreq1; field @Deprecated public int channelWidth; field @Deprecated public int frequency; field @Deprecated public String macAddress; field @Deprecated public int preamble; } @Deprecated public static class RttManager.RttCapabilities implements android.os.Parcelable { ctor @Deprecated public RttManager.RttCapabilities(); method @Deprecated public int describeContents(); method @Deprecated public void writeToParcel(android.os.Parcel, int); field @Deprecated public int bwSupported; field @Deprecated public boolean lciSupported; field @Deprecated public boolean lcrSupported; field @Deprecated public int mcVersion; field @Deprecated public boolean oneSidedRttSupported; field @Deprecated public int preambleSupported; field @Deprecated public boolean responderSupported; field @Deprecated public boolean secureRttSupported; field @Deprecated public boolean supportedPeerType; field @Deprecated public boolean supportedType; field @Deprecated public boolean twoSided11McRttSupported; } @Deprecated public static interface RttManager.RttListener { method @Deprecated public void onAborted(); method @Deprecated public void onFailure(int, String); method @Deprecated public void onSuccess(android.net.wifi.RttManager.RttResult[]); } @Deprecated public static class RttManager.RttParams { ctor @Deprecated public RttManager.RttParams(); field @Deprecated public boolean LCIRequest; field @Deprecated public boolean LCRRequest; field @Deprecated public int bandwidth; field @Deprecated public String bssid; field @Deprecated public int burstTimeout; field @Deprecated public int centerFreq0; field @Deprecated public int centerFreq1; field @Deprecated public int channelWidth; field @Deprecated public int deviceType; field @Deprecated public int frequency; field @Deprecated public int interval; field @Deprecated public int numRetriesPerFTMR; field @Deprecated public int numRetriesPerMeasurementFrame; field @Deprecated public int numSamplesPerBurst; field @Deprecated public int num_retries; field @Deprecated public int num_samples; field @Deprecated public int numberBurst; field @Deprecated public int preamble; field @Deprecated public int requestType; field @Deprecated public boolean secure; } @Deprecated public static class RttManager.RttResult { ctor @Deprecated public RttManager.RttResult(); field @Deprecated public android.net.wifi.RttManager.WifiInformationElement LCI; field @Deprecated public android.net.wifi.RttManager.WifiInformationElement LCR; field @Deprecated public String bssid; field @Deprecated public int burstDuration; field @Deprecated public int burstNumber; field @Deprecated public int distance; field @Deprecated public int distanceSpread; field @Deprecated public int distanceStandardDeviation; field @Deprecated public int distance_cm; field @Deprecated public int distance_sd_cm; field @Deprecated public int distance_spread_cm; field @Deprecated public int frameNumberPerBurstPeer; field @Deprecated public int measurementFrameNumber; field @Deprecated public int measurementType; field @Deprecated public int negotiatedBurstNum; field @Deprecated public int requestType; field @Deprecated public int retryAfterDuration; field @Deprecated public int rssi; field @Deprecated public int rssiSpread; field @Deprecated public int rssi_spread; field @Deprecated public long rtt; field @Deprecated public long rttSpread; field @Deprecated public long rttStandardDeviation; field @Deprecated public long rtt_ns; field @Deprecated public long rtt_sd_ns; field @Deprecated public long rtt_spread_ns; field @Deprecated public int rxRate; field @Deprecated public boolean secure; field @Deprecated public int status; field @Deprecated public int successMeasurementFrameNumber; field @Deprecated public long ts; field @Deprecated public int txRate; field @Deprecated public int tx_rate; } @Deprecated public static class RttManager.WifiInformationElement { ctor @Deprecated public RttManager.WifiInformationElement(); field @Deprecated public byte[] data; field @Deprecated public byte id; } public final class ScanResult implements android.os.Parcelable { method public int getBand(); method public void setWifiSsid(@NonNull android.net.wifi.WifiSsid); field public static final int CIPHER_BIP_CMAC_256 = 9; // 0x9 field public static final int CIPHER_BIP_GMAC_128 = 7; // 0x7 field public static final int CIPHER_BIP_GMAC_256 = 8; // 0x8 field public static final int CIPHER_CCMP = 3; // 0x3 field public static final int CIPHER_GCMP_128 = 6; // 0x6 field public static final int CIPHER_GCMP_256 = 4; // 0x4 field public static final int CIPHER_NONE = 0; // 0x0 field public static final int CIPHER_NO_GROUP_ADDRESSED = 1; // 0x1 field public static final int CIPHER_SMS4 = 5; // 0x5 field public static final int CIPHER_TKIP = 2; // 0x2 field public static final int KEY_MGMT_EAP = 2; // 0x2 field public static final int KEY_MGMT_EAP_SHA256 = 6; // 0x6 field public static final int KEY_MGMT_EAP_SUITE_B_192 = 10; // 0xa field public static final int KEY_MGMT_FT_EAP = 4; // 0x4 field public static final int KEY_MGMT_FT_PSK = 3; // 0x3 field public static final int KEY_MGMT_FT_SAE = 11; // 0xb field public static final int KEY_MGMT_NONE = 0; // 0x0 field public static final int KEY_MGMT_OSEN = 7; // 0x7 field public static final int KEY_MGMT_OWE = 9; // 0x9 field public static final int KEY_MGMT_OWE_TRANSITION = 12; // 0xc field public static final int KEY_MGMT_PSK = 1; // 0x1 field public static final int KEY_MGMT_PSK_SHA256 = 5; // 0x5 field public static final int KEY_MGMT_SAE = 8; // 0x8 field public static final int KEY_MGMT_WAPI_CERT = 14; // 0xe field public static final int KEY_MGMT_WAPI_PSK = 13; // 0xd field public static final int PROTOCOL_NONE = 0; // 0x0 field public static final int PROTOCOL_OSEN = 3; // 0x3 field public static final int PROTOCOL_RSN = 2; // 0x2 field public static final int PROTOCOL_WAPI = 4; // 0x4 field public static final int PROTOCOL_WPA = 1; // 0x1 } public final class SoftApCapability implements android.os.Parcelable { method public boolean areFeaturesSupported(long); method public int describeContents(); method public int getMaxSupportedClients(); method @NonNull public int[] getSupportedChannelList(int); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final long SOFTAP_FEATURE_ACS_OFFLOAD = 1L; // 0x1L field public static final long SOFTAP_FEATURE_BAND_24G_SUPPORTED = 32L; // 0x20L field public static final long SOFTAP_FEATURE_BAND_5G_SUPPORTED = 64L; // 0x40L field public static final long SOFTAP_FEATURE_BAND_60G_SUPPORTED = 256L; // 0x100L field public static final long SOFTAP_FEATURE_BAND_6G_SUPPORTED = 128L; // 0x80L field public static final long SOFTAP_FEATURE_CLIENT_FORCE_DISCONNECT = 2L; // 0x2L field public static final long SOFTAP_FEATURE_IEEE80211_AX = 16L; // 0x10L field public static final long SOFTAP_FEATURE_IEEE80211_BE = 512L; // 0x200L field public static final long SOFTAP_FEATURE_MAC_ADDRESS_CUSTOMIZATION = 8L; // 0x8L field public static final long SOFTAP_FEATURE_WPA3_OWE = 2048L; // 0x800L field public static final long SOFTAP_FEATURE_WPA3_OWE_TRANSITION = 1024L; // 0x400L field public static final long SOFTAP_FEATURE_WPA3_SAE = 4L; // 0x4L } public final class SoftApConfiguration implements android.os.Parcelable { method @NonNull public int[] getAllowedAcsChannels(int); method @NonNull public java.util.List getAllowedClientList(); method @Deprecated public int getBand(); method @NonNull public java.util.List getBlockedClientList(); method public long getBridgedModeOpportunisticShutdownTimeoutMillis(); method @Deprecated public int getChannel(); method @NonNull public android.util.SparseIntArray getChannels(); method public int getMacRandomizationSetting(); method public int getMaxChannelBandwidth(); method public int getMaxNumberOfClients(); method @NonNull public android.net.MacAddress getPersistentRandomizedMacAddress(); method public long getShutdownTimeoutMillis(); method @NonNull public java.util.List getVendorData(); method @NonNull public java.util.List getVendorElements(); method public boolean isAutoShutdownEnabled(); method public boolean isBridgedModeOpportunisticShutdownEnabled(); method public boolean isClientControlByUserEnabled(); method public boolean isIeee80211axEnabled(); method public boolean isIeee80211beEnabled(); method public boolean isUserConfiguration(); method @Nullable public android.net.wifi.WifiConfiguration toWifiConfiguration(); field public static final int BAND_2GHZ = 1; // 0x1 field public static final int BAND_5GHZ = 2; // 0x2 field public static final int BAND_60GHZ = 8; // 0x8 field public static final int BAND_6GHZ = 4; // 0x4 field @Deprecated public static final int BAND_ANY = 7; // 0x7 field public static final long DEFAULT_TIMEOUT = -1L; // 0xffffffffffffffffL field public static final int RANDOMIZATION_NONE = 0; // 0x0 field public static final int RANDOMIZATION_NON_PERSISTENT = 2; // 0x2 field public static final int RANDOMIZATION_PERSISTENT = 1; // 0x1 } public static final class SoftApConfiguration.Builder { ctor public SoftApConfiguration.Builder(); ctor public SoftApConfiguration.Builder(@NonNull android.net.wifi.SoftApConfiguration); method @NonNull public android.net.wifi.SoftApConfiguration build(); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setAllowedAcsChannels(int, @NonNull int[]); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setAllowedClientList(@NonNull java.util.List); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setAutoShutdownEnabled(boolean); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setBand(int); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setBands(@NonNull int[]); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setBlockedClientList(@NonNull java.util.List); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setBridgedModeOpportunisticShutdownEnabled(boolean); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setBridgedModeOpportunisticShutdownTimeoutMillis(@IntRange(from=0xffffffff) long); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setBssid(@Nullable android.net.MacAddress); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setChannel(int, int); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setChannels(@NonNull android.util.SparseIntArray); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setClientControlByUserEnabled(boolean); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setHiddenSsid(boolean); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setIeee80211axEnabled(boolean); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setIeee80211beEnabled(boolean); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setMacRandomizationSetting(int); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setMaxChannelBandwidth(int); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setMaxNumberOfClients(@IntRange(from=0) int); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setPassphrase(@Nullable String, int); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setShutdownTimeoutMillis(@IntRange(from=0xffffffff) long); method @Deprecated @NonNull public android.net.wifi.SoftApConfiguration.Builder setSsid(@Nullable String); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setVendorData(@NonNull java.util.List); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setVendorElements(@NonNull java.util.List); method @NonNull public android.net.wifi.SoftApConfiguration.Builder setWifiSsid(@Nullable android.net.wifi.WifiSsid); } public final class SoftApInfo implements android.os.Parcelable { method public int describeContents(); method public long getAutoShutdownTimeoutMillis(); method public int getBandwidth(); method @Nullable public android.net.MacAddress getBssid(); method public int getFrequency(); method @NonNull public java.util.List getVendorData(); method public int getWifiStandard(); method public void setVendorData(@NonNull java.util.List); method public void writeToParcel(@NonNull android.os.Parcel, int); field public static final int CHANNEL_WIDTH_160MHZ = 6; // 0x6 field public static final int CHANNEL_WIDTH_20MHZ = 2; // 0x2 field public static final int CHANNEL_WIDTH_20MHZ_NOHT = 1; // 0x1 field public static final int CHANNEL_WIDTH_2160MHZ = 7; // 0x7 field public static final int CHANNEL_WIDTH_320MHZ = 11; // 0xb field public static final int CHANNEL_WIDTH_40MHZ = 3; // 0x3 field public static final int CHANNEL_WIDTH_4320MHZ = 8; // 0x8 field public static final int CHANNEL_WIDTH_6480MHZ = 9; // 0x9 field public static final int CHANNEL_WIDTH_80MHZ = 4; // 0x4 field public static final int CHANNEL_WIDTH_80MHZ_PLUS_MHZ = 5; // 0x5 field public static final int CHANNEL_WIDTH_8640MHZ = 10; // 0xa field public static final int CHANNEL_WIDTH_AUTO = -1; // 0xffffffff field public static final int CHANNEL_WIDTH_INVALID = 0; // 0x0 field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public final class SoftApState implements android.os.Parcelable { method public int describeContents(); method public int getFailureReason(); method @Nullable public String getIface(); method public int getState(); method @Nullable public android.net.TetheringManager.TetheringRequest getTetheringRequest(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public final class UriParserResults implements android.os.Parcelable { method public int describeContents(); method @Nullable public String getInformation(); method @Nullable public String getPublicKey(); method public int getUriScheme(); method @Nullable public android.net.wifi.WifiConfiguration getWifiConfiguration(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int URI_SCHEME_DPP = 2; // 0x2 field public static final int URI_SCHEME_ZXING_WIFI_NETWORK_CONFIG = 1; // 0x1 } public final class WifiClient implements android.os.Parcelable { method public int describeContents(); method @NonNull public android.net.MacAddress getMacAddress(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } @Deprecated public class WifiConfiguration implements android.os.Parcelable { method @Deprecated @NonNull public java.util.Set getAllNetworkKeys(); method @Deprecated public int getAuthType(); method @Deprecated @Nullable public java.util.List getBssidAllowlist(); method @Deprecated public int getDeletionPriority(); method @Deprecated @NonNull public byte[] getDppCSignKey(); method @Deprecated @NonNull public byte[] getDppConnector(); method @Deprecated @NonNull public byte[] getDppNetAccessKey(); method @Deprecated @NonNull public byte[] getDppPrivateEcKey(); method @Deprecated @NonNull public android.net.IpConfiguration getIpConfiguration(); method @Deprecated @NonNull public android.net.wifi.WifiConfiguration.NetworkSelectionStatus getNetworkSelectionStatus(); method @Deprecated @NonNull public String getPrintableSsid(); method @Deprecated @NonNull public String getProfileKey(); method @Deprecated public int getRecentFailureReason(); method @Deprecated @NonNull public java.util.List getVendorData(); method @Deprecated public boolean hasNoInternetAccess(); method @Deprecated public boolean isEphemeral(); method @Deprecated public static boolean isMetered(@Nullable android.net.wifi.WifiConfiguration, @Nullable android.net.wifi.WifiInfo); method @Deprecated public boolean isNoInternetAccessExpected(); method @Deprecated public boolean isRepeaterEnabled(); method @Deprecated public boolean isSendDhcpHostnameEnabled(); method @Deprecated public boolean isWifi7Enabled(); method @Deprecated public void setBssidAllowlist(@Nullable java.util.List); method @Deprecated public void setDeletionPriority(int) throws java.lang.IllegalArgumentException; method @Deprecated public void setNetworkSelectionStatus(@NonNull android.net.wifi.WifiConfiguration.NetworkSelectionStatus); method @Deprecated @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void setRepeaterEnabled(boolean); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void setSendDhcpHostnameEnabled(boolean); method @Deprecated public void setVendorData(@NonNull java.util.List); method @Deprecated public void setWifi7Enabled(boolean); field @Deprecated @NonNull public static final android.os.Parcelable.Creator CREATOR; field @Deprecated public static final int INVALID_NETWORK_ID = -1; // 0xffffffff field @Deprecated public static final int METERED_OVERRIDE_METERED = 1; // 0x1 field @Deprecated public static final int METERED_OVERRIDE_NONE = 0; // 0x0 field @Deprecated public static final int METERED_OVERRIDE_NOT_METERED = 2; // 0x2 field @Deprecated public static final int RECENT_FAILURE_AP_UNABLE_TO_HANDLE_NEW_STA = 17; // 0x11 field @Deprecated public static final int RECENT_FAILURE_DISCONNECTION_AP_BUSY = 1004; // 0x3ec field @Deprecated public static final int RECENT_FAILURE_MBO_ASSOC_DISALLOWED_AIR_INTERFACE_OVERLOADED = 1007; // 0x3ef field @Deprecated public static final int RECENT_FAILURE_MBO_ASSOC_DISALLOWED_AUTH_SERVER_OVERLOADED = 1008; // 0x3f0 field @Deprecated public static final int RECENT_FAILURE_MBO_ASSOC_DISALLOWED_INSUFFICIENT_RSSI = 1009; // 0x3f1 field @Deprecated public static final int RECENT_FAILURE_MBO_ASSOC_DISALLOWED_MAX_NUM_STA_ASSOCIATED = 1006; // 0x3ee field @Deprecated public static final int RECENT_FAILURE_MBO_ASSOC_DISALLOWED_UNSPECIFIED = 1005; // 0x3ed field @Deprecated public static final int RECENT_FAILURE_NETWORK_NOT_FOUND = 1011; // 0x3f3 field @Deprecated public static final int RECENT_FAILURE_NONE = 0; // 0x0 field @Deprecated public static final int RECENT_FAILURE_OCE_RSSI_BASED_ASSOCIATION_REJECTION = 1010; // 0x3f2 field @Deprecated public static final int RECENT_FAILURE_POOR_CHANNEL_CONDITIONS = 1003; // 0x3eb field @Deprecated public static final int RECENT_FAILURE_REFUSED_TEMPORARILY = 1002; // 0x3ea field @Deprecated public boolean allowAutojoin; field @Deprecated public int carrierId; field @Deprecated public boolean carrierMerged; field @Deprecated public String creatorName; field @Deprecated public int creatorUid; field @Deprecated public boolean fromWifiNetworkSpecifier; field @Deprecated public boolean fromWifiNetworkSuggestion; field @Deprecated public int lastConnectUid; field @Deprecated public long lastConnected; field @Deprecated public String lastUpdateName; field @Deprecated public int lastUpdateUid; field @Deprecated public int macRandomizationSetting; field @Deprecated public boolean meteredHint; field @Deprecated public int meteredOverride; field @Deprecated public int numAssociation; field @Deprecated public int numRebootsSinceLastUse; field @Deprecated public int numScorerOverride; field @Deprecated public int numScorerOverrideAndSwitchedNetwork; field @Deprecated public boolean requirePmf; field @Deprecated public boolean shared; field @Deprecated public int subscriptionId; field @Deprecated public boolean useExternalScores; } @Deprecated public static class WifiConfiguration.NetworkSelectionStatus { method @Deprecated public int getDisableReasonCounter(int); method @Deprecated public long getDisableTime(); method @Deprecated public static int getMaxNetworkSelectionDisableReason(); method @Deprecated public int getNetworkSelectionDisableReason(); method @Deprecated @Nullable public static String getNetworkSelectionDisableReasonString(int); method @Deprecated public int getNetworkSelectionStatus(); method @Deprecated @NonNull public String getNetworkStatusString(); method @Deprecated public boolean hasEverConnected(); field @Deprecated public static final int DISABLED_ASSOCIATION_REJECTION = 1; // 0x1 field @Deprecated public static final int DISABLED_AUTHENTICATION_FAILURE = 2; // 0x2 field @Deprecated public static final int DISABLED_AUTHENTICATION_NO_CREDENTIALS = 5; // 0x5 field @Deprecated public static final int DISABLED_AUTHENTICATION_NO_SUBSCRIPTION = 9; // 0x9 field @Deprecated public static final int DISABLED_AUTHENTICATION_PRIVATE_EAP_ERROR = 10; // 0xa field @Deprecated public static final int DISABLED_BY_WIFI_MANAGER = 7; // 0x7 field @Deprecated public static final int DISABLED_BY_WRONG_PASSWORD = 8; // 0x8 field @Deprecated public static final int DISABLED_CONSECUTIVE_FAILURES = 12; // 0xc field @Deprecated public static final int DISABLED_DHCP_FAILURE = 3; // 0x3 field @Deprecated public static final int DISABLED_NETWORK_NOT_FOUND = 11; // 0xb field @Deprecated public static final int DISABLED_NONE = 0; // 0x0 field @Deprecated public static final int DISABLED_NO_INTERNET_PERMANENT = 6; // 0x6 field @Deprecated public static final int DISABLED_NO_INTERNET_TEMPORARY = 4; // 0x4 field @Deprecated public static final int DISABLED_TRANSITION_DISABLE_INDICATION = 13; // 0xd field @Deprecated public static final int DISABLED_UNWANTED_LOW_RSSI = 14; // 0xe field @Deprecated public static final int NETWORK_SELECTION_ENABLED = 0; // 0x0 field @Deprecated public static final int NETWORK_SELECTION_PERMANENTLY_DISABLED = 2; // 0x2 field @Deprecated public static final int NETWORK_SELECTION_TEMPORARY_DISABLED = 1; // 0x1 } @Deprecated public static final class WifiConfiguration.NetworkSelectionStatus.Builder { ctor @Deprecated public WifiConfiguration.NetworkSelectionStatus.Builder(); method @Deprecated @NonNull public android.net.wifi.WifiConfiguration.NetworkSelectionStatus build(); method @Deprecated @NonNull public android.net.wifi.WifiConfiguration.NetworkSelectionStatus.Builder setNetworkSelectionDisableReason(int); method @Deprecated @NonNull public android.net.wifi.WifiConfiguration.NetworkSelectionStatus.Builder setNetworkSelectionStatus(int); } public final class WifiConnectedSessionInfo implements android.os.Parcelable { method public int describeContents(); method public int getSessionId(); method public boolean isUserSelected(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class WifiConnectedSessionInfo.Builder { ctor public WifiConnectedSessionInfo.Builder(int); method @NonNull public android.net.wifi.WifiConnectedSessionInfo build(); method @NonNull public android.net.wifi.WifiConnectedSessionInfo.Builder setUserSelected(boolean); } public class WifiEnterpriseConfig implements android.os.Parcelable { method @Nullable public String[] getCaCertificateAliases(); method @NonNull public String getCaPath(); method @NonNull public String getClientCertificateAlias(); method public int getOcsp(); method @NonNull public String getWapiCertSuite(); method public void setCaCertificateAliases(@Nullable String[]); method public void setCaPath(@NonNull String); method public void setClientCertificateAlias(@NonNull String); method public void setOcsp(int); method public void setWapiCertSuite(@NonNull String); field public static final int OCSP_NONE = 0; // 0x0 field public static final int OCSP_REQUEST_CERT_STATUS = 1; // 0x1 field public static final int OCSP_REQUIRE_ALL_NON_TRUSTED_CERTS_STATUS = 3; // 0x3 field public static final int OCSP_REQUIRE_CERT_STATUS = 2; // 0x2 } public class WifiFrameworkInitializer { method public static void registerServiceWrappers(); } public class WifiInfo implements android.os.Parcelable android.net.TransportInfo { method public double getLostTxPacketsPerSecond(); method @Nullable public String getNetworkKey(); method @Nullable public String getRequestingPackageName(); method public double getRetriedTxPacketsPerSecond(); method public int getScore(); method public double getSuccessfulRxPacketsPerSecond(); method public double getSuccessfulTxPacketsPerSecond(); method @NonNull public java.util.List getVendorData(); method public boolean isApTidToLinkMappingNegotiationSupported(); method public boolean isCarrierMerged(); method public boolean isEphemeral(); method public boolean isOemPaid(); method public boolean isOemPrivate(); method public boolean isOsuAp(); method public boolean isPasspointAp(); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public boolean isPrimary(); method public boolean isTrusted(); method @Nullable public static String sanitizeSsid(@Nullable String); method public void setVendorData(@NonNull java.util.List); field public static final String DEFAULT_MAC_ADDRESS = "02:00:00:00:00:00"; field public static final int INVALID_RSSI = -127; // 0xffffff81 } public class WifiManager { method @RequiresPermission(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE) public void addOnWifiUsabilityStatsListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.OnWifiUsabilityStatsListener); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION}) public void addQosPolicies(@NonNull java.util.List, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION}) public void addWifiLowLatencyLockListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.WifiLowLatencyLockListener); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void addWifiNetworkStateChangedListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.WifiNetworkStateChangedListener); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void addWifiVerboseLoggingStatusChangedListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.WifiVerboseLoggingStatusChangedListener); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void allowAutojoin(int, boolean); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void allowAutojoinPasspoint(@NonNull String, boolean); method public void clearExternalPnoScanRequest(); method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_COUNTRY_CODE) public void clearOverrideCountryCode(); method @RequiresPermission(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE) public void clearWifiConnectedNetworkScorer(); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK}) public void connect(@NonNull android.net.wifi.WifiConfiguration, @Nullable android.net.wifi.WifiManager.ActionListener); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK}) public void connect(int, @Nullable android.net.wifi.WifiManager.ActionListener); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK}) public void disable(int, @Nullable android.net.wifi.WifiManager.ActionListener); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK}) public void disableEphemeralNetwork(@NonNull String); method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION}) public void disableMscs(); method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION}) public void enableMscs(@NonNull android.net.wifi.MscsParams); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void factoryReset(); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK}) public void forget(int, @Nullable android.net.wifi.WifiManager.ActionListener); method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public java.util.List>>> getAllMatchingWifiConfigs(@NonNull java.util.List); method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.ACCESS_COARSE_LOCATION}) public String getCountryCode(); method @Nullable @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public android.net.Network getCurrentNetwork(); method public static int getEasyConnectMaxAllowedResponderDeviceInfoLength(); method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public String[] getFactoryMacAddresses(); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void getLastCallerInfoForApi(int, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.BiConsumer); method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void getLinkLayerStatsPollingInterval(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public java.util.Map> getMatchingOsuProviders(@Nullable java.util.List); method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public java.util.Map getMatchingPasspointConfigsForOsuProviders(@NonNull java.util.Set); method @NonNull @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_WIFI_STATE}) public java.util.Map> getMatchingScanResults(@NonNull java.util.List, @Nullable java.util.List); method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void getMaxMloAssociationLinkCount(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void getMaxMloStrLinkCount(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method public static int getMaxNumberOfPoliciesPerQosRequest(); method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void getMloMode(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION}) public void getNetworkSelectionConfig(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public java.util.Set getOemPrivilegedWifiAdminPackages(); method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.READ_WIFI_CREDENTIAL}, conditional=true) public java.util.List getPrivilegedConfiguredNetworks(); method @Nullable @RequiresPermission(allOf={android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.READ_WIFI_CREDENTIAL}, conditional=true) public android.net.wifi.WifiConfiguration getPrivilegedConnectedNetwork(); method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public android.net.wifi.SoftApConfiguration getSoftApConfiguration(); method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION}, conditional=true) public java.util.Set getSsidsAllowlist(); method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void getSupportedSimultaneousBandCombinations(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer>); method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void getTwtCapabilities(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method public int getVerboseLoggingLevel(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void getWifiActivityEnergyInfoAsync(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.OnWifiActivityEnergyInfoListener); method @Deprecated @Nullable @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public android.net.wifi.WifiConfiguration getWifiApConfiguration(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public int getWifiApState(); method @NonNull @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public java.util.List getWifiConfigForMatchedNetworkSuggestionsSharedWithUser(@NonNull java.util.List); method public boolean isApMacRandomizationSupported(); method public boolean isConnectedMacRandomizationSupported(); method @Deprecated public boolean isDeviceToDeviceRttSupported(); method public boolean isLowLatencyModeSupported(); method public boolean isPortableHotspotSupported(); method public boolean isStaConcurrencyForRestrictedConnectionsSupported(); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public boolean isThirdPartyAppEnablingWifiConfirmationDialogEnabled(); method public boolean isVerboseLoggingEnabled(); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public boolean isWifiApEnabled(); method public boolean isWifiScannerSupported(); method @RequiresPermission(android.Manifest.permission.MANAGE_DEVICE_ADMINS) public void notifyMinimumRequiredWifiSecurityLevelChanged(int); method @RequiresPermission(android.Manifest.permission.MANAGE_DEVICE_ADMINS) public void notifyWifiSsidPolicyChanged(@NonNull android.app.admin.WifiSsidPolicy); method public void queryD2dAllowedWhenInfraStaDisabled(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @Nullable @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void queryLastConfiguredTetheredApPassphraseSinceBoot(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void queryWepAllowed(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @RequiresPermission(android.Manifest.permission.ACCESS_COARSE_LOCATION) public void registerActiveCountryCodeChangedCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.ActiveCountryCodeChangedCallback); method @RequiresPermission(android.Manifest.permission.WIFI_ACCESS_COEX_UNSAFE_CHANNELS) public void registerCoexCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.CoexCallback); method @RequiresPermission(android.Manifest.permission.NEARBY_WIFI_DEVICES) public void registerLocalOnlyHotspotSoftApCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.SoftApCallback); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void registerNetworkRequestMatchCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.NetworkRequestMatchCallback); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public void registerSoftApCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.SoftApCallback); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void registerTrafficStateCallback(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.TrafficStateCallback); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION}) public void removeAllQosPolicies(); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void removeAppState(int, @NonNull String); method @RequiresPermission(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE) public void removeOnWifiUsabilityStatsListener(@NonNull android.net.wifi.WifiManager.OnWifiUsabilityStatsListener); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION}) public void removeQosPolicies(@NonNull int[]); method public void removeWifiLowLatencyLockListener(@NonNull android.net.wifi.WifiManager.WifiLowLatencyLockListener); method public void removeWifiNetworkStateChangedListener(@NonNull android.net.wifi.WifiManager.WifiNetworkStateChangedListener); method @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public void removeWifiVerboseLoggingStatusChangedListener(@NonNull android.net.wifi.WifiManager.WifiVerboseLoggingStatusChangedListener); method @RequiresPermission(android.Manifest.permission.RESTART_WIFI_SUBSYSTEM) public void restartWifiSubsystem(); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void restoreBackupData(@NonNull byte[]); method @Nullable @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public android.net.wifi.SoftApConfiguration restoreSoftApBackupData(@NonNull byte[]); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void restoreSupplicantBackupData(@NonNull byte[], @NonNull byte[]); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void restoreWifiBackupData(@NonNull byte[]); method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public byte[] retrieveBackupData(); method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public byte[] retrieveSoftApBackupData(); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void retrieveWifiBackupData(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NETWORK_STACK}) public void save(@NonNull android.net.wifi.WifiConfiguration, @Nullable android.net.wifi.WifiManager.ActionListener); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void setAutoWakeupEnabled(boolean); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void setCarrierNetworkOffloadEnabled(int, boolean, boolean); method @RequiresPermission(android.Manifest.permission.WIFI_UPDATE_COEX_UNSAFE_CHANNELS) public void setCoexUnsafeChannels(@NonNull java.util.List, int); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void setD2dAllowedWhenInfraStaDisabled(boolean); method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_COUNTRY_CODE) public void setDefaultCountryCode(@NonNull String); method @RequiresPermission(android.Manifest.permission.WIFI_SET_DEVICE_MOBILITY_STATE) public void setDeviceMobilityState(int); method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.REQUEST_COMPANION_PROFILE_AUTOMOTIVE_PROJECTION}) public void setExternalPnoScanRequest(@NonNull java.util.List, @Nullable int[], @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.PnoScanResultsCallback); method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void setLinkLayerStatsPollingInterval(@IntRange(from=0) int); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void setMacRandomizationSettingPasspointEnabled(@NonNull String, boolean); method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void setMloMode(int, @NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION}) public void setNetworkSelectionConfig(@NonNull android.net.wifi.WifiNetworkSelectionConfig); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION}) public void setOneShotScreenOnConnectivityScanDelayMillis(@IntRange(from=0) int); method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_COUNTRY_CODE) public void setOverrideCountryCode(@NonNull String); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void setPasspointMeteredOverride(@NonNull String, int); method @RequiresPermission(anyOf={android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION, android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void setPnoScanState(int); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void setScanAlwaysAvailable(boolean); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void setScanThrottleEnabled(boolean); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION}) public void setScreenOnScanSchedule(@Nullable java.util.List); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public boolean setSoftApConfiguration(@NonNull android.net.wifi.SoftApConfiguration); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION}, conditional=true) public void setSsidsAllowlist(@NonNull java.util.Set); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public boolean setStaConcurrencyForMultiInternetMode(int); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void setThirdPartyAppEnablingWifiConfirmationDialogEnabled(boolean); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.DUMP}) public void setVerboseLoggingEnabled(boolean); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.DUMP}) public void setVerboseLoggingLevel(int); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void setWepAllowed(boolean); method @Deprecated @RequiresPermission(android.Manifest.permission.CHANGE_WIFI_STATE) public boolean setWifiApConfiguration(android.net.wifi.WifiConfiguration); method @RequiresPermission(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE) public boolean setWifiConnectedNetworkScorer(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.WifiConnectedNetworkScorer); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void setWifiPasspointEnabled(boolean); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public boolean setWifiScoringEnabled(boolean); method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void setupTwtSession(@NonNull android.net.wifi.twt.TwtRequest, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.twt.TwtSessionCallback); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startEasyConnectAsConfiguratorInitiator(@NonNull String, int, int, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.EasyConnectStatusCallback); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startEasyConnectAsEnrolleeInitiator(@NonNull String, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.EasyConnectStatusCallback); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startEasyConnectAsEnrolleeResponder(@Nullable String, int, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.EasyConnectStatusCallback); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD, android.Manifest.permission.NEARBY_WIFI_DEVICES}) public void startLocalOnlyHotspot(@NonNull android.net.wifi.SoftApConfiguration, @Nullable java.util.concurrent.Executor, @Nullable android.net.wifi.WifiManager.LocalOnlyHotspotCallback); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startRestrictingAutoJoinToSubscriptionId(int); method @RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS) public boolean startScan(android.os.WorkSource); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void startSubscriptionProvisioning(@NonNull android.net.wifi.hotspot2.OsuProvider, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.hotspot2.ProvisioningCallback); method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public boolean startTetheredHotspot(@Nullable android.net.wifi.SoftApConfiguration); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void startTetheredHotspot(@NonNull android.net.TetheringManager.TetheringRequest, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiManager.SoftApCallback); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void stopEasyConnectSession(); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_SETUP_WIZARD}) public void stopRestrictingAutoJoinToSubscriptionId(); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public boolean stopSoftAp(); method public void unregisterActiveCountryCodeChangedCallback(@NonNull android.net.wifi.WifiManager.ActiveCountryCodeChangedCallback); method @RequiresPermission(android.Manifest.permission.WIFI_ACCESS_COEX_UNSAFE_CHANNELS) public void unregisterCoexCallback(@NonNull android.net.wifi.WifiManager.CoexCallback); method @RequiresPermission(android.Manifest.permission.NEARBY_WIFI_DEVICES) public void unregisterLocalOnlyHotspotSoftApCallback(@NonNull android.net.wifi.WifiManager.SoftApCallback); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void unregisterNetworkRequestMatchCallback(@NonNull android.net.wifi.WifiManager.NetworkRequestMatchCallback); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public void unregisterSoftApCallback(@NonNull android.net.wifi.WifiManager.SoftApCallback); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void unregisterTrafficStateCallback(@NonNull android.net.wifi.WifiManager.TrafficStateCallback); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) public void updateInterfaceIpState(@Nullable String, int); method @RequiresPermission(android.Manifest.permission.WIFI_UPDATE_USABILITY_STATS_SCORE) public void updateWifiUsabilityScore(int, int, int); field public static final String ACTION_LINK_CONFIGURATION_CHANGED = "android.net.wifi.LINK_CONFIGURATION_CHANGED"; field @RequiresPermission(android.Manifest.permission.NETWORK_CARRIER_PROVISIONING) public static final String ACTION_NETWORK_SETTINGS_RESET = "android.net.wifi.action.NETWORK_SETTINGS_RESET"; field public static final String ACTION_PASSPOINT_LAUNCH_OSU_VIEW = "android.net.wifi.action.PASSPOINT_LAUNCH_OSU_VIEW"; field @RequiresPermission(android.Manifest.permission.NETWORK_CARRIER_PROVISIONING) public static final String ACTION_REFRESH_USER_PROVISIONING = "android.net.wifi.action.REFRESH_USER_PROVISIONING"; field public static final String ACTION_REQUEST_DISABLE = "android.net.wifi.action.REQUEST_DISABLE"; field public static final String ACTION_REQUEST_ENABLE = "android.net.wifi.action.REQUEST_ENABLE"; field public static final int API_ADD_NETWORK = 10; // 0xa field public static final int API_ALLOW_AUTOJOIN = 12; // 0xc field public static final int API_AUTOJOIN_GLOBAL = 5; // 0x5 field public static final int API_CONNECT_CONFIG = 13; // 0xd field public static final int API_CONNECT_NETWORK_ID = 14; // 0xe field public static final int API_DISABLE_NETWORK = 15; // 0xf field public static final int API_ENABLE_NETWORK = 16; // 0x10 field public static final int API_FORGET = 17; // 0x11 field public static final int API_P2P_CANCEL_CONNECT = 26; // 0x1a field public static final int API_P2P_CONNECT = 25; // 0x19 field public static final int API_P2P_CREATE_GROUP = 27; // 0x1b field public static final int API_P2P_CREATE_GROUP_P2P_CONFIG = 28; // 0x1c field public static final int API_P2P_DISCOVER_PEERS = 21; // 0x15 field public static final int API_P2P_DISCOVER_PEERS_ON_SOCIAL_CHANNELS = 22; // 0x16 field public static final int API_P2P_DISCOVER_PEERS_ON_SPECIFIC_FREQUENCY = 23; // 0x17 field public static final int API_P2P_DISCOVER_PEERS_WITH_CONFIG_PARAMS = 37; // 0x25 field public static final int API_P2P_REMOVE_GROUP = 29; // 0x1d field public static final int API_P2P_SET_CHANNELS = 32; // 0x20 field public static final int API_P2P_START_LISTENING = 30; // 0x1e field public static final int API_P2P_STOP_LISTENING = 31; // 0x1f field public static final int API_P2P_STOP_PEER_DISCOVERY = 24; // 0x18 field public static final int API_SAVE = 18; // 0x12 field public static final int API_SCANNING_ENABLED = 1; // 0x1 field public static final int API_SET_NETWORK_SELECTION_CONFIG = 8; // 0x8 field public static final int API_SET_ONE_SHOT_SCREEN_ON_CONNECTIVITY_SCAN_DELAY = 7; // 0x7 field public static final int API_SET_PNO_SCAN_ENABLED = 36; // 0x24 field public static final int API_SET_SCAN_SCHEDULE = 6; // 0x6 field public static final int API_SET_TDLS_ENABLED = 34; // 0x22 field public static final int API_SET_TDLS_ENABLED_WITH_MAC_ADDRESS = 35; // 0x23 field public static final int API_SET_THIRD_PARTY_APPS_ENABLING_WIFI_CONFIRMATION_DIALOG = 9; // 0x9 field public static final int API_SOFT_AP = 3; // 0x3 field public static final int API_START_LOCAL_ONLY_HOTSPOT = 20; // 0x14 field public static final int API_START_SCAN = 19; // 0x13 field public static final int API_TETHERED_HOTSPOT = 4; // 0x4 field public static final int API_UPDATE_NETWORK = 11; // 0xb field public static final int API_WIFI_ENABLED = 2; // 0x2 field public static final int API_WIFI_SCANNER_START_SCAN = 33; // 0x21 field public static final int CHANGE_REASON_ADDED = 0; // 0x0 field public static final int CHANGE_REASON_CONFIG_CHANGE = 2; // 0x2 field public static final int CHANGE_REASON_REMOVED = 1; // 0x1 field public static final int COEX_RESTRICTION_SOFTAP = 2; // 0x2 field public static final int COEX_RESTRICTION_WIFI_AWARE = 4; // 0x4 field public static final int COEX_RESTRICTION_WIFI_DIRECT = 1; // 0x1 field public static final String CONFIGURED_NETWORKS_CHANGED_ACTION = "android.net.wifi.CONFIGURED_NETWORKS_CHANGE"; field public static final int DEVICE_MOBILITY_STATE_HIGH_MVMT = 1; // 0x1 field public static final int DEVICE_MOBILITY_STATE_LOW_MVMT = 2; // 0x2 field public static final int DEVICE_MOBILITY_STATE_STATIONARY = 3; // 0x3 field public static final int DEVICE_MOBILITY_STATE_UNKNOWN = 0; // 0x0 field public static final int EASY_CONNECT_CRYPTOGRAPHY_CURVE_BRAINPOOLP256R1 = 3; // 0x3 field public static final int EASY_CONNECT_CRYPTOGRAPHY_CURVE_BRAINPOOLP384R1 = 4; // 0x4 field public static final int EASY_CONNECT_CRYPTOGRAPHY_CURVE_BRAINPOOLP512R1 = 5; // 0x5 field public static final int EASY_CONNECT_CRYPTOGRAPHY_CURVE_PRIME256V1 = 0; // 0x0 field public static final int EASY_CONNECT_CRYPTOGRAPHY_CURVE_SECP384R1 = 1; // 0x1 field public static final int EASY_CONNECT_CRYPTOGRAPHY_CURVE_SECP521R1 = 2; // 0x2 field public static final int EASY_CONNECT_NETWORK_ROLE_AP = 1; // 0x1 field public static final int EASY_CONNECT_NETWORK_ROLE_STA = 0; // 0x0 field public static final String EXTRA_CHANGE_REASON = "changeReason"; field @Deprecated public static final String EXTRA_LINK_PROPERTIES = "android.net.wifi.extra.LINK_PROPERTIES"; field @Deprecated public static final String EXTRA_MULTIPLE_NETWORKS_CHANGED = "multipleChanges"; field public static final String EXTRA_OSU_NETWORK = "android.net.wifi.extra.OSU_NETWORK"; field public static final String EXTRA_PREVIOUS_WIFI_AP_STATE = "previous_wifi_state"; field public static final String EXTRA_URL = "android.net.wifi.extra.URL"; field public static final String EXTRA_WIFI_AP_FAILURE_REASON = "android.net.wifi.extra.WIFI_AP_FAILURE_REASON"; field public static final String EXTRA_WIFI_AP_INTERFACE_NAME = "android.net.wifi.extra.WIFI_AP_INTERFACE_NAME"; field public static final String EXTRA_WIFI_AP_MODE = "android.net.wifi.extra.WIFI_AP_MODE"; field public static final String EXTRA_WIFI_AP_STATE = "wifi_state"; field @Deprecated public static final String EXTRA_WIFI_CONFIGURATION = "wifiConfiguration"; field public static final String EXTRA_WIFI_CREDENTIAL_EVENT_TYPE = "et"; field public static final String EXTRA_WIFI_CREDENTIAL_SSID = "ssid"; field public static final int IFACE_IP_MODE_CONFIGURATION_ERROR = 0; // 0x0 field public static final int IFACE_IP_MODE_LOCAL_ONLY = 2; // 0x2 field public static final int IFACE_IP_MODE_TETHERED = 1; // 0x1 field public static final int IFACE_IP_MODE_UNSPECIFIED = -1; // 0xffffffff field public static final int MLO_MODE_DEFAULT = 0; // 0x0 field public static final int MLO_MODE_HIGH_THROUGHPUT = 2; // 0x2 field public static final int MLO_MODE_LOW_LATENCY = 1; // 0x1 field public static final int MLO_MODE_LOW_POWER = 3; // 0x3 field public static final int PASSPOINT_HOME_NETWORK = 0; // 0x0 field public static final int PASSPOINT_ROAMING_NETWORK = 1; // 0x1 field public static final int PNO_SCAN_STATE_DISABLED_UNTIL_REBOOT = 0; // 0x0 field public static final int PNO_SCAN_STATE_DISABLED_UNTIL_WIFI_TOGGLE = 1; // 0x1 field public static final int PNO_SCAN_STATE_ENABLED = 2; // 0x2 field public static final int QOS_REQUEST_STATUS_ALREADY_ACTIVE = 1; // 0x1 field public static final int QOS_REQUEST_STATUS_FAILURE_UNKNOWN = 4; // 0x4 field public static final int QOS_REQUEST_STATUS_INSUFFICIENT_RESOURCES = 2; // 0x2 field public static final int QOS_REQUEST_STATUS_INVALID_PARAMETERS = 3; // 0x3 field public static final int QOS_REQUEST_STATUS_TRACKING = 0; // 0x0 field public static final int SAP_CLIENT_BLOCK_REASON_CODE_BLOCKED_BY_USER = 0; // 0x0 field public static final int SAP_CLIENT_BLOCK_REASON_CODE_NO_MORE_STAS = 1; // 0x1 field public static final int SAP_START_FAILURE_GENERAL = 0; // 0x0 field public static final int SAP_START_FAILURE_NO_CHANNEL = 1; // 0x1 field public static final int SAP_START_FAILURE_UNSUPPORTED_CONFIGURATION = 2; // 0x2 field public static final int SAP_START_FAILURE_USER_REJECTED = 3; // 0x3 field public static final String TWT_CAPABILITIES_KEY_BOOLEAN_TWT_REQUESTER = "key_requester"; field public static final String TWT_CAPABILITIES_KEY_INT_MAX_WAKE_DURATION_MICROS = "key_max_wake_duration"; field public static final String TWT_CAPABILITIES_KEY_INT_MIN_WAKE_DURATION_MICROS = "key_min_wake_duration"; field public static final String TWT_CAPABILITIES_KEY_LONG_MAX_WAKE_INTERVAL_MICROS = "key_max_wake_interval"; field public static final String TWT_CAPABILITIES_KEY_LONG_MIN_WAKE_INTERVAL_MICROS = "key_min_wake_interval"; field public static final int VERBOSE_LOGGING_LEVEL_DISABLED = 0; // 0x0 field public static final int VERBOSE_LOGGING_LEVEL_ENABLED = 1; // 0x1 field public static final int VERBOSE_LOGGING_LEVEL_ENABLED_SHOW_KEY = 2; // 0x2 field public static final int VERBOSE_LOGGING_LEVEL_WIFI_AWARE_ENABLED_ONLY = 3; // 0x3 field @RequiresPermission(android.Manifest.permission.ACCESS_WIFI_STATE) public static final String WIFI_AP_STATE_CHANGED_ACTION = "android.net.wifi.WIFI_AP_STATE_CHANGED"; field public static final int WIFI_AP_STATE_DISABLED = 11; // 0xb field public static final int WIFI_AP_STATE_DISABLING = 10; // 0xa field public static final int WIFI_AP_STATE_ENABLED = 13; // 0xd field public static final int WIFI_AP_STATE_ENABLING = 12; // 0xc field public static final int WIFI_AP_STATE_FAILED = 14; // 0xe field public static final String WIFI_CREDENTIAL_CHANGED_ACTION = "android.net.wifi.WIFI_CREDENTIAL_CHANGED"; field public static final int WIFI_CREDENTIAL_FORGOT = 1; // 0x1 field public static final int WIFI_CREDENTIAL_SAVED = 0; // 0x0 } public static interface WifiManager.ActionListener { method public void onFailure(int); method public void onSuccess(); field public static final int FAILURE_BUSY = 2; // 0x2 field public static final int FAILURE_INTERNAL_ERROR = 0; // 0x0 field public static final int FAILURE_INVALID_ARGS = 3; // 0x3 field public static final int FAILURE_IN_PROGRESS = 1; // 0x1 field public static final int FAILURE_NOT_AUTHORIZED = 4; // 0x4 } public static interface WifiManager.ActiveCountryCodeChangedCallback { method public void onActiveCountryCodeChanged(@NonNull String); method public void onCountryCodeInactive(); } public abstract static class WifiManager.CoexCallback { ctor public WifiManager.CoexCallback(); method public abstract void onCoexUnsafeChannelsChanged(@NonNull java.util.List, int); } public static interface WifiManager.NetworkRequestMatchCallback { method public default void onAbort(); method public default void onMatch(@NonNull java.util.List); method public default void onUserSelectionCallbackRegistration(@NonNull android.net.wifi.WifiManager.NetworkRequestUserSelectionCallback); method public default void onUserSelectionConnectFailure(@NonNull android.net.wifi.WifiConfiguration); method public default void onUserSelectionConnectSuccess(@NonNull android.net.wifi.WifiConfiguration); } public static interface WifiManager.NetworkRequestUserSelectionCallback { method public default void reject(); method public default void select(@NonNull android.net.wifi.WifiConfiguration); } public static interface WifiManager.OnWifiActivityEnergyInfoListener { method public void onWifiActivityEnergyInfo(@Nullable android.os.connectivity.WifiActivityEnergyInfo); } public static interface WifiManager.OnWifiUsabilityStatsListener { method public void onWifiUsabilityStats(int, boolean, @NonNull android.net.wifi.WifiUsabilityStatsEntry); } public static interface WifiManager.PnoScanResultsCallback { method public void onRegisterFailed(int); method public void onRegisterSuccess(); method public void onRemoved(int); method public void onScanResultsAvailable(@NonNull java.util.List); field public static final int REGISTER_PNO_CALLBACK_ALREADY_REGISTERED = 1; // 0x1 field public static final int REGISTER_PNO_CALLBACK_PNO_NOT_SUPPORTED = 3; // 0x3 field public static final int REGISTER_PNO_CALLBACK_RESOURCE_BUSY = 2; // 0x2 field public static final int REGISTER_PNO_CALLBACK_UNKNOWN = 0; // 0x0 field public static final int REMOVE_PNO_CALLBACK_RESULTS_DELIVERED = 1; // 0x1 field public static final int REMOVE_PNO_CALLBACK_UNKNOWN = 0; // 0x0 field public static final int REMOVE_PNO_CALLBACK_UNREGISTERED = 2; // 0x2 } public static interface WifiManager.ScoreUpdateObserver { method public default void blocklistCurrentBssid(int); method public void notifyScoreUpdate(int, int); method public default void notifyStatusUpdate(int, boolean); method public default void requestNudOperation(int); method public void triggerUpdateOfWifiUsabilityStats(int); } public static class WifiManager.ScreenOnScanSchedule { ctor public WifiManager.ScreenOnScanSchedule(@NonNull java.time.Duration, int); method @NonNull public java.time.Duration getScanInterval(); method public int getScanType(); } public static interface WifiManager.SoftApCallback { method public default void onBlockedClientConnecting(@NonNull android.net.wifi.WifiClient, int); method public default void onCapabilityChanged(@NonNull android.net.wifi.SoftApCapability); method @Deprecated public default void onConnectedClientsChanged(@NonNull java.util.List); method public default void onConnectedClientsChanged(@NonNull android.net.wifi.SoftApInfo, @NonNull java.util.List); method @Deprecated public default void onInfoChanged(@NonNull android.net.wifi.SoftApInfo); method public default void onInfoChanged(@NonNull java.util.List); method public default void onStateChanged(int, int); method public default void onStateChanged(@NonNull android.net.wifi.SoftApState); } public static interface WifiManager.TrafficStateCallback { method public void onStateChanged(int); field public static final int DATA_ACTIVITY_IN = 1; // 0x1 field public static final int DATA_ACTIVITY_INOUT = 3; // 0x3 field public static final int DATA_ACTIVITY_NONE = 0; // 0x0 field public static final int DATA_ACTIVITY_OUT = 2; // 0x2 } public static interface WifiManager.WifiConnectedNetworkScorer { method public default void onNetworkSwitchAccepted(int, int, @NonNull String); method public default void onNetworkSwitchRejected(int, int, @NonNull String); method public void onSetScoreUpdateObserver(@NonNull android.net.wifi.WifiManager.ScoreUpdateObserver); method @Deprecated public default void onStart(int); method public default void onStart(@NonNull android.net.wifi.WifiConnectedSessionInfo); method public void onStop(int); } public static interface WifiManager.WifiLowLatencyLockListener { method public void onActivatedStateChanged(boolean); method public default void onActiveUsersChanged(@NonNull int[]); method public default void onOwnershipChanged(@NonNull int[]); } public static interface WifiManager.WifiNetworkStateChangedListener { method public void onWifiNetworkStateChanged(int, int); field public static final int WIFI_NETWORK_STATUS_AUTHENTICATING = 4; // 0x4 field public static final int WIFI_NETWORK_STATUS_CONNECTED = 6; // 0x6 field public static final int WIFI_NETWORK_STATUS_CONNECTING = 3; // 0x3 field public static final int WIFI_NETWORK_STATUS_DISCONNECTED = 7; // 0x7 field public static final int WIFI_NETWORK_STATUS_FAILED = 8; // 0x8 field public static final int WIFI_NETWORK_STATUS_IDLE = 1; // 0x1 field public static final int WIFI_NETWORK_STATUS_OBTAINING_IPADDR = 5; // 0x5 field public static final int WIFI_NETWORK_STATUS_SCANNING = 2; // 0x2 field public static final int WIFI_ROLE_CLIENT_PRIMARY = 1; // 0x1 field public static final int WIFI_ROLE_CLIENT_SECONDARY_INTERNET = 2; // 0x2 field public static final int WIFI_ROLE_CLIENT_SECONDARY_LOCAL_ONLY = 3; // 0x3 } public static interface WifiManager.WifiVerboseLoggingStatusChangedListener { method public void onWifiVerboseLoggingStatusChanged(boolean); } @Deprecated public class WifiNetworkConnectionStatistics implements android.os.Parcelable { ctor @Deprecated public WifiNetworkConnectionStatistics(int, int); ctor @Deprecated public WifiNetworkConnectionStatistics(); ctor @Deprecated public WifiNetworkConnectionStatistics(android.net.wifi.WifiNetworkConnectionStatistics); method @Deprecated public int describeContents(); method @Deprecated public void writeToParcel(android.os.Parcel, int); field @Deprecated @NonNull public static final android.os.Parcelable.Creator CREATOR; field @Deprecated public int numConnection; field @Deprecated public int numUsage; } public final class WifiNetworkSelectionConfig implements android.os.Parcelable { method public int describeContents(); method public int getAssociatedNetworkSelectionOverride(); method @NonNull public android.util.SparseArray getFrequencyWeights(); method @NonNull public int[] getRssiThresholds(int); method public boolean isLastSelectionWeightEnabled(); method public boolean isSufficiencyCheckEnabledWhenScreenOff(); method public boolean isSufficiencyCheckEnabledWhenScreenOn(); method public boolean isUserConnectChoiceOverrideEnabled(); method public void writeToParcel(@NonNull android.os.Parcel, int); field public static final int ASSOCIATED_NETWORK_SELECTION_OVERRIDE_DISABLED = 2; // 0x2 field public static final int ASSOCIATED_NETWORK_SELECTION_OVERRIDE_ENABLED = 1; // 0x1 field public static final int ASSOCIATED_NETWORK_SELECTION_OVERRIDE_NONE = 0; // 0x0 field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int FREQUENCY_WEIGHT_HIGH = 1; // 0x1 field public static final int FREQUENCY_WEIGHT_LOW = 0; // 0x0 } public static final class WifiNetworkSelectionConfig.Builder { ctor public WifiNetworkSelectionConfig.Builder(); ctor public WifiNetworkSelectionConfig.Builder(@NonNull android.net.wifi.WifiNetworkSelectionConfig); method @NonNull public android.net.wifi.WifiNetworkSelectionConfig build(); method @NonNull public android.net.wifi.WifiNetworkSelectionConfig.Builder setAssociatedNetworkSelectionOverride(int) throws java.lang.IllegalArgumentException; method @NonNull public android.net.wifi.WifiNetworkSelectionConfig.Builder setFrequencyWeights(@NonNull android.util.SparseArray) throws java.lang.IllegalArgumentException; method @NonNull public android.net.wifi.WifiNetworkSelectionConfig.Builder setLastSelectionWeightEnabled(boolean); method @NonNull public android.net.wifi.WifiNetworkSelectionConfig.Builder setRssiThresholds(int, @NonNull int[]) throws java.lang.IllegalArgumentException; method @NonNull public android.net.wifi.WifiNetworkSelectionConfig.Builder setSufficiencyCheckEnabledWhenScreenOff(boolean); method @NonNull public android.net.wifi.WifiNetworkSelectionConfig.Builder setSufficiencyCheckEnabledWhenScreenOn(boolean); method @NonNull public android.net.wifi.WifiNetworkSelectionConfig.Builder setUserConnectChoiceOverrideEnabled(boolean); } public final class WifiNetworkSuggestion implements android.os.Parcelable { method public int getCarrierId(); method @NonNull public android.net.wifi.WifiConfiguration getWifiConfiguration(); method public boolean isOemPaid(); method public boolean isOemPrivate(); } public static final class WifiNetworkSuggestion.Builder { method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_CARRIER_PROVISIONING) public android.net.wifi.WifiNetworkSuggestion.Builder setCarrierId(int); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setOemPaid(boolean); method @NonNull public android.net.wifi.WifiNetworkSuggestion.Builder setOemPrivate(boolean); } public class WifiScanner { method @Deprecated public void configureWifiChange(int, int, int, int, int, android.net.wifi.WifiScanner.BssidInfo[]); method @Deprecated public void configureWifiChange(android.net.wifi.WifiScanner.WifiChangeSettings); method @NonNull @RequiresPermission(android.Manifest.permission.NEARBY_WIFI_DEVICES) public java.util.List getAvailableChannels(int); method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.LOCATION_HARDWARE}) public void getCachedScanData(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean getScanResults(); method @NonNull @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public java.util.List getSingleScanResults(); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public boolean isScanning(); method @RequiresPermission(anyOf={android.Manifest.permission.LOCATION_HARDWARE, android.Manifest.permission.NETWORK_STACK}) public void registerScanListener(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.WifiScanner.ScanListener); method @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public void setScanningEnabled(boolean); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startBackgroundScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startBackgroundScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener, android.os.WorkSource); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void startScan(android.net.wifi.WifiScanner.ScanSettings, android.net.wifi.WifiScanner.ScanListener, android.os.WorkSource); method @Deprecated public void startTrackingBssids(android.net.wifi.WifiScanner.BssidInfo[], int, android.net.wifi.WifiScanner.BssidListener); method @Deprecated public void startTrackingWifiChange(android.net.wifi.WifiScanner.WifiChangeListener); method @Deprecated @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void stopBackgroundScan(android.net.wifi.WifiScanner.ScanListener); method @RequiresPermission(android.Manifest.permission.LOCATION_HARDWARE) public void stopScan(android.net.wifi.WifiScanner.ScanListener); method @Deprecated public void stopTrackingBssids(android.net.wifi.WifiScanner.BssidListener); method @Deprecated public void stopTrackingWifiChange(android.net.wifi.WifiScanner.WifiChangeListener); method public void unregisterScanListener(@NonNull android.net.wifi.WifiScanner.ScanListener); field public static final int MAX_SCAN_PERIOD_MS = 1024000; // 0xfa000 field public static final int MIN_SCAN_PERIOD_MS = 1000; // 0x3e8 field public static final int REASON_ABORT = -7; // 0xfffffff9 field public static final int REASON_BUSY = -6; // 0xfffffffa field public static final int REASON_DUPLICATE_REQEUST = -5; // 0xfffffffb field public static final int REASON_INVALID_ARGS = -9; // 0xfffffff7 field public static final int REASON_INVALID_LISTENER = -2; // 0xfffffffe field public static final int REASON_INVALID_REQUEST = -3; // 0xfffffffd field public static final int REASON_NOT_AUTHORIZED = -4; // 0xfffffffc field public static final int REASON_NO_DEVICE = -8; // 0xfffffff8 field public static final int REASON_SUCCEEDED = 0; // 0x0 field public static final int REASON_TIMEOUT = -10; // 0xfffffff6 field public static final int REASON_UNSPECIFIED = -1; // 0xffffffff field @Deprecated public static final int REPORT_EVENT_AFTER_BUFFER_FULL = 0; // 0x0 field public static final int REPORT_EVENT_AFTER_EACH_SCAN = 1; // 0x1 field public static final int REPORT_EVENT_FULL_SCAN_RESULT = 2; // 0x2 field public static final int REPORT_EVENT_NO_BATCH = 4; // 0x4 field public static final int SCAN_TYPE_HIGH_ACCURACY = 2; // 0x2 field public static final int SCAN_TYPE_LOW_LATENCY = 0; // 0x0 field public static final int SCAN_TYPE_LOW_POWER = 1; // 0x1 field public static final int WIFI_BAND_24_5_6_GHZ = 11; // 0xb field public static final int WIFI_BAND_24_5_WITH_DFS_6_GHZ = 15; // 0xf 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_5_GHZ_DFS_ONLY = 4; // 0x4 field public static final int WIFI_BAND_5_GHZ_WITH_DFS = 6; // 0x6 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_BAND_BOTH = 3; // 0x3 field public static final int WIFI_BAND_BOTH_WITH_DFS = 7; // 0x7 field public static final int WIFI_BAND_UNSPECIFIED = 0; // 0x0 field public static final int WIFI_RNR_ENABLED = 1; // 0x1 field public static final int WIFI_RNR_ENABLED_IF_WIFI_BAND_6_GHZ_SCANNED = 0; // 0x0 field public static final int WIFI_RNR_NOT_NEEDED = 2; // 0x2 } public static interface WifiScanner.ActionListener { method public void onFailure(int, String); method public void onSuccess(); } @Deprecated public static class WifiScanner.BssidInfo { ctor @Deprecated public WifiScanner.BssidInfo(); field @Deprecated public String bssid; field @Deprecated public int frequencyHint; field @Deprecated public int high; field @Deprecated public int low; } @Deprecated public static interface WifiScanner.BssidListener extends android.net.wifi.WifiScanner.ActionListener { method @Deprecated public void onFound(android.net.wifi.ScanResult[]); method @Deprecated public void onLost(android.net.wifi.ScanResult[]); } public static class WifiScanner.ChannelSpec { ctor public WifiScanner.ChannelSpec(int); field public int frequency; } @Deprecated public static class WifiScanner.HotlistSettings implements android.os.Parcelable { ctor @Deprecated public WifiScanner.HotlistSettings(); method @Deprecated public int describeContents(); method @Deprecated public void writeToParcel(android.os.Parcel, int); field @Deprecated public int apLostThreshold; field @Deprecated public android.net.wifi.WifiScanner.BssidInfo[] bssidInfos; } public static class WifiScanner.ParcelableScanData implements android.os.Parcelable { ctor public WifiScanner.ParcelableScanData(android.net.wifi.WifiScanner.ScanData[]); method public int describeContents(); method public android.net.wifi.WifiScanner.ScanData[] getResults(); method public void writeToParcel(android.os.Parcel, int); field public android.net.wifi.WifiScanner.ScanData[] mResults; } public static class WifiScanner.ParcelableScanResults implements android.os.Parcelable { ctor public WifiScanner.ParcelableScanResults(android.net.wifi.ScanResult[]); method public int describeContents(); method public android.net.wifi.ScanResult[] getResults(); method public void writeToParcel(android.os.Parcel, int); field public android.net.wifi.ScanResult[] mResults; } public static class WifiScanner.ScanData implements android.os.Parcelable { ctor public WifiScanner.ScanData(int, int, android.net.wifi.ScanResult[]); ctor public WifiScanner.ScanData(android.net.wifi.WifiScanner.ScanData); method public int describeContents(); method public int getFlags(); method public int getId(); method public android.net.wifi.ScanResult[] getResults(); method public int getScannedBands(); method public void writeToParcel(android.os.Parcel, int); } public static interface WifiScanner.ScanListener extends android.net.wifi.WifiScanner.ActionListener { method public void onFullResult(android.net.wifi.ScanResult); method @Deprecated public void onPeriodChanged(int); method public void onResults(android.net.wifi.WifiScanner.ScanData[]); } public static class WifiScanner.ScanSettings implements android.os.Parcelable { ctor public WifiScanner.ScanSettings(); method public int describeContents(); method public int getRnrSetting(); method @NonNull public java.util.List getVendorIes(); method public boolean is6GhzPscOnlyEnabled(); method public void set6GhzPscOnlyEnabled(boolean); method public void setRnrSetting(int); method public void setVendorIes(@NonNull java.util.List); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public int band; field public android.net.wifi.WifiScanner.ChannelSpec[] channels; field @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public final java.util.List hiddenNetworks; field public boolean hideFromAppOps; field public boolean ignoreLocationSettings; field @Deprecated public int maxPeriodInMs; field @Deprecated public int maxScansToCache; field @Deprecated public int numBssidsPerScan; field @Deprecated public int periodInMs; field @Deprecated public int reportEvents; field @Deprecated public int stepCount; field @RequiresPermission(android.Manifest.permission.NETWORK_STACK) public int type; } public static class WifiScanner.ScanSettings.HiddenNetwork { ctor public WifiScanner.ScanSettings.HiddenNetwork(@NonNull String); field @NonNull public final String ssid; } @Deprecated public static interface WifiScanner.WifiChangeListener extends android.net.wifi.WifiScanner.ActionListener { method @Deprecated public void onChanging(android.net.wifi.ScanResult[]); method @Deprecated public void onQuiescence(android.net.wifi.ScanResult[]); } @Deprecated public static class WifiScanner.WifiChangeSettings implements android.os.Parcelable { ctor @Deprecated public WifiScanner.WifiChangeSettings(); method @Deprecated public int describeContents(); method @Deprecated public void writeToParcel(android.os.Parcel, int); field @Deprecated public android.net.wifi.WifiScanner.BssidInfo[] bssidInfos; field @Deprecated public int lostApSampleSize; field @Deprecated public int minApsBreachingThreshold; field @Deprecated public int periodInMs; field @Deprecated public int rssiSampleSize; field @Deprecated public int unchangedSampleSize; } public class WifiUriParser { method @NonNull public static android.net.wifi.UriParserResults parseUri(@NonNull String); } public final class WifiUsabilityStatsEntry implements android.os.Parcelable { method public int describeContents(); method public int getCellularDataNetworkType(); method public int getCellularSignalStrengthDb(); method public int getCellularSignalStrengthDbm(); method @IntRange(from=0xffffffff, to=255) public int getChannelUtilizationRatio(); method @NonNull public android.net.wifi.WifiUsabilityStatsEntry.ContentionTimeStats getContentionTimeStats(int); method @NonNull public android.net.wifi.WifiUsabilityStatsEntry.ContentionTimeStats getContentionTimeStats(int, int); method @Nullable public int[] getLinkIds(); method public int getLinkSpeedMbps(); method public int getLinkState(int); method public int getProbeElapsedTimeSinceLastUpdateMillis(); method public int getProbeMcsRateSinceLastUpdate(); method public int getProbeStatusSinceLastUpdate(); method public long getRadioId(int); method @NonNull public java.util.List getRateStats(); method @NonNull public java.util.List getRateStats(int); method public int getRssi(); method public int getRssi(int); method public int getRxLinkSpeedMbps(); method public int getRxLinkSpeedMbps(int); method @IntRange(from=0, to=100) public int getTimeSliceDutyCycleInPercent(); method @IntRange(from=0, to=100) public int getTimeSliceDutyCycleInPercent(int); method public long getTimeStampMillis(); method public long getTotalBackgroundScanTimeMillis(); method public long getTotalBeaconRx(); method public long getTotalBeaconRx(int); method public long getTotalCcaBusyFreqTimeMillis(); method public long getTotalCcaBusyFreqTimeMillis(int); method public long getTotalHotspot2ScanTimeMillis(); method public long getTotalNanScanTimeMillis(); method public long getTotalPnoScanTimeMillis(); method public long getTotalRadioOnFreqTimeMillis(); method public long getTotalRadioOnFreqTimeMillis(int); method public long getTotalRadioOnTimeMillis(); method public long getTotalRadioRxTimeMillis(); method public long getTotalRadioTxTimeMillis(); method public long getTotalRoamScanTimeMillis(); method public long getTotalRxSuccess(); method public long getTotalRxSuccess(int); method public long getTotalScanTimeMillis(); method public long getTotalTxBad(); method public long getTotalTxBad(int); method public long getTotalTxRetries(); method public long getTotalTxRetries(int); method public long getTotalTxSuccess(); method public long getTotalTxSuccess(int); method public int getTxLinkSpeedMbps(int); method @NonNull public java.util.List getWifiLinkLayerRadioStats(); method public boolean isCellularDataAvailable(); method public boolean isSameRegisteredCell(); method public boolean isThroughputSufficient(); method public boolean isWifiScoringEnabled(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int LINK_STATE_IN_USE = 2; // 0x2 field public static final int LINK_STATE_NOT_IN_USE = 1; // 0x1 field public static final int LINK_STATE_UNKNOWN = 0; // 0x0 field public static final int NUM_WME_ACCESS_CATEGORIES = 4; // 0x4 field public static final int PROBE_STATUS_FAILURE = 3; // 0x3 field public static final int PROBE_STATUS_NO_PROBE = 1; // 0x1 field public static final int PROBE_STATUS_SUCCESS = 2; // 0x2 field public static final int PROBE_STATUS_UNKNOWN = 0; // 0x0 field public static final int WIFI_BANDWIDTH_10_MHZ = 6; // 0x6 field public static final int WIFI_BANDWIDTH_160_MHZ = 3; // 0x3 field public static final int WIFI_BANDWIDTH_20_MHZ = 0; // 0x0 field public static final int WIFI_BANDWIDTH_320_MHZ = 7; // 0x7 field public static final int WIFI_BANDWIDTH_40_MHZ = 1; // 0x1 field public static final int WIFI_BANDWIDTH_5_MHZ = 5; // 0x5 field public static final int WIFI_BANDWIDTH_80P80_MHZ = 4; // 0x4 field public static final int WIFI_BANDWIDTH_80_MHZ = 2; // 0x2 field public static final int WIFI_BANDWIDTH_INVALID = -1; // 0xffffffff field public static final int WIFI_PREAMBLE_CCK = 1; // 0x1 field public static final int WIFI_PREAMBLE_EHT = 6; // 0x6 field public static final int WIFI_PREAMBLE_HE = 5; // 0x5 field public static final int WIFI_PREAMBLE_HT = 2; // 0x2 field public static final int WIFI_PREAMBLE_INVALID = -1; // 0xffffffff field public static final int WIFI_PREAMBLE_OFDM = 0; // 0x0 field public static final int WIFI_PREAMBLE_VHT = 3; // 0x3 field public static final int WIFI_SPATIAL_STREAMS_FOUR = 4; // 0x4 field public static final int WIFI_SPATIAL_STREAMS_INVALID = -1; // 0xffffffff field public static final int WIFI_SPATIAL_STREAMS_ONE = 1; // 0x1 field public static final int WIFI_SPATIAL_STREAMS_THREE = 3; // 0x3 field public static final int WIFI_SPATIAL_STREAMS_TWO = 2; // 0x2 field public static final int WME_ACCESS_CATEGORY_BE = 0; // 0x0 field public static final int WME_ACCESS_CATEGORY_BK = 1; // 0x1 field public static final int WME_ACCESS_CATEGORY_VI = 2; // 0x2 field public static final int WME_ACCESS_CATEGORY_VO = 3; // 0x3 } public static final class WifiUsabilityStatsEntry.ContentionTimeStats implements android.os.Parcelable { ctor public WifiUsabilityStatsEntry.ContentionTimeStats(long, long, long, long); method public int describeContents(); method public long getContentionNumSamples(); method public long getContentionTimeAvgMicros(); method public long getContentionTimeMaxMicros(); method public long getContentionTimeMinMicros(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class WifiUsabilityStatsEntry.RadioStats implements android.os.Parcelable { ctor public WifiUsabilityStatsEntry.RadioStats(int, long, long, long, long, long, long, long, long, long); method public int describeContents(); method public long getRadioId(); method public long getTotalBackgroundScanTimeMillis(); method public long getTotalHotspot2ScanTimeMillis(); method public long getTotalNanScanTimeMillis(); method public long getTotalPnoScanTimeMillis(); method public long getTotalRadioOnTimeMillis(); method public long getTotalRadioRxTimeMillis(); method public long getTotalRadioTxTimeMillis(); method public long getTotalRoamScanTimeMillis(); method public long getTotalScanTimeMillis(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class WifiUsabilityStatsEntry.RateStats implements android.os.Parcelable { ctor public WifiUsabilityStatsEntry.RateStats(int, int, int, int, int, int, int, int, int); method public int describeContents(); method public int getBandwidthInMhz(); method public int getBitRateInKbps(); method public int getMpduLost(); method public int getNumberOfSpatialStreams(); method public int getPreamble(); method public int getRateMcsIdx(); method public int getRetries(); method public int getRxMpdu(); method public int getTxMpdu(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } } package android.net.wifi.aware { public final class AwareParams implements android.os.Parcelable { ctor public AwareParams(); method public int describeContents(); method public int getDiscoveryBeaconIntervalMillis(); method public int getDiscoveryWindowWakeInterval24Ghz(); method public int getDiscoveryWindowWakeInterval5Ghz(); method public int getMacRandomizationIntervalSeconds(); method public int getNumSpatialStreamsInDiscovery(); method public boolean isDwEarlyTerminationEnabled(); method public void setDiscoveryBeaconIntervalMillis(@IntRange(from=1) int); method public void setDiscoveryWindowWakeInterval24Ghz(@IntRange(from=1, to=5) int); method public void setDiscoveryWindowWakeInterval5Ghz(@IntRange(from=0, to=5) int); method public void setDwEarlyTerminationEnabled(boolean); method public void setMacRandomizationIntervalSeconds(@IntRange(from=1, to=1800) int); method public void setNumSpatialStreamsInDiscovery(@IntRange(from=1) int); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; field public static final int UNSET_PARAMETER = -1; // 0xffffffff } public final class ConfigRequest implements android.os.Parcelable { method public int describeContents(); method @NonNull public java.util.List getVendorData(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class ConfigRequest.Builder { ctor public ConfigRequest.Builder(); method @NonNull public android.net.wifi.aware.ConfigRequest build(); method @NonNull public android.net.wifi.aware.ConfigRequest.Builder setVendorData(@NonNull java.util.List); } public class DiscoverySession implements java.lang.AutoCloseable { method @Deprecated public android.net.NetworkSpecifier createNetworkSpecifierPmk(@NonNull android.net.wifi.aware.PeerHandle, @NonNull byte[]); method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void resume(); method @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public void suspend(); } public class DiscoverySessionCallback { method public void onSessionResumeFailed(int); method public void onSessionResumeSucceeded(); method public void onSessionSuspendFailed(int); method public void onSessionSuspendSucceeded(); } public final class PublishConfig implements android.os.Parcelable { method @NonNull public java.util.List getVendorData(); method public boolean isSuspendable(); } public static final class PublishConfig.Builder { method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public android.net.wifi.aware.PublishConfig.Builder setSuspendable(boolean); method @NonNull public android.net.wifi.aware.PublishConfig.Builder setVendorData(@NonNull java.util.List); } public final class ServiceDiscoveryInfo { method @NonNull public java.util.List getVendorData(); } public final class SubscribeConfig implements android.os.Parcelable { method @NonNull public java.util.List getVendorData(); method public boolean isSuspendable(); } public static final class SubscribeConfig.Builder { method @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION) public android.net.wifi.aware.SubscribeConfig.Builder setSuspendable(boolean); method @NonNull public android.net.wifi.aware.SubscribeConfig.Builder setVendorData(@NonNull java.util.List); } public class WifiAwareManager { 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, android.Manifest.permission.MANAGE_WIFI_NETWORK_SELECTION}, conditional=true) public void attach(@NonNull android.net.wifi.aware.ConfigRequest, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.aware.AttachCallback, @NonNull android.net.wifi.aware.IdentityChangedListener); method @RequiresPermission(allOf={android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.CHANGE_WIFI_STATE, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public void attachOffload(@NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.aware.AttachCallback); method @RequiresPermission(allOf={android.Manifest.permission.CHANGE_WIFI_STATE, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public void enableInstantCommunicationMode(boolean); method @RequiresPermission(allOf={android.Manifest.permission.OVERRIDE_WIFI_CONFIG, android.Manifest.permission.CHANGE_WIFI_STATE}) public void setAwareParams(@Nullable android.net.wifi.aware.AwareParams); field public static final int WIFI_AWARE_RESUME_INTERNAL_ERROR = 2; // 0x2 field public static final int WIFI_AWARE_RESUME_INVALID_SESSION = 1; // 0x1 field public static final int WIFI_AWARE_RESUME_REDUNDANT_REQUEST = 0; // 0x0 field public static final int WIFI_AWARE_SUSPEND_CANNOT_SUSPEND = 2; // 0x2 field public static final int WIFI_AWARE_SUSPEND_INTERNAL_ERROR = 3; // 0x3 field public static final int WIFI_AWARE_SUSPEND_INVALID_SESSION = 1; // 0x1 field public static final int WIFI_AWARE_SUSPEND_REDUNDANT_REQUEST = 0; // 0x0 } public class WifiAwareSession implements java.lang.AutoCloseable { method @Deprecated public android.net.NetworkSpecifier createNetworkSpecifierPmk(int, @NonNull byte[], @NonNull byte[]); method @RequiresPermission(android.Manifest.permission.OVERRIDE_WIFI_CONFIG) public void getMasterPreference(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method @RequiresPermission(android.Manifest.permission.OVERRIDE_WIFI_CONFIG) public void setMasterPreference(@IntRange(from=0, to=254) int); } } package android.net.wifi.hotspot2 { public final class OsuProvider implements android.os.Parcelable { method public int describeContents(); method @Nullable public String getFriendlyName(); method @Nullable public android.net.Uri getServerUri(); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public final class PasspointConfiguration implements android.os.Parcelable { method public int getMeteredOverride(); method public boolean isAutojoinEnabled(); method public boolean isMacRandomizationEnabled(); } public abstract class ProvisioningCallback { ctor public ProvisioningCallback(); method public abstract void onProvisioningComplete(); method public abstract void onProvisioningFailure(int); method public abstract void onProvisioningStatus(int); field public static final int OSU_FAILURE_ADD_PASSPOINT_CONFIGURATION = 22; // 0x16 field public static final int OSU_FAILURE_AP_CONNECTION = 1; // 0x1 field public static final int OSU_FAILURE_INVALID_URL_FORMAT_FOR_OSU = 8; // 0x8 field public static final int OSU_FAILURE_NO_AAA_SERVER_TRUST_ROOT_NODE = 17; // 0x11 field public static final int OSU_FAILURE_NO_AAA_TRUST_ROOT_CERTIFICATE = 21; // 0x15 field public static final int OSU_FAILURE_NO_OSU_ACTIVITY_FOUND = 14; // 0xe field public static final int OSU_FAILURE_NO_POLICY_SERVER_TRUST_ROOT_NODE = 19; // 0x13 field public static final int OSU_FAILURE_NO_PPS_MO = 16; // 0x10 field public static final int OSU_FAILURE_NO_REMEDIATION_SERVER_TRUST_ROOT_NODE = 18; // 0x12 field public static final int OSU_FAILURE_OSU_PROVIDER_NOT_FOUND = 23; // 0x17 field public static final int OSU_FAILURE_PROVISIONING_ABORTED = 6; // 0x6 field public static final int OSU_FAILURE_PROVISIONING_NOT_AVAILABLE = 7; // 0x7 field public static final int OSU_FAILURE_RETRIEVE_TRUST_ROOT_CERTIFICATES = 20; // 0x14 field public static final int OSU_FAILURE_SERVER_CONNECTION = 3; // 0x3 field public static final int OSU_FAILURE_SERVER_URL_INVALID = 2; // 0x2 field public static final int OSU_FAILURE_SERVER_VALIDATION = 4; // 0x4 field public static final int OSU_FAILURE_SERVICE_PROVIDER_VERIFICATION = 5; // 0x5 field public static final int OSU_FAILURE_SOAP_MESSAGE_EXCHANGE = 11; // 0xb field public static final int OSU_FAILURE_START_REDIRECT_LISTENER = 12; // 0xc field public static final int OSU_FAILURE_TIMED_OUT_REDIRECT_LISTENER = 13; // 0xd field public static final int OSU_FAILURE_UNEXPECTED_COMMAND_TYPE = 9; // 0x9 field public static final int OSU_FAILURE_UNEXPECTED_SOAP_MESSAGE_STATUS = 15; // 0xf field public static final int OSU_FAILURE_UNEXPECTED_SOAP_MESSAGE_TYPE = 10; // 0xa field public static final int OSU_STATUS_AP_CONNECTED = 2; // 0x2 field public static final int OSU_STATUS_AP_CONNECTING = 1; // 0x1 field public static final int OSU_STATUS_INIT_SOAP_EXCHANGE = 6; // 0x6 field public static final int OSU_STATUS_REDIRECT_RESPONSE_RECEIVED = 8; // 0x8 field public static final int OSU_STATUS_RETRIEVING_TRUST_ROOT_CERTS = 11; // 0xb field public static final int OSU_STATUS_SECOND_SOAP_EXCHANGE = 9; // 0x9 field public static final int OSU_STATUS_SERVER_CONNECTED = 5; // 0x5 field public static final int OSU_STATUS_SERVER_CONNECTING = 3; // 0x3 field public static final int OSU_STATUS_SERVER_VALIDATED = 4; // 0x4 field public static final int OSU_STATUS_THIRD_SOAP_EXCHANGE = 10; // 0xa field public static final int OSU_STATUS_WAITING_FOR_REDIRECT_RESPONSE = 7; // 0x7 } } package android.net.wifi.p2p { public class WifiP2pConfig implements android.os.Parcelable { method @NonNull public java.util.List getVendorData(); method public boolean isJoinExistingGroup(); method public void setVendorData(@NonNull java.util.List); } public static final class WifiP2pConfig.Builder { method @NonNull public android.net.wifi.p2p.WifiP2pConfig.Builder setJoinExistingGroup(boolean); } public class WifiP2pDevice implements android.os.Parcelable { method @NonNull public java.util.List getVendorData(); method public void setVendorData(@NonNull java.util.List); } public final class WifiP2pDiscoveryConfig implements android.os.Parcelable { method @NonNull public java.util.List getVendorData(); } public static final class WifiP2pDiscoveryConfig.Builder { method @NonNull public android.net.wifi.p2p.WifiP2pDiscoveryConfig.Builder setVendorData(@NonNull java.util.List); } public final class WifiP2pExtListenParams implements android.os.Parcelable { method public int describeContents(); method @NonNull public java.util.List getVendorData(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class WifiP2pExtListenParams.Builder { ctor public WifiP2pExtListenParams.Builder(); method @NonNull public android.net.wifi.p2p.WifiP2pExtListenParams build(); method @NonNull public android.net.wifi.p2p.WifiP2pExtListenParams.Builder setVendorData(@NonNull java.util.List); } public class WifiP2pGroup implements android.os.Parcelable { method @NonNull public java.util.List getVendorData(); method public void setVendorData(@NonNull java.util.List); } public final class WifiP2pGroupList implements android.os.Parcelable { method public int describeContents(); method @NonNull public java.util.List getGroupList(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public class WifiP2pManager { method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public void deletePersistentGroup(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, int, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); method @RequiresPermission(android.Manifest.permission.NETWORK_SETTINGS) public void factoryReset(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); method @RequiresPermission(allOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.READ_WIFI_CREDENTIAL, android.Manifest.permission.NEARBY_WIFI_DEVICES, android.Manifest.permission.ACCESS_FINE_LOCATION}, conditional=true) public void requestPersistentGroupInfo(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @Nullable android.net.wifi.p2p.WifiP2pManager.PersistentGroupInfoListener); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public void setDeviceName(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, @NonNull String, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); method @RequiresPermission(android.Manifest.permission.CONFIGURE_WIFI_DISPLAY) public void setMiracastMode(int); method @RequiresPermission(anyOf={android.Manifest.permission.NETWORK_SETTINGS, android.Manifest.permission.NETWORK_STACK, android.Manifest.permission.OVERRIDE_WIFI_CONFIG}) public void setWifiP2pChannels(@NonNull android.net.wifi.p2p.WifiP2pManager.Channel, int, int, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); 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, @NonNull android.net.wifi.p2p.WifiP2pExtListenParams, @Nullable android.net.wifi.p2p.WifiP2pManager.ActionListener); field public static final String ACTION_WIFI_P2P_PERSISTENT_GROUPS_CHANGED = "android.net.wifi.p2p.action.WIFI_P2P_PERSISTENT_GROUPS_CHANGED"; field public static final int MIRACAST_DISABLED = 0; // 0x0 field public static final int MIRACAST_SINK = 2; // 0x2 field public static final int MIRACAST_SOURCE = 1; // 0x1 } public static interface WifiP2pManager.PersistentGroupInfoListener { method public void onPersistentGroupInfoAvailable(@NonNull android.net.wifi.p2p.WifiP2pGroupList); } public static interface WifiP2pManager.WifiP2pListener { method public default void onPersistentGroupsChanged(@NonNull android.net.wifi.p2p.WifiP2pGroupList); } } package android.net.wifi.rtt { public final class RangingRequest implements android.os.Parcelable { method @NonNull public java.util.List getRttResponders(); method @NonNull public java.util.List getVendorData(); } public static final class RangingRequest.Builder { method @NonNull public android.net.wifi.rtt.RangingRequest.Builder setVendorData(@NonNull java.util.List); } public final class RangingResult implements android.os.Parcelable { method @NonNull public java.util.List getVendorData(); } public static final class RangingResult.Builder { method @NonNull public android.net.wifi.rtt.RangingResult.Builder setVendorData(@NonNull java.util.List); } public final class ResponderConfig implements android.os.Parcelable { ctor public ResponderConfig(@NonNull android.net.MacAddress, int, boolean, int, int, int, int, int); ctor public ResponderConfig(@NonNull android.net.wifi.aware.PeerHandle, int, boolean, int, int, int, int, int); method @NonNull public static android.net.wifi.rtt.ResponderConfig fromWifiAwarePeerHandleWithDefaults(@NonNull android.net.wifi.aware.PeerHandle); method @NonNull public static android.net.wifi.rtt.ResponderConfig fromWifiAwarePeerMacAddressWithDefaults(@NonNull android.net.MacAddress); 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 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 public static final int RESPONDER_AWARE = 4; // 0x4 field public static final int RESPONDER_P2P_CLIENT = 3; // 0x3 field public static final int RESPONDER_P2P_GO = 2; // 0x2 field public final int centerFreq0; field public final int centerFreq1; field public final int channelWidth; field public final int frequency; field @Nullable public final android.net.MacAddress macAddress; field @Nullable public final android.net.wifi.aware.PeerHandle peerHandle; field public final int preamble; field public final int responderType; field public final boolean supports80211azNtb; field public final boolean supports80211mc; } public final class ResponderLocation implements android.os.Parcelable { method public boolean getExtraInfoOnAssociationIndication(); } public class WifiRttManager { method @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE}) public void cancelRanging(@Nullable android.os.WorkSource); method @RequiresPermission(allOf={android.Manifest.permission.LOCATION_HARDWARE, android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.CHANGE_WIFI_STATE, android.Manifest.permission.ACCESS_WIFI_STATE, android.Manifest.permission.NEARBY_WIFI_DEVICES}, conditional=true) public void startRanging(@Nullable android.os.WorkSource, @NonNull android.net.wifi.rtt.RangingRequest, @NonNull java.util.concurrent.Executor, @NonNull android.net.wifi.rtt.RangingResultCallback); } } package android.net.wifi.twt { public final class TwtRequest implements android.os.Parcelable { method public int describeContents(); method @IntRange(from=android.net.wifi.MloLink.INVALID_MLO_LINK_ID, to=0xf) public int getLinkId(); method public int getMaxWakeDurationMicros(); method public long getMaxWakeIntervalMicros(); method public int getMinWakeDurationMicros(); method public long getMinWakeIntervalMicros(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; } public static final class TwtRequest.Builder { ctor public TwtRequest.Builder(int, int, long, long); method @NonNull public android.net.wifi.twt.TwtRequest build(); method @NonNull public android.net.wifi.twt.TwtRequest.Builder setLinkId(@IntRange(from=0x0, to=0xf) int); } public interface TwtSession { method public int getMloLinkId(); method public void getStats(@NonNull java.util.concurrent.Executor, @NonNull java.util.function.Consumer); method public int getWakeDurationMicros(); method public long getWakeIntervalMicros(); method public void teardown(); field public static final String TWT_STATS_KEY_INT_AVERAGE_EOSP_DURATION_MICROS = "key_avg_eosp_dur"; field public static final String TWT_STATS_KEY_INT_AVERAGE_RX_PACKET_COUNT = "key_avg_rx_pkt_count"; field public static final String TWT_STATS_KEY_INT_AVERAGE_RX_PACKET_SIZE = "key_avg_rx_pkt_size"; field public static final String TWT_STATS_KEY_INT_AVERAGE_TX_PACKET_COUNT = "key_avg_tx_pkt_count"; field public static final String TWT_STATS_KEY_INT_AVERAGE_TX_PACKET_SIZE = "key_avg_tx_pkt_size"; field public static final String TWT_STATS_KEY_INT_EOSP_COUNT = "key_eosp_count"; } public interface TwtSessionCallback { method public void onCreate(@NonNull android.net.wifi.twt.TwtSession); method public void onFailure(int); method public void onTeardown(int); field public static final int TWT_ERROR_CODE_AP_NOT_SUPPORTED = 1; // 0x1 field public static final int TWT_ERROR_CODE_AP_OUI_BLOCKLISTED = 2; // 0x2 field public static final int TWT_ERROR_CODE_AP_REJECTED = 3; // 0x3 field public static final int TWT_ERROR_CODE_FAIL = 0; // 0x0 field public static final int TWT_ERROR_CODE_INVALID_PARAMS = 4; // 0x4 field public static final int TWT_ERROR_CODE_MAX_SESSIONS_REACHED = 5; // 0x5 field public static final int TWT_ERROR_CODE_NOT_AVAILABLE = 6; // 0x6 field public static final int TWT_ERROR_CODE_NOT_SUPPORTED = 7; // 0x7 field public static final int TWT_ERROR_CODE_TIMEOUT = 8; // 0x8 field public static final int TWT_REASON_CODE_INTERNALLY_INITIATED = 2; // 0x2 field public static final int TWT_REASON_CODE_LOCALLY_REQUESTED = 1; // 0x1 field public static final int TWT_REASON_CODE_PEER_INITIATED = 3; // 0x3 field public static final int TWT_REASON_CODE_UNKNOWN = 0; // 0x0 } }