Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DHSFriendlyNameElement.java57 int textBytes = name.getText().getBytes(StandardCharsets.UTF_8).length; in parse() local
58 if (textBytes > MAXIMUM_OPERATOR_NAME_LENGTH) { in parse()
60 + textBytes); in parse()
DVenueNameElement.java80 int textBytes = name.getText().getBytes(StandardCharsets.UTF_8).length; in parse() local
81 if (textBytes > MAXIMUM_VENUE_NAME_LENGTH) { in parse()
82 throw new ProtocolException("Venue Name exceeds the maximum allowed " + textBytes); in parse()
DOsuProviderInfo.java271 int textBytes = name.getText().getBytes(StandardCharsets.UTF_8).length; in parseI18Names() local
272 if (textBytes > MAXIMUM_I18N_STRING_LENGTH) { in parseI18Names()
274 + textBytes); in parseI18Names()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsServiceInfo.java382 public static TextEntry fromBytes(byte[] textBytes) { in fromBytes() argument
383 int delimitPos = ByteUtils.indexOf(textBytes, (byte) '='); in fromBytes()
392 return new TextEntry(new String(textBytes, US_ASCII), (byte[]) null); in fromBytes()
397 new String(Arrays.copyOf(textBytes, delimitPos), US_ASCII), in fromBytes()
398 Arrays.copyOfRange(textBytes, delimitPos + 1, textBytes.length)); in fromBytes()
/packages/apps/Tag/src/com/android/apps/tag/record/
DTextRecord.java140 byte[] textBytes = text.getBytes(utfEncoding); in newTextRecord()
148 textBytes in newTextRecord()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DANQPParserTest.java250 byte[] textBytes = text[i].getBytes(StandardCharsets.UTF_8); in getI18NameListPayload()
259 stream.write(textBytes); in getI18NameListPayload()