Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DNativeUtil.java276 ArrayList<Byte> ssidBytes = hexOrQuotedStringToBytes(ssidStr); in decodeSsid() local
277 if (ssidBytes.size() > SSID_BYTES_MAX_LEN) { in decodeSsid()
278 throw new IllegalArgumentException("ssid bytes size out of range: " + ssidBytes.size()); in decodeSsid()
280 return ssidBytes; in decodeSsid()
293 public static String encodeSsid(ArrayList<Byte> ssidBytes) { in encodeSsid() argument
294 if (ssidBytes.size() > SSID_BYTES_MAX_LEN) { in encodeSsid()
295 throw new IllegalArgumentException("ssid bytes size out of range: " + ssidBytes.size()); in encodeSsid()
297 return bytesToHexOrQuotedString(ssidBytes); in encodeSsid()
/frameworks/base/wifi/java/android/net/wifi/
DWifiSsid.java179 byte[] ssidBytes = octets.toByteArray(); in toString()
183 if (octets.size() <= 0 || isArrayAllZeroes(ssidBytes)) return ""; in toString()
191 CoderResult result = decoder.decode(ByteBuffer.wrap(ssidBytes), out, true); in toString()
216 private boolean isArrayAllZeroes(byte[] ssidBytes) { in isArrayAllZeroes() argument
217 for (int i = 0; i< ssidBytes.length; i++) { in isArrayAllZeroes()
218 if (ssidBytes[i] != 0) return false; in isArrayAllZeroes()
/frameworks/opt/net/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()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigurationUtil.java353 byte[] ssidBytes = ssid.getBytes(StandardCharsets.UTF_8); in validateSsid()
354 if (ssidBytes.length < SSID_UTF_8_MIN_LEN) { in validateSsid()
356 + ssidBytes.length); in validateSsid()
359 if (ssidBytes.length > SSID_UTF_8_MAX_LEN) { in validateSsid()
361 + ssidBytes.length); in validateSsid()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DInformationElementUtilTest.java111 byte[] ssidBytes = getTestSsidIEBytes(); in parseInformationElements_withSingleElement()
114 InformationElementUtil.parseInformationElements(ssidBytes); in parseInformationElements_withSingleElement()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java3285 byte[] ssidBytes = networkName.getBytes(StandardCharsets.UTF_8); in isValidNetworkName()
3286 if (ssidBytes.length < MIN_NETWORK_NAME_BYTES) return false; in isValidNetworkName()
3287 if (ssidBytes.length > MAX_NETWORK_NAME_BYTES) return false; in isValidNetworkName()