Home
last modified time | relevance | path

Searched refs:copyFromUtf8 (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DRopeByteStringTest.java98 ByteString sourceByteString = ByteString.copyFromUtf8(sourceString); in testToString()
115 ByteString flatString = ByteString.copyFromUtf8(testString); in testToString()
124 ByteString sourceByteString = ByteString.copyFromUtf8(sourceString); in testCharsetToString()
141 ByteString flatString = ByteString.copyFromUtf8(testString); in testCharsetToString()
167 ByteString byteString = RopeByteString.concatenate(ByteString.copyFromUtf8("foo"), in testToString_raisesException()
168 ByteString.copyFromUtf8("bar")); in testToString_raisesException()
DRopeByteStringSubstringTest.java71 ByteString sourceByteString = ByteString.copyFromUtf8(sourceString); in testToString()
92 ByteString flatString = ByteString.copyFromUtf8(testString); in testToString()
101 ByteString sourceByteString = ByteString.copyFromUtf8(sourceString); in testCharsetToString()
122 ByteString flatString = ByteString.copyFromUtf8(testString); in testCharsetToString()
DUnmodifiableLazyStringListTest.java50 private static ByteString BYTE_STRING_A = ByteString.copyFromUtf8("A");
51 private static ByteString BYTE_STRING_B = ByteString.copyFromUtf8("B");
52 private static ByteString BYTE_STRING_C = ByteString.copyFromUtf8("C");
DLiteTest.java185 builder.setOptionalBytes(ByteString.copyFromUtf8("hi")); in testSanityCopyOnWrite()
187 assertEquals(ByteString.copyFromUtf8("hi"), builder.getOptionalBytes()); in testSanityCopyOnWrite()
190 ByteString.copyFromUtf8("hi"), messageAfterBuild.getOptionalBytes()); in testSanityCopyOnWrite()
195 ByteString.copyFromUtf8("hi"), messageAfterBuild.getOptionalBytes()); in testSanityCopyOnWrite()
209 builder.setOptionalCordBytes(ByteString.copyFromUtf8("no")); in testSanityCopyOnWrite()
211 assertEquals(ByteString.copyFromUtf8("no"), builder.getOptionalCordBytes()); in testSanityCopyOnWrite()
214 ByteString.copyFromUtf8("no"), in testSanityCopyOnWrite()
220 ByteString.copyFromUtf8("no"), in testSanityCopyOnWrite()
474 builder.setOptionalStringBytes(ByteString.copyFromUtf8("no")); in testSanityCopyOnWrite()
477 ByteString.copyFromUtf8("no"), builder.getOptionalStringBytes()); in testSanityCopyOnWrite()
[all …]
DLazyStringArrayListTest.java54 private static ByteString BYTE_STRING_A = ByteString.copyFromUtf8("A");
55 private static ByteString BYTE_STRING_B = ByteString.copyFromUtf8("B");
56 private static ByteString BYTE_STRING_C = ByteString.copyFromUtf8("C");
DFieldPresenceTest.java194 a.setOptionalBytes(ByteString.copyFromUtf8("y")); in testFieldPresence()
205 assertEquals(ByteString.copyFromUtf8("y"), message.getOptionalBytes()); in testFieldPresence()
248 .setOptionalBytes(ByteString.copyFromUtf8("y")) in testFieldPresenceByReflection()
283 .setField(optionalBytesField, ByteString.copyFromUtf8("y")) in testFieldPresenceDynamicMessage()
DCheckUtf8Test.java50 ByteString.copyFromUtf8(UTF8_BYTE_STRING_TEXT);
DLazyFieldLiteTest.java137 TestUtil.getExtensionRegistry(), ByteString.copyFromUtf8("invalid")); in testInvalidProto()
182 TestUtil.getExtensionRegistry(), ByteString.copyFromUtf8("invalid")); in testMergeInvalid()
DIsValidUtf8Test.java175 return ByteString.copyFromUtf8(s); in asBytes()
DWireFormatTest.java358 .addLengthDelimited(ByteString.copyFromUtf8("bar")) in testSerializeMessageSetWithFlag()
425 .setMessage(ByteString.copyFromUtf8("bar")) in testParseMessageSetWithFlag()
DUnknownFieldSetLiteTest.java269 unknownFields.mergeLengthDelimitedField(2, ByteString.copyFromUtf8("hello")); in testMakeImmutable()
DTextFormatTest.java178 .addLengthDelimited(ByteString.copyFromUtf8("4")) in makeUnknownFieldSet()
597 ByteString zhByteString = ByteString.copyFromUtf8(zh); in testEscape()
DAbstractMessageTest.java535 ByteString byteString = ByteString.copyFromUtf8("some text"); in testCheckByteStringIsUtf8OnUtf8()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DUnmodifiableLazyStringListTest.java50 private static ByteString BYTE_STRING_A = ByteString.copyFromUtf8("A");
51 private static ByteString BYTE_STRING_B = ByteString.copyFromUtf8("B");
52 private static ByteString BYTE_STRING_C = ByteString.copyFromUtf8("C");
DLazyStringArrayListTest.java50 private static ByteString BYTE_STRING_A = ByteString.copyFromUtf8("A");
51 private static ByteString BYTE_STRING_B = ByteString.copyFromUtf8("B");
52 private static ByteString BYTE_STRING_C = ByteString.copyFromUtf8("C");
DWireFormatTest.java292 .addLengthDelimited(ByteString.copyFromUtf8("bar")) in testSerializeMessageSetWithFlag()
359 .setMessage(ByteString.copyFromUtf8("bar")) in testParseMessageSetWithFlag()
DTextFormatTest.java157 .addLengthDelimited(ByteString.copyFromUtf8("4")) in makeUnknownFieldSet()
DByteStringTest.java141 ByteString byteString = ByteString.copyFromUtf8(testString); in testCopyFrom_Utf8()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DTextFormatEscaper.java128 return escapeBytes(ByteString.copyFromUtf8(input));
DLazyStringArrayList.java291 return ByteString.copyFromUtf8((String) o); in asByteString()
DTextFormat.java1831 ByteString input = ByteString.copyFromUtf8(charString.toString()); in unescapeBytes()
1927 return escapeBytes(ByteString.copyFromUtf8(input)); in escapeText()
DByteString.java389 public static ByteString copyFromUtf8(String text) { in copyFromUtf8() method
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/src/main/java/com/google/protobuf/jruby/
DSentinelOuterClass.java224 com.google.protobuf.ByteString.copyFromUtf8( in getDefaultStringBytes()
554 com.google.protobuf.ByteString.copyFromUtf8( in getDefaultStringBytes()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/main/java/com/google/protobuf/nano/
DInternalNano.java135 public static byte[] copyFromUtf8(final String text) { in copyFromUtf8() method in InternalNano
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/test/java/com/google/protobuf/nano/
DNanoTest.java461 msg.optionalBytes = InternalNano.copyFromUtf8("hello"); in testNanoOptionalBytes()
467 .optionalBytes = InternalNano.copyFromUtf8("hello"); in testNanoOptionalBytes()
472 msg.optionalBytes = InternalNano.copyFromUtf8("bye"); in testNanoOptionalBytes()
1347 InternalNano.copyFromUtf8("hello"), in testNanoRepeatedBytes()
1348 InternalNano.copyFromUtf8("bye"), in testNanoRepeatedBytes()
1349 InternalNano.copyFromUtf8("boo") in testNanoRepeatedBytes()
1356 .repeatedBytes = new byte[][] { InternalNano.copyFromUtf8("boo") }; in testNanoRepeatedBytes()
1364 .repeatedBytes = new byte[][] { InternalNano.copyFromUtf8("") }; in testNanoRepeatedBytes()
1378 InternalNano.copyFromUtf8("hello"), in testNanoRepeatedBytes()
1379 InternalNano.copyFromUtf8("world") in testNanoRepeatedBytes()

12