Home
last modified time | relevance | path

Searched full:message (Results 1 – 25 of 3083) sorted by relevance

12345678910>>...124

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
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 …]
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 …]
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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dtest_util.cc43 #include <google/protobuf/message.h>
53 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()
[all …]
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 …]
Dmap_test_util_impl.h53 // Set every field in the TestMap message to a unique value.
56 static void SetMapFields(MapMessage* message);
58 // Set every field in the TestArenaMap message to a unique value.
61 static void SetArenaMapFields(MapMessage* message);
63 // Set every field in the message to a default value.
65 static void SetMapFieldsInitialized(MapMessage* message);
67 // Modify all the map fields of the message (which should already have been
70 static void ModifyMapFields(MapMessage* message);
76 static void ExpectMapFieldsSet(const MapMessage& message);
82 static void ExpectArenaMapFieldsSet(const MapMessage& message);
[all …]
Dgenerated_message_reflection.h48 #include <google/protobuf/message.h>
90 // - Singular Message fields are stored as a pointer to a Message. These
104 // descriptor: The descriptor for the message type being implemented.
105 // default_instance: The default instance of the message. This is only
108 // sub-message has not been initialized yet. (Thus, all
109 // embedded message fields *must* have non-NULL pointers
112 // the start of the message object, of each field. These can
116 // has_bits_offset: Offset in the message of an array of uint32s of size
119 // corresponding field of the message has been initialized.
122 // unknown_fields_offset: Offset in the message of the UnknownFieldSet for
[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.h40 #include <google/protobuf/message.h>
51 // Set every field in the message to a unique value.
52 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);
[all …]
Dmessage.h35 // Defines Message, the abstract interface implemented by non-lite
36 // protocol message objects. Although it's possible to implement this
42 // Say you have a message defined as:
44 // message Foo {
52 // string data; // Will store a serialized version of the message.
55 // // Create a message and serialize it.
66 // // Parse the serialized message and check that it contains the
79 // // Same as the last block, but do it dynamically via the Message
81 // Message* foo = new Foo;
96 // // Parse the message.
[all …]
Dmap_test_util.cc34 #include <google/protobuf/message.h>
39 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
[all …]
Dgenerated_message_reflection.cc93 " Message type: " << descriptor->full_name() << "\n" in ReportReflectionUsageError()
119 " Message type: " << descriptor->full_name() << "\n" in ReportReflectionUsageTypeError()
121 " Problem : Field is not the right type for this message:\n" in ReportReflectionUsageTypeError()
132 " Message type: " << descriptor->full_name() << "\n" in ReportReflectionUsageEnumTypeError()
158 METHOD, "Field does not match message type.");
177 const Message* default_instance, in GeneratedMessageReflection()
204 const Message* default_instance, in GeneratedMessageReflection()
256 const Message& message) const { in GetUnknownFields()
261 return GetInternalMetadataWithArena(message).unknown_fields(); in GetUnknownFields()
263 const void* ptr = reinterpret_cast<const uint8*>(&message) + in GetUnknownFields()
[all …]
Dno_field_presence_test.cc63 // accessor for message fields returns default instance when not present in CheckDefaultValues()
236 proto2_nofieldpresence_unittest::TestAllTypes message; in TEST() local
240 CheckDefaultValues(message); in TEST()
241 FillValues(&message); in TEST()
242 CheckNonDefaultValues(message); in TEST()
244 // Clear() should be equivalent to getting a freshly-constructed message. in TEST()
245 message.Clear(); in TEST()
246 CheckDefaultValues(message); in TEST()
250 // check that presence still works properly for message fields. in TEST()
251 proto2_nofieldpresence_unittest::TestAllTypes message; in TEST() local
[all …]
Dgenerated_message_reflection_unittest.cc36 // generate a full protocol message implementation and then test its
38 // trying to create our own Message class for GeneratedMessageReflection
74 // Check that all default values are set correctly in the initial message. in TEST()
75 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()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DTestUtil.java245 * These are useful for testing various protocol message features, e.g.
246 * set all fields of a message, serialize it, parse it, and check that all
311 * Set every field of {@code message} to the values expected by
314 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()
[all …]
DTestUtilLite.java342 * Set every field of {@code message} to the values expected by
345 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()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DTestUtil.java153 * These are useful for testing various protocol message features, e.g.
154 * set all fields of a message, serialize it, parse it, and check that all
223 * Set every field of {@code message} to the values expected by
226 public static void setAllFields(TestAllTypes.Builder message) { in setAllFields() argument
227 message.setOptionalInt32 (101); in setAllFields()
228 message.setOptionalInt64 (102); in setAllFields()
229 message.setOptionalUint32 (103); in setAllFields()
230 message.setOptionalUint64 (104); in setAllFields()
231 message.setOptionalSint32 (105); in setAllFields()
232 message.setOptionalSint64 (106); in setAllFields()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dtest_util.py47 # Tests whether the given TestAllTypes message is proto2 or not.
49 # for the proto2 version of the message.
50 def IsProto2(message): argument
51 return message.DESCRIPTOR.syntax == "proto2"
53 def SetAllNonLazyFields(message): argument
54 """Sets every non-lazy field in the message to a unique value.
57 message: A TestAllTypes instance.
64 message.optional_int32 = 101
65 message.optional_int64 = 102
66 message.optional_uint32 = 103
[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)),
127 message = message_module.TestAllTypes()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipCommandInterface.java23 import android.os.Message;
48 public void getIccCardStatus(Message result) { in getIccCardStatus()
52 public void getIccSlotsStatus(Message result) { in getIccSlotsStatus()
56 public void setLogicalToPhysicalSlotMapping(int[] physicalSlots, Message result) { in setLogicalToPhysicalSlotMapping()
60 public void supplyIccPin(String pin, Message result) { in supplyIccPin()
64 public void supplyIccPuk(String puk, String newPin, Message result) { in supplyIccPuk()
68 public void supplyIccPin2(String pin, Message result) { in supplyIccPin2()
72 public void supplyIccPuk2(String puk, String newPin2, Message result) { in supplyIccPuk2()
76 public void changeIccPin(String oldPin, String newPin, Message result) { in changeIccPin()
80 public void changeIccPin2(String oldPin2, String newPin2, Message result) { in changeIccPin2()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCommandInterface.java23 import android.os.Message;
49 public void getIccCardStatus(Message result) { in getIccCardStatus()
53 public void getIccSlotsStatus(Message result) { in getIccSlotsStatus()
57 public void setLogicalToPhysicalSlotMapping(int[] physicalSlots, Message result) { in setLogicalToPhysicalSlotMapping()
61 public void supplyIccPin(String pin, Message result) { in supplyIccPin()
65 public void supplyIccPuk(String puk, String newPin, Message result) { in supplyIccPuk()
69 public void supplyIccPin2(String pin, Message result) { in supplyIccPin2()
73 public void supplyIccPuk2(String puk, String newPin2, Message result) { in supplyIccPuk2()
77 public void changeIccPin(String oldPin, String newPin, Message result) { in changeIccPin()
81 public void changeIccPin2(String oldPin2, String newPin2, Message result) { in changeIccPin2()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DUsimDataDownloadCommands.java.broken21 import android.os.Message;
108 Message response) {
123 Message response) {
138 public synchronized void sendEnvelopeWithStatus(String contents, Message response) {
161 public void setSuppServiceNotifications(boolean enable, Message result) {
165 public void supplyIccPin(String pin, Message result) {
169 public void supplyIccPinForApp(String pin, String aid, Message result) {
173 public void supplyIccPuk(String puk, String newPin, Message result) {
177 public void supplyIccPukForApp(String puk, String newPin, String aid, Message result) {
181 public void supplyIccPin2(String pin2, Message result) {
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedCommandsVerifier.java22 import android.os.Message;
55 public void getImsRegistrationState(Message result) { in getImsRegistrationState()
410 public void setSuppServiceNotifications(boolean enable, Message result) { in setSuppServiceNotifications()
590 public void supplyIccPin(String pin, Message result) { in supplyIccPin()
595 public void supplyIccPinForApp(String pin, String aid, Message result) { in supplyIccPinForApp()
600 public void supplyIccPuk(String puk, String newPin, Message result) { in supplyIccPuk()
605 public void supplyIccPukForApp(String puk, String newPin, String aid, Message result) { in supplyIccPukForApp()
610 public void supplyIccPin2(String pin2, Message result) { in supplyIccPin2()
615 public void supplyIccPin2ForApp(String pin2, String aid, Message result) { in supplyIccPin2ForApp()
620 public void supplyIccPuk2(String puk2, String newPin2, Message result) { in supplyIccPuk2()
[all …]

12345678910>>...124