Home
last modified time | relevance | path

Searched refs:messageType (Results 1 – 25 of 167) sorted by relevance

1234567

/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs65 MessageDescriptor messageType = TestAllTypes.Descriptor; in FileDescriptor()
66 Assert.AreSame(typeof(TestAllTypes), messageType.ClrType); in FileDescriptor()
67 Assert.AreSame(TestAllTypes.Parser, messageType.Parser); in FileDescriptor()
68 Assert.AreEqual(messageType, file.MessageTypes[0]); in FileDescriptor()
69 Assert.AreEqual(messageType, file.FindTypeByName<MessageDescriptor>("TestAllTypes")); in FileDescriptor()
93 MessageDescriptor messageType = TestAllTypes.Descriptor; in MessageDescriptor()
96 Assert.AreEqual("TestAllTypes", messageType.Name); in MessageDescriptor()
97 Assert.AreEqual("protobuf_unittest.TestAllTypes", messageType.FullName); in MessageDescriptor()
98 Assert.AreEqual(UnittestProto3Reflection.Descriptor, messageType.File); in MessageDescriptor()
99 Assert.IsNull(messageType.ContainingType); in MessageDescriptor()
[all …]
/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs65 MessageDescriptor messageType = TestAllTypes.Descriptor; in FileDescriptor()
66 Assert.AreSame(typeof(TestAllTypes), messageType.ClrType); in FileDescriptor()
67 Assert.AreSame(TestAllTypes.Parser, messageType.Parser); in FileDescriptor()
68 Assert.AreEqual(messageType, file.MessageTypes[0]); in FileDescriptor()
69 Assert.AreEqual(messageType, file.FindTypeByName<MessageDescriptor>("TestAllTypes")); in FileDescriptor()
93 MessageDescriptor messageType = TestAllTypes.Descriptor; in MessageDescriptor()
96 Assert.AreEqual("TestAllTypes", messageType.Name); in MessageDescriptor()
97 Assert.AreEqual("protobuf_unittest.TestAllTypes", messageType.FullName); in MessageDescriptor()
98 Assert.AreEqual(UnittestProto3Reflection.Descriptor, messageType.File); in MessageDescriptor()
99 Assert.IsNull(messageType.ContainingType); in MessageDescriptor()
[all …]
/external/cronet/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DDescriptorMessageInfoFactory.java99 public boolean isSupported(Class<?> messageType) { in isSupported() argument
100 return GeneratedMessageV3.class.isAssignableFrom(messageType); in isSupported()
104 public MessageInfo messageInfoFor(Class<?> messageType) { in messageInfoFor() argument
105 if (!GeneratedMessageV3.class.isAssignableFrom(messageType)) { in messageInfoFor()
106 throw new IllegalArgumentException("Unsupported message type: " + messageType.getName()); in messageInfoFor()
109 return convert(messageType, descriptorForType(messageType)); in messageInfoFor()
112 private static Message getDefaultInstance(Class<?> messageType) { in getDefaultInstance() argument
114 Method method = messageType.getDeclaredMethod(GET_DEFAULT_INSTANCE_METHOD_NAME); in getDefaultInstance()
118 "Unable to get default instance for message class " + messageType.getName(), e); in getDefaultInstance()
122 private static Descriptor descriptorForType(Class<?> messageType) { in descriptorForType() argument
[all …]
DProtobuf.java86 public <T> Schema<T> schemaFor(Class<T> messageType) { in schemaFor() argument
87 checkNotNull(messageType, "messageType"); in schemaFor()
89 Schema<T> schema = (Schema<T>) schemaCache.get(messageType); in schemaFor()
91 schema = schemaFactory.createSchema(messageType); in schemaFor()
93 Schema<T> previous = (Schema<T>) registerSchema(messageType, schema); in schemaFor()
116 public Schema<?> registerSchema(Class<?> messageType, Schema<?> schema) { in registerSchema() argument
117 checkNotNull(messageType, "messageType"); in registerSchema()
119 return schemaCache.putIfAbsent(messageType, schema); in registerSchema()
132 public Schema<?> registerSchemaOverride(Class<?> messageType, Schema<?> schema) { in registerSchemaOverride() argument
133 checkNotNull(messageType, "messageType"); in registerSchemaOverride()
[all …]
DManifestSchemaFactory.java53 public <T> Schema<T> createSchema(Class<T> messageType) { in createSchema() argument
54 SchemaUtil.requireGeneratedMessage(messageType); in createSchema()
56 MessageInfo messageInfo = messageInfoFactory.messageInfoFor(messageType); in createSchema()
60 if (GeneratedMessageLite.class.isAssignableFrom(messageType)) { in createSchema()
72 return newSchema(messageType, messageInfo); in createSchema()
75 private static <T> Schema<T> newSchema(Class<T> messageType, MessageInfo messageInfo) { in newSchema() argument
76 if (GeneratedMessageLite.class.isAssignableFrom(messageType)) { in newSchema()
79 messageType, in newSchema()
87 messageType, in newSchema()
97 messageType, in newSchema()
[all …]
DGeneratedMessageInfoFactory.java47 public boolean isSupported(Class<?> messageType) { in isSupported() argument
48 return GeneratedMessageLite.class.isAssignableFrom(messageType); in isSupported()
52 public MessageInfo messageInfoFor(Class<?> messageType) { in messageInfoFor() argument
53 if (!GeneratedMessageLite.class.isAssignableFrom(messageType)) { in messageInfoFor()
54 throw new IllegalArgumentException("Unsupported message type: " + messageType.getName()); in messageInfoFor()
59 messageType.asSubclass(GeneratedMessageLite.class)) in messageInfoFor()
62 throw new RuntimeException("Unable to get message info for " + messageType.getName(), e); in messageInfoFor()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DDescriptorMessageInfoFactory.java98 public boolean isSupported(Class<?> messageType) { in isSupported() argument
99 return GeneratedMessageV3.class.isAssignableFrom(messageType); in isSupported()
103 public MessageInfo messageInfoFor(Class<?> messageType) { in messageInfoFor() argument
104 if (!GeneratedMessageV3.class.isAssignableFrom(messageType)) { in messageInfoFor()
105 throw new IllegalArgumentException("Unsupported message type: " + messageType.getName()); in messageInfoFor()
108 return convert(messageType, descriptorForType(messageType)); in messageInfoFor()
111 private static Message getDefaultInstance(Class<?> messageType) { in getDefaultInstance() argument
113 Method method = messageType.getDeclaredMethod(GET_DEFAULT_INSTANCE_METHOD_NAME); in getDefaultInstance()
117 "Unable to get default instance for message class " + messageType.getName(), e); in getDefaultInstance()
121 private static Descriptor descriptorForType(Class<?> messageType) { in descriptorForType() argument
[all …]
DProtobuf.java86 public <T> Schema<T> schemaFor(Class<T> messageType) { in schemaFor() argument
87 checkNotNull(messageType, "messageType"); in schemaFor()
89 Schema<T> schema = (Schema<T>) schemaCache.get(messageType); in schemaFor()
91 schema = schemaFactory.createSchema(messageType); in schemaFor()
93 Schema<T> previous = (Schema<T>) registerSchema(messageType, schema); in schemaFor()
116 public Schema<?> registerSchema(Class<?> messageType, Schema<?> schema) { in registerSchema() argument
117 checkNotNull(messageType, "messageType"); in registerSchema()
119 return schemaCache.putIfAbsent(messageType, schema); in registerSchema()
132 public Schema<?> registerSchemaOverride(Class<?> messageType, Schema<?> schema) { in registerSchemaOverride() argument
133 checkNotNull(messageType, "messageType"); in registerSchemaOverride()
[all …]
DManifestSchemaFactory.java53 public <T> Schema<T> createSchema(Class<T> messageType) { in createSchema() argument
54 SchemaUtil.requireGeneratedMessage(messageType); in createSchema()
56 MessageInfo messageInfo = messageInfoFactory.messageInfoFor(messageType); in createSchema()
60 if (GeneratedMessageLite.class.isAssignableFrom(messageType)) { in createSchema()
72 return newSchema(messageType, messageInfo); in createSchema()
75 private static <T> Schema<T> newSchema(Class<T> messageType, MessageInfo messageInfo) { in newSchema() argument
76 if (GeneratedMessageLite.class.isAssignableFrom(messageType)) { in newSchema()
79 messageType, in newSchema()
87 messageType, in newSchema()
97 messageType, in newSchema()
[all …]
DGeneratedMessageInfoFactory.java47 public boolean isSupported(Class<?> messageType) { in isSupported() argument
48 return GeneratedMessageLite.class.isAssignableFrom(messageType); in isSupported()
52 public MessageInfo messageInfoFor(Class<?> messageType) { in messageInfoFor() argument
53 if (!GeneratedMessageLite.class.isAssignableFrom(messageType)) { in messageInfoFor()
54 throw new IllegalArgumentException("Unsupported message type: " + messageType.getName()); in messageInfoFor()
59 messageType.asSubclass(GeneratedMessageLite.class)) in messageInfoFor()
62 throw new RuntimeException("Unable to get message info for " + messageType.getName(), e); in messageInfoFor()
/external/tcpdump/tests/
Dhuge-tipc-messages.out1 …52, headerlength 40 bytes, MessageSize 40 bytes, Low Importance Data payload, messageType NAMED_MSG
2 …154, headerlength 24 bytes, MessageSize 24 bytes, Low Importance Data payload, messageType CONN_MSG
3 …, headerlength 24 bytes, MessageSize 66000 bytes, Low Importance Data payload, messageType CONN_MSG
4 …headerlength 24 bytes, MessageSize 24 bytes, Critical Importance Data payload, messageType CONN_MSG
5 …52, headerlength 40 bytes, MessageSize 40 bytes, Low Importance Data payload, messageType NAMED_MSG
6 …849, headerlength 24 bytes, MessageSize 24 bytes, Low Importance Data payload, messageType CONN_MSG
7 …, headerlength 24 bytes, MessageSize 65536 bytes, Low Importance Data payload, messageType CONN_MSG
8 …49, headerlength 40 bytes, MessageSize 40 bytes, Connection Manager internal, messageType NAMED_MSG
9 …headerlength 24 bytes, MessageSize 24 bytes, Critical Importance Data payload, messageType CONN_MSG
10 …52, headerlength 40 bytes, MessageSize 40 bytes, Low Importance Data payload, messageType NAMED_MSG
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs183 MessageDescriptor messageType = TestAllTypes.Descriptor; in MessageDescriptorFromGeneratedCodeFileDescriptor()
184 Assert.AreSame(typeof(TestAllTypes), messageType.ClrType); in MessageDescriptorFromGeneratedCodeFileDescriptor()
185 Assert.AreSame(TestAllTypes.Parser, messageType.Parser); in MessageDescriptorFromGeneratedCodeFileDescriptor()
186 Assert.AreEqual(messageType, file.MessageTypes[0]); in MessageDescriptorFromGeneratedCodeFileDescriptor()
187 Assert.AreEqual(messageType, file.FindTypeByName<MessageDescriptor>("TestAllTypes")); in MessageDescriptorFromGeneratedCodeFileDescriptor()
193 MessageDescriptor messageType = TestAllTypes.Descriptor; in MessageDescriptor()
196 Assert.AreEqual("TestAllTypes", messageType.Name); in MessageDescriptor()
197 Assert.AreEqual("protobuf_unittest3.TestAllTypes", messageType.FullName); in MessageDescriptor()
198 Assert.AreEqual(UnittestProto3Reflection.Descriptor, messageType.File); in MessageDescriptor()
199 Assert.IsNull(messageType.ContainingType); in MessageDescriptor()
[all …]
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs183 MessageDescriptor messageType = TestAllTypes.Descriptor; in MessageDescriptorFromGeneratedCodeFileDescriptor()
184 Assert.AreSame(typeof(TestAllTypes), messageType.ClrType); in MessageDescriptorFromGeneratedCodeFileDescriptor()
185 Assert.AreSame(TestAllTypes.Parser, messageType.Parser); in MessageDescriptorFromGeneratedCodeFileDescriptor()
186 Assert.AreEqual(messageType, file.MessageTypes[0]); in MessageDescriptorFromGeneratedCodeFileDescriptor()
187 Assert.AreEqual(messageType, file.FindTypeByName<MessageDescriptor>("TestAllTypes")); in MessageDescriptorFromGeneratedCodeFileDescriptor()
193 MessageDescriptor messageType = TestAllTypes.Descriptor; in MessageDescriptor()
196 Assert.AreEqual("TestAllTypes", messageType.Name); in MessageDescriptor()
197 Assert.AreEqual("protobuf_unittest3.TestAllTypes", messageType.FullName); in MessageDescriptor()
198 Assert.AreEqual(UnittestProto3Reflection.Descriptor, messageType.File); in MessageDescriptor()
199 Assert.IsNull(messageType.ContainingType); in MessageDescriptor()
[all …]
/external/proguard/src/proguard/gui/
DMessageDialogRunnable.java37 private final int messageType; field in MessageDialogRunnable
47 int messageType) in showMessageDialog() argument
54 messageType)); in showMessageDialog()
70 int messageType) in MessageDialogRunnable() argument
75 this.messageType = messageType; in MessageDialogRunnable()
87 messageType); in run()
/external/cronet/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DDescriptorsTest.java105 Descriptor messageType = TestAllTypes.getDescriptor(); in testFileDescriptor() local
106 assertThat(file.getMessageTypes().get(0)).isEqualTo(messageType); in testFileDescriptor()
107 assertThat(file.findMessageTypeByName("TestAllTypes")).isEqualTo(messageType); in testFileDescriptor()
149 Descriptor messageType = TestAllTypes.getDescriptor(); in testDescriptor() local
152 assertThat(messageType.getName()).isEqualTo("TestAllTypes"); in testDescriptor()
153 assertThat(messageType.getFullName()).isEqualTo("protobuf_unittest.TestAllTypes"); in testDescriptor()
154 assertThat(messageType.getFile()).isEqualTo(UnittestProto.getDescriptor()); in testDescriptor()
155 assertThat(messageType.getContainingType()).isNull(); in testDescriptor()
156 assertThat(messageType.getOptions()) in testDescriptor()
158 assertThat(messageType.toProto().getName()).isEqualTo("TestAllTypes"); in testDescriptor()
[all …]
DExperimentalSerializationUtil.java75 public static <T> T fromByteArray(byte[] data, Class<T> messageType) { in fromByteArray() argument
77 return fromByteArrayFastPath(data, messageType); in fromByteArray()
79 return fromByteArray(data, messageType, ExtensionRegistryLite.getEmptyRegistry()); in fromByteArray()
88 byte[] data, Class<T> messageType, ExtensionRegistryLite extensionRegistry) { in fromByteArray() argument
90 Schema<T> schema = Protobuf.getInstance().schemaFor(messageType); in fromByteArray()
102 private static <T> T fromByteArrayFastPath(byte[] data, Class<T> messageType) { in fromByteArrayFastPath() argument
104 Schema<T> schema = Protobuf.getInstance().schemaFor(messageType); in fromByteArrayFastPath()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDescriptorsTest.java105 Descriptor messageType = TestAllTypes.getDescriptor(); in testFileDescriptor() local
106 assertThat(file.getMessageTypes().get(0)).isEqualTo(messageType); in testFileDescriptor()
107 assertThat(file.findMessageTypeByName("TestAllTypes")).isEqualTo(messageType); in testFileDescriptor()
149 Descriptor messageType = TestAllTypes.getDescriptor(); in testDescriptor() local
152 assertThat(messageType.getName()).isEqualTo("TestAllTypes"); in testDescriptor()
153 assertThat(messageType.getFullName()).isEqualTo("protobuf_unittest.TestAllTypes"); in testDescriptor()
154 assertThat(messageType.getFile()).isEqualTo(UnittestProto.getDescriptor()); in testDescriptor()
155 assertThat(messageType.getContainingType()).isNull(); in testDescriptor()
156 assertThat(messageType.getOptions()) in testDescriptor()
158 assertThat(messageType.toProto().getName()).isEqualTo("TestAllTypes"); in testDescriptor()
[all …]
DExperimentalSerializationUtil.java75 public static <T> T fromByteArray(byte[] data, Class<T> messageType) { in fromByteArray() argument
77 return fromByteArrayFastPath(data, messageType); in fromByteArray()
79 return fromByteArray(data, messageType, ExtensionRegistryLite.getEmptyRegistry()); in fromByteArray()
88 byte[] data, Class<T> messageType, ExtensionRegistryLite extensionRegistry) { in fromByteArray() argument
90 Schema<T> schema = Protobuf.getInstance().schemaFor(messageType); in fromByteArray()
102 private static <T> T fromByteArrayFastPath(byte[] data, Class<T> messageType) { in fromByteArrayFastPath() argument
104 Schema<T> schema = Protobuf.getInstance().schemaFor(messageType); in fromByteArrayFastPath()
/external/nullaway/nullaway/src/main/java/com/uber/nullaway/
DErrorMessage.java27 MessageTypes messageType; field in ErrorMessage
30 public ErrorMessage(MessageTypes messageType, String message) { in ErrorMessage() argument
31 this.messageType = messageType; in ErrorMessage()
/external/pigweed/pw_protobuf_compiler/ts/
Dproto_collection.ts46 for (const messageType of fileDescriptor.getMessageTypeList()) { constant
48 fileDescriptor.getPackage()! + '.' + messageType.getName();
49 const message = mod[messageType.getName()!]; constant
51 this.messageDescriptors.set(fullName, messageType);
/external/golang-protobuf/internal/testprotos/irregular/
Dirregular.go25 type messageType struct{} struct
27 func (messageType) New() protoreflect.Message { return &message{} } argument
28 func (messageType) Zero() protoreflect.Message { return (*message)(nil) } argument
29 func (messageType) Descriptor() protoreflect.MessageDescriptor { return fileDesc.Messages().Get(0) } argument
33 func (m *message) Type() protoreflect.MessageType { return messageType{} }
/external/angle/src/libANGLE/
DDebug.cpp34 const char *EGLMessageTypeToString(egl::MessageType messageType) in EGLMessageTypeToString() argument
36 switch (messageType) in EGLMessageTypeToString()
474 for (MessageType messageType : angle::AllEnums<MessageType>()) in setCallback()
476 mEnabledMessageTypes[messageType] = in setCallback()
477 (attribs.getAsInt(egl::ToEGLenum(messageType), defaultMessageTypes[messageType]) == in setCallback()
495 MessageType messageType, in insertMessage() argument
502 const char *messageTypeString = EGLMessageTypeToString(messageType); in insertMessage()
509 if (mCallback && isMessageTypeEnabled(messageType)) in insertMessage()
511 mCallback(error, command, egl::ToEGLenum(messageType), threadLabel, objectLabel, in insertMessage()
/external/OpenCL-CTS/test_conformance/math_brute_force/
Dsleep.cpp31 void sleepCallback(void* refcon, io_service_t service, natural_t messageType,
35 natural_t messageType, void* messageArgument) in sleepCallback() argument
45 switch (messageType) in sleepCallback()
/external/OpenCL-CTS/test_conformance/conversions/
DSleep.cpp34 natural_t messageType,
39 natural_t messageType, in sleepCallback() argument
49 switch ( messageType ) in sleepCallback()
/external/testng/src/main/java/org/testng/remote/strprotocol/
DStringMessageSender.java119 int messageType = MessageHelper.getMessageType(message); in receiveMessage() local
122 if(messageType < MessageHelper.SUITE) { in receiveMessage()
126 else if(messageType < MessageHelper.TEST) { in receiveMessage()
130 else if(messageType < MessageHelper.TEST_RESULT) { in receiveMessage()

1234567