Lines Matching refs:entry

24   Entry: A node corresponding to <entry> elements.
26 MergedEntry: A node corresponding to either <entry> or <clone> elements.
31 Enum: A class corresponding an <enum> element within an <entry>
193 A node corresponding to a <metadata> entry.
209 # kind => { name => entry }
290 def insert_entry(self, entry):
292 Insert an entry into the metadata.
295 entry: A key-value dictionary describing an entry. Refer to
299 Subsequent calls to insert_entry with the same entry+kind name are safe
302 e = Entry(**entry)
317 (they will be ignored). Also the target entry need not be inserted
318 ahead of the clone entry.
320 # figure out corresponding entry later. allow clone insert, entry insert
321 entry = None
322 c = Clone(entry, **clone)
329 Remove all clones that don't point to an existing entry.
337 if p.entry is None:
408 print >> sys.stderr, ("WARNING: Clone entry '%s' target kind '%s'" + \
409 " has no corresponding entry") \
487 # this helps maintain ABI compatibility when adding an entry in a new kind
556 entry = entry_dict.get(p.name, p)
557 entry_dict[p.name] = entry
559 for name, entry in entry_dict.iteritems():
561 old_parent = entry.parent
562 entry._parent = parent
564 if entry not in parent.entries:
565 parent._entries.append(entry)
569 "entry '%s'") \
570 %(old_parent.name, parent.name, entry.name)
941 A class corresponding to a <value> element within an <enum> within an <entry>.
980 A class corresponding to an <enum> element within an <entry>.
1010 A node corresponding to an <entry> element.
1015 name_short: The name attribute from <entry name="mode">, e.g. mode
1016 type: The type attribute from <entry type="bar">
1019 container: The container attribute from <entry container="array">, or None.
1022 visibility: The visibility of this entry ('system', 'hidden', 'public')
1027 if no visibility is given for an entry.
1028 synthetic: The C-level visibility of this entry ('false', 'true').
1030 list of entries (in C code). In general a synthetic entry is
1033 hwlevel: The lowest hardware level at which the entry is guaranteed
1035 hwlevels will also include this entry. None means that the
1036 entry is optional on any hardware level.
1037 deprecated: Marks an entry as @Deprecated in the Java layer; if within an
1039 to an entry from an older release, then this means the entry
1041 optional: a bool representing the optional attribute, which denotes the entry
1086 description: A string with a description of the entry.
1087 range: A string with the range of the values of the entry, e.g. '>= 0'
1089 details: A string with the detailed documentation for the entry
1090 hal_details: A string with the HAL implementation details for the entry
1095 synthetic: A bool to mark whether this entry is visible only at the Java
1105 print >> sys.stderr, "ERROR: Missing type for entry '%s' kind '%s'" \
1275 Copy the attributes into a new entry, merging it with the target entry
1287 entry.name is 'android.lens.info.shading'
1288 entry.get_name_as_list() == ['android', 'lens', 'info', 'shading']
1297 entry.name is 'android.lens.info.shading'
1298 entry.get_inner_namespace_list() == ['info']
1307 entry.name is 'android.lens.info.shading'
1308 entry.get_outer_namespace() == 'android'
1312 and each entry has one, this does not need to be a list.
1321 entry.name is 'android.lens.info.shading'
1322 entry.get_section() == ''
1326 and each entry has one, this does not need to be a list.
1335 entry.name is 'android.lens.info.shading'
1336 entry.get_name_minimal() == 'shading'
1339 entry.name_short it an alias for this
1345 Returns a string path to the entry, with the name component excluded.
1348 entry.name is 'android.lens.info.shading'
1349 entry.get_path_without_name() == 'android.lens.info'
1357 <entry> element (Entry) plus the additions specified below.
1360 entry: an edge to an Entry object that this targets
1361 target_kind: A string describing the kind of the target entry.
1362 name: a string of the name, same as entry.name
1367 def __init__(self, entry=None, **kwargs):
1375 target_kind: A string for the kind of the target entry, e.g. 'dynamic'
1392 entry: An edge to the corresponding target Entry.
1393 description: A string with a description of the entry.
1394 range: A string with the range of the values of the entry, e.g. '>= 0'
1396 details: A string with the detailed documentation for the entry
1397 hal_details: A string with the HAL implementation details for the entry
1403 entry.type.
1405 self._entry = entry # Entry object
1407 self._name = kwargs['name'] # same as entry.name
1410 # illegal to override the type, it should be the same as the entry
1413 # can be used to override the regular entry data
1417 def entry(self):
1439 Useful when we want to 'unfold' a clone into a real entry by copying out
1440 the target entry data. In this case we don't care about distinguishing
1441 a clone vs an entry.
1443 def __init__(self, entry):
1448 entry: An Entry or Clone instance
1455 if entry.is_clone():
1456 setattr(self, p, getattr(entry, p) or getattr(entry.entry, p))
1458 setattr(self, p, getattr(entry, p))
1475 if entry.is_clone():
1476 setattr(self, p, getattr(entry.entry, p))
1478 setattr(self, p, getattr(entry, p))