/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | WriteNumberFormatSerialTestData.java | 51 file.write(header.getBytes()); in main() 56 file.write(footer.getBytes()); in main() 79 file.write(("\n "+comment).getBytes()); in write() 80 … file.write(new String("\n static byte[] "+name+" = new byte[]{ \n").getBytes("UTF-8")); in write() 81 file.write( " ".getBytes()); in write() 83 file.write(String.valueOf((int)myArr[i]).getBytes()); in write() 84 file.write( ", ".getBytes()); in write() 86 file.write("\n".getBytes()); in write() 87 file.write( " ".getBytes()); in write() 90 file.write(new String("\n };\n").getBytes("UTF-8")); in write()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | WriteNumberFormatSerialTestData.java | 48 file.write(header.getBytes()); in main() 53 file.write(footer.getBytes()); in main() 76 file.write(("\n "+comment).getBytes()); in write() 77 … file.write(new String("\n static byte[] "+name+" = new byte[]{ \n").getBytes("UTF-8")); in write() 78 file.write( " ".getBytes()); in write() 80 file.write(String.valueOf((int)myArr[i]).getBytes()); in write() 81 file.write( ", ".getBytes()); in write() 83 file.write("\n".getBytes()); in write() 84 file.write( " ".getBytes()); in write() 87 file.write(new String("\n };\n").getBytes("UTF-8")); in write()
|
/external/icu/icu4c/source/i18n/ |
D | sortkey.cpp | 71 uprv_memcpy(getBytes(), newValues, count); in CollationKey() 92 uprv_memcpy(getBytes(), other.getBytes(), length); in CollationKey() 105 uprv_memcpy(newBytes, getBytes(), length); in reallocate() 145 uprv_memcmp(getBytes(), source.getBytes(), getLength()) == 0); in operator ==() 163 uprv_memcpy(getBytes(), other.getBytes(), length); in operator =() 185 const uint8_t *src = getBytes(); in compareTo() 186 const uint8_t *tgt = target.getBytes(); in compareTo() 272 fHashCode = computeHashCode(getBytes(), getLength()); in hashCode()
|
/external/smali/util/src/test/java/org/jf/util/ |
D | ClassFileNameHandlerTest.java | 53 Assert.assertEquals(95, result.getBytes(UTF8).length); in test1ByteEncodings() 66 Assert.assertEquals(200, sb.toString().getBytes(UTF8).length); in test2ByteEncodings() 67 Assert.assertEquals(195, result.getBytes(UTF8).length); in test2ByteEncodings() 72 Assert.assertEquals(200, sb.toString().getBytes(UTF8).length); in test2ByteEncodings() 73 Assert.assertEquals(195, result.getBytes(UTF8).length); in test2ByteEncodings() 86 Assert.assertEquals(300, sb.toString().getBytes(UTF8).length); in test3ByteEncodings() 87 Assert.assertEquals(292, result.getBytes(UTF8).length); in test3ByteEncodings() 92 Assert.assertEquals(300, sb.toString().getBytes(UTF8).length); in test3ByteEncodings() 93 Assert.assertEquals(292, result.getBytes(UTF8).length); in test3ByteEncodings() 106 Assert.assertEquals(400, sb.toString().getBytes(UTF8).length); in test4ByteEncodings() [all …]
|
/external/conscrypt/platform/src/main/java/org/conscrypt/ |
D | CertBlacklist.java | 179 "bae78e6bed65a2bf60ddedde7fd91e825865e93d".getBytes(UTF_8), in readPublicKeyBlackList() 182 "410f36363258f30b347d12ce4863e433437806a8".getBytes(UTF_8), in readPublicKeyBlackList() 185 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(UTF_8), in readPublicKeyBlackList() 188 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(UTF_8), in readPublicKeyBlackList() 191 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(UTF_8), in readPublicKeyBlackList() 194 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(UTF_8), in readPublicKeyBlackList() 198 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(UTF_8), in readPublicKeyBlackList() 201 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(UTF_8), in readPublicKeyBlackList() 204 "783333c9687df63377efceddd82efa9101913e8e".getBytes(UTF_8), in readPublicKeyBlackList() 207 "3ecf4bbbe46096d514bb539bb913d77aa4ef31bf".getBytes(UTF_8) in readPublicKeyBlackList() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
D | CertBlacklist.java | 171 "410f36363258f30b347d12ce4863e433437806a8".getBytes(), in readPublicKeyBlackList() 174 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(), in readPublicKeyBlackList() 177 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(), in readPublicKeyBlackList() 180 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(), in readPublicKeyBlackList() 183 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(), in readPublicKeyBlackList() 187 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(), in readPublicKeyBlackList() 190 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(), in readPublicKeyBlackList() 193 "783333c9687df63377efceddd82efa9101913e8e".getBytes(), in readPublicKeyBlackList() 196 "3ecf4bbbe46096d514bb539bb913d77aa4ef31bf".getBytes() in readPublicKeyBlackList() 205 bl.add(value.getBytes()); in readPublicKeyBlackList()
|
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/ |
D | SinkTester.java | 49 public abstract byte[] getBytes() throws Exception; in getBytes() method in SinkTester 99 assertArrayEquals(expected, getBytes()); in sinkTestNoWriting() 112 assertArrayEquals(expected, getBytes()); in sinkTestWriteZeroBytes() 124 assertArrayEquals(expected, getBytes()); in sinkTestWriteByteByByte() 146 assertArrayEquals(expected, getBytes()); in sinkTestWriteArray() 177 assertArrayEquals(expected, getBytes()); in sinkTestWriteOffset() 188 assertArrayEquals(expected, getBytes()); in sinkTestWriteLargeArray() 204 assertArrayEquals(expectedBytes, getBytes()); in sinkTestWriteAfterClose()
|
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/ |
D | ZipMultiReportOutputTest.java | 50 final byte[] content1 = "HelloZip".getBytes(); in testWrite1() 65 final byte[] content1 = "HelloZip".getBytes("ISO-8859-1"); in testWrite2() 75 assertArrayEquals("Zip".getBytes("ISO-8859-1"), entries.get("b.txt")); in testWrite2() 95 final byte[] content1 = "HelloZip".getBytes(); in testCreateFiles() 101 final byte[] content2 = "HelloWorld".getBytes(); in testCreateFiles() 119 final byte[] content1 = "HelloZip".getBytes(); in testCreateFilesWithoutClose() 124 final byte[] content2 = "HelloWorld".getBytes(); in testCreateFilesWithoutClose() 143 out.write("HelloZip".getBytes()); in testWriteToClosedStream1() 150 out.write("HelloZip".getBytes(), 2, 3); in testWriteToClosedStream2()
|
/external/javassist/src/main/javassist/tools/web/ |
D | Webserver.java | 360 out.write("HTTP/1.0 200 OK".getBytes()); in sendHeader() 362 out.write("Content-Length: ".getBytes()); in sendHeader() 363 out.write(Long.toString(dataLength).getBytes()); in sendHeader() 366 out.write("Content-Type: application/octet-stream".getBytes()); in sendHeader() 368 out.write("Content-Type: text/html".getBytes()); in sendHeader() 370 out.write("Content-Type: image/gif".getBytes()); in sendHeader() 372 out.write("Content-Type: image/jpg".getBytes()); in sendHeader() 374 out.write("Content-Type: text/plain".getBytes()); in sendHeader() 384 out.write("HTTP/1.0 400 Bad Request".getBytes()); in replyError() 387 out.write("<H1>Bad Request</H1>".getBytes()); in replyError()
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | SSLUtilsTest.java | 33 "0123456789abcdefghijklmnopqrstuvwxyz".getBytes(UTF_8); 60 "protocol-1".getBytes(UTF_8), in encodeProtocolsShouldSucceed() 61 "protocol-2".getBytes(UTF_8), in encodeProtocolsShouldSucceed() 62 "protocol-3".getBytes(UTF_8), in encodeProtocolsShouldSucceed() 82 "protocol-1".getBytes(UTF_8), in decodeProtocolsShouldSucceed() 83 "protocol-2".getBytes(UTF_8), in decodeProtocolsShouldSucceed() 84 "protocol-3".getBytes(UTF_8), in decodeProtocolsShouldSucceed()
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/webcam/ |
D | MjpegServer.java | 50 "Content-Type: multipart/x-mixed-replace; boundary=--BoundaryString\r\n\r\n").getBytes()); in handleConnection() 56 outputStream.write("--BoundaryString\r\n".getBytes()); in handleConnection() 57 outputStream.write("Content-type: image/jpg\r\n".getBytes()); in handleConnection() 58 outputStream.write(("Content-Length: " + data.length + "\r\n\r\n").getBytes()); in handleConnection() 60 outputStream.write("\r\n\r\n".getBytes()); in handleConnection()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/charsetdet/ |
D | TestCharsetDetector.java | 137 byte[] bytes = s.getBytes("ISO-8859-1"); in TestInputFilter() 169 byte [] bytes = s.getBytes("UTF-8"); in TestUTF8() 193 byte[] beBytes = source.getBytes("UnicodeBig"); in TestUTF16() 194 byte[] leBytes = source.getBytes("UnicodeLittle"); in TestUTF16() 228 byte[] bISO = sISO.getBytes("ISO-8859-1"); in TestC1Bytes() 229 byte[] bWindows = sWindows.getBytes("windows-1252"); in TestC1Bytes() 392 bytesString.getBytes(0, bytesString.length(), bytes, 0); in TestDetection() 467 bytes = testString.getBytes(encoding); in checkEncoding() 518 bytes = s.getBytes("EUC-JP"); in TestJapanese() 554 bytes = s.getBytes("windows-1256"); in TestArabic() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/ |
D | TestCharsetDetector.java | 134 byte[] bytes = s.getBytes("ISO-8859-1"); in TestInputFilter() 166 byte [] bytes = s.getBytes("UTF-8"); in TestUTF8() 190 byte[] beBytes = source.getBytes("UnicodeBig"); in TestUTF16() 191 byte[] leBytes = source.getBytes("UnicodeLittle"); in TestUTF16() 225 byte[] bISO = sISO.getBytes("ISO-8859-1"); in TestC1Bytes() 226 byte[] bWindows = sWindows.getBytes("windows-1252"); in TestC1Bytes() 389 bytesString.getBytes(0, bytesString.length(), bytes, 0); in TestDetection() 464 bytes = testString.getBytes(encoding); in checkEncoding() 515 bytes = s.getBytes("EUC-JP"); in TestJapanese() 551 bytes = s.getBytes("windows-1256"); in TestArabic() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | CharsetsTest.java | 66 byte[] b1 = "朝日新聞".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 67 byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 68 byte[] b3 = "????".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 69 byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous() 70 byte[] b5 = "スューー".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous()
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | CameraTest.java | 115 shadowCamera.invokePreviewCallback("foobar".getBytes()); in testSetPreviewCallbacks() 118 assertThat(callback.data, equalTo("foobar".getBytes())); in testSetPreviewCallbacks() 128 shadowCamera.invokePreviewCallback("foobar".getBytes()); in testSetOneShotPreviewCallbacks() 131 assertThat(callback.data, equalTo("foobar".getBytes())); in testSetOneShotPreviewCallbacks() 141 shadowCamera.invokePreviewCallback("foobar".getBytes()); in testPreviewCallbacksWithBuffers() 144 assertThat(callback.data, equalTo("foobar".getBytes())); in testPreviewCallbacksWithBuffers() 156 shadowCamera.invokePreviewCallback("foobar".getBytes()); in testClearPreviewCallback() 163 shadowCamera.invokePreviewCallback("foobar".getBytes()); in testClearPreviewCallback() 170 shadowCamera.invokePreviewCallback("foobar".getBytes()); in testClearPreviewCallback()
|
/external/mockftpserver/tags/2.x_Before_IDEA/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 57 byte[] contents = CONTENTS.getBytes() 84 out.write(CONTENTS.getBytes()) 89 out.write(CONTENTS.getBytes()) 94 out.write(CONTENTS.getBytes()) 104 out.write(CONTENTS.getBytes()) 109 out2.write(CONTENTS.getBytes()) 114 out.write(NEW_CONTENTS.getBytes()) 167 … assertEquals("contents: actual=[" + new String(bytes) + "]", expectedContents.getBytes(), bytes)
|
/external/turbine/javatests/com/google/turbine/main/ |
D | MainTest.java | 55 jos.write("class Test { public static final String CONST = \"ONE\"; }".getBytes(UTF_8)); in sourceJarClash() 60 jos.write("class Test { public static final String CONST = \"TWO\"; }".getBytes(UTF_8)); in sourceJarClash() 80 Files.write(src, "@Deprecated package test;".getBytes(UTF_8)); in packageInfo() 102 jos.write("@Deprecated package test;".getBytes(UTF_8)); in packageInfoSrcjar() 137 jos.write("module foo {}".getBytes(UTF_8)); in moduleInfos() 139 jos.write("module bar {}".getBytes(UTF_8)); in moduleInfos() 143 Files.write(src, "module baz {}".getBytes(UTF_8)); in moduleInfos()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/ |
D | TestStringPrep.java | 114 byte[] dest = NFS4StringPrep.mixed_prepare(src.getBytes("UTF-8")); in TestNFS4MixedPrep() 128 byte[] dest = NFS4StringPrep.mixed_prepare(src.getBytes("UTF-8")); in TestNFS4MixedPrep() 147 byte[] dest =NFS4StringPrep.cis_prepare(src.getBytes("UTF-8")); in TestCISPrep() 167 NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), false); in TestCSPrep() 175 byte[] dest = NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), false); in TestCSPrep() 188 byte[] dest = NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), false); in TestCSPrep() 200 byte[] dest = NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), true); in TestCSPrep()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/ |
D | TestStringPrep.java | 111 byte[] dest = NFS4StringPrep.mixed_prepare(src.getBytes("UTF-8")); in TestNFS4MixedPrep() 125 byte[] dest = NFS4StringPrep.mixed_prepare(src.getBytes("UTF-8")); in TestNFS4MixedPrep() 144 byte[] dest =NFS4StringPrep.cis_prepare(src.getBytes("UTF-8")); in TestCISPrep() 164 NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), false); in TestCSPrep() 172 byte[] dest = NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), false); in TestCSPrep() 185 byte[] dest = NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), false); in TestCSPrep() 197 byte[] dest = NFS4StringPrep.cs_prepare(src.getBytes("UTF-8"), true); in TestCSPrep()
|
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
D | MockResponse.java | 176 return setBody(body.getBytes("UTF-8")); in setBody() 195 bytesOut.write(Integer.toHexString(chunkSize).getBytes(US_ASCII)); in setChunkedBody() 196 bytesOut.write("\r\n".getBytes(US_ASCII)); in setChunkedBody() 198 bytesOut.write("\r\n".getBytes(US_ASCII)); in setChunkedBody() 201 bytesOut.write("0\r\n\r\n".getBytes(US_ASCII)); // last chunk + empty trailer + crlf in setChunkedBody() 216 return setChunkedBody(body.getBytes("UTF-8"), maxChunkSize); in setChunkedBody()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowCameraTest.java | 118 shadowCamera.invokePreviewCallback("foobar".getBytes(UTF_8)); in testSetPreviewCallbacks() 121 assertThat(callback.data).isEqualTo("foobar".getBytes(UTF_8)); in testSetPreviewCallbacks() 131 shadowCamera.invokePreviewCallback("foobar".getBytes(UTF_8)); in testSetOneShotPreviewCallbacks() 134 assertThat(callback.data).isEqualTo("foobar".getBytes(UTF_8)); in testSetOneShotPreviewCallbacks() 144 shadowCamera.invokePreviewCallback("foobar".getBytes(UTF_8)); in testPreviewCallbacksWithBuffers() 147 assertThat(callback.data).isEqualTo("foobar".getBytes(UTF_8)); in testPreviewCallbacksWithBuffers() 159 shadowCamera.invokePreviewCallback("foobar".getBytes(UTF_8)); in testClearPreviewCallback() 166 shadowCamera.invokePreviewCallback("foobar".getBytes(UTF_8)); in testClearPreviewCallback() 173 shadowCamera.invokePreviewCallback("foobar".getBytes(UTF_8)); in testClearPreviewCallback()
|
/external/apache-http/src/org/apache/http/util/ |
D | EncodingUtils.java | 110 public static byte[] getBytes(final String data, final String charset) { in getBytes() method in EncodingUtils 121 return data.getBytes(charset); in getBytes() 123 return data.getBytes(); in getBytes() 140 return data.getBytes(HTTP.US_ASCII); in getAsciiBytes()
|
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 46 byte[] contents = CONTENTS.getBytes() 66 out.write(CONTENTS.getBytes()) 71 out.write(CONTENTS.getBytes()) 76 out.write(CONTENTS.getBytes()) 86 out.write(CONTENTS.getBytes()) 91 out2.write(CONTENTS.getBytes()) 96 out.write(NEW_CONTENTS.getBytes()) 186 … assertEquals("contents: actual=[" + new String(bytes) + "]", expectedContents.getBytes(), bytes)
|
/external/mockftpserver/tags/2.0/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 46 byte[] contents = CONTENTS.getBytes() 66 out.write(CONTENTS.getBytes()) 71 out.write(CONTENTS.getBytes()) 76 out.write(CONTENTS.getBytes()) 86 out.write(CONTENTS.getBytes()) 91 out2.write(CONTENTS.getBytes()) 96 out.write(NEW_CONTENTS.getBytes()) 197 … assertEquals("contents: actual=[" + new String(bytes) + "]", expectedContents.getBytes(), bytes)
|
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/ |
D | FileEntryTest.groovy | 46 byte[] contents = CONTENTS.getBytes() 66 out.write(CONTENTS.getBytes()) 71 out.write(CONTENTS.getBytes()) 76 out.write(CONTENTS.getBytes()) 86 out.write(CONTENTS.getBytes()) 91 out2.write(CONTENTS.getBytes()) 96 out.write(NEW_CONTENTS.getBytes()) 186 … assertEquals("contents: actual=[" + new String(bytes) + "]", expectedContents.getBytes(), bytes)
|