Home
last modified time | relevance | path

Searched refs:self (Results 1 - 25 of 332) sorted by relevance

12345678910>>...14

/build/scripts/
H A Dcargo2gn.py136 def __init__(self, runner, outfile_name: str):
138 self.runner = runner
139 self.debug = runner.args.debug
140 self.cargo_dir = '' # directory of my Cargo.toml
141 self.outfile = None # open file handle of outfile_name during dump*
142 self.outfile_name = outfile_name # path to BUILD.gn
144 self.module_type = '' # lib,crate_name,test etc.
145 self.root_pkg_name = '' # parent package name of a sub/test packge
147 self.error_infos = '' # all errors found during parsing
148 self
[all...]
/build/hb/resources/
H A Dconfig.py40 def __init__(self):
41 self.config_json = ""
42 self._root_path = ""
43 self._board = ""
44 self._kernel = ""
45 self._product = ""
46 self._product_path = ""
47 self._device_path = ""
48 self._device_company = ""
49 self
[all...]
/build/config/components/init/seccomp/scripts/
H A Dgenerate_code_from_policy.py69 def __init__(self, msg):
183 def __init__(self, arch, function_name_nr_table, is_debug):
184 self.arch = arch
185 self.priority = set()
186 self.allow_list = set()
187 self.blocklist = set()
188 self.priority_with_args = set()
189 self.allow_list_with_args = set()
190 self.head_files = set()
191 self
[all...]
/build/config/components/hc_gen/
H A Dhcs_build_info.py30 def __init__(self, file_name, token_type, value):
31 self.token_type = token_type
32 self.value = value
33 self.row = 1
34 self.col = 1
35 self.file_name = file_name
37 def clean(self):
38 self.token_type = TokenType.UNKNOWN
39 self.value = ""
40 self
[all...]
/build/hb/services/
H A Dpreloader.py30 def __init__(self):
32 self._dirs = ""
33 self._outputs = ""
34 self._product = ""
35 self._os_level = ""
36 self._target_cpu = ""
37 self._target_os = ""
38 self._toolchain_label = ""
39 self._subsystem_info = {}
40 self
[all...]
H A Dloader.py37 def __init__(self):
39 self.source_root_dir = ""
40 self.gn_root_out_dir = ""
41 self.os_level = ""
42 self.target_cpu = ""
43 self.target_os = ""
44 self.config_output_relpath = ""
45 self.config_output_dir = ""
46 self.target_arch = ""
47 self
[all...]
/build/hb/util/preloader/
H A Dpreloader_process_data.py27 def __init__(self, output_dir):
28 self.__post_init__(output_dir)
30 def __post_init__(self, output_dir):
32 self.build_prop = os.path.join(output_dir, 'build.prop')
33 self.build_config_json = os.path.join(output_dir, 'build_config.json')
34 self.parts_json = os.path.join(output_dir, 'parts.json')
35 self.parts_config_json = os.path.join(output_dir, 'parts_config.json')
36 self.build_gnargs_prop = os.path.join(output_dir, 'build_gnargs.prop')
37 self.features_json = os.path.join(output_dir, 'features.json')
38 self
[all...]
/build/
H A Dgn_helpers.py178 def __init__(self, string: str):
179 self.input = string
180 self.cur = 0
182 def is_done(self) -> bool:
183 return self.cur == len(self.input)
185 def consume_whitespace(self):
186 while not self.is_done() and self.input[self
[all...]
/build/test/example/
H A Dperformance_test.py51 self.html_tamplate = """
117 def __init__(self, performance_cmd, output_path, report_titles, ptyflags=False):
118 self.performance_cmd = script_path + performance_cmd
119 self.output_path = script_path + output_path
120 self.report_title = report_titles
121 self.ptyflag = ptyflags
122 self.out_queue = queue.Queue()
123 self.system_info = list()
124 self.ninjia_trace_list = list()
125 self
[all...]
H A Dmylogger.py30 def __init__(self, filename, mode="a", encoding="utf-8", delay=0, suffix="%Y-%m-%d_%H"):
34 FileHandler.__init__(self, filename + "." + current_time, mode, encoding, delay)
36 self.filename = os.fspath(filename)
38 self.mode = mode
39 self.encoding = encoding
40 self.suffix = suffix
41 self.suftime = current_time
43 def emit(self, record):
45 if self.parse_file_name():
46 self
[all...]
/build/hb/util/loader/
H A Dload_ohos_build.py111 def __init__(self, part_name, variant_name, part_config, toolchain,
113 self._origin_name = part_name
118 self._part_name = _real_name
119 self._variant_name = variant_name
120 self._subsystem_name = subsystem_name
121 self._feature_list = []
122 self._toolchain = toolchain
123 self._inner_kits_info = {}
124 self._components_info = {}
125 self
[all...]
/build/hb/services/interface/
H A Dload_interface.py26 def __init__(self):
28 self._config = Config()
31 def __post_init__(self):
35 def config(self):
36 return self._config
39 def outputs(self):
40 return self._outputs
42 def regist_arg(self, arg_name: str, arg_value: str):
43 if arg_name in self._args_dict.keys() and self
[all...]
H A Dpreload_interface.py26 def __init__(self):
28 self._config = Config()
31 def __post_init__(self):
35 def outputs(self):
36 return self._preloader_outputs
39 def config(self):
40 return self._config
42 def regist_arg(self, arg_name: str, arg_value: str):
43 if arg_name in self._args_dict.keys() and self
[all...]
/build/scripts/util/
H A Dmd5_check.py135 def __init__(self, old_metadata, new_metadata, force, missing_outputs):
136 self.old_metadata = old_metadata
137 self.new_metadata = new_metadata
138 self.force = force
139 self.missing_outputs = missing_outputs
141 def has_changes(self):
144 self.force or not self.old_metadata or
145 self.old_metadata.strings_md5() != self
[all...]
/build/config/components/hdi/
H A Dbuild_hdi_files_info.py36 def __init__(self, file_name, token_type, value):
37 self.token_type = token_type
38 self.value = value
39 self.row = 1
40 self.col = 1
41 self.file_name = file_name
43 def clean(self):
44 self.token_type = TokenType.UNKNOWN
45 self.value = ""
46 self
[all...]
/build/ohos/packages/
H A Dprocess_field_validate.py30 def __init__(self, name, reason):
32 self.name = name
33 self.reason = reason
41 def __init__(self):
42 self.uid = ""
43 self.gid = []
44 self.need_verified = False
45 self.enabled_critical = False
46 self.loc = ""
47 self
[all...]
H A Dfs_process.py33 def __init__(self, packer_args) -> None:
34 self.config = Config()
35 self.replace_items = {
36 r'${product_name}': self.config.product,
37 r'${root_path}': self.config.root_path,
38 r'${out_path}': self.config.out_path
40 self.packing_process = [
41 self.mv_usr_libs, self.create_fs_dirs, self
[all...]
/build/hb/modules/interface/
H A Dbuild_module_interface.py33 def __init__(self,
42 self._loader = loader
43 self._preloader = preloader
44 self._target_generator = target_generator
45 self._target_compiler = target_compiler
48 def preloader(self):
49 return self._preloader
52 def loader(self):
53 return self._loader
56 def target_generator(self)
[all...]
/build/tools/component_tools/
H A Dcomponent_node.py22 def __init__(self, module_name: str, subsystem_name: str, part_name: str, deps: set, external_deps: set, raw_data):
23 self._module_name = module_name
24 self._subsystem_name = subsystem_name
25 self._part_name = part_name
26 self._deps = deps
27 self._external_deps = external_deps
28 self._raw_data = raw_data
31 def module_name(self):
32 return self._module_name
35 def module_name(self, valu
[all...]
/build/hb/modules/
H A Dohos_build_module.py38 def __init__(self,
48 OHOSBuildModule._instance = self
49 self._start_time = SystemUtil.get_current_time()
52 def build_time(self):
53 return SystemUtil.get_current_time() - self._start_time
64 def run(self):
74 self.args_dict.get('product_name').arg_value))
76 def _prebuild(self):
77 self._run_phase(BuildPhase.PRE_BUILD)
79 def _preload(self)
[all...]
H A Dohos_tool_module.py29 def __init__(self, args_dict: dict, args_resolver: ArgsResolverInterface, gn: BuildFileGeneratorInterface):
31 self._gn = gn
32 OHOSToolModule._instance = self
35 def gn(self):
36 return self._gn
46 def clean_targets(self):
47 self.args_resolver.resolve_arg(self.args_dict['clean'], self)
49 def desc_targets(self)
[all...]
/build/hb/util/
H A Dmonitor.py42 def __init__(self):
43 self.now_times = []
44 self.usr_cpus = []
45 self.sys_cpus = []
46 self.idle_cpus = []
47 self.total_mems = []
48 self.swap_mems = []
49 self.free_mems = []
50 self.log_path = ""
52 def collect_cpu_info(self)
[all...]
/build/ohos/sa_profile/sa_info_process/
H A Dsort_sa_by_bootphase.py36 def __init__(self):
37 self.bootphase_categories = {
45 def __init__(self):
46 self.rearranged_systemabilities = []
47 self.ordered_systemability_names = []
48 self.name_node_dict = {}
49 self.systemability_deps_dict = {}
50 self.bootphase_dict = {}
51 self.creation_dict = {}
52 self
[all...]
H A Dmerge_sa_info.py30 def __init__(self, process_name, wdir):
31 self.process_name = process_name
32 self.systemabilities = []
33 self.wdir = wdir
36 def output_filename(self):
37 basename = self.process_name + '.json'
38 return os.path.join(self.wdir, basename)
40 def add_systemability_info(self, systemability):
41 self.systemabilities += systemability
43 def merge_sa_info(self)
[all...]
/build/tools/component_tools/static_check/gn_check/
H A Dcheck_gn.py41 def __init__(self, ohos_root: str, black_dir: tuple = tuple(), check_path='') -> None:
49 self.ohos_root = ohos_root
50 self.check_path = check_path
51 self.black_dir = black_dir
54 self.abs_check_path = self.ohos_root
56 self.abs_check_path = os.path.join(self.ohos_root, check_path)
57 self.all_gn_files = GnCommon.find_files(
58 self
[all...]

Completed in 9 milliseconds

12345678910>>...14