Lines Matching refs:self

30     def __init__(self, rule, attrs):
32 self.rule = rule
33 self._attrs = attrs
36 def get_property(self, *names, **kwargs):
39 result = self._attrs
47 def is_vndk(self):
49 return bool(self.get_property('vndk', 'enabled'))
52 def is_vndk_sp(self):
54 return bool(self.get_property('vndk', 'support_system_process'))
57 def is_vendor(self):
59 return bool(self.get_property('vendor') or
60 self.get_property('proprietary'))
63 def is_vendor_available(self):
65 return bool(self.get_property('vendor_available'))
68 def has_vendor_variant(self):
70 return self.is_vndk() or self.is_vendor_available()
73 def get_name(self):
75 return self.get_property('name')
78 def get_dependencies(self):
81 shared_libs = set(self.get_property('shared_libs', default=[]))
82 static_libs = set(self.get_property('static_libs', default=[]))
83 header_libs = set(self.get_property('header_libs', default=[]))
85 target_vendor = self.get_property('target', 'vendor')
99 def __init__(self):
100 self.all_libs = {}
101 self.vndk_libs = {}
102 self.vndk_sp_libs = {}
103 self.vendor_available_libs = {}
104 self.llndk_libs = {}
107 def add_module(self, name, module):
112 if name in self.llndk_libs:
114 self.llndk_libs[name] = module
118 prev_module = self.all_libs.get(name)
128 self.all_libs[name] = module
131 self.vndk_libs[name] = module
134 self.vndk_sp_libs[name] = module
137 self.vendor_available_libs[name] = module
140 def _add_modules_from_parsed_pairs(self, parsed_items, namespaces):
153 self.add_module(name, Module(rule, attrs))
161 self.add_module(name, Module(rule, attrs))
166 self.add_module(name, Module(rule, attrs))
171 self.add_module(adapter_module_name,
176 def parse_root_bp(self, root_bp_path, namespaces=None):
186 self._add_modules_from_parsed_pairs(parsed_items, namespaces)