/frameworks/base/core/tests/coretests/src/android/os/ |
D | FileBridgeTest.java | 90 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/ |
D | OMAConstants.java | 52 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()
|
D | OMAConstructed.java | 108 out.write(String.format("(%s)", getContext()).getBytes(StandardCharsets.UTF_8)); in marshal() 116 out.write(".\n".getBytes(StandardCharsets.UTF_8)); in marshal()
|
D | MOTree.java | 193 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/ |
D | CharacterSets.java | 43 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/ |
D | ZipEntryReader.java | 32 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/ |
D | NdefRecord.java | 316 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/ |
D | Charsets.java | 46 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/ |
D | Xml.java | 132 UTF_8("UTF-8"), enumConstant 149 return Encoding.UTF_8; in findEncodingByName()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/ |
D | OSUProvider.java | 47 mOSUServer = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in OSUProvider() 69 mOsuNai = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8, true); in OSUProvider()
|
D | GenericStringElement.java | 15 mText = Constants.getString(payload, payload.remaining(), StandardCharsets.UTF_8); in GenericStringElement()
|
D | EmergencyNumberElement.java | 22 mNumbers.add(Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8)); in EmergencyNumberElement()
|
D | HSOsuProvidersElement.java | 23 mSSID = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in HSOsuProvidersElement()
|
D | I18Name.java | 30 mText = Constants.getString(payload, nameLength - LANG_CODE_LENGTH, StandardCharsets.UTF_8); in I18Name()
|
D | IconInfo.java | 31 mFileName = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in IconInfo()
|
D | NetworkAuthenticationTypeElement.java | 68 Constants.getPrefixedString(payload, 2, StandardCharsets.UTF_8))); in NetworkAuthenticationTypeElement()
|
D | ANQPFactory.java | 105 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/ |
D | VpnProfile.java | 120 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/ |
D | PersistentDataStore.java | 199 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/ |
D | DisplaySettings.java | 112 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/ |
D | PersistentDataStore.java | 171 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/ |
D | BluetoothMasRequestGetMessage.java | 49 oap.add(OAP_TAGID_CHARSET, CharsetType.UTF_8.equals(charset) ? CHARSET_UTF8 in BluetoothMasRequestGetMessage()
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardComposer.java | 116 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/ |
D | SafeSaxTest.java | 175 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/ |
D | SupplicantBridge.java | 210 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()
|