Lines Matching refs:entry

63 def find_parent_section(entry):
68 entry: an Entry or Clone node
73 return entry.find_parent_first(_is_sec_or_ins)
84 A sequence of MergedEntry nodes representing an entry
88 one entry (e.g. if there are multiple entries in different kinds).
100 for entry in i.entries:
101 d[entry.name] = entry
196 Convert an entry name string into an uppercase C symbol.
212 Convert an entry name string into a lowercase C symbol.
319 # Calculate a java type name from an entry with a Typedef node
320 def _jtypedef_type(entry):
321 typedef = entry.typedef
328 if entry.container == 'array':
330 for size in entry.container_sizes:
359 def jtype_unboxed(entry):
361 Calculate the Java type from an entry type string, to be used whenever we
363 generic type argument when the entry type happens to resolve to a primitive.
372 if not isinstance(entry, metadata_model.Entry):
373 raise ValueError("Expected entry to be an instance of Entry")
375 metadata_type = entry.type
379 if entry.typedef:
380 typedef_name = _jtypedef_type(entry)
385 if not java_type and entry.enum and metadata_type == 'byte':
402 if entry.container == 'array':
412 def jtype_boxed(entry):
414 Calculate the Java type from an entry type string, to be used as a generic
427 unboxed_type = jtype_unboxed(entry)
430 def _is_jtype_generic(entry):
432 Determine whether or not the Java type represented by the entry type
439 entry: An instance of an Entry node
444 if entry.typedef:
445 local_typedef = _jtypedef_type(entry)
453 Calculate the Java type from an entry type string.
476 def jclass(entry):
478 Calculate the java Class reference string for an entry.
481 entry: an Entry node
484 <entry name="some_int" type="int32"/>
485 <entry name="some_int_array" type="int32" container='array'/>
494 return "%s.class" %jtype_unboxed(entry)
496 def jkey_type_token(entry):
503 entry: An entry node
508 if _is_jtype_generic(entry):
509 return "new TypeReference<%s>() {{ }}" %(jtype_boxed(entry))
511 return jclass(entry)
662 def generate_extra_javadoc_detail(entry):
664 Returns a function to add extra details for an entry into a string for inclusion into
669 if entry.units:
670 text += '\n\n<b>Units</b>: %s\n' % (dedent(entry.units))
671 if entry.enum and not (entry.typedef and entry.typedef.languages.get('java')):
673 for value in entry.enum.values:
675 text += ' <li>{@link #%s %s}</li>\n' % ( jenum_value(entry, value ), value.name )
677 if entry.range:
678 if entry.enum and not (entry.typedef and entry.typedef.languages.get('java')):
682 text += '%s\n' % (dedent(entry.range))
683 if entry.hwlevel != 'legacy': # covers any of (None, 'limited', 'full')
685 if entry.hwlevel == 'full':
690 if entry.hwlevel == 'limited':
695 if entry.hwlevel == 'legacy':
748 # Convert metadata entry "android.x.y.z" to form
867 Used to linkify entry names in HMTL, javadoc output.