Home
last modified time | relevance | path

Searched refs:getBytes (Results 1 – 25 of 1238) sorted by relevance

12345678910>>...50

/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/
DSimpleElementValue.java59 return c.getBytes(); in getValueString()
70 return c.getBytes(); in getValueInt()
81 return (byte) c.getBytes(); in getValueByte()
92 return (char) c.getBytes(); in getValueChar()
102 return j.getBytes(); in getValueLong()
112 return f.getBytes(); in getValueFloat()
122 return d.getBytes(); in getValueDouble()
132 return bo.getBytes() != 0; in getValueBoolean()
142 return (short) s.getBytes(); in getValueShort()
162 return Integer.toString(c.getBytes()); in stringifyValue()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DZip64ExtendedInformationExtraFieldTest.java89 System.arraycopy(SIZE.getBytes(), 0, b, 0, 8); in testReadLFHSizesOnly()
90 System.arraycopy(CSIZE.getBytes(), 0, b, 8, 8); in testReadLFHSizesOnly()
103 System.arraycopy(SIZE.getBytes(), 0, b, 0, 8); in testReadLFHSizesAndOffset()
104 System.arraycopy(CSIZE.getBytes(), 0, b, 8, 8); in testReadLFHSizesAndOffset()
105 System.arraycopy(OFF.getBytes(), 0, b, 16, 8); in testReadLFHSizesAndOffset()
118 System.arraycopy(SIZE.getBytes(), 0, b, 0, 8); in testReadLFHSizesOffsetAndDisk()
119 System.arraycopy(CSIZE.getBytes(), 0, b, 8, 8); in testReadLFHSizesOffsetAndDisk()
120 System.arraycopy(OFF.getBytes(), 0, b, 16, 8); in testReadLFHSizesOffsetAndDisk()
121 System.arraycopy(DISK.getBytes(), 0, b, 24, 4); in testReadLFHSizesOffsetAndDisk()
134 System.arraycopy(SIZE.getBytes(), 0, b, 0, 8); in testReadLFHSizesAndDisk()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DWriteNumberFormatSerialTestData.java51 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/
DWriteNumberFormatSerialTestData.java48 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/guava/guava-tests/test/com/google/common/hash/
DMacHashFunctionTest.java45 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacMD5");
47 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA1");
49 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA256");
51 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA512");
96 mac.update("hello".getBytes(UTF_8)); in testMultipleUpdates()
97 mac.update("world".getBytes(UTF_8)); in testMultipleUpdates()
111 mac.update("hello".getBytes(UTF_8)); in testMultipleUpdatesDoFinal()
112 mac.update("world".getBytes(UTF_8)); in testMultipleUpdatesDoFinal()
115 HashCode.fromBytes(mac.doFinal("!!!".getBytes(UTF_8))), in testMultipleUpdatesDoFinal()
200 mac.update(input.getBytes(UTF_8)); in testKnownInputs()
[all …]
/external/guava/android/guava-tests/test/com/google/common/hash/
DMacHashFunctionTest.java45 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacMD5");
47 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA1");
49 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA256");
51 new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA512");
96 mac.update("hello".getBytes(UTF_8)); in testMultipleUpdates()
97 mac.update("world".getBytes(UTF_8)); in testMultipleUpdates()
111 mac.update("hello".getBytes(UTF_8)); in testMultipleUpdatesDoFinal()
112 mac.update("world".getBytes(UTF_8)); in testMultipleUpdatesDoFinal()
115 HashCode.fromBytes(mac.doFinal("!!!".getBytes(UTF_8))), in testMultipleUpdatesDoFinal()
200 mac.update(input.getBytes(UTF_8)); in testKnownInputs()
[all …]
/external/icu/icu4c/source/i18n/
Dsortkey.cpp71 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/
DClassFileNameHandlerTest.java53 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/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DCertBlocklist.java172 "410f36363258f30b347d12ce4863e433437806a8".getBytes(), in readPublicKeyBlockList()
175 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(), in readPublicKeyBlockList()
178 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(), in readPublicKeyBlockList()
181 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(), in readPublicKeyBlockList()
184 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(), in readPublicKeyBlockList()
188 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(), in readPublicKeyBlockList()
191 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(), in readPublicKeyBlockList()
194 "783333c9687df63377efceddd82efa9101913e8e".getBytes(), in readPublicKeyBlockList()
197 "3ecf4bbbe46096d514bb539bb913d77aa4ef31bf".getBytes() in readPublicKeyBlockList()
206 bl.add(value.getBytes()); in readPublicKeyBlockList()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jce/provider/
DCertBlocklist.java176 "410f36363258f30b347d12ce4863e433437806a8".getBytes(), in readPublicKeyBlockList()
179 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(), in readPublicKeyBlockList()
182 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(), in readPublicKeyBlockList()
185 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(), in readPublicKeyBlockList()
188 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(), in readPublicKeyBlockList()
192 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(), in readPublicKeyBlockList()
195 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(), in readPublicKeyBlockList()
198 "783333c9687df63377efceddd82efa9101913e8e".getBytes(), in readPublicKeyBlockList()
201 "3ecf4bbbe46096d514bb539bb913d77aa4ef31bf".getBytes() in readPublicKeyBlockList()
210 bl.add(value.getBytes()); in readPublicKeyBlockList()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/
DCertBlocklist.java176 "410f36363258f30b347d12ce4863e433437806a8".getBytes(), in readPublicKeyBlockList()
179 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(), in readPublicKeyBlockList()
182 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(), in readPublicKeyBlockList()
185 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(), in readPublicKeyBlockList()
188 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(), in readPublicKeyBlockList()
192 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(), in readPublicKeyBlockList()
195 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(), in readPublicKeyBlockList()
198 "783333c9687df63377efceddd82efa9101913e8e".getBytes(), in readPublicKeyBlockList()
201 "3ecf4bbbe46096d514bb539bb913d77aa4ef31bf".getBytes() in readPublicKeyBlockList()
210 bl.add(value.getBytes()); in readPublicKeyBlockList()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/generic/
DSimpleElementValueGen.java192 return c.getBytes(); in getValueString()
202 return c.getBytes(); in getValueInt()
213 return Integer.toString(c.getBytes()); in stringifyValue()
216 return Long.toString(j.getBytes()); in stringifyValue()
219 return Double.toString(d.getBytes()); in stringifyValue()
222 return Float.toString(f.getBytes()); in stringifyValue()
225 return Integer.toString(s.getBytes()); in stringifyValue()
228 return Integer.toString(b.getBytes()); in stringifyValue()
231 return Integer.toString(ch.getBytes()); in stringifyValue()
234 if (bo.getBytes() == 0) { in stringifyValue()
[all …]
DConstantPoolGen.java113 final String key = u8.getBytes(); in ConstantPoolGen()
120 final String key = u8.getBytes(); in ConstantPoolGen()
129 sb.append(u8.getBytes()); in ConstantPoolGen()
131 sb.append(u8_2.getBytes()); in ConstantPoolGen()
140 final String key = u.getBytes(); in ConstantPoolGen()
156 class_name = u8.getBytes().replace('/', '.'); in ConstantPoolGen()
161 final String method_name = u8.getBytes(); in ConstantPoolGen()
163 final String signature = u8.getBytes(); in ConstantPoolGen()
344 if (c.getBytes() == n) { in lookupInteger()
382 if (Float.floatToIntBits(c.getBytes()) == bits) { in lookupFloat()
[all …]
/external/conscrypt/repackaged/platform/src/main/java/com/android/org/conscrypt/
DCertBlocklistImpl.java184 "bae78e6bed65a2bf60ddedde7fd91e825865e93d".getBytes(UTF_8), in readPublicKeyBlockList()
187 "410f36363258f30b347d12ce4863e433437806a8".getBytes(UTF_8), in readPublicKeyBlockList()
190 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(UTF_8), in readPublicKeyBlockList()
193 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(UTF_8), in readPublicKeyBlockList()
196 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(UTF_8), in readPublicKeyBlockList()
199 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(UTF_8), in readPublicKeyBlockList()
203 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(UTF_8), in readPublicKeyBlockList()
206 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(UTF_8), in readPublicKeyBlockList()
209 "783333c9687df63377efceddd82efa9101913e8e".getBytes(UTF_8), in readPublicKeyBlockList()
212 "3ecf4bbbe46096d514bb539bb913d77aa4ef31bf".getBytes(UTF_8) in readPublicKeyBlockList()
[all …]
/external/conscrypt/platform/src/main/java/org/conscrypt/
DCertBlocklistImpl.java180 "bae78e6bed65a2bf60ddedde7fd91e825865e93d".getBytes(UTF_8), in readPublicKeyBlockList()
183 "410f36363258f30b347d12ce4863e433437806a8".getBytes(UTF_8), in readPublicKeyBlockList()
186 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(UTF_8), in readPublicKeyBlockList()
189 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(UTF_8), in readPublicKeyBlockList()
192 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(UTF_8), in readPublicKeyBlockList()
195 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(UTF_8), in readPublicKeyBlockList()
199 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(UTF_8), in readPublicKeyBlockList()
202 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(UTF_8), in readPublicKeyBlockList()
205 "783333c9687df63377efceddd82efa9101913e8e".getBytes(UTF_8), in readPublicKeyBlockList()
208 "3ecf4bbbe46096d514bb539bb913d77aa4ef31bf".getBytes(UTF_8) in readPublicKeyBlockList()
[all …]
/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/
DMainTest.java91 Files.write(path, "class Test {}\n".getBytes(UTF_8)); in preserveOriginalFile()
159 InputStream in = new ByteArrayInputStream(joiner.join(input).getBytes(UTF_8)); in javadoc()
195 InputStream in = new ByteArrayInputStream(joiner.join(input).getBytes(UTF_8)); in imports()
236 InputStream in = new ByteArrayInputStream(joiner.join(input).getBytes(UTF_8)); in optimizeImportsDoesNotLeaveEmptyLines()
271 new ByteArrayInputStream(joiner.join(input).getBytes(UTF_8))); in importRemovalLines()
295 new ByteArrayInputStream(joiner.join(input).getBytes(UTF_8))); in importRemoveErrorParseError()
321 new ByteArrayInputStream(joiner.join(input).getBytes(UTF_8))); in packageInfo()
334 new ByteArrayInputStream("class T {}\n\t".getBytes(UTF_8))); in newline()
347 new ByteArrayInputStream("class Test {}\n".getBytes(UTF_8))); in dryRunStdinUnchanged()
362 new ByteArrayInputStream(input.getBytes(UTF_8))); in dryRunStdinChanged()
[all …]
DDiagnosticTest.java79 Files.write(path, input.getBytes(UTF_8)); in parseError()
97 Files.write(path, input.getBytes(UTF_8)); in lexError()
117 Files.write(pathOne, one.getBytes(UTF_8)); in oneFileParseError()
120 Files.write(pathTwo, two.getBytes(UTF_8)); in oneFileParseError()
139 Files.write(pathOne, one.getBytes(UTF_8)); in oneFileParseErrorReplace()
142 Files.write(pathTwo, two.getBytes(UTF_8)); in oneFileParseErrorReplace()
159 Files.write(path, input.getBytes(StandardCharsets.UTF_8)); in parseError2()
176 InputStream inStream = new ByteArrayInputStream(input.getBytes(StandardCharsets.UTF_8)); in parseErrorStdin()
193 Files.write(path, input.getBytes(StandardCharsets.UTF_8)); in lexError2()
209 InputStream inStream = new ByteArrayInputStream(input.getBytes(StandardCharsets.UTF_8)); in lexErrorStdin()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/webcam/
DMjpegServer.java50 + "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/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/metadata/icy/
DIcyDecoderTest.java41 byte[] icyContent = "StreamTitle='test title';StreamURL='test_url';".getBytes(UTF_8); in decode()
55 byte[] icyTitle = "StreamTitle='test title';".getBytes(UTF_8); in decode_respectsLimit()
56 byte[] icyUrl = "StreamURL='test_url';".getBytes(UTF_8); in decode_respectsLimit()
72 byte[] icyContent = "StreamTitle='test title';".getBytes(UTF_8); in decode_titleOnly()
87 .getBytes(UTF_8); in decode_extraTags()
100 byte[] icyContent = "StreamTitle='';StreamURL='test_url';".getBytes(UTF_8); in decode_emptyTitle()
113 byte[] icyContent = "StreamTitle='test; title';StreamURL='test_url';".getBytes(UTF_8); in decode_semiColonInTitle()
126 byte[] icyContent = "StreamTitle='test' title';StreamURL='test_url';".getBytes(UTF_8); in decode_quoteInTitle()
139 byte[] icyContent = "StreamTitle='test\r\ntitle';StreamURL='test_url';".getBytes(UTF_8); in decode_lineTerminatorInTitle()
153 byte[] icyContent = "StreamTitle='tést';StreamURL='tést_url';".getBytes(ISO_8859_1); in decode_iso885911()
[all …]
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/
DZipMultiReportOutputTest.java50 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/cbor-java/src/test/java/co/nstant/in/cbor/model/
DByteStringTest.java28 byte[] bytes = "string".getBytes(); in shouldEquals()
35 byte[] bytes = "string".getBytes(); in shouldNotEquals()
43 byte[] bytes = "string".getBytes(); in shouldHashcode()
50 byte[] bytes = "see issue #18".getBytes(); in shouldNotClone()
52 assertEquals(byteString.getBytes(), bytes); in shouldNotClone()
/external/guava/guava-tests/test/com/google/common/base/
DCharsetsTest.java64 byte[] b1 = "朝日新聞".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous()
65 byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous()
66 byte[] b3 = "????".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous()
67 byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous()
68 byte[] b5 = "スューー".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous()
/external/guava/android/guava-tests/test/com/google/common/base/
DCharsetsTest.java64 byte[] b1 = "朝日新聞".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous()
65 byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous()
66 byte[] b3 = "????".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous()
67 byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous()
68 byte[] b5 = "スューー".getBytes(Charsets.US_ASCII); in testWhyUsAsciiIsDangerous()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DAsiExtraField.java109 + getLinkedFile().getBytes().length); in getLocalFileDataLength()
131 System.arraycopy(ZipShort.getBytes(getMode()), 0, data, 0, 2); in getLocalFileDataData()
133 … final byte[] linkArray = getLinkedFile().getBytes(); // Uses default charset - see class Javadoc in getLocalFileDataData()
135 System.arraycopy(ZipLong.getBytes(linkArray.length), in getLocalFileDataData()
138 System.arraycopy(ZipShort.getBytes(getUserId()), in getLocalFileDataData()
140 System.arraycopy(ZipShort.getBytes(getGroupId()), in getLocalFileDataData()
151 System.arraycopy(ZipLong.getBytes(checksum), 0, result, 0, WORD); in getLocalFileDataData()
DZipArchiveOutputStream.java202 private static final byte[] ONE = ZipLong.getBytes(1L);
676 writeOut(ZipLong.getBytes(entry.entry.getCrc())); in rewriteSizesAndCrc()
678 writeOut(ZipLong.getBytes(entry.entry.getCompressedSize())); in rewriteSizesAndCrc()
679 writeOut(ZipLong.getBytes(entry.entry.getSize())); in rewriteSizesAndCrc()
681 writeOut(ZipLong.ZIP64_MAGIC.getBytes()); in rewriteSizesAndCrc()
682 writeOut(ZipLong.ZIP64_MAGIC.getBytes()); in rewriteSizesAndCrc()
693 writeOut(ZipEightByteInteger.getBytes(entry.entry.getSize())); in rewriteSizesAndCrc()
694 writeOut(ZipEightByteInteger.getBytes(entry.entry.getCompressedSize())); in rewriteSizesAndCrc()
700 … writeOut(ZipShort.getBytes(versionNeededToExtract(entry.entry.getMethod(), false, false))); in rewriteSizesAndCrc()
992 static final byte[] LFH_SIG = ZipLong.LFH_SIG.getBytes(); //NOSONAR
[all …]

12345678910>>...50