Lines Matching refs:cls

344     def __new__(cls, *args, **kwargs):  argument
352 return base_cls.__new__(cls, *args)
366 cls = collections.namedtuple(name, field_names)
367 cls.struct_fmt = ''.join(ty for name, ty in fields)
368 cls.struct_size = struct.calcsize(cls.struct_fmt)
369 def unpack_from(cls, buf, offset=0): argument
370 unpacked = struct.unpack_from(cls.struct_fmt, buf, offset)
371 return cls.__new__(cls, *unpacked)
372 cls.unpack_from = classmethod(unpack_from)
373 return cls
671 def parse_struct(cls, fmt, offset, error_msg): argument
673 return cls._make(struct.unpack_from(fmt, buf, offset))
937 def extract_dex_string(cls, buf, offset=0): argument
943 def extract_uleb128(cls, buf, offset=0): argument
998 def enumerate_dex_strings_buf(cls, buf, offset=0, data_offset=None): argument
1000 header = cls.Header.unpack_from(buf, offset=offset)
1012 StringId = cls.StringId
1023 offset += cls.extract_uleb128(buf, offset)[1]
1026 yield cls.extract_dex_string(buf, offset)
1030 def enumerate_dex_strings_apk(cls, apk_file_path): argument
1032 for name in cls.generate_classes_dex_names():
1036 for s in cls.enumerate_dex_strings_buf(dex_file_content):
1043 def is_vdex_file(cls, vdex_file_path): argument
1111 def enumerate_dex_strings_vdex_buf(cls, buf): argument
1122 VdexHeader = cls.VdexHeader0
1124 VdexHeader = cls.VdexHeader1
1126 VdexHeader = cls.VdexHeader16
1128 VdexHeader = cls.VdexHeader19
1130 VdexHeader = cls.VdexHeader21
1152 offset += cls.DexSectionHeader.struct_size
1169 dex_header = cls.Header.unpack_from(buf, offset)
1171 for s in cls.enumerate_dex_strings_buf(buf, offset):
1179 def enumerate_dex_strings_vdex(cls, vdex_file_path): argument
1181 return cls.enumerate_dex_strings_vdex_buf(vdex_file.read())
1185 def enumerate_dex_strings(cls, path): argument
1188 if cls.is_vdex_file(path):
1250 def _normalize_tag(cls, tag): argument
1252 tag = cls._TAG_ALIASES.get(tag, tag)
1253 if tag not in cls.TAGS:
1321 def is_tag_visible(cls, from_tag, to_tag): argument
1322 return to_tag in cls._TAG_VISIBILITY[from_tag]
1545 def load_from_path_or_default(cls, path): argument
1769 def create_vndk_dir_suffix(cls, version): argument
1775 def create_vndk_sp_dir_name(cls, version): argument
1777 return 'vndk-sp' + cls.create_vndk_dir_suffix(version)
1781 def create_vndk_dir_name(cls, version): argument
1783 return 'vndk' + cls.create_vndk_dir_suffix(version)
1787 def extract_version_from_name(cls, name): argument
1799 def extract_path_component(cls, path, index): argument
1814 def extract_version_from_path(cls, path): argument
1816 component = cls.extract_path_component(path, 3)
1819 return cls.extract_version_from_name(component)
1823 def is_in_vndk_dir(cls, path): argument
1825 component = cls.extract_path_component(path, 3)
1835 def is_in_vndk_sp_dir(cls, path): argument
1837 component = cls.extract_path_component(path, 3)
1844 def get_vndk_lib_dirs(cls, lib_dir, version): argument
1846 vndk_sp_name = cls.create_vndk_sp_dir_name(version)
1847 vndk_name = cls.create_vndk_dir_name(version)
1856 def create_default(cls): argument
1864 def create_from_version(cls, version): argument
1872 def create_from_dirs(cls, system_dirs, vendor_dirs): argument
1883 version = cls.extract_version_from_name(name)
1902 return VNDKLibDir(cls.sorted_version(versions))
1931 def _get_property(cls, property_file, name): argument
1940 def get_ro_vndk_version(cls, vendor_dirs): argument
1946 result = cls._get_property(
1956 def sorted_version(cls, versions): argument
3042 def compute_deps_closure(cls, root_set, is_excluded, argument
3046 return cls._compute_closure(root_set, is_excluded, get_successors)
3050 def compute_users_closure(cls, root_set, is_excluded, argument
3054 return cls._compute_closure(root_set, is_excluded, get_successors)