Home
last modified time | relevance | path

Searched refs:UTF_8 (Results 1 – 25 of 118) sorted by relevance

12345

/frameworks/base/core/tests/coretests/src/android/os/
DFileBridgeTest.java90 client.write("meow".getBytes(StandardCharsets.UTF_8)); in testWriteNoSync()
92 assertContents("meow".getBytes(StandardCharsets.UTF_8)); in testWriteNoSync()
97 client.write("cake".getBytes(StandardCharsets.UTF_8)); in testWriteSync()
100 assertContents("cake".getBytes(StandardCharsets.UTF_8)); in testWriteSync()
105 client.write("meow".getBytes(StandardCharsets.UTF_8)); in testWriteSyncWrite()
107 client.write("cake".getBytes(StandardCharsets.UTF_8)); in testWriteSyncWrite()
109 assertContents("meowcake".getBytes(StandardCharsets.UTF_8)); in testWriteSyncWrite()
121 client.write("meow".getBytes(StandardCharsets.UTF_8)); in testWriteAfterClose()
124 client.write("cake".getBytes(StandardCharsets.UTF_8)); in testWriteAfterClose()
128 assertContents("meow".getBytes(StandardCharsets.UTF_8)); in testWriteAfterClose()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DOMAConstants.java42 byte[] octets = s.getBytes(StandardCharsets.UTF_8); in serializeString()
43 byte[] prefix = String.format("%x:", octets.length).getBytes(StandardCharsets.UTF_8); in serializeString()
72 return new String(octets, StandardCharsets.UTF_8); in deserializeString()
DOMAConstructed.java145 out.write(String.format("(%s)", getContext()).getBytes(StandardCharsets.UTF_8)); in marshal()
153 out.write(".\n".getBytes(StandardCharsets.UTF_8)); in marshal()
/frameworks/multidex/library/test/src/android/support/multidex/
DZipEntryReader.java32 static final Charset UTF_8 = Charset.forName("UTF-8"); field in ZipEntryReader
83 String name = new String(nameBytes, 0, nameBytes.length, UTF_8); in readEntry()
98 entry.setComment(new String(commentBytes, 0, commentBytes.length, UTF_8)); in readEntry()
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
DCharacterSets.java43 public static final int UTF_8 = 0x6A; field in CharacterSets
51 public static final int DEFAULT_CHARSET = UTF_8;
69 UTF_8,
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DScanDetailUtilTest.java49 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResult()
65 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResultWithAnqpLines()
80 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResultWithoutWifiSsid()
/frameworks/base/core/java/android/nfc/
DNdefRecord.java316 packageName.getBytes(StandardCharsets.UTF_8)); in createApplicationRecord()
355 byte[] uriBytes = uriString.getBytes(StandardCharsets.UTF_8); in createUri()
467 byte[] byteDomain = domain.getBytes(StandardCharsets.UTF_8); in createExternal()
468 byte[] byteType = type.getBytes(StandardCharsets.UTF_8); in createExternal()
493 byte[] textBytes = text.getBytes(StandardCharsets.UTF_8); in createTextRecord()
738 Uri uri = Uri.parse(new String(mType, StandardCharsets.UTF_8)); in toUri()
767 StandardCharsets.UTF_8); in parseWktUri()
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
DCharsets.java46 public static final Charset UTF_8 = Charset.forName("UTF-8"); field in Charsets
75 return UTF_8.encode(cb).array(); in toUtf8Bytes()
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
DBluetoothMasRequestGetMessage.java51 oap.add(OAP_TAGID_CHARSET, CharsetType.UTF_8.equals(charset) ? CHARSET_UTF8 in BluetoothMasRequestGetMessage()
79 bmsg = baos.toString(StandardCharsets.UTF_8.name()); in readResponse()
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/
DOMAConstants.java114 byte[] octets = s.getBytes(StandardCharsets.UTF_8); in serializeString()
115 byte[] prefix = String.format("%x:", octets.length).getBytes(StandardCharsets.UTF_8); in serializeString()
144 return new String(octets, StandardCharsets.UTF_8); in deserializeString()
DOMAConstructed.java142 out.write(String.format("(%s)", getContext()).getBytes(StandardCharsets.UTF_8)); in marshal()
150 out.write(".\n".getBytes(StandardCharsets.UTF_8)); in marshal()
/frameworks/base/core/java/android/util/
DXml.java132 UTF_8("UTF-8"), enumConstant
149 return Encoding.UTF_8; in findEncodingByName()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiCertManager.java71 String[] keys = new String(bytes, StandardCharsets.UTF_8).split(SEP); in WifiCertManager()
110 writeConfigFile(value.getBytes(StandardCharsets.UTF_8)); in writeConfig()
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DOSUClient.java74 try (HTTPHandler httpHandler = new HTTPHandler(StandardCharsets.UTF_8, in provision()
378 subscriptionUpdate.getPassword().getBytes(StandardCharsets.UTF_8) : in createHandler()
382 password = credential.getPassword().getBytes(StandardCharsets.UTF_8); in createHandler()
384 return new HTTPHandler(StandardCharsets.UTF_8, in createHandler()
388 return new HTTPHandler(StandardCharsets.UTF_8, in createHandler()
440 HTTPHandler httpHandler = new HTTPHandler(StandardCharsets.UTF_8, in getCerts()
/frameworks/base/packages/Osu/src/com/android/anqp/
DOSUProvider.java51 mOSUServer = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in OSUProvider()
73 mOsuNai = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8, true); in OSUProvider()
DHSOsuProvidersElement.java23 mSSID = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in HSOsuProvidersElement()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
DOSUProvider.java48 mOSUServer = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in OSUProvider()
70 mOsuNai = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8, true); in OSUProvider()
DGenericStringElement.java15 mText = Constants.getString(payload, payload.remaining(), StandardCharsets.UTF_8); in GenericStringElement()
DEmergencyNumberElement.java22 mNumbers.add(Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8)); in EmergencyNumberElement()
DHSOsuProvidersElement.java23 mSSID = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in HSOsuProvidersElement()
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/service/
DRedirectListener.java137 new InputStreamReader(instance.getInputStream(), StandardCharsets.UTF_8))) { in run() argument
166 StandardCharsets.UTF_8))) { in run() argument
/frameworks/opt/net/wifi/tests/wifitests/src/android/net/wifi/
DFakeKeys.java59 InputStream stream = new ByteArrayInputStream(blob.getBytes(StandardCharsets.UTF_8)); in loadCertificate()
/frameworks/base/packages/Osu/src/com/android/hotspot2/asn1/
DAsn1String.java17 ? StandardCharsets.UTF_8 : StandardCharsets.ISO_8859_1; in Asn1String()
/frameworks/base/core/java/com/android/internal/net/
DVpnProfile.java120 String[] values = new String(value, StandardCharsets.UTF_8).split("\0", -1); in decode()
170 return builder.toString().getBytes(StandardCharsets.UTF_8); in encode()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/mdnsFilter/
DMDNSUtils.java56 if (containsVendor(new String(entry.getValue(), StandardCharsets.UTF_8), in isVendorPrinter()

12345