HomeSort by relevance Sort by last modified time
    Searched full:getbytes (Results 1 - 25 of 2163) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/base/services/tests/servicestests/src/com/android/server/
LockSettingsStorageTests.java 226 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(), 10)
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/
StringsTest.java 13 InputStream stream = new ByteArrayInputStream("some random string".getBytes());
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
WriteNumberFormatSerialTestData.java 47 file.write(header.getBytes());
52 file.write(footer.getBytes());
75 file.write(("\n "+comment).getBytes());
76 file.write(new String("\n static byte[] "+name+" = new byte[]{ \n").getBytes("UTF-8"));
77 file.write( " ".getBytes());
79 file.write(String.valueOf((int)myArr[i]).getBytes());
80 file.write( ", ".getBytes());
82 file.write("\n".getBytes());
83 file.write( " ".getBytes());
86 file.write(new String("\n };\n").getBytes("UTF-8"))
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
WriteNumberFormatSerialTestData.java 46 file.write(header.getBytes());
51 file.write(footer.getBytes());
74 file.write(("\n "+comment).getBytes());
75 file.write(new String("\n static byte[] "+name+" = new byte[]{ \n").getBytes("UTF-8"));
76 file.write( " ".getBytes());
78 file.write(String.valueOf((int)myArr[i]).getBytes());
79 file.write( ", ".getBytes());
81 file.write("\n".getBytes());
82 file.write( " ".getBytes());
85 file.write(new String("\n };\n").getBytes("UTF-8"))
    [all...]
  /frameworks/base/core/tests/coretests/src/android/os/
FileBridgeTest.java 90 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(StandardCharsets.UTF_8))
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/
BackupUtilsTest.java 37 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...]
  /external/jetty/src/java/org/eclipse/jetty/client/security/
DigestAuthentication.java 72 new String(buffer.toString().getBytes(StringUtil.__ISO_8859_1)));
81 md.update(securityRealm.getPrincipal().getBytes(StringUtil.__ISO_8859_1));
83 md.update(String.valueOf(details.get("realm")).getBytes(StringUtil.__ISO_8859_1));
85 md.update(securityRealm.getCredentials().getBytes(StringUtil.__ISO_8859_1));
89 md.update(exchange.getMethod().getBytes(StringUtil.__ISO_8859_1));
91 md.update(exchange.getURI().getBytes(StringUtil.__ISO_8859_1));
94 md.update(TypeUtil.toString(ha1,16).getBytes(StringUtil.__ISO_8859_1));
96 md.update(String.valueOf(details.get("nonce")).getBytes(StringUtil.__ISO_8859_1));
98 md.update(NC.getBytes(StringUtil.__ISO_8859_1));
100 md.update(cnonce.getBytes(StringUtil.__ISO_8859_1))
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
Base64Test.java 21 String result = Base64.encodeToString(base64Decoded.getBytes(), Base64.DEFAULT);
30 assertArrayEquals(result, base64Decoded.getBytes());
NdefRecordTest.java 15 byte[] bytes = "mumble".getBytes();
CameraTest.java 115 shadowCamera.invokePreviewCallback("foobar".getBytes());
118 assertThat(callback.data, equalTo("foobar".getBytes()));
128 shadowCamera.invokePreviewCallback("foobar".getBytes());
131 assertThat(callback.data, equalTo("foobar".getBytes()));
141 shadowCamera.invokePreviewCallback("foobar".getBytes());
144 assertThat(callback.data, equalTo("foobar".getBytes()));
156 shadowCamera.invokePreviewCallback("foobar".getBytes());
163 shadowCamera.invokePreviewCallback("foobar".getBytes());
170 shadowCamera.invokePreviewCallback("foobar".getBytes());
NdefMessageTest.java 16 NdefRecord[] ndefRecords = {new NdefRecord("mumble".getBytes())};
  /frameworks/base/core/tests/coretests/src/com/android/internal/os/
KernelWakelockReaderTest.java 49 public byte[] getBytes() throws Exception {
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();
  /external/boringssl/src/crypto/curve25519/
ed25519_test.cc 25 if (!t->GetBytes(&private_key, "PRIV") ||
27 !t->GetBytes(&public_key, "PUB") ||
29 !t->GetBytes(&message, "MESSAGE") ||
30 !t->GetBytes(&expected_signature, "SIG") ||
  /libcore/benchmarks/src/benchmarks/regression/
StringToBytesBenchmark.java 50 string.value.getBytes(StandardCharsets.UTF_8);
56 string.value.getBytes(StandardCharsets.ISO_8859_1);
62 string.value.getBytes(StandardCharsets.US_ASCII);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
ByteArrayOutputStreamTest.java 81 * java.io.ByteArrayOutputStream(); bos.write (fileString.getBytes(), 0,
84 * (fileString.getBytes(), 0, 100); bos.toByteArray(); fail("Wrote to
94 bos.write(fileString.getBytes(), 0, 100);
104 bos.write(fileString.getBytes(), 0, 100);
115 byte[] sbytes = fileString.getBytes();
117 bos.write(fileString.getBytes(), 0, fileString.length());
130 bos.write(fileString.getBytes("UTF-8"), 0, fileString.length());
135 bos.write(fileString.getBytes("UTF-8"), 0, fileString.length());
145 bos.write(fileString.getBytes(), 0, fileString.length());
156 bos.write(fileString.getBytes(), 0, fileString.length())
    [all...]
  /external/guava/guava-tests/test/com/google/common/base/
CharsetsTest.java 66 byte[] b1 = "????".getBytes(Charsets.US_ASCII);
67 byte[] b2 = "????".getBytes(Charsets.US_ASCII);
68 byte[] b3 = "????".getBytes(Charsets.US_ASCII);
69 byte[] b4 = "????".getBytes(Charsets.US_ASCII);
70 byte[] b5 = "????".getBytes(Charsets.US_ASCII);
  /external/sl4a/Common/src/com/googlecode/android_scripting/webcam/
MjpegServer.java 50 "Content-Type: multipart/x-mixed-replace; boundary=--BoundaryString\r\n\r\n").getBytes());
56 outputStream.write("--BoundaryString\r\n".getBytes());
57 outputStream.write("Content-type: image/jpg\r\n".getBytes());
58 outputStream.write(("Content-Length: " + data.length + "\r\n\r\n").getBytes());
60 outputStream.write("\r\n\r\n".getBytes());
  /libcore/luni/src/test/java/libcore/java/net/
OldDatagramPacketTest.java 28 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5, InetAddress.getLocalHost(), 1000);
63 new DatagramPacket("Hello".getBytes(), 6);
69 new DatagramPacket("Hello".getBytes(), -1);
76 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5);
85 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5);
  /libcore/support/src/test/java/tests/http/
MockResponse.java 106 return setBody(body.getBytes(ASCII));
120 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII));
121 bytesOut.write("\r\n".getBytes(ASCII));
123 bytesOut.write("\r\n".getBytes(ASCII));
126 bytesOut.write("0\r\n\r\n".getBytes(ASCII)); // last chunk + empty trailer + crlf
132 return setChunkedBody(body.getBytes(ASCII), maxChunkSize);
  /external/jacoco/org.jacoco.report.test/src/org/jacoco/report/
InputStreamSourceFileLocatorTest.java 60 sources.put("org/jacoco/example/Test.java", "ÜÄö".getBytes("UTF-8"));
68 sources.put("Test.java", "ÜÄö".getBytes("UTF-8"));
75 sources.put("Test.java", "ÜÄö".getBytes("UTF-16"));
82 sources.put("Test.java", "Hello World!".getBytes());
ZipMultiReportOutputTest.java 50 final byte[] content1 = "HelloZip".getBytes();
65 final byte[] content1 = "HelloZip".getBytes("ISO-8859-1");
75 assertArrayEquals("Zip".getBytes("ISO-8859-1"), entries.get("b.txt"));
95 final byte[] content1 = "HelloZip".getBytes();
101 final byte[] content2 = "HelloWorld".getBytes();
119 final byte[] content1 = "HelloZip".getBytes();
124 final byte[] content2 = "HelloWorld".getBytes();
143 out.write("HelloZip".getBytes());
150 out.write("HelloZip".getBytes(), 2, 3);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DatagramPacketTest.java 37 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5);
57 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 2, 3);
69 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 2, 3,
82 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5,
94 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5,
104 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5);
113 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5);
121 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 3, 2);
129 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5,
152 DatagramPacket dp = new DatagramPacket("Hello".getBytes(), 5
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
OldAndroidByteArrayInputStreamTest.java 33 ByteArrayInputStream a = new ByteArrayInputStream(str.getBytes());
34 ByteArrayInputStream b = new ByteArrayInputStream(str.getBytes());
35 ByteArrayInputStream c = new ByteArrayInputStream(str.getBytes());
36 ByteArrayInputStream d = new ByteArrayInputStream(str.getBytes());
OldAndroidPushbackInputStreamTest.java 30 ByteArrayInputStream aa = new ByteArrayInputStream(str.getBytes());
31 ByteArrayInputStream ba = new ByteArrayInputStream(str.getBytes());
32 ByteArrayInputStream ca = new ByteArrayInputStream(str.getBytes());
36 a.unread("push".getBytes());
  /libcore/luni/src/test/java/libcore/java/lang/
StringTest.java 86 s.getBytes(EVIL_CHARSET);
94 byte[] bytes = "xa\u0666bx".getBytes("UTF-8");
99 byte[] bytes = "xa\u0666bx".getBytes("UTF-8");
104 byte[] bytes = "xa\u0666bx".getBytes("UTF-8");
109 byte[] bytes = "a\u0666b".getBytes("UTF-8");
126 assertEquals("[97, 63, 98]", Arrays.toString("a\u0666b".getBytes("US-ASCII")));
127 assertEquals("[97, 63, 98]", Arrays.toString("a\u0666b".getBytes(Charset.forName("US-ASCII"))));
131 // We have a fast path implementation of String.getBytes for UTF-8.
135 assertEquals("[]", Arrays.toString("".getBytes(cs)));
138 assertEquals("[0]", Arrays.toString("\u0000".getBytes(cs)))
    [all...]

Completed in 543 milliseconds

1 2 3 4 5 6 7 8 91011>>