/third_party/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 …]
|
D | GeneratedMessageTest.java | 457 builder.addRepeatedBytes(TestUtil.toBytes("one")); in testRepeatedSettersRejectNull() 458 builder.addRepeatedBytes(TestUtil.toBytes("two")); in testRepeatedSettersRejectNull() 533 builder.addAllRepeatedBytes(Arrays.asList(TestUtil.toBytes("one"), null)); in testRepeatedAppendRejectsNull() 1414 message = builder.setFooBytes(TestUtil.toBytes("qux")).buildPartial(); in testSetOneofClearsOthers() 1478 assertEquals(message.getFooStringBytes(), TestUtil.toBytes("foo")); in testOneofTypes() 1484 assertEquals(message2.getFooStringBytes(), TestUtil.toBytes("")); in testOneofTypes() 1489 assertEquals(builder.getFooStringBytes(), TestUtil.toBytes("")); in testOneofTypes() 1494 assertEquals(message.getFooStringBytes(), TestUtil.toBytes("")); in testOneofTypes() 1508 assertEquals(message.getFooCordBytes(), TestUtil.toBytes("foo")); in testOneofTypes() 1514 assertEquals(message2.getFooCordBytes(), TestUtil.toBytes("")); in testOneofTypes() [all …]
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | TestUtil.java | 166 static ByteString toBytes(String str) { in toBytes() method in TestUtil 241 message.setOptionalBytes (toBytes("116")); in setAllFields() 279 message.addRepeatedBytes (toBytes("216")); in setAllFields() 314 message.addRepeatedBytes (toBytes("316")); in setAllFields() 350 message.setDefaultBytes (toBytes("416")); in setAllFields() 381 message.setRepeatedBytes (1, toBytes("516")); in modifyRepeatedFields() 456 Assert.assertEquals(toBytes("116"), message.getOptionalBytes()); in assertAllFieldsSet() 516 Assert.assertEquals(toBytes("216"), message.getRepeatedBytes(0)); in assertAllFieldsSet() 545 Assert.assertEquals(toBytes("316"), message.getRepeatedBytes(1)); in assertAllFieldsSet() 599 Assert.assertEquals(toBytes("416"), message.getDefaultBytes()); in assertAllFieldsSet() [all …]
|
D | GeneratedMessageTest.java | 292 builder.addRepeatedBytes(TestUtil.toBytes("one")); in testRepeatedSettersRejectNull() 293 builder.addRepeatedBytes(TestUtil.toBytes("two")); in testRepeatedSettersRejectNull() 376 builder.addAllRepeatedBytes(Arrays.asList(TestUtil.toBytes("one"), null)); in testRepeatedAppendRejectsNull()
|
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/localeconverter/ |
D | CalculateCRC32.java | 85 public byte [] toBytes() { in toBytes() method in CalculateCRC32
|
/third_party/vk-gl-cts/framework/common/ |
D | tcuRGBA.hpp | 88 …void toBytes (deUint8* bytes) const { bytes[0] = (deUint8)getRed(); bytes[1] = (deUint8)getGr… in toBytes() function in tcu::RGBA
|
/third_party/skia/modules/canvaskit/ |
D | canvaskit_bindings.cpp | 695 Uint8Array toBytes(sk_sp<SkData> data) { in toBytes() function 1373 return toBytes(data); in EMSCRIPTEN_BINDINGS() 1381 return toBytes(data); in EMSCRIPTEN_BINDINGS() 1644 return toBytes(data); in EMSCRIPTEN_BINDINGS()
|