Searched refs:ssidBytes (Results 1 – 6 of 6) sorted by relevance
276 ArrayList<Byte> ssidBytes = hexOrQuotedStringToBytes(ssidStr); in decodeSsid() local277 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() argument294 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()
179 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() argument217 for (int i = 0; i< ssidBytes.length; i++) { in isArrayAllZeroes()218 if (ssidBytes[i] != 0) return false; in isArrayAllZeroes()
74 byte[] ssidBytes = new byte[ssidLength]; in parse()75 payload.get(ssidBytes); in parse()84 return new HSOsuProvidersElement(WifiSsid.createFromByteArray(ssidBytes), providers); in parse()
353 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()
111 byte[] ssidBytes = getTestSsidIEBytes(); in parseInformationElements_withSingleElement()114 InformationElementUtil.parseInformationElements(ssidBytes); in parseInformationElements_withSingleElement()
3285 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()