/external/cldr/tools/java/org/unicode/cldr/util/ |
D | StringByteConverter.java | 42 public abstract int toBytes(char ch, byte[] output, int bytePosition); in toBytes() method in StringByteConverter 52 public int toBytes(byte[] output, int bytePosition) { in toBytes() method in StringByteConverter 88 public int toBytes(CharSequence source, byte[] output, int bytePosition) { in toBytes() method in StringByteConverter 90 bytePosition = toBytes(source.charAt(i), output, bytePosition); in toBytes() 92 toBytes(output, bytePosition); // cleanup in toBytes() 96 public byte[] toBytes(CharSequence source) { in toBytes() method in StringByteConverter 98 int len = toBytes(source, buffer, 0); in toBytes()
|
D | DictionaryStringByteConverter.java | 55 public int toBytes(char ch, byte[] output, int bytePosition) { in toBytes() method in DictionaryStringByteConverter 57 return toBytes(output, bytePosition, true); in toBytes() 61 public int toBytes(byte[] output, int bytePosition) { in toBytes() method in DictionaryStringByteConverter 62 return toBytes(output, bytePosition, false); in toBytes() 65 public int toBytes(byte[] output, int bytePosition, boolean stopOnFinalPartial) { in toBytes() method in DictionaryStringByteConverter 97 bytePosition = byteMaker.toBytes(bestValue, output, bytePosition); in toBytes() 101 bytePosition = byteMaker.toBytes(buffer.charAt(0), output, bytePosition); in toBytes()
|
D | Utf8StringByteConverter.java | 24 public int toBytes(char ch, byte[] output, int bytePosition) { in toBytes() method in Utf8StringByteConverter 58 public int toBytes(byte[] output, int bytePosition) { in toBytes() method in Utf8StringByteConverter
|
D | CompactStringByteConverter.java | 42 public int toBytes(char cp, byte[] output, int bytePosition) { in toBytes() method in CompactStringByteConverter 60 public int toBytes(CharSequence source, byte[] output, int bytePosition) { in toBytes() method in CompactStringByteConverter
|
/external/rappor/client/javatest/com/google/android/rappor/ |
D | EncoderTest.java | 54 private static byte[] toBytes(long value) { in toBytes() method in EncoderTest 431 .encodeBits(toBytes(0b11111101L)))); in testEncoderEncodeBits_identity() 445 .encodeBits(toBytes(0xD56B8119L)))); in testEncoderEncodeBits_identity() 459 encoder.encodeBits(toBytes(0x100)); // 9 bits in testEncoderEncodeBits_tooHigh() 642 .encodeBits(toBytes(0b11111101L)))); in testEncoderEncodeBits_prrMemoizes() 656 .encodeBits(toBytes(0b11111101L)))); in testEncoderEncodeBits_prrMemoizes() 677 long encoded = toLong(encoder.encodeBits(toBytes(inputValue))); in testEncoderEncodeBits_prrFlipProbability() 678 assertEquals(encoded, toLong(encoder.encodeBits(toBytes(inputValue)))); in testEncoderEncodeBits_prrFlipProbability() 730 long encoded = toLong(encoder.encodeBits(toBytes(inputValue))); in testEncoderEncodeBits_irrFlipProbability() 791 .encodeBits(toBytes(inputValue)))); in testEncoderEncodeBits_endToEnd() [all …]
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/crypto/ |
D | CipherBasicsTest.java | 117 Key key = new SecretKeySpec(toBytes(line[KEY_INDEX]), in testBasicEncryption() 119 byte[] iv = toBytes(line[IV_INDEX]); in testBasicEncryption() 120 byte[] plaintext = toBytes(line[PLAINTEXT_INDEX]); in testBasicEncryption() 121 byte[] ciphertext = toBytes(line[CIPHERTEXT_INDEX]); in testBasicEncryption() 177 Key key = new SecretKeySpec(toBytes(line[KEY_INDEX]), in testAeadEncryption() 179 byte[] iv = toBytes(line[IV_INDEX]); in testAeadEncryption() 180 byte[] plaintext = toBytes(line[PLAINTEXT_INDEX]); in testAeadEncryption() 181 byte[] ciphertext = toBytes(line[CIPHERTEXT_INDEX]); in testAeadEncryption() 182 byte[] tag = toBytes(line[TAG_INDEX]); in testAeadEncryption() 183 byte[] aad = toBytes(line[AAD_INDEX]); in testAeadEncryption() [all …]
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/crypto/ |
D | CipherBasicsTest.java | 115 Key key = new SecretKeySpec(toBytes(line[KEY_INDEX]), in testBasicEncryption() 117 byte[] iv = toBytes(line[IV_INDEX]); in testBasicEncryption() 118 byte[] plaintext = toBytes(line[PLAINTEXT_INDEX]); in testBasicEncryption() 119 byte[] ciphertext = toBytes(line[CIPHERTEXT_INDEX]); in testBasicEncryption() 175 Key key = new SecretKeySpec(toBytes(line[KEY_INDEX]), in testAeadEncryption() 177 byte[] iv = toBytes(line[IV_INDEX]); in testAeadEncryption() 178 byte[] plaintext = toBytes(line[PLAINTEXT_INDEX]); in testAeadEncryption() 179 byte[] ciphertext = toBytes(line[CIPHERTEXT_INDEX]); in testAeadEncryption() 180 byte[] tag = toBytes(line[TAG_INDEX]); in testAeadEncryption() 181 byte[] aad = toBytes(line[AAD_INDEX]); in testAeadEncryption() [all …]
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/ |
D | StatusTest.java | 66 byte[] b = Status.MESSAGE_KEY.toBytes("my favorite character is \u0000"); in metadataEncode_lowAscii() 72 byte[] b = Status.MESSAGE_KEY.toBytes("my favorite character is %"); in metadataEncode_percent() 78 byte[] b = Status.MESSAGE_KEY.toBytes("my favorite character is "); in metadataEncode_surrogatePair() 84 byte[] b = Status.MESSAGE_KEY.toBytes("my favorite character is " + ((char) 0xD801)); in metadataEncode_unmatchedHighSurrogate() 90 byte[] b = Status.MESSAGE_KEY.toBytes("my favorite character is " + ((char)0xDC37)); in metadataEncode_unmatchedLowSurrogate() 96 byte[] b = Status.MESSAGE_KEY.toBytes( in metadataEncode_maxSurrogatePair()
|
/external/opencensus-java/api/src/test/java/io/opencensus/common/ |
D | ServerStatsEncodingTest.java | 42 serialized = ServerStatsEncoding.toBytes(serverStatsToBeEncoded); in encodeDecodeTest() 47 serialized = ServerStatsEncoding.toBytes(serverStatsToBeEncoded); in encodeDecodeTest() 52 serialized = ServerStatsEncoding.toBytes(serverStatsToBeEncoded); in encodeDecodeTest() 64 serialized = ServerStatsEncoding.toBytes(serverStatsToBeEncoded); in skipUnknownFieldTest() 87 serialized = ServerStatsEncoding.toBytes(serverStatsToBeEncoded); in negativeLbLatencyValueTest() 108 serialized = ServerStatsEncoding.toBytes(serverStatsToBeEncoded); in negativeServerLatencyValueTest()
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | MapForProto2LiteTest.java | 57 builder.getMutableInt32ToBytesField().put(1, TestUtil.toBytes("11")); in setMapValues() 58 builder.getMutableInt32ToBytesField().put(2, TestUtil.toBytes("22")); in setMapValues() 59 builder.getMutableInt32ToBytesField().put(3, TestUtil.toBytes("33")); in setMapValues() 99 assertEquals(TestUtil.toBytes("11"), message.getInt32ToBytesField().get(1)); in assertMapValuesSet() 100 assertEquals(TestUtil.toBytes("22"), message.getInt32ToBytesField().get(2)); in assertMapValuesSet() 101 assertEquals(TestUtil.toBytes("33"), message.getInt32ToBytesField().get(3)); in assertMapValuesSet() 128 builder.getMutableInt32ToBytesField().put(1, TestUtil.toBytes("111")); in updateMapValues() 130 builder.getMutableInt32ToBytesField().put(4, TestUtil.toBytes("44")); in updateMapValues() 159 assertEquals(TestUtil.toBytes("111"), message.getInt32ToBytesField().get(1)); in assertMapValuesUpdated() 160 assertEquals(TestUtil.toBytes("33"), message.getInt32ToBytesField().get(3)); in assertMapValuesUpdated() [all …]
|
D | TestUtilLite.java | 146 static ByteString toBytes(String str) { in toBytes() method in TestUtilLite 195 builder.setOptionalBytes (toBytes("116")); in setAllFields() 233 builder.addRepeatedBytes (toBytes("216")); in setAllFields() 268 builder.addRepeatedBytes (toBytes("316")); in setAllFields() 304 builder.setDefaultBytes (toBytes("416")); in setAllFields() 317 builder.setOneofBytes(toBytes("604")); in setAllFields() 360 message.setExtension(optionalBytesExtensionLite , toBytes("116")); in setAllExtensions() 398 message.addExtension(repeatedBytesExtensionLite , toBytes("216")); in setAllExtensions() 433 message.addExtension(repeatedBytesExtensionLite , toBytes("316")); in setAllExtensions() 469 message.setExtension(defaultBytesExtensionLite , toBytes("416")); in setAllExtensions() [all …]
|
D | MapForProto2Test.java | 60 builder.getMutableInt32ToBytesField().put(1, TestUtil.toBytes("11")); in setMapValues() 61 builder.getMutableInt32ToBytesField().put(2, TestUtil.toBytes("22")); in setMapValues() 62 builder.getMutableInt32ToBytesField().put(3, TestUtil.toBytes("33")); in setMapValues() 102 assertEquals(TestUtil.toBytes("11"), message.getInt32ToBytesField().get(1)); in assertMapValuesSet() 103 assertEquals(TestUtil.toBytes("22"), message.getInt32ToBytesField().get(2)); in assertMapValuesSet() 104 assertEquals(TestUtil.toBytes("33"), message.getInt32ToBytesField().get(3)); in assertMapValuesSet() 131 builder.getMutableInt32ToBytesField().put(1, TestUtil.toBytes("111")); in updateMapValues() 133 builder.getMutableInt32ToBytesField().put(4, TestUtil.toBytes("44")); in updateMapValues() 162 assertEquals(TestUtil.toBytes("111"), message.getInt32ToBytesField().get(1)); in assertMapValuesUpdated() 163 assertEquals(TestUtil.toBytes("33"), message.getInt32ToBytesField().get(3)); in assertMapValuesUpdated() [all …]
|
D | MapTest.java | 61 builder.getMutableInt32ToBytesField().put(1, TestUtil.toBytes("11")); in setMapValues() 62 builder.getMutableInt32ToBytesField().put(2, TestUtil.toBytes("22")); in setMapValues() 63 builder.getMutableInt32ToBytesField().put(3, TestUtil.toBytes("33")); in setMapValues() 103 assertEquals(TestUtil.toBytes("11"), message.getInt32ToBytesField().get(1)); in assertMapValuesSet() 104 assertEquals(TestUtil.toBytes("22"), message.getInt32ToBytesField().get(2)); in assertMapValuesSet() 105 assertEquals(TestUtil.toBytes("33"), message.getInt32ToBytesField().get(3)); in assertMapValuesSet() 132 builder.getMutableInt32ToBytesField().put(1, TestUtil.toBytes("111")); in updateMapValues() 134 builder.getMutableInt32ToBytesField().put(4, TestUtil.toBytes("44")); in updateMapValues() 163 assertEquals(TestUtil.toBytes("111"), message.getInt32ToBytesField().get(1)); in assertMapValuesUpdated() 164 assertEquals(TestUtil.toBytes("33"), message.getInt32ToBytesField().get(3)); in assertMapValuesUpdated() [all …]
|
D | TestUtil.java | 258 static ByteString toBytes(String str) { in toBytes() method in TestUtil 329 message.setOptionalBytes (toBytes("116")); in setAllFields() 367 message.addRepeatedBytes (toBytes("216")); in setAllFields() 402 message.addRepeatedBytes (toBytes("316")); in setAllFields() 438 message.setDefaultBytes (toBytes("416")); in setAllFields() 451 message.setOneofBytes(toBytes("604")); in setAllFields() 475 message.setRepeatedBytes (1, toBytes("516")); in modifyRepeatedFields() 550 Assert.assertEquals(toBytes("116"), message.getOptionalBytes()); in assertAllFieldsSet() 610 Assert.assertEquals(toBytes("216"), message.getRepeatedBytes(0)); in assertAllFieldsSet() 639 Assert.assertEquals(toBytes("316"), message.getRepeatedBytes(1)); in assertAllFieldsSet() [all …]
|
D | GeneratedMessageTest.java | 314 builder.addRepeatedBytes(TestUtil.toBytes("one")); in testRepeatedSettersRejectNull() 315 builder.addRepeatedBytes(TestUtil.toBytes("two")); in testRepeatedSettersRejectNull() 398 builder.addAllRepeatedBytes(Arrays.asList(TestUtil.toBytes("one"), null)); in testRepeatedAppendRejectsNull() 1291 message = builder.setFooBytes(TestUtil.toBytes("qux")).buildPartial(); in testSetOneofClearsOthers() 1353 assertEquals(message.getFooStringBytes(), TestUtil.toBytes("foo")); in testOneofTypes() 1359 assertEquals(message2.getFooStringBytes(), TestUtil.toBytes("")); in testOneofTypes() 1364 assertEquals(builder.getFooStringBytes(), TestUtil.toBytes("")); in testOneofTypes() 1369 assertEquals(message.getFooStringBytes(), TestUtil.toBytes("")); in testOneofTypes() 1383 assertEquals(message.getFooCordBytes(), TestUtil.toBytes("foo")); in testOneofTypes() 1389 assertEquals(message2.getFooCordBytes(), TestUtil.toBytes("")); in testOneofTypes() [all …]
|
/external/capstone/bindings/vb6/ |
D | Form1.frm | 165 code = toBytes(X86_CODE16) 169 code = toBytes(x86_code32) 173 code = toBytes(X86_CODE64) 178 code = toBytes(ARM_CODE) 183 code = toBytes(ARM64_CODE)
|
D | mMisc.bas | 157 Public Function toBytes(ByVal hexstr, Optional strRet As Boolean = False) function 202 toBytes = StrConv(r, vbUnicode, LANG_US) 204 toBytes = r
|
/external/grpc-grpc-java/core/src/jmh/java/io/grpc/ |
D | StatusBenchmark.java | 39 return Status.MESSAGE_KEY.toBytes("Unexpected RST in stream"); in messageEncodePlain() 49 return Status.MESSAGE_KEY.toBytes("Some Error\nWasabi and Horseradish are the same"); in messageEncodeEscape() 81 return Status.CODE_KEY.toBytes(Status.DATA_LOSS); in codeEncode()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/ |
D | Metadata.java | 76 public byte[] toBytes(byte[] value) { 289 value(size, key.toBytes(value)); in put() 490 byte[] toBytes(T value); in toBytes() method 698 abstract byte[] toBytes(T value); in toBytes() method in Key 725 byte[] toBytes(T value) { in toBytes() method in BinaryKey 726 return marshaller.toBytes(value); in toBytes() 750 byte[] toBytes(T value) { in toBytes() method in AsciiKey 775 byte[] toBytes(T value) { in toBytes() method in TrustedAsciiKey
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestStringByteConverter.java | 126 int byteLen = byteString.toBytes(test, bytes, 0); in testString() 132 int byteCount = byteString.toBytes(test.charAt(i), bytes2, 0); in testString() 166 int len = conv.toBytes(test, output1, 0); in checkUtf8() 173 conv.toBytes(test, output1, 0); in checkUtf8()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | BERConstructedOctetString.java | 19 static private byte[] toBytes( in toBytes() method in BERConstructedOctetString 59 super(toBytes(octs)); in BERConstructedOctetString()
|
D | BEROctetString.java | 33 static private byte[] toBytes( in toBytes() method in BEROctetString 104 this(toBytes(octs), octs, chunkSize); in BEROctetString()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/ |
D | BERConstructedOctetString.java | 21 static private byte[] toBytes( in toBytes() method in BERConstructedOctetString 61 super(toBytes(octs)); in BERConstructedOctetString()
|
D | BEROctetString.java | 35 static private byte[] toBytes( in toBytes() method in BEROctetString 106 this(toBytes(octs), octs, chunkSize); in BEROctetString()
|
/external/glide/library/src/main/java/com/bumptech/glide/ |
D | BitmapTypeRequest.java | 83 public BitmapRequestBuilder<ModelType, byte[]> toBytes() { in toBytes() method in BitmapTypeRequest 98 …public BitmapRequestBuilder<ModelType, byte[]> toBytes(Bitmap.CompressFormat compressFormat, int q… in toBytes() method in BitmapTypeRequest
|