Home
last modified time | relevance | path

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

/frameworks/base/wifi/java/android/net/wifi/
DWifiSsid.java47 public final ByteArrayOutputStream octets = new ByteArrayOutputStream(32); field in WifiSsid
59 wifiSsid.octets.write(ssid, 0/* the start offset */, ssid.length);; in createFromByteArray()
86 a.octets.write(val); in createFromHex()
103 octets.write('\\'); in convertToBytes()
107 octets.write('"'); in convertToBytes()
111 octets.write('\n'); in convertToBytes()
115 octets.write('\r'); in convertToBytes()
119 octets.write('\t'); in convertToBytes()
123 octets.write(27); //escape char in convertToBytes()
138 octets.write(val); in convertToBytes()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DByteBufferReader.java52 byte[] octets = new byte[size]; in readInteger()
53 payload.get(octets); in readInteger()
58 for (int n = octets.length - 1; n >= 0; n--) { in readInteger()
59 value = (value << Byte.SIZE) | (octets[n] & 0xFF); in readInteger()
62 for (byte octet : octets) { in readInteger()
80 byte[] octets = new byte[length]; in readString()
81 payload.get(octets); in readString()
82 return new String(octets, charset); in readString()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsMessageBase.java466 int octets = msgBody.length() * 2; in calcUnicodeEncodingDetails() local
469 if (octets > SmsConstants.MAX_USER_DATA_BYTES) { in calcUnicodeEncodingDetails()
478 if (octets <= 9 * (maxUserDataBytesWithHeader - 2)) { in calcUnicodeEncodingDetails()
498 ted.codeUnitsRemaining = (SmsConstants.MAX_USER_DATA_BYTES - octets) / 2; in calcUnicodeEncodingDetails()
/frameworks/base/core/java/android/net/
DNetworkUtils.java369 String[] octets = addr.split("\\."); in trimV4AddrZeros()
370 if (octets.length != 4) return addr; in trimV4AddrZeros()
375 if (octets[i].length() > 3) return addr; in trimV4AddrZeros()
376 builder.append(Integer.parseInt(octets[i])); in trimV4AddrZeros()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/
DConfigParser.java443 private static X509Certificate parseCACert(byte[] octets) throws CertificateException { in parseCACert() argument
445 return (X509Certificate) factory.generateCertificate(new ByteArrayInputStream(octets)); in parseCACert()
448 private static Pair<PrivateKey, List<X509Certificate>> parsePkcs12(byte[] octets) in parsePkcs12() argument
451 ByteArrayInputStream in = new ByteArrayInputStream(octets); in parsePkcs12()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DServiceProviderVerifier.java122 byte[] octets = (byte[]) entry.toArray()[1]; in getProviderNames()
123 ASN1Encodable obj = new ASN1InputStream(octets).readObject(); in getProviderNames()
DUtils.java208 public static String toHex(byte[] octets) { in toHex() argument
209 StringBuilder sb = new StringBuilder(octets.length * 2); in toHex()
210 for (byte o : octets) { in toHex()