Home
last modified time | relevance | path

Searched refs:TextFormat (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DTextFormatTest.java35 import com.google.protobuf.TextFormat.Parser.SingularOverwritePolicy;
125 private final TextFormat.Parser parserWithOverwriteForbidden =
126 TextFormat.Parser.newBuilder()
131 private final TextFormat.Parser defaultParser =
132 TextFormat.Parser.newBuilder().build();
136 String javaText = TextFormat.printToString(TestUtil.getAllSet()); in testPrintMessage()
148 String javaText = TextFormat.printToString(TestUtil.getAllSetBuilder()); in testPrintMessageBuilder()
160 String javaText = TextFormat.printToString(TestUtil.getAllExtensionsSet()); in testPrintExtensions()
224 TextFormat.printToString(message)); in testPrintUnknownFields()
232 TextFormat.printFieldToString(dataField, "test data")); in testPrintField()
[all …]
DUnknownEnumValueTest.java38 import com.google.protobuf.TextFormat.ParseException;
240 String textData = TextFormat.printToString(message); in testUnknownEnumValuesInTextFormat()
249 TextFormat.merge(textData, builder); in testUnknownEnumValuesInTextFormat()
DMapForProto2Test.java765 String textData = TextFormat.printToString(message); in testTextFormat()
768 TextFormat.merge(textData, builder); in testTextFormat()
DMapTest.java877 String textData = TextFormat.printToString(message); in testTextFormat()
880 TextFormat.merge(textData, builder); in testTextFormat()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DTextFormatTest.java115 String javaText = TextFormat.printToString(TestUtil.getAllSet()); in testPrintMessage()
127 String javaText = TextFormat.printToString(TestUtil.getAllSetBuilder()); in testPrintMessageBuilder()
139 String javaText = TextFormat.printToString(TestUtil.getAllExtensionsSet()); in testPrintExtensions()
203 TextFormat.printToString(message)); in testPrintUnknownFields()
211 TextFormat.printFieldToString(dataField, "test data")); in testPrintField()
219 TextFormat.printFieldToString(optionalField, value)); in testPrintField()
301 TextFormat.merge(allFieldsSetText, builder); in testParse()
307 TextFormat.merge(new StringReader(allFieldsSetText), builder); in testParseReader()
313 TextFormat.merge(allExtensionsSetText, in testParseExtensions()
345 TextFormat.merge(original, builder); in testParseCompatibility()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dtext_format.cc94 TextFormat::Printer printer; in DebugString()
105 TextFormat::Printer printer; in ShortDebugString()
122 TextFormat::Printer printer; in Utf8DebugString()
138 TextFormat::ParseInfoTree::ParseInfoTree() { } in ParseInfoTree()
140 TextFormat::ParseInfoTree::~ParseInfoTree() { in ~ParseInfoTree()
147 void TextFormat::ParseInfoTree::RecordLocation( in RecordLocation()
149 TextFormat::ParseLocation location) { in RecordLocation()
153 TextFormat::ParseInfoTree* TextFormat::ParseInfoTree::CreateNested( in CreateNested()
156 TextFormat::ParseInfoTree* instance = new TextFormat::ParseInfoTree(); in CreateNested()
157 vector<TextFormat::ParseInfoTree*>* trees = &nested_[field]; in CreateNested()
[all …]
Dtext_format_unittest.cc157 TextFormat::Printer printer; in TEST_F()
287 TextFormat::Printer printer; in TEST_F()
328 EXPECT_TRUE(TextFormat::PrintUnknownFieldsToString(unknown_fields, &text)); in TEST_F()
349 TextFormat::Printer printer; in TEST_F()
371 TextFormat::Printer printer; in TEST_F()
391 EXPECT_FALSE(TextFormat::Print(message, &output_stream)); in TEST_F()
397 class CustomUInt32FieldValuePrinter : public TextFormat::FieldValuePrinter {
412 TextFormat::Printer printer; in TEST_F()
421 class CustomInt32FieldValuePrinter : public TextFormat::FieldValuePrinter {
434 TextFormat::Printer printer; in TEST_F()
[all …]
Dtext_format.h65 class LIBPROTOBUF_EXPORT TextFormat {
385 friend class TextFormat;
499 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TextFormat);
502 inline void TextFormat::RecordLocation(ParseInfoTree* info_tree, in RecordLocation()
509 inline TextFormat::ParseInfoTree* TextFormat::CreateNested( in CreateNested()
Ddescriptor_database_unittest.cc61 EXPECT_TRUE(TextFormat::ParseFromString(file_text, &file_proto)); in AddToDatabase()
173 EXPECT_TRUE(TextFormat::ParseFromString(file_descriptor_text, &file_proto)); in AddToDatabase()
179 EXPECT_TRUE(TextFormat::ParseFromString(file_descriptor_text, &file_proto)); in AddToDatabaseWithError()
Ddescriptor_unittest.cc2398 ASSERT_TRUE(TextFormat::ParseFromString( in SetUp()
2421 ASSERT_TRUE(TextFormat::ParseFromString( in SetUp()
2554 ASSERT_TRUE(TextFormat::ParseFromString( in TEST_P()
2578 ASSERT_TRUE(TextFormat::ParseFromString( in TEST_P()
2637 ASSERT_TRUE(TextFormat::ParseFromString( in TEST_P()
2665 ASSERT_TRUE(TextFormat::ParseFromString( in TEST_P()
2846 ASSERT_TRUE(TextFormat::ParseFromString( in TEST()
2914 ASSERT_TRUE(TextFormat::ParseFromString( in TEST()
2991 ASSERT_TRUE(TextFormat::ParseFromString( in TEST()
3071 ASSERT_TRUE(TextFormat::ParseFromString( in TEST()
[all …]
Dmap_test.cc2273 EXPECT_TRUE(google::protobuf::TextFormat::ParseFromString(text, &message)); in TEST()
2958 TextFormat::Printer printer; in TEST()
2960 TextFormat::Parser parser; in TEST()
3019 TextFormat::Printer printer; in TEST()
3020 TextFormat::Parser parser; in TEST()
/frameworks/opt/gamesdk/src/tuningfork/tools/validation/src/main/java/com/google/tuningfork/validation/
DValidationUtil.java25 import com.google.protobuf.TextFormat;
26 import com.google.protobuf.TextFormat.ParseException;
50 TextFormat.merge(settingsTextProto, builder); in validateSettings()
/frameworks/av/drm/libmediadrm/tests/
DDrmMetrics_test.cpp38 using ::google::protobuf::TextFormat;
323 ASSERT_TRUE(TextFormat::MergeFromString(expectedMetrics, &expectedMetricsProto)); in TEST_F()
369 ASSERT_TRUE(TextFormat::MergeFromString(expectedMetrics, &expectedMetricsProto)); in TEST_F()
411 ASSERT_TRUE(TextFormat::MergeFromString(expectedMetrics, &expectedMetricsProto)); in TEST_F()
/frameworks/base/cmds/statsd/tools/localtools/src/com/android/statsd/shelltools/localdrive/
DLocalDrive.java24 import com.google.protobuf.TextFormat;
191 TextFormat.merge(new FileReader(origConfigLocation), builder); in updateConfig()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DAbstractMessage.java117 return TextFormat.printToString(this); in toString()
478 return TextFormat.printToString(this); in toString()
DDescriptors.java1400 defaultValue = TextFormat.parseInt32(proto.getDefaultValue()); in crossLink()
1404 defaultValue = TextFormat.parseUInt32(proto.getDefaultValue()); in crossLink()
1409 defaultValue = TextFormat.parseInt64(proto.getDefaultValue()); in crossLink()
1413 defaultValue = TextFormat.parseUInt64(proto.getDefaultValue()); in crossLink()
1446 TextFormat.unescapeBytes(proto.getDefaultValue()); in crossLink()
1447 } catch (TextFormat.InvalidEscapeSequenceException e) { in crossLink()
DTextFormat.java56 public final class TextFormat { class
57 private TextFormat() {} in TextFormat() method in TextFormat
60 Logger.getLogger(TextFormat.class.getName());
DUnknownFieldSet.java146 return TextFormat.printToString(this); in toString()
/frameworks/opt/gamesdk/samples/tuningfork/prototest/src/
Dsztool.cc229 TextFormat::Parse(&settings_stream, &settings); in main()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/conformance/
Dconformance_test.cc55 using google::protobuf::TextFormat;
248 TextFormat::ParseFromString(equivalent_text_format, &reference_message)) in RunValidInputTest()
473 TextFormat::ParseFromString(text_format, &payload_message)) in ExpectSerializeFailureForJson()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBDescriptorTests.m128 // TextFormat
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/
DCHANGES.txt155 - TextFormat now expand the Any type rather than printing bytes.
188 - TextFormat now supports reporting line/column numbers on errors.
1112 * Fixed tendency for TextFormat's parsing to overflow the stack when
1184 * Fixed crash in TextFormat parsing if the first token in the input caused a
1237 * TextFormat will no longer accept messages which contain multiple
1292 * Fixed TextFormat's parsing of "inf" and "nan".
1293 * Fixed TextFormat's parsing of comments.
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dmessage_differencer_unittest.cc1478 TextFormat::MergeFromString("rm { a: 11\n b: 12 }", &msg1); in TEST()
1479 TextFormat::MergeFromString("rm { a: 11\n b: 13 }", &msg2); in TEST()
1489 TextFormat::MergeFromString("rm { a: 11\n m { a: 12\n b: 13\n } }", &msg1); in TEST()
1490 TextFormat::MergeFromString("rm { a: 11\n m { a: 12\n b: 14\n } }", &msg2); in TEST()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/
Dcommand_line_interface.cc1651 TextFormat::Parser parser; in EncodeOrDecode()
1680 if (!TextFormat::Print(*message, &out)) { in EncodeOrDecode()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBUnknownFieldSet.m219 stringWithFormat:@"<%@ %p>: TextFormat: {\n", [self class], self];

12