Home
last modified time | relevance | path

Searched refs:java_type (Results 1 – 9 of 9) sorted by relevance

/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_primitive_field.cc270 JavaType java_type = GetJavaType(descriptor_); in GenerateMembers() local
271 if (java_type == JAVATYPE_BYTES && params_.bytes_offset_length()) { in GenerateMembers()
289 JavaType java_type = GetJavaType(descriptor_); in GenerateClearCode() local
290 if (java_type == JAVATYPE_BYTES && params_.bytes_offset_length()) { in GenerateClearCode()
308 JavaType java_type = GetJavaType(descriptor_); in GenerateMergingCode() local
309 if (java_type == JAVATYPE_BYTES && params_.bytes_offset_length()) { in GenerateMergingCode()
342 JavaType java_type = GetJavaType(descriptor_); in GenerateSerializationConditional() local
343 if (java_type == JAVATYPE_BYTES && params_.bytes_offset_length()) { in GenerateSerializationConditional()
346 } else if (IsArrayType(java_type)) { in GenerateSerializationConditional()
349 } else if (IsReferenceType(java_type)) { in GenerateSerializationConditional()
[all …]
Djavanano_field.cc97 JavaType java_type = GetJavaType(field); in MakeGenerator() local
99 switch (java_type) { in MakeGenerator()
112 switch (java_type) { in MakeGenerator()
120 && java_type != JAVATYPE_MESSAGE) { in MakeGenerator()
125 switch (java_type) { in MakeGenerator()
134 switch (java_type) { in MakeGenerator()
Djavanano_extension.cc87 JavaType java_type = GetJavaType(descriptor->type()); in SetVariables() local
89 if (java_type == JAVATYPE_MESSAGE) { in SetVariables()
102 (*variables)["class"] = BoxedPrimitiveTypeName(java_type); in SetVariables()
105 (*variables)["class"] = PrimitiveTypeName(java_type) + "[]"; in SetVariables()
Djavanano_map_field.cc47 JavaType java_type = GetJavaType(field); in TypeName() local
48 switch (java_type) { in TypeName()
60 return BoxedPrimitiveTypeName(java_type); in TypeName()
62 return PrimitiveTypeName(java_type); in TypeName()
/external/libmojo/mojo/public/tools/bindings/generators/java_templates/
Ddata_types_definition.tmpl66 {{kind.key_kind|java_type}}[] keys{{level}} = {{kind.key_kind|array|new_array('size'~level)}};
67 …{{kind.value_kind|java_type}}[] values{{level}} = {{kind.value_kind|array|new_array('size'~level)}…
69 …for (java.util.Map.Entry<{{kind.key_kind|java_type(true)}}, {{kind.value_kind|java_type(true)}}> e…
89 {{variable}} = {{kind|java_type}}.decode(decoder{{level+1}});
100 {{kind.key_kind|java_type}}[] keys{{level}};
101 {{kind.value_kind|java_type}}[] values{{level}};
108 …{{variable}} = new java.util.HashMap<{{kind.key_kind|java_type(true)}}, {{kind.value_kind|java_typ…
122 {{variable}} = {{kind|java_type}}.decode(decoder{{level}}, {{offset}});
162 public {{field.kind|java_type}} {{field|name}};
284 private {{field.kind|java_type}} m{{field|ucc}};
[all …]
Dconstant_definition.tmpl2 public static final {{constant.kind|java_type}} {{constant|name}} = {{constant|constant_value}};
Dinterface_definition.tmpl7 {{param.kind|java_type(boxed)}} {{param|name}}
24 {{param.kind|java_type(True)}}
/external/libmojo/base/android/jni_generator/
Djni_generator.py101 def JavaDataTypeToC(java_type): argument
122 if java_type in java_pod_type_map:
123 return java_pod_type_map[java_type]
124 elif java_type in java_type_map:
125 return java_type_map[java_type]
126 elif java_type.endswith('[]'):
127 if java_type[:-2] in java_pod_type_map:
128 return java_pod_type_map[java_type[:-2]] + 'Array'
130 elif java_type.startswith('Class'):
146 def JavaDataTypeToCForDeclaration(java_type): argument
[all …]
/external/protobuf/src/google/protobuf/compiler/java/
Djava_extension.cc84 JavaType java_type = GetJavaType(descriptor); in InitTemplateVars() local
86 switch (java_type) { in InitTemplateVars()
104 singular_type = BoxedPrimitiveTypeName(java_type); in InitTemplateVars()