Home
last modified time | relevance | path

Searched refs:ParseFromString (Results 1 – 25 of 68) sorted by relevance

123

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dlite_unittest.cc75 empty_message->ParseFromString(data); in SetAllTypesInEmptyMessageUnknownFields()
87 empty_message->ParseFromString(data); in SetSomeTypesInEmptyMessageUnknownFields()
107 message3.ParseFromString(data); in main()
123 message3.ParseFromString(extensions_data); in main()
139 message3.ParseFromString(packed_data); in main()
156 message3.ParseFromString(packed_extensions_data); in main()
201 parsing_merge.ParseFromString(buffer); in main()
225 empty_message.ParseFromString(data); in main()
228 message2.ParseFromString(data); in main()
241 empty_message.ParseFromString(data); in main()
[all …]
Ddrop_unknown_fields_test.cc53 ASSERT_TRUE(foo.ParseFromString(foo_with_extra_fields.SerializeAsString())); in TEST()
61 ASSERT_TRUE(foo_with_extra_fields.ParseFromString(foo.SerializeAsString())); in TEST()
77 ASSERT_TRUE(foo->ParseFromString(foo_with_extra_fields.SerializeAsString())); in TEST()
80 ASSERT_TRUE(foo_with_extra_fields.ParseFromString(foo->SerializeAsString())); in TEST()
Dany_test.cc46 ASSERT_TRUE(message.ParseFromString(data)); in TEST()
63 ASSERT_TRUE(message.ParseFromString(data)); in TEST()
75 ASSERT_TRUE(any.ParseFromString(any.SerializeAsString())); in TEST()
81 ASSERT_TRUE(message.ParseFromString(message.SerializeAsString())); in TEST()
Dwire_format_unittest.cc407 EXPECT_TRUE(dest.ParseFromString(data)); in TEST()
438 ASSERT_TRUE(raw.ParseFromString(data)); in TEST()
452 EXPECT_TRUE(message1.ParseFromString(raw.item(0).message())); in TEST()
456 EXPECT_TRUE(message2.ParseFromString(raw.item(1).message())); in TEST()
546 ASSERT_TRUE(message_set.ParseFromString(data)); in TEST()
590 ASSERT_TRUE(message_set.ParseFromString(data)); in TEST()
611 EXPECT_FALSE(message_set.ParseFromString(input)); in TEST()
769 EXPECT_TRUE(msg2.ParseFromString(msg1.SerializeAsString())); in TEST()
782 ASSERT_TRUE(msg2.ParseFromString(serialized)); in TEST()
787 ASSERT_TRUE(msg3.ParseFromString(serialized)); in TEST()
[all …]
Dpreserve_unknown_enum_test.cc106 EXPECT_EQ(true, message.ParseFromString(serialized)); in TEST()
111 EXPECT_EQ(true, orig_message.ParseFromString(serialized)); in TEST()
125 EXPECT_EQ(true, message->ParseFromString(serialized)); in TEST()
129 EXPECT_EQ(true, orig_message.ParseFromString(serialized)); in TEST()
142 EXPECT_EQ(true, message.ParseFromString(serialized)); in TEST()
151 EXPECT_EQ(true, orig_message.ParseFromString(serialized)); in TEST()
166 EXPECT_EQ(true, message->ParseFromString(serialized)); in TEST()
176 EXPECT_EQ(true, orig_message.ParseFromString(serialized)); in TEST()
188 EXPECT_EQ(true, message.ParseFromString(serialized)); in TEST()
Dunknown_field_set_unittest.cc65 ASSERT_TRUE(empty_message_.ParseFromString(all_fields_data_)); in SetUp()
266 ASSERT_TRUE(other_message.ParseFromString(GetBizarroData())); in TEST_F()
332 ASSERT_TRUE(destination.ParseFromString(all_fields_data_ + data)); in TEST_F()
348 ASSERT_TRUE(all_types_message.ParseFromString(bizarro_data)); in TEST_F()
349 ASSERT_TRUE(empty_message.ParseFromString(bizarro_data)); in TEST_F()
365 ASSERT_TRUE(empty_message.ParseFromString(bizarro_data)); in TEST_F()
375 ASSERT_TRUE(message.ParseFromString(all_fields_data_)); in TEST_F()
399 ASSERT_TRUE(all_extensions_message.ParseFromString(bizarro_data)); in TEST_F()
400 ASSERT_TRUE(empty_message.ParseFromString(bizarro_data)); in TEST_F()
435 ASSERT_TRUE(message.ParseFromString(data)); in TEST_F()
[all …]
Dlite_arena_unittest.cc62 to->ParseFromString(data); in TEST()
78 message->ParseFromString(data); in TEST()
Dtext_format_unittest.cc327 EXPECT_TRUE(unknown_fields.ParseFromString(data)); in TEST_F()
554 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto_)); in TEST_F()
564 EXPECT_TRUE(TextFormat::ParseFromString(parse_string, &proto)); in TEST_F()
637 ASSERT_TRUE(TextFormat::ParseFromString(parse_string, &proto_)); in TEST_F()
834 EXPECT_TRUE(parser.ParseFromString("a: 1", &message)); in TEST_F()
842 ASSERT_TRUE(TextFormat::ParseFromString( in TEST_F()
954 EXPECT_EQ(expected_result, parser.ParseFromString(input, proto)) in ExpectMessage()
967 EXPECT_TRUE(parser.ParseFromString(input, proto)); in ExpectSuccessAndTree()
1240 EXPECT_FALSE(parser.ParseFromString("Optional_Double: 10.0", &proto)); in TEST_F()
1241 EXPECT_FALSE(parser.ParseFromString("oPtIoNaLgRoUp { a: 15 }", &proto)); in TEST_F()
[all …]
Dproto3_arena_unittest.cc128 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
138 arena_message->ParseFromString(original.SerializeAsString()); in TEST()
Dmessage_unittest.cc150 EXPECT_TRUE(message.ParseFromString(data)); in TEST()
189 EXPECT_FALSE(message.ParseFromString("")); in TEST()
377 parsing_merge.ParseFromString(buffer); in TEST()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dunknown_fields_test.py67 self.empty_message.ParseFromString(self.all_fields_data)
79 message.ParseFromString(self.all_fields_data)
115 message.ParseFromString(self.all_fields_data)
119 message.ParseFromString(self.all_fields.SerializeToString())
129 message.optional_nested_message.ParseFromString(
131 message.repeated_nested_message.add().ParseFromString(
151 self.empty_message.ParseFromString(self.all_fields_data)
217 source.ParseFromString(message.SerializeToString())
223 destination.ParseFromString(message.SerializeToString())
228 message.ParseFromString(destination.SerializeToString())
[all …]
Dmessage_test.py117 golden_message.ParseFromString(golden_data)
127 golden_message.ParseFromString(golden_data)
138 golden_message.ParseFromString(golden_data)
157 golden_message.ParseFromString(golden_data)
177 golden_message.ParseFromString(golden_data)
190 golden_message.ParseFromString(golden_data)
202 message.ParseFromString(serialized)
212 golden_message.ParseFromString(golden_data)
221 golden_message.ParseFromString(golden_data)
230 golden_message.ParseFromString(golden_data)
[all …]
/frameworks/opt/gamesdk/samples/tuningfork/
Dparselogcat.py30 fp.ParseFromString(tclevent.fidelityparams)
36 a.ParseFromString(h.annotation)
51 l.ParseFromString(ser.decode("base64"))
/frameworks/native/services/surfaceflinger/tests/unittests/
DTimeStatsTest.cpp239 ASSERT_TRUE(globalProto.ParseFromString(inputCommand(InputCommand::DUMP_ALL, FMT_PROTO))); in TEST_F()
270 ASSERT_TRUE(globalProto.ParseFromString(inputCommand(InputCommand::DUMP_ALL, FMT_PROTO))); in TEST_F()
285 ASSERT_TRUE(globalProto.ParseFromString(inputCommand(InputCommand::DUMP_ALL, FMT_PROTO))); in TEST_F()
323 ASSERT_TRUE(globalProto.ParseFromString(inputCommand(InputCommand::DUMP_ALL, FMT_PROTO))); in TEST_F()
337 ASSERT_TRUE(globalProto.ParseFromString(inputCommand(InputCommand::DUMP_ALL, FMT_PROTO))); in TEST_F()
349 ASSERT_TRUE(globalProto.ParseFromString(inputCommand(InputCommand::DUMP_ALL, FMT_PROTO))); in TEST_F()
392 ASSERT_TRUE(globalProto.ParseFromString(inputCommand(InputCommand::DUMP_ALL, FMT_PROTO))); in TEST_F()
431 ASSERT_TRUE(globalProto.ParseFromString(inputCommand(InputCommand::DUMP_ALL, FMT_PROTO))); in TEST_F()
446 ASSERT_TRUE(globalProto.ParseFromString(inputCommand(InputCommand::DUMP_ALL, FMT_PROTO))); in TEST_F()
467 ASSERT_TRUE(globalProto.ParseFromString(inputCommand(InputCommand::DUMP_ALL, FMT_PROTO))); in TEST_F()
[all …]
/frameworks/opt/gamesdk/samples/tuningfork/prototest/src/
Dgameengine.cc23 s.ParseFromString(settings); in init()
34 t.ParseFromString(s); in set()
Deng_game.cc48 fp.ParseFromString(fp_ser); in runWithGameEngine()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/conformance/
Dconformance_cpp.cc93 if (!test_message.ParseFromString(request.protobuf_payload())) { in DoTest()
111 if (!test_message.ParseFromString(proto_binary)) { in DoTest()
172 if (!request.ParseFromString(serialized_input)) { in DoTestIo()
Dconformance_python.py62 test_message.ParseFromString(request.protobuf_payload)
107 request.ParseFromString(serialized_request)
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Dmessage.py178 def ParseFromString(self, serialized): member in Message
295 self.ParseFromString(state['serialized'])
Dreflection.py77 new_msg.ParseFromString(byte_str)
/frameworks/base/libs/protoutil/tests/
DProtoOutputStream_test.cpp72 ASSERT_TRUE(primitives.ParseFromString(flushToString(&proto))); in TEST()
116 ASSERT_TRUE(primitives.ParseFromString(serialized)); in TEST()
162 ASSERT_TRUE(primitives.ParseFromString(serialized)); in TEST()
205 ASSERT_TRUE(complex.ParseFromString(iterateToString(&proto))); in TEST()
246 ASSERT_TRUE(complex.ParseFromString(serialized)); in TEST()
272 ASSERT_TRUE(beforeClear.ParseFromString(flushToString(&proto))); in TEST()
282 ASSERT_TRUE(afterClear.ParseFromString(flushToString(&proto))); in TEST()
305 ASSERT_TRUE(complex.ParseFromString(flushToString(&proto))); in TEST()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc624 EXPECT_TRUE(message2.ParseFromString(data)); in TEST()
638 EXPECT_TRUE(packed_message2.ParseFromString(packed_data)); in TEST()
658 EXPECT_TRUE(message2.ParseFromString(data)); in TEST()
677 EXPECT_TRUE(message2.ParseFromString(data)); in TEST()
743 EXPECT_TRUE(message2.ParseFromString(data)); in TEST()
857 ASSERT_TRUE(message2.ParseFromString(data)); in TEST()
1822 EXPECT_TRUE(message2.ParseFromString(data)); in TEST_F()
1836 EXPECT_TRUE(message2.ParseFromString(data)); in TEST_F()
1851 EXPECT_TRUE(message2.ParseFromString(data)); in TEST_F()
1865 EXPECT_TRUE(message2.ParseFromString(data)); in TEST_F()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/examples/
Dlist_people.py35 address_book.ParseFromString(f.read())
Dadd_person.py47 address_book.ParseFromString(f.read())
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DDeviceFiles.cpp206 if (!hashFile.ParseFromString(serializedHashFile)) { in RetrieveHashedFile()
226 if (!deSerializedFile->ParseFromString(hashFile.file())) { in RetrieveHashedFile()

123