Home
last modified time | relevance | path

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

123456

/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/base/keystore/java/android/security/keystore/
DAttestationUtils.java133 Build.getSerial().getBytes(StandardCharsets.UTF_8)); in attestDeviceIds()
141 imei.getBytes(StandardCharsets.UTF_8)); in attestDeviceIds()
150 meid.getBytes(StandardCharsets.UTF_8)); in attestDeviceIds()
158 Build.BRAND.getBytes(StandardCharsets.UTF_8)); in attestDeviceIds()
160 Build.DEVICE.getBytes(StandardCharsets.UTF_8)); in attestDeviceIds()
162 Build.PRODUCT.getBytes(StandardCharsets.UTF_8)); in attestDeviceIds()
164 Build.MANUFACTURER.getBytes(StandardCharsets.UTF_8)); in attestDeviceIds()
166 Build.MODEL.getBytes(StandardCharsets.UTF_8)); in attestDeviceIds()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/
DUpdateParameter.java297 if (mServerUri.getBytes(StandardCharsets.UTF_8).length > MAX_URI_BYTES) { in validate()
299 + mServerUri.getBytes(StandardCharsets.UTF_8).length); in validate()
307 if (mUsername.getBytes(StandardCharsets.UTF_8).length > MAX_USERNAME_BYTES) { in validate()
309 + mUsername.getBytes(StandardCharsets.UTF_8).length); in validate()
317 if (mBase64EncodedPassword.getBytes(StandardCharsets.UTF_8).length > MAX_PASSWORD_BYTES) { in validate()
319 + mBase64EncodedPassword.getBytes(StandardCharsets.UTF_8).length); in validate()
333 if (mTrustRootCertUrl.getBytes(StandardCharsets.UTF_8).length > MAX_URL_BYTES) { in validate()
335 + mTrustRootCertUrl.getBytes(StandardCharsets.UTF_8).length); in validate()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DNetworkListStoreDataTest.java187 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData()
204 in.setInput(inputStream, StandardCharsets.UTF_8.name()); in deserializeData()
253 return (openNetworkXml + eapNetworkXml).getBytes(StandardCharsets.UTF_8); in getTestNetworksXmlBytes()
405 openNetwork.shared, openNetwork.creatorUid).getBytes(StandardCharsets.UTF_8); in parseNetworkWithUnknownTag()
421 openNetwork.shared, openNetwork.creatorUid).getBytes(StandardCharsets.UTF_8); in parseNetworkWithMismatchConfigKey()
442 deserializeData(xmlString.getBytes(StandardCharsets.UTF_8), true /* shared */); in parseNetworkListWithOneNetworkIllegalArgException()
DDeletedEphemeralSsidsStoreDataTest.java53 TEST_SSID_LIST_XML_STRING.getBytes(StandardCharsets.UTF_8);
71 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeData()
88 in.setInput(inputStream, StandardCharsets.UTF_8.name()); in deserializeData()
DWifiConfigStoreTest.java188 assertTrue(Arrays.equals(EMPTY_FILE_CONTENT.getBytes(StandardCharsets.UTF_8), in testWriteWithEmptyData()
190 assertTrue(Arrays.equals(EMPTY_FILE_CONTENT.getBytes(StandardCharsets.UTF_8), in testWriteWithEmptyData()
387 byte[] xmlBytes = xmlString.getBytes(StandardCharsets.UTF_8); in testReadWifiConfigStoreData()
431 byte[] xmlBytes = xmlString.getBytes(StandardCharsets.UTF_8); in testWriteWifiConfigStoreData()
454 mUserStore.storeRawDataToWrite(storeFileData.getBytes(StandardCharsets.UTF_8)); in testReadUserStoreContainedUnknownData()
473 mSharedStore.storeRawDataToWrite(storeFileData.getBytes(StandardCharsets.UTF_8)); in testReadShareStoreContainedUnknownData()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DLegacyPasspointConfigParser.java255 parseLine(currentLine.getBytes(StandardCharsets.UTF_8)); in buildNode()
419 + new String(lineBytes, StandardCharsets.UTF_8)); in parseLine()
423 + new String(lineBytes, StandardCharsets.UTF_8)); in parseLine()
455 + new String(lineBytes, StandardCharsets.UTF_8)); in parseString()
460 StandardCharsets.UTF_8); in parseString()
469 new String(lineBytes, strStartIndex, length, StandardCharsets.UTF_8), in parseString()
473 + new String(lineBytes, StandardCharsets.UTF_8)); in parseString()
/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/
DXmlUtilTest.java411 deserializeWifiEnterpriseConfig(xmlString.getBytes(StandardCharsets.UTF_8)); in testWifiEnterpriseConfigSerializeDeserializeThrowsIllegalArgException()
434 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeWifiConfigurationForBackup()
446 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeWifiConfigurationForConfigStore()
458 in.setInput(inputStream, StandardCharsets.UTF_8.name()); in deserializeWifiConfiguration()
515 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeDeserializeIpConfiguration()
523 in.setInput(inputStream, StandardCharsets.UTF_8.name()); in serializeDeserializeIpConfiguration()
535 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeNetworkSelectionStatus()
546 in.setInput(inputStream, StandardCharsets.UTF_8.name()); in deserializeNetworkSelectionStatus()
566 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeWifiEnterpriseConfig()
577 in.setInput(inputStream, StandardCharsets.UTF_8.name()); in deserializeWifiEnterpriseConfig()
DScanResultUtilTest.java48 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResult()
64 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResultWithAnqpLines()
79 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResultWithoutWifiSsid()
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/pps/
DUpdateParameterTest.java181 updateParam.setUsername(new String(rawUsernameBytes, StandardCharsets.UTF_8)); in validateUpdateParameterWithUsernameExceedingMaxSize()
207 updateParam.setBase64EncodedPassword(new String(rawPasswordBytes, StandardCharsets.UTF_8)); in validateUpdateParameterWithPasswordExceedingMaxSize()
258 updateParam.setTrustRootCertUrl(new String(rawUrlBytes, StandardCharsets.UTF_8)); in validateUpdateParameterWithInvalidTrustRootCertUrl()
313 updateParam.setServerUri(new String(rawUriBytes, StandardCharsets.UTF_8)); in validatePolicyWithInvalidServerUri()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/google/
DCloudPrintPlugin.java102 StandardCharsets.UTF_8)); in CloudPrintPlugin()
125 new String(type, StandardCharsets.UTF_8).toLowerCase())) { in CloudPrintPlugin()
135 new String(cs, StandardCharsets.UTF_8).toLowerCase())) { in CloudPrintPlugin()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DMDNSUtils.java59 if (containsVendor(new String(entry.getValue(), StandardCharsets.UTF_8), in isVendorPrinter()
110 if (value != null) return new String(value, StandardCharsets.UTF_8); in getString()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointXmlUtilsTest.java190 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); in serializeAndDeserializePasspointConfiguration()
197 in.setInput(inputStream, StandardCharsets.UTF_8.name()); in serializeAndDeserializePasspointConfiguration()
238 new ByteArrayInputStream(xmlStr.getBytes(StandardCharsets.UTF_8)); in deserializePasspointConfigurationWithUnknownTag()
239 in.setInput(inputStream, StandardCharsets.UTF_8.name()); in deserializePasspointConfigurationWithUnknownTag()
/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/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/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()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DNativeUtil.java55 for (byte b : str.getBytes(StandardCharsets.UTF_8)) { in stringToByteArrayList()
77 return new String(byteArray, StandardCharsets.UTF_8); in stringFromByteArrayList()
90 return str.getBytes(StandardCharsets.UTF_8); in stringToByteArray()
/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.java85 try (HTTPHandler httpHandler = new HTTPHandler(StandardCharsets.UTF_8, in provision()
433 subscriptionUpdate.getPassword().getBytes(StandardCharsets.UTF_8) : in createHandler()
437 password = credential.getPassword().getBytes(StandardCharsets.UTF_8); in createHandler()
439 return new HTTPHandler(StandardCharsets.UTF_8, in createHandler()
443 return new HTTPHandler(StandardCharsets.UTF_8, in createHandler()
495 HTTPHandler httpHandler = new HTTPHandler(StandardCharsets.UTF_8, in getCerts()
/frameworks/base/services/core/java/com/android/server/updates/
DCertificateTransparencyLogInstallReceiver.java95 JSONObject json = new JSONObject(new String(content, StandardCharsets.UTF_8)); in install()
132 new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8)) { in installLog() argument
/frameworks/base/packages/Osu/src/com/android/hotspot2/asn1/
DAsn1String.java17 ? StandardCharsets.UTF_8 : StandardCharsets.ISO_8859_1; in Asn1String()

123456