Home
last modified time | relevance | path

Searched refs:message (Results 1 – 25 of 5384) sorted by relevance

12345678910>>...216

/external/protobuf/src/google/protobuf/
Dtest_util_lite.cc49 void TestUtilLite::SetAllFields(unittest::TestAllTypesLite* message) { in SetAllFields() argument
50 message->set_optional_int32 (101); in SetAllFields()
51 message->set_optional_int64 (102); in SetAllFields()
52 message->set_optional_uint32 (103); in SetAllFields()
53 message->set_optional_uint64 (104); in SetAllFields()
54 message->set_optional_sint32 (105); in SetAllFields()
55 message->set_optional_sint64 (106); in SetAllFields()
56 message->set_optional_fixed32 (107); in SetAllFields()
57 message->set_optional_fixed64 (108); in SetAllFields()
58 message->set_optional_sfixed32(109); in SetAllFields()
[all …]
Dtest_util.cc53 void TestUtil::SetAllFields(unittest::TestAllTypes* message) { in SetAllFields() argument
54 SetOptionalFields(message); in SetAllFields()
55 AddRepeatedFields1(message); in SetAllFields()
56 AddRepeatedFields2(message); in SetAllFields()
57 SetDefaultFields(message); in SetAllFields()
58 SetOneofFields(message); in SetAllFields()
61 void TestUtil::SetOptionalFields(unittest::TestAllTypes* message) { in SetOptionalFields() argument
62 message->set_optional_int32 (101); in SetOptionalFields()
63 message->set_optional_int64 (102); in SetOptionalFields()
64 message->set_optional_uint32 (103); in SetOptionalFields()
[all …]
Dmap_test_util_impl.h56 static void SetMapFields(MapMessage* message);
61 static void SetArenaMapFields(MapMessage* message);
65 static void SetMapFieldsInitialized(MapMessage* message);
70 static void ModifyMapFields(MapMessage* message);
76 static void ExpectMapFieldsSet(const MapMessage& message);
82 static void ExpectArenaMapFieldsSet(const MapMessage& message);
87 static void ExpectMapFieldsSetInitialized(const MapMessage& message);
93 static void ExpectMapFieldsModified(const MapMessage& message);
97 static void ExpectClear(const MapMessage& message);
114 void MapTestUtilImpl::SetMapFields(MapMessage* message) { in SetMapFields() argument
[all …]
Dreflection_ops_unittest.cc52 unittest::TestAllTypes message; in TEST() local
54 TestUtil::SetAllFields(&message); in TEST()
55 TestUtil::ExpectAllFieldsSet(message); in TEST()
59 unittest::TestAllTypes message, message2; in TEST() local
61 TestUtil::SetAllFields(&message); in TEST()
63 ReflectionOps::Copy(message, &message2); in TEST()
73 unittest::TestAllExtensions message, message2; in TEST() local
75 TestUtil::SetAllExtensions(&message); in TEST()
77 ReflectionOps::Copy(message, &message2); in TEST()
83 unittest::TestOneof2 message, message2; in TEST() local
[all …]
Dtest_util.h52 static void SetAllFields(unittest::TestAllTypes* message);
53 static void SetOptionalFields(unittest::TestAllTypes* message);
54 static void AddRepeatedFields1(unittest::TestAllTypes* message);
55 static void AddRepeatedFields2(unittest::TestAllTypes* message);
56 static void SetDefaultFields(unittest::TestAllTypes* message);
57 static void SetOneofFields(unittest::TestAllTypes* message);
58 static void SetAllExtensions(unittest::TestAllExtensions* message);
59 static void SetOneofFields(unittest::TestAllExtensions* message);
60 static void SetAllFieldsAndExtensions(unittest::TestFieldOrderings* message);
61 static void SetPackedFields(unittest::TestPackedTypes* message);
[all …]
Dmap_test_util.cc39 void MapTestUtil::SetMapFields(unittest::TestMap* message) { in SetMapFields() argument
41 unittest::MAP_ENUM_BAZ>(message); in SetMapFields()
44 void MapTestUtil::SetArenaMapFields(unittest::TestArenaMap* message) { in SetArenaMapFields() argument
46 unittest::MAP_ENUM_BAZ>(message); in SetArenaMapFields()
49 void MapTestUtil::SetMapFieldsInitialized(unittest::TestMap* message) { in SetMapFieldsInitialized() argument
50 MapTestUtilImpl::SetMapFieldsInitialized(message); in SetMapFieldsInitialized()
53 void MapTestUtil::ModifyMapFields(unittest::TestMap* message) { in ModifyMapFields() argument
55 message); in ModifyMapFields()
58 void MapTestUtil::ExpectClear(const unittest::TestMap& message) { in ExpectClear() argument
59 MapTestUtilImpl::ExpectClear(message); in ExpectClear()
[all …]
Dno_field_presence_test.cc236 proto2_nofieldpresence_unittest::TestAllTypes message; in TEST() local
240 CheckDefaultValues(message); in TEST()
241 FillValues(&message); in TEST()
242 CheckNonDefaultValues(message); in TEST()
245 message.Clear(); in TEST()
246 CheckDefaultValues(message); in TEST()
251 proto2_nofieldpresence_unittest::TestAllTypes message; in TEST() local
252 EXPECT_EQ(false, message.has_optional_nested_message()); in TEST()
255 EXPECT_EQ(0, message.optional_nested_message().bb()); in TEST()
256 EXPECT_EQ(false, message.has_optional_nested_message()); in TEST()
[all …]
Dtext_format_unittest.cc243 unittest::TestEmptyMessage message; in TEST_F() local
244 UnknownFieldSet* unknown_fields = message.mutable_unknown_fields(); in TEST_F()
267 message.DebugString()); in TEST_F()
273 unittest::OneString message; in TEST_F() local
274 message.set_data("data"); in TEST_F()
275 UnknownFieldSet* unknown_fields = message.mutable_unknown_fields(); in TEST_F()
290 printer.PrintToString(message, &output); in TEST_F()
298 protobuf_unittest::TestAllTypes message; in TEST_F() local
305 message.add_repeated_string("abc"); in TEST_F()
310 message.add_repeated_string("def"); in TEST_F()
[all …]
Dextension_set_unittest.cc65 unittest::TestAllExtensions message; in TEST() local
67 TestUtil::ExpectExtensionsClear(message); in TEST()
73 &message.GetExtension(unittest::optionalgroup_extension)); in TEST()
75 &message.GetExtension(unittest::optional_nested_message_extension)); in TEST()
77 &message.GetExtension( in TEST()
80 &message.GetExtension(unittest::optional_import_message_extension)); in TEST()
86 unittest::TestAllExtensions message; in TEST() local
88 TestUtil::SetAllExtensions(&message); in TEST()
89 TestUtil::ExpectAllExtensionsSet(message); in TEST()
91 TestUtil::ModifyRepeatedExtensions(&message); in TEST()
[all …]
Dgenerated_message_reflection.h214 const UnknownFieldSet& GetUnknownFields(const Message& message) const;
215 UnknownFieldSet* MutableUnknownFields(Message* message) const;
217 int SpaceUsed(const Message& message) const;
219 bool HasField(const Message& message, const FieldDescriptor* field) const;
220 int FieldSize(const Message& message, const FieldDescriptor* field) const;
221 void ClearField(Message* message, const FieldDescriptor* field) const;
222 bool HasOneof(const Message& message,
224 void ClearOneof(Message* message, const OneofDescriptor* field) const;
225 void RemoveLast(Message* message, const FieldDescriptor* field) const;
226 Message* ReleaseLast(Message* message, const FieldDescriptor* field) const;
[all …]
Dpreserve_unknown_enum_test.cc43 proto3_preserve_unknown_enum_unittest::MyMessagePlusExtra* message) { in FillMessage() argument
44 message->set_e( in FillMessage()
46 message->add_repeated_e( in FillMessage()
48 message->add_repeated_packed_e( in FillMessage()
50 message->add_repeated_packed_unexpected_e( in FillMessage()
52 message->set_oneof_e_1( in FillMessage()
57 const proto3_preserve_unknown_enum_unittest::MyMessagePlusExtra& message) { in CheckMessage() argument
59 message.e()); in CheckMessage()
60 EXPECT_EQ(1, message.repeated_e_size()); in CheckMessage()
62 message.repeated_e(0)); in CheckMessage()
[all …]
Dgenerated_message_reflection_unittest.cc75 unittest::TestAllTypes message; in TEST() local
79 reflection_tester.ExpectClearViaReflection(message); in TEST()
81 const Reflection* reflection = message.GetReflection(); in TEST()
87 &reflection->GetMessage(message, F("optionalgroup"))); in TEST()
89 &reflection->GetMessage(message, F("optional_nested_message"))); in TEST()
91 &reflection->GetMessage(message, F("optional_foreign_message"))); in TEST()
93 &reflection->GetMessage(message, F("optional_import_message"))); in TEST()
99 unittest::TestAllTypes message; in TEST() local
103 reflection_tester.SetAllFieldsViaReflection(&message); in TEST()
104 TestUtil::ExpectAllFieldsSet(message); in TEST()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DTestUtil.java314 public static void setAllFields(TestAllTypes.Builder message) { in setAllFields() argument
315 message.setOptionalInt32 (101); in setAllFields()
316 message.setOptionalInt64 (102); in setAllFields()
317 message.setOptionalUint32 (103); in setAllFields()
318 message.setOptionalUint64 (104); in setAllFields()
319 message.setOptionalSint32 (105); in setAllFields()
320 message.setOptionalSint64 (106); in setAllFields()
321 message.setOptionalFixed32 (107); in setAllFields()
322 message.setOptionalFixed64 (108); in setAllFields()
323 message.setOptionalSfixed32(109); in setAllFields()
[all …]
DTestUtilLite.java345 public static void setAllExtensions(TestAllExtensionsLite.Builder message) { in setAllExtensions() argument
346 message.setExtension(optionalInt32ExtensionLite , 101); in setAllExtensions()
347 message.setExtension(optionalInt64ExtensionLite , 102L); in setAllExtensions()
348 message.setExtension(optionalUint32ExtensionLite , 103); in setAllExtensions()
349 message.setExtension(optionalUint64ExtensionLite , 104L); in setAllExtensions()
350 message.setExtension(optionalSint32ExtensionLite , 105); in setAllExtensions()
351 message.setExtension(optionalSint64ExtensionLite , 106L); in setAllExtensions()
352 message.setExtension(optionalFixed32ExtensionLite , 107); in setAllExtensions()
353 message.setExtension(optionalFixed64ExtensionLite , 108L); in setAllExtensions()
354 message.setExtension(optionalSfixed32ExtensionLite, 109); in setAllExtensions()
[all …]
/external/protobuf/objectivec/Tests/
DGPBTestUtilities.m95 - (void)modifyRepeatedExtensions:(TestAllExtensions *)message {
96 [message setExtension:[UnittestRoot repeatedInt32Extension]
99 [message setExtension:[UnittestRoot repeatedInt64Extension]
102 [message setExtension:[UnittestRoot repeatedUint32Extension]
105 [message setExtension:[UnittestRoot repeatedUint64Extension]
108 [message setExtension:[UnittestRoot repeatedSint32Extension]
111 [message setExtension:[UnittestRoot repeatedSint64Extension]
114 [message setExtension:[UnittestRoot repeatedFixed32Extension]
117 [message setExtension:[UnittestRoot repeatedFixed64Extension]
120 [message setExtension:[UnittestRoot repeatedSfixed32Extension]
[all …]
DGPBPerfTests.m57 TestAllTypes* message = [[TestAllTypes alloc] init];
58 [self setAllFields:message repeatedCount:kRepeatedCount];
59 NSData* rawBytes = [message data];
60 [message release];
61 message = [[TestAllTypes alloc] initWithData:rawBytes error:NULL];
62 [message release];
70 TestAllExtensions* message = [[TestAllExtensions alloc] init];
71 [self setAllExtensions:message repeatedCount:kRepeatedCount];
72 NSData* rawBytes = [message data];
73 [message release];
[all …]
DGPBMessageTests.m54 TestAllTypes *message = [TestAllTypes message];
55 [message setOptionalInt32:1];
56 [message setOptionalString:@"foo"];
57 [message setOptionalForeignMessage:[ForeignMessage message]];
58 [message.repeatedStringArray addObject:@"bar"];
59 return message;
63 TestAllTypes *message = [TestAllTypes message];
64 [message setOptionalInt64:2];
65 [message setOptionalString:@"baz"];
66 ForeignMessage *foreignMessage = [ForeignMessage message];
[all …]
/external/protobuf/python/google/protobuf/internal/
Dtest_util.py50 def IsProto2(message): argument
51 return message.DESCRIPTOR.syntax == "proto2"
53 def SetAllNonLazyFields(message): argument
64 message.optional_int32 = 101
65 message.optional_int64 = 102
66 message.optional_uint32 = 103
67 message.optional_uint64 = 104
68 message.optional_sint32 = 105
69 message.optional_sint64 = 106
70 message.optional_fixed32 = 107
[all …]
Djson_format_test.py59 def FillAllFields(self, message): argument
60 message.int32_value = 20
61 message.int64_value = -20
62 message.uint32_value = 3120987654
63 message.uint64_value = 12345678900
64 message.float_value = float('-inf')
65 message.double_value = 3.1415
66 message.bool_value = True
67 message.string_value = 'foo'
68 message.bytes_value = b'bar'
[all …]
Dtext_format_test.py103 message = message_module.TestAllTypes()
104 message.repeated_int64.append(-9223372036854775808)
105 message.repeated_uint64.append(18446744073709551615)
106 message.repeated_double.append(123.456)
107 message.repeated_double.append(1.23e22)
108 message.repeated_double.append(1.23e-18)
109 message.repeated_string.append('\000\001\a\b\f\n\r\t\v\\\'"')
110 message.repeated_string.append(u'\u00fc\ua71f')
112 self.RemoveRedundantZeros(text_format.MessageToString(message)),
125 message = message_module.TestAllTypes()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/lang/
Dwpa_gui_de.ts6 <message>
10 </message>
11 <message>
15 </message>
16 <message>
20 </message>
21 <message>
25 </message>
26 <message>
30 </message>
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs46 var message = SampleMessages.CreateFullTestAllTypes(); in GetValue()
48 …Assert.AreEqual(message.SingleBool, fields[TestAllTypes.SingleBoolFieldNumber].Accessor.GetValue(m… in GetValue()
49 …Assert.AreEqual(message.SingleBytes, fields[TestAllTypes.SingleBytesFieldNumber].Accessor.GetValue… in GetValue()
50 …Assert.AreEqual(message.SingleDouble, fields[TestAllTypes.SingleDoubleFieldNumber].Accessor.GetVal… in GetValue()
51 …Assert.AreEqual(message.SingleFixed32, fields[TestAllTypes.SingleFixed32FieldNumber].Accessor.GetV… in GetValue()
52 …Assert.AreEqual(message.SingleFixed64, fields[TestAllTypes.SingleFixed64FieldNumber].Accessor.GetV… in GetValue()
53 …Assert.AreEqual(message.SingleFloat, fields[TestAllTypes.SingleFloatFieldNumber].Accessor.GetValue… in GetValue()
54 …Assert.AreEqual(message.SingleForeignEnum, fields[TestAllTypes.SingleForeignEnumFieldNumber].Acces… in GetValue()
55 …Assert.AreEqual(message.SingleForeignMessage, fields[TestAllTypes.SingleForeignMessageFieldNumber]… in GetValue()
56 …Assert.AreEqual(message.SingleImportEnum, fields[TestAllTypes.SingleImportEnumFieldNumber].Accesso… in GetValue()
[all …]
/external/autotest/client/cros/cellular/mbim_compliance/
Dmbim_message_unittest.py55 message = TestMessage()
66 message = TestMessage(message_type=4, fake=5)
74 message = TestMessage(message_type=3)
75 self.assertEqual(message.message_length, 0)
76 self.assertEqual(message.transaction_id, 0)
77 self.assertEqual(message.message_type, 3)
86 message = TestMessage(message_type=3, transaction_id=4)
87 self.assertEqual(message.message_length, 0)
88 self.assertEqual(message.transaction_id, 4)
89 self.assertEqual(message.message_type, 3)
[all …]
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc103 const string& message) { in AddError() argument
105 filename, line, column, message); in AddError()
159 unittest::TestAllTypes message; in TEST() local
161 TestUtil::ExpectClear(message); in TEST()
167 &message.optionalgroup()); in TEST()
169 &message.optional_nested_message()); in TEST()
171 &message.optional_foreign_message()); in TEST()
173 &message.optional_import_message()); in TEST()
233 unittest::TestAllTypes message; in TEST() local
235 TestUtil::SetAllFields(&message); in TEST()
[all …]
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Djniutil.cc156 int throwOutOfMemory(JNIEnv* env, const char* message) { in throwOutOfMemory() argument
157 return conscrypt::jniutil::throwException(env, "java/lang/OutOfMemoryError", message); in throwOutOfMemory()
160 int throwBadPaddingException(JNIEnv* env, const char* message) { in throwBadPaddingException() argument
161 JNI_TRACE("throwBadPaddingException %s", message); in throwBadPaddingException()
162 return conscrypt::jniutil::throwException(env, "javax/crypto/BadPaddingException", message); in throwBadPaddingException()
165 int throwSignatureException(JNIEnv* env, const char* message) { in throwSignatureException() argument
166 JNI_TRACE("throwSignatureException %s", message); in throwSignatureException()
167 return conscrypt::jniutil::throwException(env, "java/security/SignatureException", message); in throwSignatureException()
170 int throwInvalidKeyException(JNIEnv* env, const char* message) { in throwInvalidKeyException() argument
171 JNI_TRACE("throwInvalidKeyException %s", message); in throwInvalidKeyException()
[all …]

12345678910>>...216