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

12345678

/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DLockSettingsStorageTests.java226 mStorage.writePasswordHash("thepassword".getBytes(), 0);
228 assertArrayEquals("thepassword".getBytes(), mStorage.readPasswordHash(0).hash);
230 assertArrayEquals("thepassword".getBytes(), mStorage.readPasswordHash(0).hash);
234 mStorage.writePasswordHash("parentpasswordd".getBytes(), 1);
235 mStorage.writePasswordHash("profilepassword".getBytes(), 2);
237 assertArrayEquals("profilepassword".getBytes(), mStorage.readPasswordHash(1).hash);
238 assertArrayEquals("profilepassword".getBytes(), mStorage.readPasswordHash(2).hash);
240 assertArrayEquals("profilepassword".getBytes(), mStorage.readPasswordHash(1).hash);
241 assertArrayEquals("profilepassword".getBytes(), mStorage.readPasswordHash(2).hash);
245 mStorage.writePasswordHash("parentpassword".getBytes(), 1
[all...]
/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/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/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/opt/net/wifi/tests/wifitests/src/android/net/wifi/
H A DFakeKeys.java59 InputStream stream = new ByteArrayInputStream(blob.getBytes(StandardCharsets.UTF_8));
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DVisualVoicemailSmsFilterTest.java51 + "port=143;name=1234567890@example.com;pw=CphQJKnYS4jEiDO").getBytes()};
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/volley/src/test/java/com/android/volley/toolbox/
H A DJsonRequestCharsetTest.java58 byte[] data = jsonObjectString().getBytes(Charset.forName("UTF-8"));
71 byte[] data = jsonArrayString().getBytes(Charset.forName("UTF-8"));
83 byte[] data = jsonObjectString().getBytes(Charset.forName("ISO-8859-1"));
97 byte[] data = jsonArrayString().getBytes(Charset.forName("ISO-8859-2"));
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableString.java47 byte[] arr = value.getBytes(UTF8_CHARSET);
55 byte[] arr = value.getBytes(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/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
H A DOMAConstants.java42 byte[] octets = s.getBytes(StandardCharsets.UTF_8);
43 byte[] prefix = String.format("%x:", octets.length).getBytes(StandardCharsets.UTF_8);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
H A DScanDetailUtilTest.java49 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8))
65 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8))
80 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8))
/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/base/packages/DocumentsUI/tests/src/com/android/documentsui/services/
H A DAbstractJobTest.java45 static final byte[] HAM_BYTES = "ham and cheese".getBytes();
46 static final byte[] FRUITY_BYTES = "I love fruit cakes!".getBytes();
/frameworks/base/core/java/android/content/pm/
H A DEphemeralResolveInfo.java160 final byte[] hostBytes = host.getBytes();
167 digests.add(digest.digest(host.getBytes()));
169 byte[] hostBytes = host.substring(prevDot + 1, host.length()).getBytes();
174 hostBytes = host.substring(prevDot + 1, host.length()).getBytes();
/frameworks/base/core/tests/coretests/src/android/net/
H A DSSLTest.java43 out.write(get.getBytes());

Completed in 1422 milliseconds

12345678