Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DNativeUtil.java275 ArrayList<Byte> ssidBytes = hexOrQuotedStringToBytes(ssidStr); in decodeSsid() local
276 if (ssidBytes.size() > SSID_BYTES_MAX_LEN) { in decodeSsid()
277 throw new IllegalArgumentException("ssid bytes size out of range: " + ssidBytes.size()); in decodeSsid()
279 return ssidBytes; in decodeSsid()
292 public static String encodeSsid(ArrayList<Byte> ssidBytes) { in encodeSsid() argument
293 if (ssidBytes.size() > SSID_BYTES_MAX_LEN) { in encodeSsid()
294 throw new IllegalArgumentException("ssid bytes size out of range: " + ssidBytes.size()); in encodeSsid()
296 return bytesToHexOrQuotedString(ssidBytes); in encodeSsid()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiSsid.java191 byte[] ssidBytes = octets.toByteArray(); in toString()
195 if (octets.size() <= 0 || isArrayAllZeroes(ssidBytes)) return ""; in toString()
203 CoderResult result = decoder.decode(ByteBuffer.wrap(ssidBytes), out, true); in toString()
228 private boolean isArrayAllZeroes(byte[] ssidBytes) { in isArrayAllZeroes() argument
229 for (int i = 0; i< ssidBytes.length; i++) { in isArrayAllZeroes()
230 if (ssidBytes[i] != 0) return false; in isArrayAllZeroes()
/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.createFromByteArray(ssidBytes), providers); in parse()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiConfigurationUtil.java386 byte[] ssidBytes = ssid.getBytes(StandardCharsets.UTF_8); in validateSsid()
387 if (ssidBytes.length < SSID_UTF_8_MIN_LEN) { in validateSsid()
389 + ssidBytes.length); in validateSsid()
392 if (ssidBytes.length > SSID_UTF_8_MAX_LEN) { in validateSsid()
394 + ssidBytes.length); in validateSsid()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DInformationElementUtilTest.java145 byte[] ssidBytes = getTestSsidIEBytes(); in parseInformationElements_withSingleElement()
148 InformationElementUtil.parseInformationElements(ssidBytes); in parseInformationElements_withSingleElement()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java3573 byte[] ssidBytes = networkName.getBytes(StandardCharsets.UTF_8); in isValidNetworkName()
3574 if (ssidBytes.length < MIN_NETWORK_NAME_BYTES) return false; in isValidNetworkName()
3575 if (ssidBytes.length > MAX_NETWORK_NAME_BYTES) return false; in isValidNetworkName()