/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 | 42 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()
|
D | OMAConstructed.java | 145 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/ |
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/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | ScanDetailUtilTest.java | 49 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/ |
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/opt/bluetooth/src/android/bluetooth/client/map/ |
D | BluetoothMasRequestGetMessage.java | 51 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/ |
D | OMAConstants.java | 114 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()
|
D | OMAConstructed.java | 142 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/ |
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/ |
D | WifiCertManager.java | 71 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/ |
D | OSUClient.java | 74 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/ |
D | OSUProvider.java | 51 mOSUServer = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in OSUProvider() 73 mOsuNai = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8, true); in OSUProvider()
|
D | HSOsuProvidersElement.java | 23 mSSID = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in HSOsuProvidersElement()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/ |
D | OSUProvider.java | 48 mOSUServer = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in OSUProvider() 70 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()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/service/ |
D | RedirectListener.java | 137 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/ |
D | FakeKeys.java | 59 InputStream stream = new ByteArrayInputStream(blob.getBytes(StandardCharsets.UTF_8)); in loadCertificate()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/asn1/ |
D | Asn1String.java | 17 ? StandardCharsets.UTF_8 : StandardCharsets.ISO_8859_1; in Asn1String()
|
/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/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/mdnsFilter/ |
D | MDNSUtils.java | 56 if (containsVendor(new String(entry.getValue(), StandardCharsets.UTF_8), in isVendorPrinter()
|