Home
last modified time | relevance | path

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

12345

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DWifiSsidRestrictionTest.java66 Arrays.asList(WifiSsid.fromBytes("ssid1".getBytes(StandardCharsets.UTF_8)), in setWifiSsidPolicy_validAllowlist_works()
67 WifiSsid.fromBytes("ssid2".getBytes(StandardCharsets.UTF_8)), in setWifiSsidPolicy_validAllowlist_works()
68 WifiSsid.fromBytes("ssid3".getBytes(StandardCharsets.UTF_8)))); in setWifiSsidPolicy_validAllowlist_works()
88 Arrays.asList(WifiSsid.fromBytes("ssid1".getBytes(StandardCharsets.UTF_8)), in setWifiSsidPolicy_validDenylist_works()
89 WifiSsid.fromBytes("ssid2".getBytes(StandardCharsets.UTF_8)), in setWifiSsidPolicy_validDenylist_works()
90 WifiSsid.fromBytes("ssid3".getBytes(StandardCharsets.UTF_8)))); in setWifiSsidPolicy_validDenylist_works()
109 Arrays.asList(WifiSsid.fromBytes("ssid1".getBytes(StandardCharsets.UTF_8)))); in setWifiSsidPolicy_validRemoveRestriction_works()
140 Arrays.asList(WifiSsid.fromBytes("ssid1".getBytes(StandardCharsets.UTF_8)))); in setWifiSsidPolicy_invalidAdmin_fails()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DApplicationMediaCapabilitiesTest.java114 parser.setInput(xmlIs, StandardCharsets.UTF_8.name()); in testReadFromCorrectXmlWithInputStreamInAssets()
137 parser.setInput(xmlIs, StandardCharsets.UTF_8.name()); in testReadMediaCapabilitiesXmlWithSupportAllHdr()
165 parser.setInput(xmlIs, StandardCharsets.UTF_8.name()); in testReadFromWrongMediaCapabilityXml()
181 parser.setInput(xmlIs, StandardCharsets.UTF_8.name()); in testReadFromWrongMediaCapabilityXml2()
196 parser.setInput(xmlIs, StandardCharsets.UTF_8.name()); in testReadFromXmlWithWrongBoolean()
211 parser.setInput(xmlIs, StandardCharsets.UTF_8.name()); in testReadXmlSupportHdrWithoutSupportHevc()
227 parser.setInput(xmlIs, StandardCharsets.UTF_8.name()); in testReadXmlConflictSupportedValue()
242 parser.setInput(xmlIs, StandardCharsets.UTF_8.name()); in testReadXmlWithEmptyFormat()
257 parser.setInput(xmlIs, StandardCharsets.UTF_8.name()); in testReadXmlFormatWithoutSupported()
272 parser.setInput(xmlIs, StandardCharsets.UTF_8.name()); in testReadXmlSupportedWithoutFormat()
[all …]
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DKeystoreAttestationDeviceInfo.java29 import static java.nio.charset.StandardCharsets.UTF_8;
172 new String(keyDetailsList.attestationIdBrand.get(), UTF_8)); in collectStoredInformation()
177 new String(keyDetailsList.attestationIdDevice.get(), UTF_8)); in collectStoredInformation()
182 new String(keyDetailsList.attestationIdProduct.get(), UTF_8)); in collectStoredInformation()
187 new String(keyDetailsList.attestationIdManufacturer.get(), UTF_8)); in collectStoredInformation()
192 new String(keyDetailsList.attestationIdModel.get(), UTF_8)); in collectStoredInformation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/presence/nan/
DWifiAwarePeer.java19 import static java.nio.charset.StandardCharsets.UTF_8;
50 Collections.singletonList(UUID_STRING.getBytes(UTF_8));
78 UTF_8)); in sendMessage()
82 UTF_8)); in sendMessage()
187 wifiAwarePeerListener.onReferenceDeviceNameReceived(new String(message, UTF_8));
/cts/apps/CtsVerifier/src/com/android/cts/verifier/presence/ble/
DBleAdvertisingPacket.java46 .put(referenceDeviceName.getBytes(StandardCharsets.UTF_8)) in toBytes()
72 StandardCharsets.UTF_8); in fromBytes()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/
DAsn1Utf8String.java55 return value.getBytes(StandardCharsets.UTF_8); in getValueBytes()
59 value = new String(bytes, StandardCharsets.UTF_8); in setValueBytes()
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DDumpOnFailureRule.java72 out.write(("Output of '" + cmd + "':\n").getBytes(StandardCharsets.UTF_8)); in dumpCommandOutput()
75 .getBytes(StandardCharsets.UTF_8)); in dumpCommandOutput()
/cts/tests/BlobStore/src/com/android/cts/blob/
DDumpOnFailureRule.java69 out.write(("Output of '" + cmd + "':\n").getBytes(StandardCharsets.UTF_8)); in dumpCommandOutput()
72 .getBytes(StandardCharsets.UTF_8)); in dumpCommandOutput()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DDumpOnFailureRule.java80 out.write(("Output of '" + cmd + "':\n").getBytes(StandardCharsets.UTF_8)); in dumpCommandOutput()
83 .getBytes(StandardCharsets.UTF_8)); in dumpCommandOutput()
/cts/hostsidetests/packagemanager/deletekeepdata/app/src/com/android/tests/deletekeepdata/app/
DDeleteKeepDataDeviceTest.java100 return byteBuffer.toString(StandardCharsets.UTF_8); in readDataUserFile()
116 return byteBuffer.toString(StandardCharsets.UTF_8); in readExternalDataFile()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DTimedMetaDataTest.java38 assertEquals(RAW_METADATA, new String(metadata.getMetaData(), StandardCharsets.UTF_8)); in testTimedMetaData()
DSubtitleDataTest.java40 assertEquals(SUBTITLE_RAW_DATA, new String(subtitle.getData(), StandardCharsets.UTF_8)); in testSubtitleData()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiInfoTest.java246 .setSsid(TEST_SSID.getBytes(StandardCharsets.UTF_8)) in testWifiInfoBuilder()
293 .setSsid(TEST_SSID.getBytes(StandardCharsets.UTF_8)) in testWifiInfoCurrentSecurityType()
313 .setSsid(TEST_SSID.getBytes(StandardCharsets.UTF_8)) in testWifiInfoMloAttributes()
338 .setSsid(TEST_SSID.getBytes(StandardCharsets.UTF_8)) in testWifiInfoSetAndGetVendorData()
359 .setSsid(TEST_SSID.getBytes(StandardCharsets.UTF_8)) in testGetPasspointUniqueId()
DFakeKeys.java269 InputStream stream = new ByteArrayInputStream(blob.getBytes(StandardCharsets.UTF_8)); in loadCertificate()
DWifiSsidTest.java34 TEST_SSID_UTF_8.getBytes(StandardCharsets.UTF_8);
/cts/tests/tests/nfc/src/android/nfc/cts/
DAidGroupTest.java107 serializer.setOutput(out, StandardCharsets.UTF_8.name()); in test_ReadWriteXml()
113 parser.setInput(in, StandardCharsets.UTF_8.name()); in test_ReadWriteXml()
/cts/hostsidetests/testharness/app/src/android/testharness/app/
DTestHarnessActivity.java69 Files.write(dirtyFile, "This device is dirty!".getBytes(StandardCharsets.UTF_8)); in dirtyDevice()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecDecoderDrmTestBase.java88 String id = new String(keyIds.get(i).getBytes(StandardCharsets.UTF_8)); in createJsonWebKeySet()
89 String key = new String(keys.get(i).getBytes(StandardCharsets.UTF_8)); in createJsonWebKeySet()
136 byte[] jsonResponse = jwkSet.getBytes(StandardCharsets.UTF_8); in retrieveKeys()
/cts/tests/tests/time/shell_utils/common/android/app/time/cts/shell/
DDeviceShellCommandExecutor.java89 return new String(result, 0, result.length, StandardCharsets.UTF_8); in parseBytesAsString()
/cts/hostsidetests/art/host/src/android/art/cts/host/
DThreadLocalRandomTest.java105 return new String(bytes, StandardCharsets.UTF_8); in parseBytesAsString()
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DIntentGenerationTests.java135 new String(Files.readAllBytes(testsFilePath), StandardCharsets.UTF_8)); in readFromStorage()
/cts/tests/tests/app/src/android/app/cts/
DKeyguardWeakEscrowTokenTest.java58 private final byte[] mTestToken1 = "test_token1".getBytes(StandardCharsets.UTF_8);
59 private final byte[] mTestToken2 = "test_token2".getBytes(StandardCharsets.UTF_8);
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DShellCommandBuilder.java117 new InputStreamReader(inputStream, StandardCharsets.UTF_8))) { in execShellCommand() argument
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/
DShellCommandExecutor.java58 br = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8)); in executeShellCommand()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DBufferDebug.java57 return "\"" + new String(buf, 0, len, StandardCharsets.UTF_8) + "\"\n"; in debugString()

12345