/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
|
/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/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 .putInt32ToBytesField(1, TestUtil.toBytes("11")) in setMapValues() 58 .putInt32ToBytesField(2, TestUtil.toBytes("22")) in setMapValues() 59 .putInt32ToBytesField(3, TestUtil.toBytes("33")) in setMapValues() 100 assertEquals(TestUtil.toBytes("11"), message.getInt32ToBytesField().get(1)); in assertMapValuesSet() 101 assertEquals(TestUtil.toBytes("22"), message.getInt32ToBytesField().get(2)); in assertMapValuesSet() 102 assertEquals(TestUtil.toBytes("33"), message.getInt32ToBytesField().get(3)); in assertMapValuesSet() 128 .putInt32ToBytesField(1, TestUtil.toBytes("111")) in updateMapValues() 130 .putInt32ToBytesField(4, TestUtil.toBytes("44")) in updateMapValues() 166 assertEquals(TestUtil.toBytes("111"), message.getInt32ToBytesField().get(1)); in assertMapValuesUpdated() 167 assertEquals(TestUtil.toBytes("33"), message.getInt32ToBytesField().get(3)); in assertMapValuesUpdated() [all …]
|
D | MapLiteTest.java | 58 .putInt32ToBytesField(1, TestUtil.toBytes("11")) in setMapValues() 59 .putInt32ToBytesField(2, TestUtil.toBytes("22")) in setMapValues() 60 .putInt32ToBytesField(3, TestUtil.toBytes("33")) in setMapValues() 107 assertEquals(TestUtil.toBytes("11"), message.getInt32ToBytesField().get(1)); in assertMapValuesSet() 108 assertEquals(TestUtil.toBytes("22"), message.getInt32ToBytesField().get(2)); in assertMapValuesSet() 109 assertEquals(TestUtil.toBytes("33"), message.getInt32ToBytesField().get(3)); in assertMapValuesSet() 135 .putInt32ToBytesField(1, TestUtil.toBytes("111")) in updateMapValues() 137 .putInt32ToBytesField(4, TestUtil.toBytes("44")) in updateMapValues() 173 assertEquals(TestUtil.toBytes("111"), message.getInt32ToBytesField().get(1)); in assertMapValuesUpdated() 174 assertEquals(TestUtil.toBytes("33"), message.getInt32ToBytesField().get(3)); in assertMapValuesUpdated() [all …]
|
D | MapForProto2Test.java | 64 builder.getMutableInt32ToBytesField().put(1, TestUtil.toBytes("11")); in setMapValuesUsingMutableMap() 65 builder.getMutableInt32ToBytesField().put(2, TestUtil.toBytes("22")); in setMapValuesUsingMutableMap() 66 builder.getMutableInt32ToBytesField().put(3, TestUtil.toBytes("33")); in setMapValuesUsingMutableMap() 92 .putInt32ToBytesField(1, TestUtil.toBytes("11")) in setMapValuesUsingAccessors() 93 .putInt32ToBytesField(2, TestUtil.toBytes("22")) in setMapValuesUsingAccessors() 94 .putInt32ToBytesField(3, TestUtil.toBytes("33")) in setMapValuesUsingAccessors() 142 assertEquals(TestUtil.toBytes("11"), message.getInt32ToBytesField().get(1)); in assertMapValuesSet() 143 assertEquals(TestUtil.toBytes("22"), message.getInt32ToBytesField().get(2)); in assertMapValuesSet() 144 assertEquals(TestUtil.toBytes("33"), message.getInt32ToBytesField().get(3)); in assertMapValuesSet() 171 builder.getMutableInt32ToBytesField().put(1, TestUtil.toBytes("111")); in updateMapValuesUsingMutableMap() [all …]
|
D | TestUtilLite.java | 145 static ByteString toBytes(String str) { in toBytes() method in TestUtilLite 191 builder.setOptionalBytes(toBytes("116")); in setAllFields() 224 builder.addRepeatedBytes(toBytes("216")); in setAllFields() 255 builder.addRepeatedBytes(toBytes("316")); in setAllFields() 287 builder.setDefaultBytes(toBytes("416")); in setAllFields() 299 builder.setOneofBytes(toBytes("604")); in setAllFields() 341 message.setExtension(optionalBytesExtensionLite, toBytes("116")); in setAllExtensions() 382 message.addExtension(repeatedBytesExtensionLite, toBytes("216")); in setAllExtensions() 419 message.addExtension(repeatedBytesExtensionLite, toBytes("316")); in setAllExtensions() 457 message.setExtension(defaultBytesExtensionLite, toBytes("416")); in setAllExtensions() [all …]
|
D | MapTest.java | 67 builder.getMutableInt32ToBytesField().put(1, TestUtil.toBytes("11")); in setMapValuesUsingMutableMap() 68 builder.getMutableInt32ToBytesField().put(2, TestUtil.toBytes("22")); in setMapValuesUsingMutableMap() 69 builder.getMutableInt32ToBytesField().put(3, TestUtil.toBytes("33")); in setMapValuesUsingMutableMap() 95 .putInt32ToBytesField(1, TestUtil.toBytes("11")) in setMapValuesUsingAccessors() 96 .putInt32ToBytesField(2, TestUtil.toBytes("22")) in setMapValuesUsingAccessors() 97 .putInt32ToBytesField(3, TestUtil.toBytes("33")) in setMapValuesUsingAccessors() 145 assertEquals(TestUtil.toBytes("11"), message.getInt32ToBytesField().get(1)); in assertMapValuesSet() 146 assertEquals(TestUtil.toBytes("22"), message.getInt32ToBytesField().get(2)); in assertMapValuesSet() 147 assertEquals(TestUtil.toBytes("33"), message.getInt32ToBytesField().get(3)); in assertMapValuesSet() 174 builder.getMutableInt32ToBytesField().put(1, TestUtil.toBytes("111")); in updateMapValuesUsingMutableMap() [all …]
|
D | TestUtil.java | 263 static ByteString toBytes(String str) { in toBytes() method in TestUtil 338 message.setOptionalBytes(toBytes("116")); in setAllFields() 370 message.addRepeatedBytes(toBytes("216")); in setAllFields() 400 message.addRepeatedBytes(toBytes("316")); in setAllFields() 431 message.setDefaultBytes(toBytes("416")); in setAllFields() 443 message.setOneofBytes(toBytes("604")); in setAllFields() 467 message.setRepeatedBytes(1, toBytes("516")); in modifyRepeatedFields() 537 Assert.assertEquals(toBytes("116"), message.getOptionalBytes()); in assertAllFieldsSet() 597 Assert.assertEquals(toBytes("216"), message.getRepeatedBytes(0)); in assertAllFieldsSet() 626 Assert.assertEquals(toBytes("316"), message.getRepeatedBytes(1)); in assertAllFieldsSet() [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)
|
/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 98 this(toBytes(octs), octs, chunkSize); in BEROctetString()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/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 100 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 100 this(toBytes(octs), octs, chunkSize); in BEROctetString()
|
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/i18n/timezone/ |
D | TzDataSetVersion.java | 197 public byte[] toBytes() { in toBytes() method in TzDataSetVersion 198 return toBytes(formatMajorVersion, formatMinorVersion, rulesVersion, revision); in toBytes() 201 private static byte[] toBytes( in toBytes() method in TzDataSetVersion
|
/external/llvm-project/llvm/unittests/DebugInfo/DWARF/ |
D | DWARFFormValueTest.cpp | 162 template <typename T> static ArrayRef<uint8_t> toBytes(const T &Input) { in toBytes() function 172 ArrayRef<uint8_t> SampleU8 = toBytes(SampleLength8); 173 ArrayRef<uint8_t> SampleU16 = toBytes(SampleLength16); 174 ArrayRef<uint8_t> SampleU32 = toBytes(SampleLength); 378 ArrayRef<uint8_t> DumpTestSample32 = toBytes(DumpTestSample32Val); 380 ArrayRef<uint8_t> DumpTestSample64 = toBytes(DumpTestSample64Val);
|
/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
|