Home
last modified time | relevance | path

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

1234

/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.java52 byte[] octets = s.getBytes(StandardCharsets.UTF_8); in serializeString()
53 byte[] prefix = String.format("%x:", octets.length).getBytes(StandardCharsets.UTF_8); in serializeString()
82 return new String(octets, StandardCharsets.UTF_8); in deserializeString()
DOMAConstructed.java108 out.write(String.format("(%s)", getContext()).getBytes(StandardCharsets.UTF_8)); in marshal()
116 out.write(".\n".getBytes(StandardCharsets.UTF_8)); in marshal()
DMOTree.java193 out.write("tree ".getBytes(StandardCharsets.UTF_8)); in marshal()
195 out.write(String.format("(%s)\n", mUrn).getBytes(StandardCharsets.UTF_8)); in marshal()
/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/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/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/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/anqp/
DOSUProvider.java47 mOSUServer = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in OSUProvider()
69 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()
DI18Name.java30 mText = Constants.getString(payload, nameLength - LANG_CODE_LENGTH, StandardCharsets.UTF_8); in I18Name()
DIconInfo.java31 mFileName = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in IconInfo()
DNetworkAuthenticationTypeElement.java68 Constants.getPrefixedString(payload, 2, StandardCharsets.UTF_8))); in NetworkAuthenticationTypeElement()
DANQPFactory.java105 byte[] octets = realmName.getBytes(StandardCharsets.UTF_8); in buildHomeRealmRequest()
125 target.put(fileName.getBytes(StandardCharsets.UTF_8)); in buildIconRequest()
/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/services/core/java/com/android/server/display/
DPersistentDataStore.java199 parser.setInput(new BufferedInputStream(is), StandardCharsets.UTF_8.name()); in load()
219 serializer.setOutput(new BufferedOutputStream(os), StandardCharsets.UTF_8.name()); in save()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplaySettings.java112 parser.setInput(stream, StandardCharsets.UTF_8.name()); in readSettingsLocked()
197 out.setOutput(stream, StandardCharsets.UTF_8.name()); in writeSettingsLocked()
/frameworks/base/services/core/java/com/android/server/tv/
DPersistentDataStore.java171 parser.setInput(new BufferedInputStream(is), StandardCharsets.UTF_8.name()); in load()
204 serializer.setOutput(new BufferedOutputStream(os), StandardCharsets.UTF_8.name()); in save()
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
DBluetoothMasRequestGetMessage.java49 oap.add(OAP_TAGID_CHARSET, CharsetType.UTF_8.equals(charset) ? CHARSET_UTF8 in BluetoothMasRequestGetMessage()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardComposer.java116 private static final String UTF_8 = "UTF-8"; field in VCardComposer
215 VCardConfig.isVersion30(vcardType) && UTF_8.equalsIgnoreCase(charset)); in VCardComposer()
232 mCharset = UTF_8; in VCardComposer()
/frameworks/base/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java175 Xml.parse(inputStream, Xml.Encoding.UTF_8, new YouTubeContentHandler(videoAdapter)); in pureSaxTest()
183 Xml.parse(inputStream, Xml.Encoding.UTF_8, newContentHandler(videoAdapter)); in saxyModelTest()
191 Xml.parse(inputStream, Xml.Encoding.UTF_8, contentHandler); in saxyModelTest()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DSupplicantBridge.java210 byte[] octets = s.getBytes(utf8 ? StandardCharsets.UTF_8 : StandardCharsets.ISO_8859_1); in escapeString()
388 return new String(octets, 0, bo, StandardCharsets.UTF_8); in unescapeSSID()
392 CharBuffer cb = StandardCharsets.UTF_8.newDecoder().decode( in unescapeSSID()

1234