Home
last modified time | relevance | path

Searched refs:InformationElement (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DInformationElementUtilTest.java25 import android.net.wifi.ScanResult.InformationElement;
90 InformationElement[] results = in parseInformationElements_withEmptyByteArray()
102 InformationElement[] results = in parseInformationElements_withNullBytes()
114 InformationElement[] results = in parseInformationElements_withZeroLengthAndExtensionId()
129 InformationElement[] results = in parseInformationElements_withZeroLengthAndExtensionIdAfterAnotherIe()
133 InformationElement.EID_BSS_LOAD, results[0].id); in parseInformationElements_withZeroLengthAndExtensionIdAfterAnotherIe()
147 InformationElement[] results = in parseInformationElements_withSingleElement()
150 assertEquals("Parsed result should be a ssid", InformationElement.EID_SSID, results[0].id); in parseInformationElements_withSingleElement()
170 InformationElement[] results = in parseInformationElements_withExtraPadding()
173 assertEquals("Parsed result should be a ssid", InformationElement.EID_SSID, results[0].id); in parseInformationElements_withExtraPadding()
[all …]
DScanResultUtilTest.java22 import android.net.wifi.ScanResult.InformationElement;
52 input.informationElements = new InformationElement[] { in convertScanResult()
53 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResult()
68 input.informationElements = new InformationElement[] { in convertScanResultWithAnqpLines()
69 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResultWithAnqpLines()
83 input.informationElements = new InformationElement[] { in convertScanResultWithoutWifiSsid()
84 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResultWithoutWifiSsid()
97 scanResult.informationElements = new InformationElement[] { in testNetworkCreationFromScanResult()
98 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testNetworkCreationFromScanResult()
197 input.informationElements = new InformationElement[] { in testPskSha256SaeTransitionModeCheck()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DInformationElementUtil.java19 import android.net.wifi.ScanResult.InformationElement;
43 public static InformationElement[] parseInformationElements(byte[] bytes) { in parseInformationElements()
45 return new InformationElement[0]; in parseInformationElements()
49 ArrayList<InformationElement> infoElements = new ArrayList<>(); in parseInformationElements()
56 if (elementLength > data.remaining() || (eid == InformationElement.EID_SSID in parseInformationElements()
63 if (eid == InformationElement.EID_SSID) { in parseInformationElements()
65 } else if (eid == InformationElement.EID_EXTENSION_PRESENT) { in parseInformationElements()
74 InformationElement ie = new InformationElement(); in parseInformationElements()
81 return infoElements.toArray(new InformationElement[infoElements.size()]); in parseInformationElements()
90 public static RoamingConsortium getRoamingConsortiumIE(InformationElement[] ies) { in getRoamingConsortiumIE()
[all …]
DScanResultUtil.java49 ScanResult.InformationElement[] ieArray = (null != scanResult.informationElements) in toScanDetail()
51 : new ScanResult.InformationElement[0]; in toScanDetail()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DNetworkDetail.java133 public NetworkDetail(String bssid, ScanResult.InformationElement[] infoElements, in NetworkDetail()
182 for (ScanResult.InformationElement ie : infoElements) { in NetworkDetail()
185 case ScanResult.InformationElement.EID_SSID: in NetworkDetail()
188 case ScanResult.InformationElement.EID_BSS_LOAD: in NetworkDetail()
191 case ScanResult.InformationElement.EID_HT_OPERATION: in NetworkDetail()
194 case ScanResult.InformationElement.EID_VHT_OPERATION: in NetworkDetail()
197 case ScanResult.InformationElement.EID_HT_CAPABILITIES: in NetworkDetail()
200 case ScanResult.InformationElement.EID_VHT_CAPABILITIES: in NetworkDetail()
203 case ScanResult.InformationElement.EID_INTERWORKING: in NetworkDetail()
206 case ScanResult.InformationElement.EID_ROAMING_CONSORTIUM: in NetworkDetail()
[all …]
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/shared/
DProvisioningConfiguration.java265 private final List<InformationElement> mInformationElements;
271 public static class InformationElement { class in ProvisioningConfiguration.ScanResultInfo
276 public InformationElement(int id, @NonNull ByteBuffer payload) { in InformationElement() method in ProvisioningConfiguration.ScanResultInfo.InformationElement
299 if (!(o instanceof InformationElement)) return false; in equals()
300 InformationElement other = (InformationElement) o; in equals()
329 public static InformationElement fromStableParcelable(InformationElementParcelable p) { in fromStableParcelable()
331 return new InformationElement(p.id, in fromStableParcelable()
337 @NonNull List<InformationElement> informationElements) { in ScanResultInfo()
366 public List<InformationElement> getInformationElements() { in getInformationElements()
376 for (InformationElement ie : mInformationElements) { in toString()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/
DScanResult.java900 public static class InformationElement implements Parcelable { class in ScanResult
964 public InformationElement() { in InformationElement() method in ScanResult.InformationElement
968 public InformationElement(int id, int idExt, byte[] bytes) { in InformationElement() method in ScanResult.InformationElement
974 public InformationElement(@NonNull InformationElement rhs) { in InformationElement() method in ScanResult.InformationElement
1017 public static final @NonNull Creator<InformationElement> CREATOR =
1018 new Creator<InformationElement>() {
1019 public InformationElement createFromParcel(Parcel in) {
1020 InformationElement informationElement = new InformationElement();
1027 public InformationElement[] newArray(int size) {
1028 return new InformationElement[size];
[all …]
DWifiInfo.java420 private List<ScanResult.InformationElement> mInformationElements;
1333 ScanResult.InformationElement.CREATOR);
1370 public void setInformationElements(@Nullable List<ScanResult.InformationElement> infoElements) { in setInformationElements()
1389 public List<ScanResult.InformationElement> getInformationElements() { in getInformationElements()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanResults.java84 public static ScanResult.InformationElement generateSsidIe(String ssid) { in generateSsidIe()
85 ScanResult.InformationElement ie = new ScanResult.InformationElement(); in generateSsidIe()
86 ie.id = ScanResult.InformationElement.EID_SSID; in generateSsidIe()
91 public static byte[] generateIERawDatafromScanResultIE(ScanResult.InformationElement[] ies) { in generateIERawDatafromScanResultIE()
126 ScanResult.InformationElement[] ie; in generateNativeResults()
128 ie = new ScanResult.InformationElement[1]; in generateNativeResults()
131 ie = new ScanResult.InformationElement[0]; in generateNativeResults()
DAvailableNetworkNotifierTest.java26 import android.net.wifi.ScanResult.InformationElement;
107 InformationElement ie = new InformationElement(); in testConnectToUnknownAkmNetwork()
108 ie.id = InformationElement.EID_SSID; in testConnectToUnknownAkmNetwork()
110 result.informationElements = new InformationElement[] { ie }; in testConnectToUnknownAkmNetwork()
DWifiHealthMonitorTest.java36 import android.net.wifi.ScanResult.InformationElement;
282 scanDatas[0].getResults()[0].informationElements = new InformationElement[0]; in mockScanData()
283 scanDatas[0].getResults()[1].informationElements = new InformationElement[0]; in mockScanData()
284 scanDatas[0].getResults()[2].informationElements = new InformationElement[0]; in mockScanData()
285 scanDatas[0].getResults()[3].informationElements = new InformationElement[0]; in mockScanData()
294 scanDatas[0].getResults()[0].informationElements = new InformationElement[0]; in mockScanDataAbove2GOnly()
295 scanDatas[0].getResults()[1].informationElements = new InformationElement[0]; in mockScanDataAbove2GOnly()
296 scanDatas[0].getResults()[2].informationElements = new InformationElement[0]; in mockScanDataAbove2GOnly()
297 scanDatas[0].getResults()[3].informationElements = new InformationElement[0]; in mockScanDataAbove2GOnly()
DWifiConnectivityManagerTest.java65 import android.net.wifi.ScanResult.InformationElement;
375 scanResults[0].informationElements = new InformationElement[1]; in mockWifiScanner()
376 scanResults[0].informationElements[0] = new InformationElement(); in mockWifiScanner()
377 scanResults[0].informationElements[0].id = InformationElement.EID_SSID; in mockWifiScanner()
3483 scanDatas[0].getResults()[0].informationElements = new InformationElement[0]; in createScanDataWithDifferentRadioChainInfos()
3484 scanDatas[0].getResults()[1].informationElements = new InformationElement[0]; in createScanDataWithDifferentRadioChainInfos()
3485 scanDatas[0].getResults()[2].informationElements = new InformationElement[0]; in createScanDataWithDifferentRadioChainInfos()
3486 scanDatas[0].getResults()[3].informationElements = new InformationElement[0]; in createScanDataWithDifferentRadioChainInfos()
DClientModeImplTest.java357 ScanResult.InformationElement[] ie = new ScanResult.InformationElement[1]; in getGoogleGuestScanDetail()
941 ScanResult.InformationElement ie = createIE(ScanResult.InformationElement.EID_SSID, in connect()
943 scanResult.informationElements = new ScanResult.InformationElement[]{ie}; in connect()
5051 private static ScanResult.InformationElement createIE(int id, byte[] bytes) { in createIE()
5052 ScanResult.InformationElement ie = new ScanResult.InformationElement(); in createIE()
5094 ScanResult.InformationElement ie = createIE(ScanResult.InformationElement.EID_SSID, in setupFilsEnabledApInScanResult()
5096 scanResult.informationElements = new ScanResult.InformationElement[]{ie}; in setupFilsEnabledApInScanResult()
DWifiNetworkSelectorTestUtil.java244 ScanResult.InformationElement[] ies = in buildScanDetailsWithNetworkDetails()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/
DWifiRttManagerTest.java461 ScanResult.InformationElement htCap = new ScanResult.InformationElement(); in testResponderPreambleSelection()
462 htCap.id = ScanResult.InformationElement.EID_HT_CAPABILITIES; in testResponderPreambleSelection()
464 ScanResult.InformationElement vhtCap = new ScanResult.InformationElement(); in testResponderPreambleSelection()
465 vhtCap.id = ScanResult.InformationElement.EID_VHT_CAPABILITIES; in testResponderPreambleSelection()
467 ScanResult.InformationElement vsa = new ScanResult.InformationElement(); in testResponderPreambleSelection()
468 vsa.id = ScanResult.InformationElement.EID_VSA; in testResponderPreambleSelection()
483 scan.informationElements = new ScanResult.InformationElement[2]; in testResponderPreambleSelection()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DScanResultTest.java26 import android.net.wifi.ScanResult.InformationElement;
216 writeScanResult.informationElements = new ScanResult.InformationElement[2]; in verifyScanResultParcelWithInformationElement()
217 writeScanResult.informationElements[0] = new ScanResult.InformationElement(); in verifyScanResultParcelWithInformationElement()
218 writeScanResult.informationElements[0].id = InformationElement.EID_HT_OPERATION; in verifyScanResultParcelWithInformationElement()
221 writeScanResult.informationElements[1] = new ScanResult.InformationElement(); in verifyScanResultParcelWithInformationElement()
222 writeScanResult.informationElements[1].id = InformationElement.EID_EXTENSION_PRESENT; in verifyScanResultParcelWithInformationElement()
223 writeScanResult.informationElements[1].idExt = InformationElement.EID_EXT_HE_OPERATION; in verifyScanResultParcelWithInformationElement()
DWifiInfoTest.java67 List<ScanResult.InformationElement> informationElements) { in makeWifiInfoForNoRedactions()
95 List<ScanResult.InformationElement> informationElements) { in assertNoRedaction()
140 List<ScanResult.InformationElement> informationElements = generateIes(); in testWifiInfoRedactNoRedactions()
683 private static List<ScanResult.InformationElement> generateIes() { in generateIes()
684 List<ScanResult.InformationElement> informationElements = new ArrayList<>(); in generateIes()
685 ScanResult.InformationElement informationElement = new ScanResult.InformationElement(); in generateIes()
686 informationElement.id = ScanResult.InformationElement.EID_HT_OPERATION; in generateIes()
691 informationElement = new ScanResult.InformationElement(); in generateIes()
692 informationElement.id = ScanResult.InformationElement.EID_EXTENSION_PRESENT; in generateIes()
693 informationElement.idExt = ScanResult.InformationElement.EID_EXT_HE_OPERATION; in generateIes()
/packages/modules/Wifi/framework/java/android/net/wifi/rtt/
DResponderConfig.java19 import static android.net.wifi.ScanResult.InformationElement.EID_EXTENSION_PRESENT;
20 import static android.net.wifi.ScanResult.InformationElement.EID_EXT_HE_CAPABILITIES;
21 import static android.net.wifi.ScanResult.InformationElement.EID_HT_CAPABILITIES;
22 import static android.net.wifi.ScanResult.InformationElement.EID_VHT_CAPABILITIES;
318 for (ScanResult.InformationElement ie : scanResult.informationElements) { in fromScanResult()
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/
DProvisioningConfigurationTest.java62 final ScanResultInfo.InformationElement ie = in makeScanResultInfo()
63 new ScanResultInfo.InformationElement(0xdd /* vendor specific IE id */, in makeScanResultInfo()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiShellCommand.java961 ScanResult.InformationElement ieSSid = new ScanResult.InformationElement( in onCommand()
962 ScanResult.InformationElement.EID_SSID, in onCommand()
965 ScanResult.InformationElement[] ies = in onCommand()
966 new ScanResult.InformationElement[]{ieSSid}; in onCommand()
DScanDetail.java45 ScanResult.InformationElement[] informationElements, List<String> anqpLines, in ScanDetail()
DClientModeImpl.java2459 private List<ScanResult.InformationElement> findMatchingInfoElements(@Nullable String bssid) {
6347 final List<ScanResultInfo.InformationElement> ies =
6348 new ArrayList<ScanResultInfo.InformationElement>();
6349 for (ScanResult.InformationElement ie : scanResult.getInformationElements()) {
6350 ScanResultInfo.InformationElement scanResultInfoIe =
6351 new ScanResultInfo.InformationElement(ie.getId(), ie.getBytes());
/packages/modules/Wifi/framework/api/
Dcurrent.txt27 …method @NonNull public java.util.List<android.net.wifi.ScanResult.InformationElement> getInformati…
62 public static class ScanResult.InformationElement implements android.os.Parcelable {
63 …ctor public ScanResult.InformationElement(@NonNull android.net.wifi.ScanResult.InformationElement);
69 …static final android.os.Parcelable.Creator<android.net.wifi.ScanResult.InformationElement> CREATOR;
297 …method @Nullable public java.util.List<android.net.wifi.ScanResult.InformationElement> getInformat…
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java66 import android.net.shared.ProvisioningConfiguration.ScanResultInfo.InformationElement;
1631 for (InformationElement ie : scanResultInfo.getInformationElements()) { in getVendorSpecificIEs()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java2171 final ScanResultInfo.InformationElement ie =
2172 new ScanResultInfo.InformationElement(id /* IE id */, payload);

12