Home
last modified time | relevance | path

Searched refs:JavaType (Results 1 – 25 of 35) sorted by relevance

12

/external/chromium_org/content/browser/android/java/
Djava_type.cc15 scoped_ptr<JavaType> CreateFromArrayComponentTypeName( in CreateFromArrayComponentTypeName()
17 scoped_ptr<JavaType> result(new JavaType()); in CreateFromArrayComponentTypeName()
21 result->type = JavaType::TypeBoolean; in CreateFromArrayComponentTypeName()
24 result->type = JavaType::TypeByte; in CreateFromArrayComponentTypeName()
27 result->type = JavaType::TypeChar; in CreateFromArrayComponentTypeName()
30 result->type = JavaType::TypeShort; in CreateFromArrayComponentTypeName()
33 result->type = JavaType::TypeInt; in CreateFromArrayComponentTypeName()
36 result->type = JavaType::TypeLong; in CreateFromArrayComponentTypeName()
39 result->type = JavaType::TypeFloat; in CreateFromArrayComponentTypeName()
42 result->type = JavaType::TypeDouble; in CreateFromArrayComponentTypeName()
[all …]
Dgin_java_script_to_java_types_coercion.cc71 const JavaType& target_type, in CoerceJavaScriptIntegerToJavaValue()
84 case JavaType::TypeByte: in CoerceJavaScriptIntegerToJavaValue()
87 case JavaType::TypeChar: in CoerceJavaScriptIntegerToJavaValue()
90 case JavaType::TypeShort: in CoerceJavaScriptIntegerToJavaValue()
93 case JavaType::TypeInt: in CoerceJavaScriptIntegerToJavaValue()
96 case JavaType::TypeLong: in CoerceJavaScriptIntegerToJavaValue()
99 case JavaType::TypeFloat: in CoerceJavaScriptIntegerToJavaValue()
102 case JavaType::TypeDouble: in CoerceJavaScriptIntegerToJavaValue()
105 case JavaType::TypeObject: in CoerceJavaScriptIntegerToJavaValue()
110 case JavaType::TypeString: in CoerceJavaScriptIntegerToJavaValue()
[all …]
Djava_type_unittest.cc19 JavaType::Type java_type; in TEST_F()
23 {"boolean", JavaType::TypeBoolean, "Z", "Z"}, in TEST_F()
24 {"byte", JavaType::TypeByte, "B", "B"}, in TEST_F()
25 {"char", JavaType::TypeChar, "C", "C"}, in TEST_F()
26 {"short", JavaType::TypeShort, "S", "S"}, in TEST_F()
27 {"int", JavaType::TypeInt, "I", "I"}, in TEST_F()
28 {"long", JavaType::TypeLong, "J", "J"}, in TEST_F()
29 {"float", JavaType::TypeFloat, "F", "F"}, in TEST_F()
30 {"double", JavaType::TypeDouble, "D", "D"}, in TEST_F()
31 {"void", JavaType::TypeVoid, "V", "V"}, in TEST_F()
[all …]
Djava_type.h17 struct CONTENT_EXPORT JavaType { struct
18 JavaType();
19 JavaType(const JavaType& other);
20 ~JavaType();
21 JavaType& operator=(const JavaType& other); argument
25 static JavaType CreateFromBinaryName(const std::string& binary_name);
51 scoped_ptr<JavaType> inner_type; // Used for TypeArray only. argument
Dgin_java_method_invocation_helper.cc227 const JavaType& return_type, in InvokeMethod()
234 case JavaType::TypeBoolean: in InvokeMethod()
239 case JavaType::TypeByte: in InvokeMethod()
244 case JavaType::TypeChar: in InvokeMethod()
249 case JavaType::TypeShort: in InvokeMethod()
254 case JavaType::TypeInt: in InvokeMethod()
259 case JavaType::TypeLong: in InvokeMethod()
264 case JavaType::TypeFloat: { in InvokeMethod()
276 case JavaType::TypeDouble: { in InvokeMethod()
288 case JavaType::TypeVoid: in InvokeMethod()
[all …]
Djava_method.h28 const JavaType& parameter_type(size_t index) const;
29 const JavaType& return_type() const;
40 mutable std::vector<JavaType> parameter_types_;
41 mutable JavaType return_type_;
Dgin_java_script_to_java_types_coercion.h24 const JavaType& target_type,
31 const JavaType& type);
Djava_method.cc53 JavaType* type) { in BinaryNameToJNISignature()
55 *type = JavaType::CreateFromBinaryName(binary_name); in BinaryNameToJNISignature()
90 const JavaType& JavaMethod::parameter_type(size_t index) const { in parameter_type()
95 const JavaType& JavaMethod::return_type() const { in return_type()
/external/protobuf/java/src/main/java/com/google/protobuf/
DWireFormat.java77 public enum JavaType { enum in WireFormat
88 JavaType(final Object defaultDefault) { in JavaType() method in WireFormat.JavaType
108 DOUBLE (JavaType.DOUBLE , WIRETYPE_FIXED64 ),
109 FLOAT (JavaType.FLOAT , WIRETYPE_FIXED32 ),
110 INT64 (JavaType.LONG , WIRETYPE_VARINT ),
111 UINT64 (JavaType.LONG , WIRETYPE_VARINT ),
112 INT32 (JavaType.INT , WIRETYPE_VARINT ),
113 FIXED64 (JavaType.LONG , WIRETYPE_FIXED64 ),
114 FIXED32 (JavaType.INT , WIRETYPE_FIXED32 ),
115 BOOL (JavaType.BOOLEAN , WIRETYPE_VARINT ),
[all …]
DDescriptors.java659 public JavaType getJavaType() { return type.getJavaType(); } in getJavaType()
662 public WireFormat.JavaType getLiteJavaType() { in getLiteJavaType()
716 if (getJavaType() == JavaType.MESSAGE) { in getDefaultValue()
768 if (getJavaType() != JavaType.MESSAGE) { in getMessageType()
777 if (getJavaType() != JavaType.ENUM) { in getEnumType()
818 DOUBLE (JavaType.DOUBLE ),
819 FLOAT (JavaType.FLOAT ),
820 INT64 (JavaType.LONG ),
821 UINT64 (JavaType.LONG ),
822 INT32 (JavaType.INT ),
[all …]
DExtensionRegistry.java159 FieldDescriptor.JavaType.MESSAGE) { in add()
174 if (type.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in add()
184 if (type.getJavaType() != FieldDescriptor.JavaType.MESSAGE) { in add()
DGeneratedMessage.java101 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in isInitialized()
358 FieldDescriptor.JavaType.MESSAGE) { in getExtension()
417 WireFormat.JavaType.MESSAGE && in writeUntil()
474 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in getField()
838 if (descriptor.getJavaType() == FieldDescriptor.JavaType.MESSAGE || in fromReflectionType()
839 descriptor.getJavaType() == FieldDescriptor.JavaType.ENUM) { in fromReflectionType()
889 if (descriptor.getJavaType() == FieldDescriptor.JavaType.ENUM) { in toReflectionType()
982 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in FieldAccessorTable()
985 } else if (field.getJavaType() == FieldDescriptor.JavaType.ENUM) { in FieldAccessorTable()
993 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in FieldAccessorTable()
[all …]
DFieldSet.java59 WireFormat.JavaType getLiteJavaType(); in getLiteJavaType()
344 if (descriptor.getLiteJavaType() == WireFormat.JavaType.MESSAGE) { in isInitialized()
399 } else if (descriptor.getLiteJavaType() == WireFormat.JavaType.MESSAGE) { in mergeFrom()
485 if (descriptor.getLiteJavaType() == WireFormat.JavaType.MESSAGE && in writeMessageSetTo()
611 if (descriptor.getLiteJavaType() == WireFormat.JavaType.MESSAGE && in getMessageSetSerializedSize()
DDynamicMessage.java163 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in getField()
352 if (field.getJavaType() != FieldDescriptor.JavaType.MESSAGE) { in newBuilderForField()
369 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in getField()
DAbstractMessage.java65 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in isInitialized()
220 } else if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in mergeFrom()
315 field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in mergeFieldFrom()
579 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in findMissingFields()
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_helpers.h118 enum JavaType { enum
130 JavaType GetJavaType(FieldDescriptor::Type field_type);
132 inline JavaType GetJavaType(const FieldDescriptor* field) { in GetJavaType()
136 string PrimitiveTypeName(JavaType type);
141 string BoxedPrimitiveTypeName(JavaType type);
Djavanano_primitive_field.cc57 bool IsReferenceType(JavaType type) { in IsReferenceType()
77 bool IsArrayType(JavaType type) { in IsArrayType()
160 bool IsVariableLenType(JavaType type) { in IsVariableLenType()
338 JavaType java_type = GetJavaType(descriptor_); in GenerateSerializationConditional()
394 JavaType java_type = GetJavaType(descriptor_); in GenerateEqualsCode()
471 JavaType java_type = GetJavaType(descriptor_); in GenerateHashCodeCode()
Djavanano_helpers.cc283 JavaType GetJavaType(FieldDescriptor::Type field_type) { in GetJavaType()
329 string PrimitiveTypeName(JavaType type) { in PrimitiveTypeName()
349 string BoxedPrimitiveTypeName(JavaType type) { in BoxedPrimitiveTypeName()
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_helpers.h108 enum JavaType { enum
120 JavaType GetJavaType(FieldDescriptor::Type field_type);
122 inline JavaType GetJavaType(const FieldDescriptor* field) { in GetJavaType()
129 const char* BoxedPrimitiveTypeName(JavaType type);
Djavamicro_primitive_field.cc55 const char* PrimitiveTypeName(JavaType type) { in PrimitiveTypeName()
75 bool IsReferenceType(JavaType type) { in IsReferenceType()
158 bool IsVariableLenType(JavaType type) { in IsVariableLenType()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_helpers.h101 enum JavaType { enum
113 JavaType GetJavaType(const FieldDescriptor* field);
118 const char* BoxedPrimitiveTypeName(JavaType type);
Djava_primitive_field.cc55 const char* PrimitiveTypeName(JavaType type) { in PrimitiveTypeName()
75 bool IsReferenceType(JavaType type) { in IsReferenceType()
221 JavaType type = GetJavaType(descriptor_); in GenerateBuilderMembers()
Djava_extension.cc97 JavaType java_type = GetJavaType(descriptor_); in Generate()
145 JavaType java_type = GetJavaType(descriptor_); in GenerateInitializationCode()
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_helpers.h99 enum JavaType { enum
111 JavaType GetJavaType(const FieldDescriptor* field);
116 const char* BoxedPrimitiveTypeName(JavaType type);
/external/protobuf/java/src/test/java/com/google/protobuf/
DDescriptorsTest.java210 assertEquals(FieldDescriptor.JavaType.INT, primitiveField.getJavaType()); in testFieldDescriptor()
218 assertEquals(FieldDescriptor.JavaType.ENUM, enumField.getJavaType()); in testFieldDescriptor()
224 assertEquals(FieldDescriptor.JavaType.MESSAGE, messageField.getJavaType()); in testFieldDescriptor()
229 assertEquals(FieldDescriptor.JavaType.STRING, cordField.getJavaType()); in testFieldDescriptor()
241 assertEquals(FieldDescriptor.JavaType.INT, extension.getJavaType()); in testFieldDescriptor()
411 FieldDescriptor.JavaType[] values1 = FieldDescriptor.JavaType.values(); in testJavaTypeTablesMatch()
412 WireFormat.JavaType[] values2 = WireFormat.JavaType.values(); in testJavaTypeTablesMatch()

12