/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/ |
D | SimpleElementValue.java | 59 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 …]
|
D | ConstantValue.java | 128 buf = String.valueOf(((ConstantLong) c).getBytes()); in toString() 131 buf = String.valueOf(((ConstantFloat) c).getBytes()); in toString() 134 buf = String.valueOf(((ConstantDouble) c).getBytes()); in toString() 137 buf = String.valueOf(((ConstantInteger) c).getBytes()); in toString() 142 buf = "\"" + Utility.convertString(((ConstantUtf8) c).getBytes()) + "\""; in toString()
|
D | ConstantPool.java | 109 str = Utility.compactClassName(((ConstantUtf8) c).getBytes(), false); in constantToString() 114 str = "\"" + escape(((ConstantUtf8) c).getBytes()) + "\""; in constantToString() 117 str = ((ConstantUtf8) c).getBytes(); in constantToString() 120 str = String.valueOf(((ConstantDouble) c).getBytes()); in constantToString() 123 str = String.valueOf(((ConstantFloat) c).getBytes()); in constantToString() 126 str = String.valueOf(((ConstantLong) c).getBytes()); in constantToString() 129 str = String.valueOf(((ConstantInteger) c).getBytes()); in constantToString() 313 return ((ConstantUtf8) c).getBytes(); in getConstantString()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/ |
D | Zip64ExtendedInformationExtraFieldTest.java | 89 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/ |
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/conscrypt/platform/src/main/java/org/conscrypt/ |
D | CertBlacklistImpl.java | 176 "bae78e6bed65a2bf60ddedde7fd91e825865e93d".getBytes(UTF_8), in readPublicKeyBlackList() 179 "410f36363258f30b347d12ce4863e433437806a8".getBytes(UTF_8), in readPublicKeyBlackList() 182 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(UTF_8), in readPublicKeyBlackList() 185 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(UTF_8), in readPublicKeyBlackList() 188 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(UTF_8), in readPublicKeyBlackList() 191 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(UTF_8), in readPublicKeyBlackList() 195 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(UTF_8), in readPublicKeyBlackList() 198 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(UTF_8), in readPublicKeyBlackList() 201 "783333c9687df63377efceddd82efa9101913e8e".getBytes(UTF_8), in readPublicKeyBlackList() 204 "3ecf4bbbe46096d514bb539bb913d77aa4ef31bf".getBytes(UTF_8) in readPublicKeyBlackList() [all …]
|
/external/conscrypt/repackaged/platform/src/main/java/com/android/org/conscrypt/ |
D | CertBlacklistImpl.java | 180 "bae78e6bed65a2bf60ddedde7fd91e825865e93d".getBytes(UTF_8), in readPublicKeyBlackList() 183 "410f36363258f30b347d12ce4863e433437806a8".getBytes(UTF_8), in readPublicKeyBlackList() 186 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(UTF_8), in readPublicKeyBlackList() 189 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(UTF_8), in readPublicKeyBlackList() 192 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(UTF_8), in readPublicKeyBlackList() 195 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(UTF_8), in readPublicKeyBlackList() 199 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(UTF_8), in readPublicKeyBlackList() 202 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(UTF_8), in readPublicKeyBlackList() 205 "783333c9687df63377efceddd82efa9101913e8e".getBytes(UTF_8), in readPublicKeyBlackList() 208 "3ecf4bbbe46096d514bb539bb913d77aa4ef31bf".getBytes(UTF_8) in readPublicKeyBlackList() [all …]
|
/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/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/ |
D | CertBlacklist.java | 175 "410f36363258f30b347d12ce4863e433437806a8".getBytes(), in readPublicKeyBlackList() 178 "ba3e7bd38cd7e1e6b9cd4c219962e59d7a2f4e37".getBytes(), in readPublicKeyBlackList() 181 "e23b8d105f87710a68d9248050ebefc627be4ca6".getBytes(), in readPublicKeyBlackList() 184 "7b2e16bc39bcd72b456e9f055d1de615b74945db".getBytes(), in readPublicKeyBlackList() 187 "e8f91200c65cee16e039b9f883841661635f81c5".getBytes(), in readPublicKeyBlackList() 191 "0129bcd5b448ae8d2496d1c3e19723919088e152".getBytes(), in readPublicKeyBlackList() 194 "5f3ab33d55007054bc5e3e5553cd8d8465d77c61".getBytes(), in readPublicKeyBlackList() 197 "783333c9687df63377efceddd82efa9101913e8e".getBytes(), in readPublicKeyBlackList() 200 "3ecf4bbbe46096d514bb539bb913d77aa4ef31bf".getBytes() in readPublicKeyBlackList() 209 bl.add(value.getBytes()); in readPublicKeyBlackList()
|
/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/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/ |
D | ByteArrayHolderTest.java | 31 byte[] data = "hello world".getBytes(); in testGetters() 38 byte[] data1a = "hello world".getBytes(); in testHashCode() 39 byte[] data1b = new String("hello world").getBytes(); in testHashCode() 40 byte[] data2 = "hello another world".getBytes(); in testHashCode() 53 byte[] data1a = "hello world".getBytes(); in testEquals() 54 byte[] data1b = new String("hello world").getBytes(); in testEquals() 55 byte[] data2 = "hello another world".getBytes(); in testEquals()
|
/external/apache-commons-bcel/src/main/java/org/apache/bcel/generic/ |
D | SimpleElementValueGen.java | 192 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 …]
|
D | ConstantPoolGen.java | 113 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/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/sl4a/Common/src/com/googlecode/android_scripting/facade/webcam/ |
D | MjpegServer.java | 50 + "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/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/ |
D | ZipArchiveOutputStream.java | 202 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 …]
|
D | AsiExtraField.java | 109 + 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()
|
/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/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | TransportFrameUtilTest.java | 49 return value.getBytes(UTF_8); 73 "plainstring".getBytes(US_ASCII), COMPLIANT_ASCII_STRING.getBytes(US_ASCII), in testToHttp2Headers() 74 "string-bin".getBytes(US_ASCII), in testToHttp2Headers() 75 base64Encode(NONCOMPLIANT_ASCII_STRING.getBytes(US_ASCII))}; in testToHttp2Headers() 114 return BaseEncoding.base64().encode(input).getBytes(US_ASCII); in base64Encode()
|
/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/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/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/bsdiff/ |
D | BsDiffTestData.java | 186 public static final byte[] LONG_DATA_99 = LONG_DATA_99_S.getBytes(Charset.forName("US-ASCII")); 188 LONGER_DATA_349_S.getBytes(Charset.forName("US-ASCII")); 302 LONG_DATA_104_NEW_S.getBytes(Charset.forName("US-ASCII")); 304 LONGER_DATA_354_NEW_S.getBytes(Charset.forName("US-ASCII"));
|