Home
last modified time | relevance | path

Searched refs:msg2 (Results 1 – 23 of 23) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dmessage_differencer_unittest.cc82 const Message& msg2) { in ExpectEqualsWithDifferencer() argument
84 EXPECT_TRUE(differencer->Compare(msg1, msg2)); in ExpectEqualsWithDifferencer()
87 EXPECT_TRUE(differencer->Compare(msg1, msg2)); in ExpectEqualsWithDifferencer()
93 unittest::TestAllTypes msg2; in TEST() local
96 TestUtil::SetAllFields(&msg2); in TEST()
99 EXPECT_TRUE(util::MessageDifferencer::Equals(msg1, msg2)); in TEST()
105 unittest::TestAllTypes msg2; in TEST() local
108 TestUtil::SetAllFields(&msg2); in TEST()
113 EXPECT_FALSE(util::MessageDifferencer::Equals(msg1, msg2)); in TEST()
119 unittest::TestAllTypes msg2; in TEST() local
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBSwiftTests.swift40 let msg2 = Message2() in testProto2Basics() variable
46 msg2.optionalString = "other" in testProto2Basics()
47 msg.optionalMessage = msg2 in testProto2Basics()
67 XCTAssertTrue(msg2.hasOptionalString) in testProto2Basics()
77 XCTAssertEqual(msg2.optionalString, "other") in testProto2Basics()
78 XCTAssertTrue(msg.optionalMessage === msg2) in testProto2Basics()
108 msg2.optionalString = nil in testProto2Basics()
109 XCTAssertFalse(msg2.hasOptionalString) in testProto2Basics()
110 XCTAssertEqual(msg2.optionalString, "") in testProto2Basics()
127 XCTAssertTrue(msg.optionalMessage !== msg2) // New instance in testProto2Basics()
[all …]
DGPBMessageTests+Runtime.m1980 TestAllTypes *msg2 = [[msg1 copy] autorelease];
1982 XCTAssertNotEqual(msg1, msg2); // Ptr compare, new object.
1983 XCTAssertEqualObjects(msg1, msg2); // Equal values.
1987 XCTAssertNotEqual(msg1.optionalGroup, msg2.optionalGroup);
1988 XCTAssertNotEqual(msg1.optionalNestedMessage, msg2.optionalNestedMessage);
1989 XCTAssertNotEqual(msg1.optionalForeignMessage, msg2.optionalForeignMessage);
1990 XCTAssertNotEqual(msg1.optionalImportMessage, msg2.optionalImportMessage);
1992 XCTAssertNotEqual(msg1.repeatedInt32Array, msg2.repeatedInt32Array);
1993 XCTAssertNotEqual(msg1.repeatedInt64Array, msg2.repeatedInt64Array);
1994 XCTAssertNotEqual(msg1.repeatedUint32Array, msg2.repeatedUint32Array);
[all …]
DGPBMessageTests.m1962 BoolOnlyMessage *msg2 = [BoolOnlyMessage message];
1965 msg2.boolField1 = YES;
1967 msg2.boolField3 = YES;
1969 msg2.boolField5 = YES;
1971 msg2.boolField7 = YES;
1973 msg2.boolField9 = YES;
1975 msg2.boolField11 = YES;
1977 msg2.boolField13 = YES;
1979 msg2.boolField15 = YES;
1981 msg2.boolField17 = YES;
[all …]
DGPBMessageTests+Serialization.m1116 TestEnumMapPlusExtra *msg2 =
1119 XCTAssertEqual(msg2.knownMapField.count, 1U);
1120 XCTAssertTrue([msg2.knownMapField getEnum:&val forKey:0]);
1123 XCTAssertEqual(msg2.unknownMapField.count, 1U);
1124 XCTAssertTrue([msg2.unknownMapField getEnum:&val forKey:0]);
1126 XCTAssertEqual(msg2.unknownFields.countOfFields, 0U);
1128 XCTAssertEqualObjects(orig, msg2);
1189 Message2 *msg2 = [[Message2 alloc] initWithData:data error:NULL];
1191 XCTAssertNotEqual(msg2, msg); // Pointer comparison
1192 XCTAssertEqualObjects(msg2, msg);
[all …]
DGPBMessageTests+Merge.m674 TestMessageMap *msg2 = [[TestMessageMap alloc] init];
684 [msg2.mapInt32Message setObject:subMsg forKey:0];
687 [msg1 mergeFrom:msg2];
696 [msg2 release];
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DParserTest.java260 TestAllTypes msg2 = builder.setOptionalInt64(2).build(); in testParsingMerge() local
271 .setField1(msg2).build(); in testParsingMerge()
280 .setField1(msg2).build(); in testParsingMerge()
287 .addField1(msg1).addField1(msg2).addField1(msg3) in testParsingMerge()
288 .addField2(msg1).addField2(msg2).addField2(msg3) in testParsingMerge()
289 .addField3(msg1).addField3(msg2).addField3(msg3) in testParsingMerge()
292 .addExt1(msg1).addExt1(msg2).addExt1(msg3) in testParsingMerge()
293 .addExt2(msg1).addExt2(msg2).addExt2(msg3) in testParsingMerge()
322 TestAllTypesLite msg2 = builder.setOptionalInt64(2).build(); in testParsingMergeLite() local
333 .setField1(msg2).build(); in testParsingMergeLite()
[all …]
DCodedInputStreamTest.java814 BoolMessage msg2 = BoolMessage.parseFrom(serialized); in testCompatibleTypes() local
815 assertTrue(msg2.getData()); in testCompatibleTypes()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Ddescriptor_pool_test.py136 msg2 = self.pool.FindMessageTypeByName(
138 self.assertIsInstance(msg2, descriptor.Descriptor)
139 self.assertEqual('Factory2Message', msg2.name)
141 msg2.full_name)
142 self.assertIsNone(msg2.containing_type)
144 nested_msg2 = msg2.nested_types[0]
146 self.assertEqual(msg2, nested_msg2.containing_type)
148 nested_enum2 = msg2.enum_types[0]
150 self.assertEqual(msg2, nested_enum2.containing_type)
152 self.assertEqual(nested_msg2, msg2.fields_by_name[
[all …]
Dmessage_test.py1356 msg2 = map_unittest_pb2.TestMap()
1357 msg2.ParseFromString(serialized)
1361 msg2.map_string_string[123] = '123'
1365 msg2.map_string_string['123'] = 123
1367 self.assertEqual(-456, msg2.map_int32_int32[-123])
1368 self.assertEqual(-2**34, msg2.map_int64_int64[-2**33])
1369 self.assertEqual(456, msg2.map_uint32_uint32[123])
1370 self.assertEqual(2**34, msg2.map_uint64_uint64[2**33])
1371 self.assertEqual('123', msg2.map_string_string['abc'])
1372 self.assertEqual(2, msg2.map_int32_enum[888])
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dproto3_lite_unittest.cc134 TestAllTypes msg2; in TEST() local
136 msg2.set_optional_string("3456"); in TEST()
137 msg1.Swap(&msg2); in TEST()
139 EXPECT_EQ("123", msg2.optional_string()); in TEST()
140 EXPECT_EQ(msg1.ByteSize(), msg2.ByteSize() + 1); in TEST()
Dmessage_unittest.cc332 unittest::TestAllTypes* msg2, in AssignParsingMergeMessages() argument
335 msg2->set_optional_int64(2); in AssignParsingMergeMessages()
347 unittest::TestAllTypes* msg2; in TEST() local
352 msg2 = generator.add_##FIELD(); \ in TEST()
354 AssignParsingMergeMessages(msg1, msg2, msg3) in TEST()
365 msg2 = generator.add_##FIELD()->mutable_field1(); \ in TEST()
367 AssignParsingMergeMessages(msg1, msg2, msg3) in TEST()
Dlite_unittest.cc61 google::protobuf::unittest::TestAllTypesLite* msg2, in AssignParsingMergeMessages() argument
64 msg2->set_optional_int64(2); in AssignParsingMergeMessages()
171 google::protobuf::unittest::TestAllTypesLite* msg2; in main() local
176 msg2 = generator.add_##FIELD(); \ in main()
178 AssignParsingMergeMessages(msg1, msg2, msg3) in main()
189 msg2 = generator.add_##FIELD()->mutable_field1(); \ in main()
191 AssignParsingMergeMessages(msg1, msg2, msg3) in main()
Dwire_format_unittest.cc737 protobuf_unittest::TestRepeatedScalarDifferentTagSizes msg1, msg2; in TEST() local
769 EXPECT_TRUE(msg2.ParseFromString(msg1.SerializeAsString())); in TEST()
770 EXPECT_EQ(msg1.DebugString(), msg2.DebugString()); in TEST()
781 unittest::BoolMessage msg2; in TEST() local
782 ASSERT_TRUE(msg2.ParseFromString(serialized)); in TEST()
783 ASSERT_EQ(static_cast<bool>(data), msg2.data()); in TEST()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DParserTest.java221 TestAllTypes msg2 = builder.setOptionalInt64(2).build(); in testParsingMerge() local
232 .setField1(msg2).build(); in testParsingMerge()
241 .setField1(msg2).build(); in testParsingMerge()
248 .addField1(msg1).addField1(msg2).addField1(msg3) in testParsingMerge()
249 .addField2(msg1).addField2(msg2).addField2(msg3) in testParsingMerge()
250 .addField3(msg1).addField3(msg2).addField3(msg3) in testParsingMerge()
253 .addExt1(msg1).addExt1(msg2).addExt1(msg3) in testParsingMerge()
254 .addExt2(msg1).addExt2(msg2).addExt2(msg3) in testParsingMerge()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java470 Message msg2 = obtainMessage(EVENT_REMOVE_DDS_EMERGENCY_OVERRIDE); in handleMessage() local
471 sendMessageDelayed(msg2, mEmergencyOverride.mGnssOverrideTimeMs); in handleMessage()
505 Message msg2 = obtainMessage(EVENT_REMOVE_DDS_EMERGENCY_OVERRIDE); in handleMessage() local
506 sendMessageDelayed(msg2, mEmergencyOverride.mGnssOverrideTimeMs in handleMessage()
586 Message msg2 = obtainMessage(EVENT_REMOVE_DDS_EMERGENCY_OVERRIDE); in handleMessage() local
588 sendMessageDelayed(msg2, DEFAULT_DATA_OVERRIDE_TIMEOUT_MS); in handleMessage()
/frameworks/av/media/libmediaplayer2/nuplayer2/
DGenericSource2.cpp628 sp<AMessage> msg2 = new AMessage(sendWhat, this); in fetchTextData() local
629 msg2->setInt32("generation", msgGeneration); in fetchTextData()
630 mMediaClock->addTimer(msg2, subTimeUs); in fetchTextData()
971 sp<AMessage> msg2 = new AMessage(kWhatSendGlobalTimedTextData, this); in selectTrack() local
972 msg2->setInt32("generation", mFetchTimedTextDataGeneration); in selectTrack()
973 msg2->post(); in selectTrack()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp762 sp<AMessage> msg2 = new AMessage(sendWhat, this); in fetchTextData() local
763 msg2->setInt32("generation", msgGeneration); in fetchTextData()
764 mMediaClock->addTimer(msg2, subTimeUs); in fetchTextData()
1102 sp<AMessage> msg2 = new AMessage(kWhatSendGlobalTimedTextData, this); in selectTrack() local
1103 msg2->setInt32("generation", mFetchTimedTextDataGeneration); in selectTrack()
1104 msg2->post(); in selectTrack()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/ext/google/protobuf_c/
Dstorage.c814 VALUE layout_eq(MessageLayout* layout, void* msg1, void* msg2) { in layout_eq() argument
823 void* msg2_memory = slot_memory(layout, msg2, field); in layout_eq()
824 uint32_t* msg2_oneof_case = slot_oneof_case(layout, msg2, field); in layout_eq()
Dprotobuf.h470 VALUE layout_eq(MessageLayout* layout, void* msg1, void* msg2);
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/test/java/com/google/protobuf/nano/
DNanoTest.java108 RecursiveMessageNano msg2 = new RecursiveMessageNano(); in testRecursiveMessageNano() local
109 msg2.id = 2; in testRecursiveMessageNano()
119 msg.optionalRecursiveMessageNano = msg2; in testRecursiveMessageNano()
1999 TestAllTypesNano msg2 = new TestAllTypesNano(); in testNanoRepeatedPackedSerializedSize() local
2000 msg2.repeatedPackedInt32 = new int[] { 123, 789, 456 }; in testNanoRepeatedPackedSerializedSize()
2002 MessageNano.toByteArray(msg2, result2, 0, msgSerializedSize); in testNanoRepeatedPackedSerializedSize()
2005 assertEquals(msgSerializedSize, msg2.getSerializedSize()); in testNanoRepeatedPackedSerializedSize()
2247 MessageScopeEnumRefNano msg2 = new MessageScopeEnumRefNano(); in testNanoMultipleEnumScoping() local
2248 msg2.enumField = MessageScopeEnumRefNano.TWO; in testNanoMultipleEnumScoping()
2636 EnumClassNanoMultiple msg2 = new EnumClassNanoMultiple(); in testNanoJavaEnumStyle() local
[all …]
/frameworks/base/media/java/android/media/
DMediaPlayer.java3339 Message msg2 = obtainMessage( in handleMessage()
3341 sendMessage(msg2); in handleMessage()
3461 Message msg2 = obtainMessage( in handleMessage()
3463 sendMessage(msg2); in handleMessage()
/frameworks/base/media/apex/java/android/media/
DMediaPlayer2.java1166 Message msg2 = mTaskHandler.obtainMessage(
1168 mTaskHandler.handleMessage(msg2, srcId);