/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | InformationElementUtilTest.java | 26 import android.net.wifi.ScanResult.InformationElement; 95 InformationElement[] results = in parseInformationElements_withEmptyByteArray() 107 InformationElement[] results = in parseInformationElements_withNullBytes() 119 InformationElement[] results = in parseInformationElements_withZeroLengthAndExtensionId() 134 InformationElement[] results = in parseInformationElements_withZeroLengthAndExtensionIdAfterAnotherIe() 138 InformationElement.EID_BSS_LOAD, results[0].id); in parseInformationElements_withZeroLengthAndExtensionIdAfterAnotherIe() 152 InformationElement[] results = in parseInformationElements_withSingleElement() 155 assertEquals("Parsed result should be a ssid", InformationElement.EID_SSID, results[0].id); in parseInformationElements_withSingleElement() 175 InformationElement[] results = in parseInformationElements_withExtraPadding() 178 assertEquals("Parsed result should be a ssid", InformationElement.EID_SSID, results[0].id); in parseInformationElements_withExtraPadding() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | NetworkDetailTest.java | 25 import android.net.wifi.ScanResult.InformationElement; 52 InformationElement[] ies = new InformationElement[] {}; in verifyFromScanResultNoMultiLinkIe() 70 InformationElement[] ies = new InformationElement[2]; in verifyFromScanResultRnrMultiIeNoLinksIe() 73 ies[0] = new InformationElement(); in verifyFromScanResultRnrMultiIeNoLinksIe() 74 ies[0].id = InformationElement.EID_RNR; in verifyFromScanResultRnrMultiIeNoLinksIe() 84 ies[1] = new InformationElement(); in verifyFromScanResultRnrMultiIeNoLinksIe() 85 ies[1].id = InformationElement.EID_EXTENSION_PRESENT; in verifyFromScanResultRnrMultiIeNoLinksIe() 86 ies[1].idExt = InformationElement.EID_EXT_MULTI_LINK; in verifyFromScanResultRnrMultiIeNoLinksIe() 109 InformationElement[] ies = new InformationElement[2]; in verifyFromScanResultRnrMultiIeWithLinks() 112 ies[0] = new InformationElement(); in verifyFromScanResultRnrMultiIeWithLinks() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | InformationElementUtil.java | 22 import android.net.wifi.ScanResult.InformationElement; 129 public static String toHexString(InformationElement e) { in toHexString() 132 if (e.id == InformationElement.EID_EXTENSION_PRESENT) { in toHexString() 141 public static InformationElement[] parseInformationElements(String data) { in parseInformationElements() 143 return new InformationElement[0]; in parseInformationElements() 150 return ((eid == InformationElement.EID_EXTENSION_PRESENT) in isFragmentable() 151 && (eidExt == InformationElement.EID_EXT_MULTI_LINK)); in isFragmentable() 154 public static InformationElement[] parseInformationElements(byte[] bytes) { in parseInformationElements() 156 return new InformationElement[0]; in parseInformationElements() 160 ArrayList<InformationElement> infoElements = new ArrayList<>(); in parseInformationElements() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/util/ |
D | ScanResultUtilTest.java | 26 import android.net.wifi.ScanResult.InformationElement; 57 scanResult.informationElements = new InformationElement[] { in testNetworkCreationFromScanResult() 58 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testNetworkCreationFromScanResult() 159 new InformationElement[] { in testGenerateSecurityParamsListFromScanResult() 160 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testGenerateSecurityParamsListFromScanResult() 331 input.informationElements = new InformationElement[] { in testPskSha256SaeTransitionModeCheck() 332 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testPskSha256SaeTransitionModeCheck() 358 input.informationElements = new InformationElement[] { in testPskSaeTransitionModeCheck() 359 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testPskSaeTransitionModeCheck() 385 input.informationElements = new InformationElement[] { in testPskNotInTransitionModeCheck() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | NetworkDetail.java | 174 public NetworkDetail(String bssid, ScanResult.InformationElement[] infoElements, in NetworkDetail() 177 infoElements = new ScanResult.InformationElement[0]; in NetworkDetail() 233 for (ScanResult.InformationElement ie : infoElements) { in NetworkDetail() 236 case ScanResult.InformationElement.EID_SSID: in NetworkDetail() 239 case ScanResult.InformationElement.EID_BSS_LOAD: in NetworkDetail() 242 case ScanResult.InformationElement.EID_HT_OPERATION: in NetworkDetail() 245 case ScanResult.InformationElement.EID_VHT_OPERATION: in NetworkDetail() 248 case ScanResult.InformationElement.EID_HT_CAPABILITIES: in NetworkDetail() 251 case ScanResult.InformationElement.EID_VHT_CAPABILITIES: in NetworkDetail() 254 case ScanResult.InformationElement.EID_INTERWORKING: in NetworkDetail() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/ |
D | WifiP2pManagerTest.java | 175 List<ScanResult.InformationElement> ies = new ArrayList<>(); in testSetVendorElementsWithNonVendorSpecificInformationElement() 176 ies.add(new ScanResult.InformationElement( in testSetVendorElementsWithNonVendorSpecificInformationElement() 177 ScanResult.InformationElement.EID_VSA, 0, new byte[4])); in testSetVendorElementsWithNonVendorSpecificInformationElement() 178 ies.add(new ScanResult.InformationElement( in testSetVendorElementsWithNonVendorSpecificInformationElement() 179 ScanResult.InformationElement.EID_SSID, 0, new byte[4])); in testSetVendorElementsWithNonVendorSpecificInformationElement() 196 List<ScanResult.InformationElement> ies = new ArrayList<>(); in testSetVendorElementsWithIeSizeOver255Bytes() 197 ies.add(new ScanResult.InformationElement( in testSetVendorElementsWithIeSizeOver255Bytes() 198 ScanResult.InformationElement.EID_VSA, 0, new byte[256])); in testSetVendorElementsWithIeSizeOver255Bytes() 215 List<ScanResult.InformationElement> ies = new ArrayList<>(); in testSetVendorElementsWithTotalSizeOver512Bytes() 216 ies.add(new ScanResult.InformationElement( in testSetVendorElementsWithTotalSizeOver512Bytes() [all …]
|
D | WifiP2pDeviceTest.java | 142 List<ScanResult.InformationElement> ies = new ArrayList<>(Arrays.asList( in testVendorElementsSetterGetter() 143 new ScanResult.InformationElement(ScanResult.InformationElement.EID_VSA, in testVendorElementsSetterGetter()
|
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/shared/ |
D | ProvisioningConfiguration.java | 327 private final List<InformationElement> mInformationElements; 333 public static class InformationElement { class in ProvisioningConfiguration.ScanResultInfo 338 public InformationElement(int id, @NonNull ByteBuffer payload) { in InformationElement() method in ProvisioningConfiguration.ScanResultInfo.InformationElement 361 if (!(o instanceof InformationElement)) return false; in equals() 362 InformationElement other = (InformationElement) o; in equals() 391 public static InformationElement fromStableParcelable(InformationElementParcelable p) { in fromStableParcelable() 393 return new InformationElement(p.id, in fromStableParcelable() 399 @NonNull List<InformationElement> informationElements) { in ScanResultInfo() 428 public List<InformationElement> getInformationElements() { in getInformationElements() 438 for (InformationElement ie : mInformationElements) { in toString() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScanResults.java | 84 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()
|
D | AvailableNetworkNotifierTest.java | 26 import android.net.wifi.ScanResult.InformationElement; 120 InformationElement ie = new InformationElement(); in testConnectToUnknownAkmNetwork() 121 ie.id = InformationElement.EID_SSID; in testConnectToUnknownAkmNetwork() 123 result.informationElements = new InformationElement[] { ie }; in testConnectToUnknownAkmNetwork()
|
D | WifiHealthMonitorTest.java | 36 import android.net.wifi.ScanResult.InformationElement; 296 scanDatas[0].getResults()[0].informationElements = new InformationElement[0]; in mockScanData() 297 scanDatas[0].getResults()[1].informationElements = new InformationElement[0]; in mockScanData() 298 scanDatas[0].getResults()[2].informationElements = new InformationElement[0]; in mockScanData() 299 scanDatas[0].getResults()[3].informationElements = new InformationElement[0]; in mockScanData() 308 scanDatas[0].getResults()[0].informationElements = new InformationElement[0]; in mockScanDataAbove2GOnly() 309 scanDatas[0].getResults()[1].informationElements = new InformationElement[0]; in mockScanDataAbove2GOnly() 310 scanDatas[0].getResults()[2].informationElements = new InformationElement[0]; in mockScanDataAbove2GOnly() 311 scanDatas[0].getResults()[3].informationElements = new InformationElement[0]; in mockScanDataAbove2GOnly()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceCallbackAidlImplTest.java | 1194 (byte) ScanResult.InformationElement.EID_VSA, 4, 0x1, 0x2, 0x3, 0x0, in testOnDeviceFoundWithVendorElements() 1195 (byte) ScanResult.InformationElement.EID_VSA, 4, 0x1, 0x2, 0x3, 0x1}; in testOnDeviceFoundWithVendorElements() 1196 ArrayList<ScanResult.InformationElement> expectedVsieList = new ArrayList<>(); in testOnDeviceFoundWithVendorElements() 1197 expectedVsieList.add(new ScanResult.InformationElement( in testOnDeviceFoundWithVendorElements() 1198 ScanResult.InformationElement.EID_VSA, 0, new byte[]{0x1, 0x2, 0x3, 0x0})); in testOnDeviceFoundWithVendorElements() 1199 expectedVsieList.add(new ScanResult.InformationElement( in testOnDeviceFoundWithVendorElements() 1200 ScanResult.InformationElement.EID_VSA, 0, new byte[]{0x1, 0x2, 0x3, 0x1})); in testOnDeviceFoundWithVendorElements() 1221 ScanResult.InformationElement.EID_SSID, 4, 0x1, 0x2, 0x3, 0x0, in testOnDeviceFoundWithVendorElementsWithNonVsie() 1222 (byte) ScanResult.InformationElement.EID_VSA, 4, 0x1, 0x2, 0x3, 0x1}; in testOnDeviceFoundWithVendorElementsWithNonVsie() 1224 ArrayList<ScanResult.InformationElement> expectedVsieList = new ArrayList<>(); in testOnDeviceFoundWithVendorElementsWithNonVsie() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/ |
D | WifiRttManagerTest.java | 624 ScanResult.InformationElement htCap = new ScanResult.InformationElement(); in testResponderPreambleSelection() 625 htCap.id = ScanResult.InformationElement.EID_HT_CAPABILITIES; in testResponderPreambleSelection() 627 ScanResult.InformationElement vhtCap = new ScanResult.InformationElement(); in testResponderPreambleSelection() 628 vhtCap.id = ScanResult.InformationElement.EID_VHT_CAPABILITIES; in testResponderPreambleSelection() 630 ScanResult.InformationElement vsa = new ScanResult.InformationElement(); in testResponderPreambleSelection() 631 vsa.id = ScanResult.InformationElement.EID_VSA; in testResponderPreambleSelection() 633 ScanResult.InformationElement heCap = new ScanResult.InformationElement(); in testResponderPreambleSelection() 634 heCap.id = ScanResult.InformationElement.EID_EXTENSION_PRESENT; in testResponderPreambleSelection() 635 heCap.idExt = ScanResult.InformationElement.EID_EXT_HE_CAPABILITIES; in testResponderPreambleSelection() 650 scan.informationElements = new ScanResult.InformationElement[2]; in testResponderPreambleSelection()
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | ScanResult.java | 1198 public static class InformationElement implements Parcelable { class in ScanResult 1292 public InformationElement() { in InformationElement() method in ScanResult.InformationElement 1302 public InformationElement(int id, int idExt, @NonNull byte[] bytes) { in InformationElement() method in ScanResult.InformationElement 1308 public InformationElement(@NonNull InformationElement rhs) { in InformationElement() method in ScanResult.InformationElement 1351 public static final @NonNull Creator<InformationElement> CREATOR = 1352 new Creator<InformationElement>() { 1353 public InformationElement createFromParcel(Parcel in) { 1354 InformationElement informationElement = new InformationElement(); 1361 public InformationElement[] newArray(int size) { 1362 return new InformationElement[size]; [all …]
|
D | SoftApConfiguration.java | 218 private final @NonNull List<ScanResult.InformationElement> mVendorElements; 470 @NonNull List<ScanResult.InformationElement> vendorElements, in SoftApConfiguration() 746 in.createTypedArrayList(ScanResult.InformationElement.CREATOR), 792 public List<ScanResult.InformationElement> getVendorElements() { in getVendorElements() 803 public List<ScanResult.InformationElement> getVendorElementsInternal() { in getVendorElementsInternal() 1308 private List<ScanResult.InformationElement> mVendorElements; 1510 @NonNull List<ScanResult.InformationElement> vendorElements) { in setVendorElements() 1514 for (ScanResult.InformationElement e : vendorElements) { in setVendorElements() 1515 if (e.id != ScanResult.InformationElement.EID_VSA) { in setVendorElements() 1519 new byte[]{ (byte) ScanResult.InformationElement.EID_VSA })); in setVendorElements() [all …]
|
D | WifiScanner.java | 529 private List<ScanResult.InformationElement> mVendorIes = new ArrayList<>(); 696 public void setVendorIes(@NonNull List<ScanResult.InformationElement> vendorIes) { in setVendorIes() 703 for (ScanResult.InformationElement e : vendorIes) { in setVendorIes() 704 if (e.id != ScanResult.InformationElement.EID_VSA) { in setVendorIes() 728 public @NonNull List<ScanResult.InformationElement> getVendorIes() { in getVendorIes() 806 ScanResult.InformationElement.CREATOR);
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | ScanResultTest.java | 30 import android.net.wifi.ScanResult.InformationElement; 240 writeScanResult.informationElements = new ScanResult.InformationElement[2]; in verifyScanResultParcelWithInformationElement() 241 writeScanResult.informationElements[0] = new ScanResult.InformationElement(); in verifyScanResultParcelWithInformationElement() 242 writeScanResult.informationElements[0].id = InformationElement.EID_HT_OPERATION; in verifyScanResultParcelWithInformationElement() 245 writeScanResult.informationElements[1] = new ScanResult.InformationElement(); in verifyScanResultParcelWithInformationElement() 246 writeScanResult.informationElements[1].id = InformationElement.EID_EXTENSION_PRESENT; in verifyScanResultParcelWithInformationElement() 247 writeScanResult.informationElements[1].idExt = InformationElement.EID_EXT_HE_OPERATION; in verifyScanResultParcelWithInformationElement()
|
D | WifiScannerTest.java | 626 List<ScanResult.InformationElement> vendorIesList = new ArrayList<>(); in testSetVendorIes() 627 ScanResult.InformationElement vendorIe1 = new ScanResult.InformationElement(221, 0, in testSetVendorIes() 629 ScanResult.InformationElement vendorIe2 = new ScanResult.InformationElement(255, 0, in testSetVendorIes() 631 ScanResult.InformationElement vendorIe3 = new ScanResult.InformationElement(221, 0, in testSetVendorIes() 634 ScanResult.InformationElement vendorIe4 = new ScanResult.InformationElement(221, 0, in testSetVendorIes() 636 ScanResult.InformationElement vendorIe5 = new ScanResult.InformationElement(221, 0, in testSetVendorIes()
|
D | WifiInfoTest.java | 142 List<ScanResult.InformationElement> informationElements) { in makeWifiInfoForRedactionTest() 177 List<ScanResult.InformationElement> informationElements) { in assertNoRedaction() 229 List<ScanResult.InformationElement> informationElements = generateIes(); in testWifiInfoRedactNoRedactions() 292 List<ScanResult.InformationElement> informationElements = generateIes(); in testWifiInfoRedactLocationSensitiveInfo() 355 List<ScanResult.InformationElement> informationElements = generateIes(); in testWifiInfoRedactLocalMacAddressInfo() 446 List<ScanResult.InformationElement> informationElements = generateIes(); in testWifiInfoRedactLocationAndLocalMacAddressSensitiveInfo() 824 private static List<ScanResult.InformationElement> generateIes() { in generateIes() 825 List<ScanResult.InformationElement> informationElements = new ArrayList<>(); in generateIes() 826 ScanResult.InformationElement informationElement = new ScanResult.InformationElement(); in generateIes() 827 informationElement.id = ScanResult.InformationElement.EID_HT_OPERATION; in generateIes() [all …]
|
D | SoftApConfigurationTest.java | 19 import static android.net.wifi.ScanResult.InformationElement.EID_VSA; 54 private static final List<ScanResult.InformationElement> TEST_TWO_VENDOR_ELEMENTS = 56 new ScanResult.InformationElement(EID_VSA, 0, new byte[]{ 1, 2, 3, 4 }), 57 new ScanResult.InformationElement( 62 private static final List<ScanResult.InformationElement> TEST_TWO_VENDOR_ELEMENTS_INVALID = 64 new ScanResult.InformationElement(EID_VSA, 0, new byte[]{ 1, 2, 3, 4 }), 65 new ScanResult.InformationElement( 802 List<ScanResult.InformationElement> dupElements = new ArrayList<>(TEST_TWO_VENDOR_ELEMENTS); in testInvalidVendorElementsDuplicate()
|
/packages/modules/Wifi/framework/java/android/net/wifi/rtt/ |
D | ResponderConfig.java | 19 import static android.net.wifi.ScanResult.InformationElement.EID_EXTENSION_PRESENT; 20 import static android.net.wifi.ScanResult.InformationElement.EID_EXT_EHT_CAPABILITIES; 21 import static android.net.wifi.ScanResult.InformationElement.EID_EXT_HE_CAPABILITIES; 22 import static android.net.wifi.ScanResult.InformationElement.EID_HT_CAPABILITIES; 23 import static android.net.wifi.ScanResult.InformationElement.EID_VHT_CAPABILITIES; 443 for (ScanResult.InformationElement ie : scanResult.informationElements) { in fromScanResult()
|
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/ |
D | WifiP2pDevice.java | 158 private List<ScanResult.InformationElement> mVendorElements; 382 List<ScanResult.InformationElement> vendorElements) { in setVendorElements() 419 @NonNull public List<ScanResult.InformationElement> getVendorElements() { in getVendorElements() 592 ScanResult.InformationElement.CREATOR);
|
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/ |
D | ProvisioningConfigurationTest.java | 75 final ScanResultInfo.InformationElement ie = in makeScanResultInfo() 76 new ScanResultInfo.InformationElement(0xdd /* vendor specific IE id */, in makeScanResultInfo()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WifiScanningServiceTest.java | 863 List<ScanResult.InformationElement> vendorIesList = new ArrayList<>(); in sendSingleScanRequestWithNonNullVendorIes() 864 ScanResult.InformationElement vendorIe1 = new ScanResult.InformationElement(221, 0, in sendSingleScanRequestWithNonNullVendorIes() 866 ScanResult.InformationElement vendorIe2 = new ScanResult.InformationElement(221, 0, in sendSingleScanRequestWithNonNullVendorIes() 1814 List<ScanResult.InformationElement> vendorIesList2 = new ArrayList<>(); in sendMultipleSingleScanRequestWithVendorIesWhilePreviousScanRunningAndMerge() 1815 ScanResult.InformationElement vendorIe21 = new ScanResult.InformationElement(221, 0, in sendMultipleSingleScanRequestWithVendorIesWhilePreviousScanRunningAndMerge() 1817 ScanResult.InformationElement vendorIe22 = new ScanResult.InformationElement(221, 0, in sendMultipleSingleScanRequestWithVendorIesWhilePreviousScanRunningAndMerge() 1834 List<ScanResult.InformationElement> vendorIesList4 = new ArrayList<>(); in sendMultipleSingleScanRequestWithVendorIesWhilePreviousScanRunningAndMerge() 1835 ScanResult.InformationElement vendorIe41 = new ScanResult.InformationElement(221, 0, in sendMultipleSingleScanRequestWithVendorIesWhilePreviousScanRunningAndMerge() 1837 ScanResult.InformationElement vendorIe42 = new ScanResult.InformationElement(221, 0, in sendMultipleSingleScanRequestWithVendorIesWhilePreviousScanRunningAndMerge()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | ISupplicantP2pIfaceHal.java | 591 boolean setVendorElements(Set<ScanResult.InformationElement> vendorElements); in setVendorElements()
|