/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | Constants.java | 53 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 …]
|
D | ANQPElement.java | 7 private final Constants.ANQPElementType mID; 9 protected ANQPElement(Constants.ANQPElementType id) { in ANQPElement() 13 public Constants.ANQPElementType getID() { in getID()
|
D | ANQPParser.java | 58 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()
|
D | RawByteElement.java | 31 public RawByteElement(Constants.ANQPElementType infoID, byte[] payload) { in RawByteElement() 42 public static RawByteElement parse(Constants.ANQPElementType infoID, ByteBuffer payload) { in parse()
|
D | GenericBlobElement.java | 13 public GenericBlobElement(Constants.ANQPElementType infoID, ByteBuffer payload) { in GenericBlobElement()
|
D | HSConnectionCapabilityElement.java | 41 super(Constants.ANQPElementType.HSConnCapability); in HSConnectionCapabilityElement()
|
D | DomainNameElement.java | 45 super(Constants.ANQPElementType.ANQPDomName); in DomainNameElement()
|
D | NAIRealmElement.java | 43 super(Constants.ANQPElementType.ANQPNAIRealm); in NAIRealmElement()
|
D | HSFriendlyNameElement.java | 38 super(Constants.ANQPElementType.HSFriendlyName); in HSFriendlyNameElement()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | ANQPRequestManagerTest.java | 51 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 …]
|
D | PasspointEventHandlerTest.java | 69 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 …]
|
D | PasspointNetworkScoreTest.java | 30 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 …]
|
D | PasspointProviderTest.java | 45 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() 507 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in matchFQDNWithNAIRealmMismatch() 508 anqpElementMap.put(ANQPElementType.ANQPDomName, in matchFQDNWithNAIRealmMismatch() 510 anqpElementMap.put(ANQPElementType.ANQPNAIRealm, in matchFQDNWithNAIRealmMismatch() 540 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in matchFQDNWith3GPPNetworkDomainName() [all …]
|
D | ANQPDataTest.java | 64 Map<Constants.ANQPElementType, ANQPElement> elements = data.getElements(); in createWithNullElements()
|
D | PasspointManagerTest.java | 97 import com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType; 464 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in anqpResponseSuccess() 465 anqpElementMap.put(ANQPElementType.ANQPDomName, in anqpResponseSuccess() 483 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in anqpResponseSuccessWithUnknownRequest() 484 anqpElementMap.put(ANQPElementType.ANQPDomName, in anqpResponseSuccessWithUnknownRequest() 944 Map<ANQPElementType, ANQPElement> anqpElementMap = new HashMap<>(); in getANQPElementsWithMatchFound() 945 anqpElementMap.put(ANQPElementType.ANQPDomName, in getANQPElementsWithMatchFound() 1143 Map<ANQPElementType, ANQPElement> anqpElementMapOfAp1 = new HashMap<>(); in getMatchingOsuProvidersWithMatch() 1148 Map<ANQPElementType, ANQPElement> anqpElementMapOfAp2 = new HashMap<>(); in getMatchingOsuProvidersWithMatch() 1190 anqpElementMapOfAp1.put(ANQPElementType.HSOSUProviders, in getMatchingOsuProvidersWithMatch() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | AnqpEvent.java | 30 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 …]
|
D | ANQPRequestManager.java | 70 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 …]
|
D | ANQPData.java | 39 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()
|
D | PasspointEventHandler.java | 51 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()
|
D | PasspointNetworkScore.java | 24 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()
|
D | PasspointProvider.java | 37 import com.android.server.wifi.hotspot2.anqp.Constants.ANQPElementType; 334 public PasspointMatch match(Map<ANQPElementType, ANQPElement> anqpElements, in match() argument 342 (ThreeGPPNetworkElement) anqpElements.get(ANQPElementType.ANQP3GPPNetwork), in match() 346 + anqpElements.get(ANQPElementType.ANQP3GPPNetwork)); in match() 353 (NAIRealmElement) anqpElements.get(ANQPElementType.ANQPNAIRealm), in match() 646 Map<ANQPElementType, ANQPElement> anqpElements, in matchFqdnAndRcoi() argument 650 (DomainNameElement) anqpElements.get(ANQPElementType.ANQPDomName), in matchFqdnAndRcoi() 663 (DomainNameElement) anqpElements.get(ANQPElementType.ANQPDomName), in matchFqdnAndRcoi() 679 anqpElements.get(ANQPElementType.ANQPRoamingConsortium), in matchFqdnAndRcoi() 690 anqpElements.get(ANQPElementType.ANQPRoamingConsortium), in matchFqdnAndRcoi() [all …]
|
D | NetworkDetail.java | 119 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()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | ANQPParserTest.java | 281 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 …]
|
D | RawByteElementTest.java | 32 private static final Constants.ANQPElementType TEST_ELEMENT_ID = 33 Constants.ANQPElementType.HSOSUProviders;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ScanDetail.java | 89 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()
|