Home
last modified time | relevance | path

Searched refs:ANQPElementType (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DConstants.java53 public enum ANQPElementType { enum in Constants
72 private static final Map<Integer, ANQPElementType> sAnqpMap = new HashMap<>();
73 private static final Map<Integer, ANQPElementType> sHs20Map = new HashMap<>();
74 private static final Map<ANQPElementType, Integer> sRevAnqpmap =
75 new EnumMap<>(ANQPElementType.class);
76 private static final Map<ANQPElementType, Integer> sRevHs20map =
77 new EnumMap<>(ANQPElementType.class);
80 sAnqpMap.put(ANQP_QUERY_LIST, ANQPElementType.ANQPQueryList); in sAnqpMap.put()
81 sAnqpMap.put(ANQP_VENUE_NAME, ANQPElementType.ANQPVenueName); in sAnqpMap.put()
82 sAnqpMap.put(ANQP_ROAMING_CONSORTIUM, ANQPElementType.ANQPRoamingConsortium); in sAnqpMap.put()
[all …]
DANQPElement.java7 private final Constants.ANQPElementType mID;
9 protected ANQPElement(Constants.ANQPElementType id) { in ANQPElement()
13 public Constants.ANQPElementType getID() { in getID()
DANQPParser.java58 public static ANQPElement parseElement(Constants.ANQPElementType infoID, ByteBuffer payload) in parseElement()
89 public static ANQPElement parseHS20Element(Constants.ANQPElementType infoID, in parseHS20Element()
128 Constants.ANQPElementType hs20ID = Constants.mapHS20Element(subType); in parseVendorSpecificElement()
DRawByteElement.java31 public RawByteElement(Constants.ANQPElementType infoID, byte[] payload) { in RawByteElement()
42 public static RawByteElement parse(Constants.ANQPElementType infoID, ByteBuffer payload) { in parse()
DGenericBlobElement.java13 public GenericBlobElement(Constants.ANQPElementType infoID, ByteBuffer payload) { in GenericBlobElement()
DHSConnectionCapabilityElement.java41 super(Constants.ANQPElementType.HSConnCapability); in HSConnectionCapabilityElement()
DDomainNameElement.java45 super(Constants.ANQPElementType.ANQPDomName); in DomainNameElement()
DNAIRealmElement.java43 super(Constants.ANQPElementType.ANQPNAIRealm); in NAIRealmElement()
DThreeGPPNetworkElement.java51 super(Constants.ANQPElementType.ANQP3GPPNetwork); in ThreeGPPNetworkElement()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DAnqpEvent.java30 private static final Map<String, Constants.ANQPElementType> sWpsNames = new HashMap<>();
33 sWpsNames.put("anqp_venue_name", Constants.ANQPElementType.ANQPVenueName);
34 sWpsNames.put("anqp_roaming_consortium", Constants.ANQPElementType.ANQPRoamingConsortium);
36 Constants.ANQPElementType.ANQPIPAddrAvailability);
37 sWpsNames.put("anqp_nai_realm", Constants.ANQPElementType.ANQPNAIRealm);
38 sWpsNames.put("anqp_3gpp", Constants.ANQPElementType.ANQP3GPPNetwork);
39 sWpsNames.put("anqp_domain_name", Constants.ANQPElementType.ANQPDomName);
40 sWpsNames.put("hs20_operator_friendly_name", Constants.ANQPElementType.HSFriendlyName);
41 sWpsNames.put("hs20_wan_metrics", Constants.ANQPElementType.HSWANMetrics);
42 sWpsNames.put("hs20_connection_capability", Constants.ANQPElementType.HSConnCapability);
[all …]
DANQPRequestManager.java70 private static final List<Constants.ANQPElementType> R1_ANQP_BASE_SET = Arrays.asList(
71 Constants.ANQPElementType.ANQPVenueName,
72 Constants.ANQPElementType.ANQPIPAddrAvailability,
73 Constants.ANQPElementType.ANQPNAIRealm,
74 Constants.ANQPElementType.ANQP3GPPNetwork,
75 Constants.ANQPElementType.ANQPDomName);
77 private static final List<Constants.ANQPElementType> R2_ANQP_BASE_SET = Arrays.asList(
78 Constants.ANQPElementType.HSFriendlyName,
79 Constants.ANQPElementType.HSWANMetrics,
80 Constants.ANQPElementType.HSConnCapability,
[all …]
DANQPData.java39 private final Map<Constants.ANQPElementType, ANQPElement> mANQPElements;
42 public ANQPData(Clock clock, Map<Constants.ANQPElementType, ANQPElement> anqpElements) { in ANQPData() argument
56 public Map<Constants.ANQPElementType, ANQPElement> getElements() { in getElements()
77 for (Map.Entry<Constants.ANQPElementType, ANQPElement> entry: mANQPElements.entrySet()) { in toString()
DPasspointEventHandler.java51 Map<Constants.ANQPElementType, ANQPElement> anqpElements); in onANQPResponse() argument
80 public boolean requestANQP(long bssid, List<Constants.ANQPElementType> elements) { in requestANQP()
146 List<Constants.ANQPElementType> querySet) { in buildAnqpIdSet()
149 for (Constants.ANQPElementType elementType : querySet) { in buildAnqpIdSet()
DPasspointNetworkScore.java24 import com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType;
148 Map<ANQPElementType, ANQPElement> anqpElements, boolean isActiveNetwork) { in calculateScore() argument
166 (HSWanMetricsElement) anqpElements.get(ANQPElementType.HSWANMetrics); in calculateScore()
174 anqpElements.get(ANQPElementType.ANQPIPAddrAvailability); in calculateScore()
DNetworkDetail.java119 private final Map<Constants.ANQPElementType, ANQPElement> mANQPElements;
323 …private NetworkDetail(NetworkDetail base, Map<Constants.ANQPElementType, ANQPElement> anqpElements… in NetworkDetail() argument
349 public NetworkDetail complete(Map<Constants.ANQPElementType, ANQPElement> anqpElements) { in complete() argument
353 public boolean queriable(List<Constants.ANQPElementType> queryElements) { in queriable()
426 ANQPElement osuProviders = mANQPElements.get(Constants.ANQPElementType.HSOSUProviders); in getOsuProviders()
438 public Map<Constants.ANQPElementType, ANQPElement> getANQPElements() { in getANQPElements()
DPasspointProvider.java37 import com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType;
333 public PasspointMatch match(Map<ANQPElementType, ANQPElement> anqpElements, in match() argument
339 (ThreeGPPNetworkElement) anqpElements.get(ANQPElementType.ANQP3GPPNetwork), in match()
346 (NAIRealmElement) anqpElements.get(ANQPElementType.ANQPNAIRealm), in match()
580 Map<ANQPElementType, ANQPElement> anqpElements, in matchProviderExceptFor3GPP() argument
584 (DomainNameElement) anqpElements.get(ANQPElementType.ANQPDomName), in matchProviderExceptFor3GPP()
592 (RoamingConsortiumElement) anqpElements.get(ANQPElementType.ANQPRoamingConsortium), in matchProviderExceptFor3GPP()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPRequestManagerTest.java51 private static final List<Constants.ANQPElementType> R1_ANQP_WITHOUT_RC = Arrays.asList(
52 Constants.ANQPElementType.ANQPVenueName,
53 Constants.ANQPElementType.ANQPIPAddrAvailability,
54 Constants.ANQPElementType.ANQPNAIRealm,
55 Constants.ANQPElementType.ANQP3GPPNetwork,
56 Constants.ANQPElementType.ANQPDomName);
58 private static final List<Constants.ANQPElementType> R1_ANQP_WITH_RC = Arrays.asList(
59 Constants.ANQPElementType.ANQPVenueName,
60 Constants.ANQPElementType.ANQPIPAddrAvailability,
61 Constants.ANQPElementType.ANQPNAIRealm,
[all …]
DPasspointEventHandlerTest.java69 List<Constants.ANQPElementType> elementToRequest = in requestR1AnqpElement()
70 Arrays.asList(Constants.ANQPElementType.ANQPRoamingConsortium); in requestR1AnqpElement()
73 Constants.ANQPElementType.ANQPRoamingConsortium))); in requestR1AnqpElement()
92 List<Constants.ANQPElementType> elementToRequest = in requestR2AnqpElement()
93 Arrays.asList(Constants.ANQPElementType.HSFriendlyName); in requestR2AnqpElement()
97 Constants.ANQPElementType.HSFriendlyName))); in requestR2AnqpElement()
115 List<Constants.ANQPElementType> elementToRequest = in requestMixAnqpElements()
116 Arrays.asList(Constants.ANQPElementType.ANQPRoamingConsortium, in requestMixAnqpElements()
117 Constants.ANQPElementType.HSFriendlyName); in requestMixAnqpElements()
120 Constants.ANQPElementType.ANQPRoamingConsortium))); in requestMixAnqpElements()
[all …]
DPasspointNetworkScoreTest.java30 import com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType;
52 public final Map<ANQPElementType, ANQPElement> anqpElements;
56 NetworkDetail.Ant type, Map<ANQPElementType, ANQPElement> elements, in TestData() argument
97 private static final Map<ANQPElementType, ANQPElement> TEST_ANQP_WITH_WAN_PORT_DOWN =
100 private static final Map<ANQPElementType, ANQPElement> TEST_ANQP_WITH_WAN_PORT_UP =
103 private static final Map<ANQPElementType, ANQPElement> TEST_ANQP_WITH_WAN_PORT_CAPPED =
106 private static final Map<ANQPElementType, ANQPElement> TEST_ANQP_WITH_UNRESTRICTED_IP =
109 private static final Map<ANQPElementType, ANQPElement> TEST_ANQP_WITH_UNAVAILABLE_IP =
112 private static final Map<ANQPElementType, ANQPElement> TEST_ANQP_WITH_UNKNOWN_IP =
119 TEST_ANQP_WITH_WAN_PORT_DOWN.put(Constants.ANQPElementType.HSWANMetrics, in TEST_ANQP_WITH_WAN_PORT_DOWN.put()
[all …]
DPasspointProviderTest.java45 import com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType;
436 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in matchFQDNWithoutNAIRealm()
437 anqpElementMap.put(ANQPElementType.ANQPDomName, in matchFQDNWithoutNAIRealm()
469 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in matchFQDNWithNAIRealmMatch()
470 anqpElementMap.put(ANQPElementType.ANQPDomName, in matchFQDNWithNAIRealmMatch()
472 anqpElementMap.put(ANQPElementType.ANQPNAIRealm, in matchFQDNWithNAIRealmMatch()
506 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in matchFQDNWithNAIRealmMismatch()
507 anqpElementMap.put(ANQPElementType.ANQPDomName, in matchFQDNWithNAIRealmMismatch()
509 anqpElementMap.put(ANQPElementType.ANQPNAIRealm, in matchFQDNWithNAIRealmMismatch()
538 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in matchFQDNWith3GPPNetworkDomainName()
[all …]
DPasspointManagerTest.java86 import com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType;
426 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in anqpResponseSuccess()
427 anqpElementMap.put(ANQPElementType.ANQPDomName, in anqpResponseSuccess()
445 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in anqpResponseSuccessWithUnknownRequest()
446 anqpElementMap.put(ANQPElementType.ANQPDomName, in anqpResponseSuccessWithUnknownRequest()
828 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in getANQPElementsWithMatchFound()
829 anqpElementMap.put(ANQPElementType.ANQPDomName, in getANQPElementsWithMatchFound()
1027 Map<ANQPElementType, ANQPElement> anqpElementMapOfAp1 = new HashMap<>(); in getMatchingOsuProvidersWithMatch()
1032 Map<ANQPElementType, ANQPElement> anqpElementMapOfAp2 = new HashMap<>(); in getMatchingOsuProvidersWithMatch()
1074 anqpElementMapOfAp1.put(ANQPElementType.HSOSUProviders, in getMatchingOsuProvidersWithMatch()
[all …]
DANQPDataTest.java64 Map<Constants.ANQPElementType, ANQPElement> elements = data.getElements(); in createWithNullElements()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DANQPParserTest.java281 ANQPParser.parseElement(Constants.ANQPElementType.ANQPVenueName, buffer)); in parseVenueNameElement()
303 ANQPParser.parseElement(Constants.ANQPElementType.ANQPIPAddrAvailability, buffer)); in parseIPAddressTypeAvailabilityElement()
319 ANQPParser.parseElement(Constants.ANQPElementType.ANQPDomName, buffer)); in parseDomainNameElement()
336 ANQPParser.parseElement(Constants.ANQPElementType.ANQPRoamingConsortium, buffer)); in parseRoamingConsortium()
353 ANQPParser.parseElement(Constants.ANQPElementType.ANQPNAIRealm, buffer)); in parseNAIRealmElement()
374 ANQPParser.parseElement(Constants.ANQPElementType.ANQP3GPPNetwork, buffer)); in parseThreeGPPNetworkElement()
387 ANQPParser.parseElement(Constants.ANQPElementType.ANQPVendorSpec, buffer); in parseNonHS20VendorSpecificElement()
412 Constants.ANQPElementType.ANQPVendorSpec, ByteBuffer.wrap(data))); in parseVendorSpecificElementWithHSFriendlyName()
434 ANQPParser.parseHS20Element(Constants.ANQPElementType.HSFriendlyName, buffer)); in parseHSFrendlyNameElement()
461 ANQPParser.parseHS20Element(Constants.ANQPElementType.HSWANMetrics, buffer)); in parseHSWANMetricsElement()
[all …]
DRawByteElementTest.java32 private static final Constants.ANQPElementType TEST_ELEMENT_ID =
33 Constants.ANQPElementType.HSOSUProviders;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanDetail.java89 public void propagateANQPInfo(Map<Constants.ANQPElementType, ANQPElement> anqpElements) { in propagateANQPInfo() argument
95 Constants.ANQPElementType.HSFriendlyName); in propagateANQPInfo()
102 Constants.ANQPElementType.ANQPVenueName))); in propagateANQPInfo()
108 .get(Constants.ANQPElementType.HSOSUProviders); in propagateANQPInfo()

12