Searched refs:getBytes (Results 1 - 25 of 245) sorted by relevance

12345678910

/frameworks/base/core/tests/coretests/src/android/os/
H A DFileBridgeTest.java90 client.write("meow".getBytes(StandardCharsets.UTF_8));
92 assertContents("meow".getBytes(StandardCharsets.UTF_8));
97 client.write("cake".getBytes(StandardCharsets.UTF_8));
100 assertContents("cake".getBytes(StandardCharsets.UTF_8));
105 client.write("meow".getBytes(StandardCharsets.UTF_8));
107 client.write("cake".getBytes(StandardCharsets.UTF_8));
109 assertContents("meowcake".getBytes(StandardCharsets.UTF_8));
121 client.write("meow".getBytes(StandardCharsets.UTF_8));
124 client.write("cake".getBytes(StandardCharsets.UTF_8));
128 assertContents("meow".getBytes(StandardCharset
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/
H A DBackupUtilsTest.java37 sigs[i] = new Signature(signatures[i].getBytes());
53 "abc".getBytes()));
55 "abc".getBytes(), "def".getBytes()));
86 final byte[] sig1 = "abc".getBytes();
87 final byte[] sig2 = "def".getBytes();
104 "abc".getBytes(), "def".getBytes()));
107 new Signature("abc".getBytes()), new Signature("def".getBytes())});
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DKernelWakelockReaderTest.java49 public byte[] getBytes() throws Exception { method in class:KernelWakelockReaderTest.ProcFileBuilder
51 byte[] data = mStringBuilder.toString().getBytes(Charset.forName("UTF-8"));
77 byte[] buffer = new ProcFileBuilder().getBytes();
87 .getBytes();
103 .getBytes();
116 .getBytes();
131 .getBytes();
140 .getBytes();
H A DLoggingPrintStreamTest.java136 out.write(expected.getBytes("UTF-8"));
143 for (byte b : expected.getBytes()) {
152 out.write(expected.getBytes());
159 byte[] bytes = expected.getBytes();
175 out.write(toWrite.getBytes());
/frameworks/base/keystore/java/android/security/keystore/
H A DAttestationUtils.java133 Build.getSerial().getBytes(StandardCharsets.UTF_8));
141 imei.getBytes(StandardCharsets.UTF_8));
150 meid.getBytes(StandardCharsets.UTF_8));
158 Build.BRAND.getBytes(StandardCharsets.UTF_8));
160 Build.DEVICE.getBytes(StandardCharsets.UTF_8));
162 Build.PRODUCT.getBytes(StandardCharsets.UTF_8));
164 Build.MANUFACTURER.getBytes(StandardCharsets.UTF_8));
166 Build.MODEL.getBytes(StandardCharsets.UTF_8));
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
H A DIconInfoTestUtil.java55 out.write(TEST_LANGUAGE.getBytes(StandardCharsets.US_ASCII));
57 writeByteArrayWithLength(out, TEST_TYPE.getBytes(StandardCharsets.US_ASCII));
58 writeByteArrayWithLength(out, TEST_FILENAME.getBytes(StandardCharsets.UTF_8));
H A DOsuProviderInfoTestUtil.java109 writeByteArrayWithLength(out, TEST_SERVER_URI.getBytes(StandardCharsets.UTF_8));
122 writeByteArrayWithLength(out, TEST_NAI.getBytes(StandardCharsets.UTF_8));
151 out.write(value.getLanguage().getBytes(StandardCharsets.US_ASCII));
153 out.write(value.getText().getBytes(StandardCharsets.UTF_8));
H A DI18NameTest.java52 stream.write(language.getBytes(StandardCharsets.US_ASCII));
54 stream.write(text.getBytes(StandardCharsets.UTF_8));
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/
H A DConfigParserTest.java127 "application/x-wifi-config", configStr.getBytes());
140 "application/wifi-config", configStr.getBytes()));
152 "application/x-wifi-config", configStr.getBytes()));
164 "application/x-wifi-config", configStr.getBytes()));
176 "application/x-wifi-config", configStr.getBytes()));
189 "application/x-wifi-config", configStr.getBytes()));
201 "application/x-wifi-config", configStr.getBytes()));
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
H A DWifiP2pUpnpServiceRequest.java79 sb.append(WifiP2pServiceInfo.bin2HexStr(st.getBytes()));
H A DWifiP2pDnsSdServiceInfo.java129 byte[] data = instanceName.getBytes();
219 sb.append(WifiP2pServiceInfo.bin2HexStr(dnsName.getBytes()));
229 sb.append(WifiP2pServiceInfo.bin2HexStr(name.getBytes()));
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
H A DCertPinInstallReceiverTest.java131 byte[] encoded = content.getBytes();
142 byte[] derKey = Base64.decode(TEST_KEY.getBytes(), Base64.DEFAULT);
149 byte[] derCert = Base64.decode(TEST_CERT.getBytes(), Base64.DEFAULT);
157 fw.write(content.getBytes(), 0, content.length());
166 signer.update(content.trim().getBytes());
167 signer.update(version.trim().getBytes());
168 signer.update(requiredHash.getBytes());
179 signer.update(content.trim().getBytes());
180 signer.update(version.trim().getBytes());
181 signer.update(requiredPrevious.trim().getBytes());
[all...]
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/
H A DUpdateParameter.java297 if (mServerUri.getBytes(StandardCharsets.UTF_8).length > MAX_URI_BYTES) {
299 + mServerUri.getBytes(StandardCharsets.UTF_8).length);
307 if (mUsername.getBytes(StandardCharsets.UTF_8).length > MAX_USERNAME_BYTES) {
309 + mUsername.getBytes(StandardCharsets.UTF_8).length);
317 if (mBase64EncodedPassword.getBytes(StandardCharsets.UTF_8).length > MAX_PASSWORD_BYTES) {
319 + mBase64EncodedPassword.getBytes(StandardCharsets.UTF_8).length);
333 if (mTrustRootCertUrl.getBytes(StandardCharsets.UTF_8).length > MAX_URL_BYTES) {
335 + mTrustRootCertUrl.getBytes(StandardCharsets.UTF_8).length);
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DSendReq.java35 setContentType("application/vnd.wap.multipart.related".getBytes());
36 setFrom(new EncodedStringValue(PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes()));
47 return transactionId.getBytes();
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
H A DOutputStreamTarget.java53 data = ByteBuffer.wrap(stringVal.getBytes());
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DSmsRawData.java50 public byte[] getBytes() { method in class:SmsRawData
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
H A DSmsManagerPermissionTest.java60 MSG_CONTENTS.getBytes(), null, null);
/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/
H A DFileUtil.java45 fos.write(sDateFormat.format(new Date()).getBytes());
/frameworks/base/wifi/tests/src/android/net/wifi/
H A DWifiSsidTest.java33 private static final byte[] TEST_SSID_BYTES = TEST_SSID.getBytes(StandardCharsets.US_ASCII);
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableString.java49 byte[] arr = value.getBytes(PreloadHolder.UTF8_CHARSET);
57 byte[] arr = value.getBytes(PreloadHolder.UTF8_CHARSET);
/frameworks/base/core/tests/coretests/src/android/app/backup/
H A DBackupDataTest.java85 writeEntity(bdo, KEY1, DATA1.getBytes());
93 readAndVerifyEntity(bdi, KEY1, DATA1.getBytes());
105 writeEntity(bdo, KEYS[i], DATA[i].getBytes());
114 readAndVerifyEntity(bdi, KEYS[count], DATA[count].getBytes());
149 writeEntity(bdo, KEYS[i], DATA[i].getBytes()); i++;
150 writeEntity(bdo, KEYS[i], DATA[i].getBytes()); i++;
161 readAndVerifyEntity(bdi, KEYS[out], DATA[out].getBytes()); out++;
163 readAndVerifyEntity(bdi, KEYS[out], DATA[out].getBytes()); out++;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DWap230WspContentTypeTest.java267 out.write(testType.getBytes("US-ASCII"));
283 out.write(testType.getBytes("US-ASCII"));
451 out.write(testType.getBytes("US-ASCII"));
476 out.write(testType.getBytes("US-ASCII"));
494 out.write(testType.getBytes("US-ASCII"));
537 out.write("wdstechnology.com".getBytes("US-ASCII"));
562 out.write("wdstechnology.com".getBytes("US-ASCII"));
587 out.write("wdstechnology.com".getBytes("US-ASCII"));
655 out.write("imapc".getBytes("US-ASCII"));
676 out.write("MYPARAM".getBytes("U
[all...]
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DMacAuthenticatedInputStreamTest.java32 private static final SecretKey HMAC_KEY_1 = new SecretKeySpec("test_key_1".getBytes(), "HMAC");
34 private static final byte[] TEST_STRING_1 = "Hello, World!".getBytes();
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DNetworkListStoreDataTest.java269 return (openNetworkXml + eapNetworkXml).getBytes(StandardCharsets.UTF_8);
421 openNetwork.shared, openNetwork.creatorUid).getBytes(StandardCharsets.UTF_8);
438 .getBytes(StandardCharsets.UTF_8);
459 deserializeData(xmlString.getBytes(StandardCharsets.UTF_8), true /* shared */);
481 .getBytes(StandardCharsets.UTF_8);
507 .getBytes(StandardCharsets.UTF_8);
532 .getBytes(StandardCharsets.UTF_8);
551 .getBytes(StandardCharsets.UTF_8);
/frameworks/base/core/java/android/content/pm/
H A DInstantAppResolveInfo.java170 final byte[] hostBytes = hostName.getBytes();
177 digests.add(digest.digest(hostName.getBytes()));
180 hostName.substring(prevDot + 1, hostName.length()).getBytes();
186 hostName.substring(prevDot + 1, hostName.length()).getBytes();

Completed in 749 milliseconds

12345678910