Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DConstants.java50 public enum ANQPElementType { enum in Constants
70 private static final Map<Integer, ANQPElementType> sAnqpMap = new HashMap<>();
71 private static final Map<Integer, ANQPElementType> sHs20Map = new HashMap<>();
72 private static final Map<ANQPElementType, Integer> sRevAnqpmap =
73 new EnumMap<>(ANQPElementType.class);
74 private static final Map<ANQPElementType, Integer> sRevHs20map =
75 new EnumMap<>(ANQPElementType.class);
78 sAnqpMap.put(ANQP_QUERY_LIST, ANQPElementType.ANQPQueryList); in sAnqpMap.put()
79 sAnqpMap.put(ANQP_VENUE_NAME, ANQPElementType.ANQPVenueName); in sAnqpMap.put()
80 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()
91 public static ANQPElement parseHS20Element(Constants.ANQPElementType infoID, in parseHS20Element()
130 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()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPRequestManagerTest.java62 private static final List<Constants.ANQPElementType> R1_ANQP_WITHOUT_RC = Arrays.asList(
63 Constants.ANQPElementType.ANQPVenueName,
64 Constants.ANQPElementType.ANQPIPAddrAvailability,
65 Constants.ANQPElementType.ANQPNAIRealm,
66 Constants.ANQPElementType.ANQP3GPPNetwork,
67 Constants.ANQPElementType.ANQPDomName,
68 Constants.ANQPElementType.HSFriendlyName,
69 Constants.ANQPElementType.HSWANMetrics,
70 Constants.ANQPElementType.HSConnCapability);
72 private static final List<Constants.ANQPElementType> R1_ANQP_WITH_RC = Arrays.asList(
[all …]
DANQPDataTest.java85 Map<Constants.ANQPElementType, ANQPElement> elements = data.getElements(); in createWithNullElements()
118 Map<Constants.ANQPElementType, ANQPElement> anqpList1 = new HashMap<>(); in createWithElementsAndUpdate()
124 anqpList1.put(Constants.ANQPElementType.ANQPVenueName, venueNameElement); in createWithElementsAndUpdate()
128 assertTrue(data.getElements().get(Constants.ANQPElementType.ANQPVenueName) in createWithElementsAndUpdate()
132 Map<Constants.ANQPElementType, ANQPElement> anqpList2 = new HashMap<>(); in createWithElementsAndUpdate()
136 anqpList2.put(Constants.ANQPElementType.ANQPVenueUrl, venueUrlElement); in createWithElementsAndUpdate()
142 anqpList2.put(Constants.ANQPElementType.ANQPVenueName, venueNameElement); in createWithElementsAndUpdate()
145 assertTrue(data.getElements().get(Constants.ANQPElementType.ANQPVenueName) in createWithElementsAndUpdate()
147 assertTrue(data.getElements().get(Constants.ANQPElementType.ANQPVenueUrl) in createWithElementsAndUpdate()
158 Map<Constants.ANQPElementType, ANQPElement> anqpList = new HashMap<>(); in testDataLifetime()
[all …]
DPasspointProviderTest.java52 import com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType;
674 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in matchFQDNWithoutNAIRealm()
675 anqpElementMap.put(ANQPElementType.ANQPDomName, in matchFQDNWithoutNAIRealm()
696 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in matchFQDNWithNAIRealmMatch()
697 anqpElementMap.put(ANQPElementType.ANQPDomName, in matchFQDNWithNAIRealmMatch()
699 anqpElementMap.put(ANQPElementType.ANQPNAIRealm, in matchFQDNWithNAIRealmMatch()
723 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in matchFQDNWithNAIRealmMismatch()
724 anqpElementMap.put(ANQPElementType.ANQPDomName, in matchFQDNWithNAIRealmMismatch()
726 anqpElementMap.put(ANQPElementType.ANQPNAIRealm, in matchFQDNWithNAIRealmMismatch()
749 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in matchFQDNWith3GPPNetworkDomainName()
[all …]
DPasspointEventHandlerTest.java74 List<Constants.ANQPElementType> elementToRequest = in requestR1AnqpElement()
75 Arrays.asList(Constants.ANQPElementType.ANQPRoamingConsortium); in requestR1AnqpElement()
78 Constants.ANQPElementType.ANQPRoamingConsortium))); in requestR1AnqpElement()
97 List<Constants.ANQPElementType> elementToRequest = in requestR2AnqpElement()
98 Arrays.asList(Constants.ANQPElementType.HSFriendlyName); in requestR2AnqpElement()
102 Constants.ANQPElementType.HSFriendlyName))); in requestR2AnqpElement()
120 List<Constants.ANQPElementType> elementToRequest = in requestMixAnqpElements()
121 Arrays.asList(Constants.ANQPElementType.ANQPRoamingConsortium, in requestMixAnqpElements()
122 Constants.ANQPElementType.HSFriendlyName); in requestMixAnqpElements()
125 Constants.ANQPElementType.ANQPRoamingConsortium))); in requestMixAnqpElements()
[all …]
DAnqpCacheTest.java151 Map<Constants.ANQPElementType, ANQPElement> anqpList1 = new HashMap<>(); in addThenUpdateAndGetEntry()
158 anqpList1.put(Constants.ANQPElementType.ANQPVenueName, venueNameElement); in addThenUpdateAndGetEntry()
163 assertTrue(data.getElements().get(Constants.ANQPElementType.ANQPVenueName) in addThenUpdateAndGetEntry()
167 Map<Constants.ANQPElementType, ANQPElement> anqpList2 = new HashMap<>(); in addThenUpdateAndGetEntry()
173 anqpList2.put(Constants.ANQPElementType.ANQPVenueUrl, venueUrlElement); in addThenUpdateAndGetEntry()
176 assertTrue(data.getElements().get(Constants.ANQPElementType.ANQPVenueName) in addThenUpdateAndGetEntry()
178 assertTrue(data.getElements().get(Constants.ANQPElementType.ANQPVenueUrl) in addThenUpdateAndGetEntry()
DPasspointNetworkNominateHelperTest.java60 import com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType;
564 Map<ANQPElementType, ANQPElement> anqpElements = new HashMap<>(); in evaluateScansWithNetworkMatchingHomeProviderUseAnqpLinkDown()
565 anqpElements.put(ANQPElementType.HSWANMetrics, wm); in evaluateScansWithNetworkMatchingHomeProviderUseAnqpLinkDown()
598 Map<ANQPElementType, ANQPElement> anqpElements = new HashMap<>(); in evaluateScansWithNetworkMatchingHomeProviderNotUseAnqpLinkDown()
599 anqpElements.put(ANQPElementType.HSWANMetrics, wm); in evaluateScansWithNetworkMatchingHomeProviderNotUseAnqpLinkDown()
636 Map<ANQPElementType, ANQPElement> anqpElements = new HashMap<>(); in evaluateScansWithNetworkMatchingHomeProviderNotUseAnqpLinkDownInFqdnList()
637 anqpElements.put(ANQPElementType.HSWANMetrics, wm); in evaluateScansWithNetworkMatchingHomeProviderNotUseAnqpLinkDownInFqdnList()
823 Map<ANQPElementType, ANQPElement> anqpElements = new HashMap<>(); in evaluateScansWithNetworkMatchingHomeProviderWithUninitializedWanMetricsAnqpElement()
824 anqpElements.put(ANQPElementType.HSWANMetrics, wanMetricsElement); in evaluateScansWithNetworkMatchingHomeProviderWithUninitializedWanMetricsAnqpElement()
897 Map<ANQPElementType, ANQPElement> anqpElements = new HashMap<>(); in updateScansWithNetworkMatchingHomeProviderWithAnqpLinkDown()
[all …]
DPasspointManagerTest.java104 import com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType;
522 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in anqpResponseSuccess()
523 anqpElementMap.put(ANQPElementType.ANQPDomName, in anqpResponseSuccess()
541 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in anqpResponseSuccessWithUnknownRequest()
542 anqpElementMap.put(ANQPElementType.ANQPDomName, in anqpResponseSuccessWithUnknownRequest()
1176 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in getANQPElementsWithMatchFound()
1177 anqpElementMap.put(ANQPElementType.ANQPDomName, in getANQPElementsWithMatchFound()
1501 Map<ANQPElementType, ANQPElement> anqpElementMapOfAp1 = new HashMap<>(); in getMatchingOsuProvidersWithMatch()
1506 Map<ANQPElementType, ANQPElement> anqpElementMapOfAp2 = new HashMap<>(); in getMatchingOsuProvidersWithMatch()
1547 anqpElementMapOfAp1.put(ANQPElementType.HSOSUProviders, in getMatchingOsuProvidersWithMatch()
[all …]
/packages/modules/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.java84 private static final List<Constants.ANQPElementType> R1_ANQP_BASE_SET = Arrays.asList(
85 Constants.ANQPElementType.ANQPVenueName,
86 Constants.ANQPElementType.ANQPIPAddrAvailability,
87 Constants.ANQPElementType.ANQPNAIRealm,
88 Constants.ANQPElementType.ANQP3GPPNetwork,
89 Constants.ANQPElementType.ANQPDomName,
90 Constants.ANQPElementType.HSFriendlyName,
91 Constants.ANQPElementType.HSWANMetrics,
92 Constants.ANQPElementType.HSConnCapability);
94 private static final List<Constants.ANQPElementType> R2_ANQP_BASE_SET = Arrays.asList(
[all …]
DANQPData.java41 private final Map<Constants.ANQPElementType, ANQPElement> mANQPElements;
44 public ANQPData(Clock clock, Map<Constants.ANQPElementType, ANQPElement> anqpElements) { in ANQPData() argument
53 (HSWanMetricsElement) anqpElements.get(Constants.ANQPElementType.HSWANMetrics); in ANQPData()
74 public void update(Map<Constants.ANQPElementType, ANQPElement> anqpElements) { in update() argument
84 public Map<Constants.ANQPElementType, ANQPElement> getElements() { in getElements()
105 for (Map.Entry<Constants.ANQPElementType, ANQPElement> entry: mANQPElements.entrySet()) { in toString()
DPasspointEventHandler.java52 Map<Constants.ANQPElementType, ANQPElement> anqpElements); in onANQPResponse() argument
81 public boolean requestANQP(long bssid, List<Constants.ANQPElementType> elements) { in requestANQP()
156 List<Constants.ANQPElementType> querySet) { in buildAnqpIdSet()
159 for (Constants.ANQPElementType elementType : querySet) { in buildAnqpIdSet()
DPasspointProvider.java48 import com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType;
466 public PasspointMatch match(Map<ANQPElementType, ANQPElement> anqpElements, in match() argument
499 (ThreeGPPNetworkElement) anqpElements.get(ANQPElementType.ANQP3GPPNetwork), in match()
503 + anqpElements.get(ANQPElementType.ANQP3GPPNetwork)); in match()
510 (NAIRealmElement) anqpElements.get(ANQPElementType.ANQPNAIRealm), in match()
897 private PasspointMatch matchFqdnAndRcoi(Map<ANQPElementType, ANQPElement> anqpElements, in matchFqdnAndRcoi() argument
902 (DomainNameElement) anqpElements.get(ANQPElementType.ANQPDomName), in matchFqdnAndRcoi()
915 (DomainNameElement) anqpElements.get(ANQPElementType.ANQPDomName), in matchFqdnAndRcoi()
932 ANQPElementType.ANQPRoamingConsortium), in matchFqdnAndRcoi()
944 ANQPElementType.ANQPRoamingConsortium), in matchFqdnAndRcoi()
[all …]
DAnqpCache.java56 Map<Constants.ANQPElementType, ANQPElement> anqpElements) { in addEntry() argument
70 Map<Constants.ANQPElementType, ANQPElement> anqpElements) { in addOrUpdateEntry() argument
DNetworkDetail.java122 private final Map<Constants.ANQPElementType, ANQPElement> mANQPElements;
531 …private NetworkDetail(NetworkDetail base, Map<Constants.ANQPElementType, ANQPElement> anqpElements… in NetworkDetail() argument
572 public NetworkDetail complete(Map<Constants.ANQPElementType, ANQPElement> anqpElements) { in complete() argument
576 public boolean queriable(List<Constants.ANQPElementType> queryElements) { in queriable()
649 ANQPElement osuProviders = mANQPElements.get(Constants.ANQPElementType.HSOSUProviders); in getOsuProviders()
661 public Map<Constants.ANQPElementType, ANQPElement> getANQPElements() { in getANQPElements()
DPasspointManager.java161 Map<Constants.ANQPElementType, ANQPElement> anqpElements) { in onANQPResponse() argument
167 for (Constants.ANQPElementType type : anqpElements.keySet()) { in onANQPResponse()
181 if (anqpElements.containsKey(Constants.ANQPElementType.ANQPVenueUrl)) { in onANQPResponse()
946 + anqpEntry.getElements().get(Constants.ANQPElementType.ANQPDomName)); in getAllMatchedProviders()
1040 public Map<Constants.ANQPElementType, ANQPElement> getANQPElements(ScanResult scanResult) { in getANQPElements()
1120 Map<Constants.ANQPElementType, ANQPElement> anqpElements = getANQPElements(scanResult); in getMatchingOsuProviders()
1121 if (!anqpElements.containsKey(Constants.ANQPElementType.HSOSUProviders)) { in getMatchingOsuProviders()
1126 Constants.ANQPElementType.HSOSUProviders); in getMatchingOsuProviders()
1569 anqpEntry.getElements().get(Constants.ANQPElementType.ANQPVenueUrl); in getVenueUrl()
1574 anqpEntry.getElements().get(Constants.ANQPElementType.ANQPVenueName); in getVenueUrl()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DANQPParserTest.java283 ANQPParser.parseElement(Constants.ANQPElementType.ANQPVenueName, buffer)); in parseVenueNameElement()
305 ANQPParser.parseElement(Constants.ANQPElementType.ANQPIPAddrAvailability, buffer)); in parseIPAddressTypeAvailabilityElement()
321 ANQPParser.parseElement(Constants.ANQPElementType.ANQPDomName, buffer)); in parseDomainNameElement()
338 ANQPParser.parseElement(Constants.ANQPElementType.ANQPRoamingConsortium, buffer)); in parseRoamingConsortium()
355 ANQPParser.parseElement(Constants.ANQPElementType.ANQPNAIRealm, buffer)); in parseNAIRealmElement()
376 ANQPParser.parseElement(Constants.ANQPElementType.ANQP3GPPNetwork, buffer)); in parseThreeGPPNetworkElement()
389 ANQPParser.parseElement(Constants.ANQPElementType.ANQPVendorSpec, buffer); in parseNonHS20VendorSpecificElement()
414 Constants.ANQPElementType.ANQPVendorSpec, ByteBuffer.wrap(data))); in parseVendorSpecificElementWithHSFriendlyName()
436 ANQPParser.parseHS20Element(Constants.ANQPElementType.HSFriendlyName, buffer)); in parseHSFrendlyNameElement()
463 ANQPParser.parseHS20Element(Constants.ANQPElementType.HSWANMetrics, buffer)); in parseHSWANMetricsElement()
[all …]
DRawByteElementTest.java34 private static final Constants.ANQPElementType TEST_ELEMENT_ID =
35 Constants.ANQPElementType.HSOSUProviders;
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSupplicantStaIfaceCallbackHidlImpl.java18 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.ANQP3GPPNetwork;
19 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.ANQPDomName;
20 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.ANQPIPAddrAvailabilit…
21 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.ANQPNAIRealm;
22 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.ANQPRoamingConsortium;
23 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.ANQPVenueName;
24 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.ANQPVenueUrl;
25 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.HSConnCapability;
26 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.HSFriendlyName;
27 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.HSOSUProviders;
[all …]
DScanDetail.java152 public void propagateANQPInfo(Map<Constants.ANQPElementType, ANQPElement> anqpElements) { in propagateANQPInfo() argument
158 Constants.ANQPElementType.HSFriendlyName); in propagateANQPInfo()
165 Constants.ANQPElementType.ANQPVenueName))); in propagateANQPInfo()
171 .get(Constants.ANQPElementType.HSOSUProviders); in propagateANQPInfo()
DSupplicantStaIfaceCallbackAidlImpl.java19 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.ANQP3GPPNetwork;
20 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.ANQPDomName;
21 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.ANQPIPAddrAvailabilit…
22 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.ANQPNAIRealm;
23 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.ANQPRoamingConsortium;
24 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.ANQPVenueName;
25 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.ANQPVenueUrl;
26 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.HSConnCapability;
27 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.HSFriendlyName;
28 import static com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType.HSOSUProviders;
[all …]

12