Home
last modified time | relevance | path

Searched refs:ssidBytes (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DNativeUtil.java297 ArrayList<Byte> ssidBytes = hexOrQuotedStringToBytes(ssidStr); in decodeSsid() local
298 if (ssidBytes.size() > SSID_BYTES_MAX_LEN) { in decodeSsid()
299 throw new IllegalArgumentException("ssid bytes size out of range: " + ssidBytes.size()); in decodeSsid()
301 return ssidBytes; in decodeSsid()
314 public static String encodeSsid(ArrayList<Byte> ssidBytes) { in encodeSsid() argument
315 if (ssidBytes.size() > SSID_BYTES_MAX_LEN) { in encodeSsid()
316 throw new IllegalArgumentException("ssid bytes size out of range: " + ssidBytes.size()); in encodeSsid()
318 return bytesToHexOrQuotedString(ssidBytes); in encodeSsid()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DHSOsuProvidersElement.java74 byte[] ssidBytes = new byte[ssidLength]; in parse()
75 payload.get(ssidBytes); in parse()
84 return new HSOsuProvidersElement(WifiSsid.fromBytes(ssidBytes), providers); in parse()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiSsid.java145 private static String decodeSsid(@NonNull byte[] ssidBytes, @NonNull Charset charset) { in decodeSsid() argument
150 CoderResult result = decoder.decode(ByteBuffer.wrap(ssidBytes), out, true); in decodeSsid()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiVendorHalTest.java232 byte[] ssidBytes = ssid.getBytes(); in getTranslatedSsid()
233 for (int i = 0; i < ssidBytes.length; i++) { in getTranslatedSsid()
234 ssidBytes[i]++; in getTranslatedSsid()
236 return WifiSsid.fromBytes(ssidBytes); in getTranslatedSsid()
1719 byte[] ssidBytes = new byte[8]; in createFrameworkBgScanDatas()
1722 random.nextBytes(ssidBytes); in createFrameworkBgScanDatas()
1725 WifiSsid.fromBytes(ssidBytes), MacAddress.fromBytes(bssidBytes)); in createFrameworkBgScanDatas()
DWifiNativeTest.java368 byte[] ssidBytes = ssid.getBytes(); in getTranslatedSsid()
369 for (int i = 0; i < ssidBytes.length; i++) { in getTranslatedSsid()
370 ssidBytes[i]++; in getTranslatedSsid()
372 return WifiSsid.fromBytes(ssidBytes); in getTranslatedSsid()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DInformationElementUtilTest.java150 byte[] ssidBytes = getTestSsidIEBytes(); in parseInformationElements_withSingleElement()
153 InformationElementUtil.parseInformationElements(ssidBytes); in parseInformationElements_withSingleElement()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java6318 byte[] ssidBytes = networkName.getBytes(StandardCharsets.UTF_8); in isValidNetworkName()
6319 if (ssidBytes.length < MIN_NETWORK_NAME_BYTES) return false; in isValidNetworkName()
6320 return ssidBytes.length <= MAX_NETWORK_NAME_BYTES; in isValidNetworkName()