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