Lines Matching refs:args
365 def __init__(self, args, control_module=""): argument
366 self.args = args
367 self.hdc = HdcInterface(root_authority=not args.not_hdc_root)
394 if self.args.local_lib_dir:
399 executor.get_host_local_libs(self.args.local_lib_dir)
404 if self.args.package_name:
405 if self.args.ability:
407 self.start_profiling(['--app', self.args.package_name])
408 if self.args.ability:
409 ability = self.args.package_name + '/' + self.args.ability
417 elif self.args.local_program:
419 self.args.local_program])
421 print("Can't find pid of %s" % self.args.local_program)
425 elif self.args.cmd:
426 cmds = self.args.cmd.split(' ')
429 elif self.args.pid:
430 self.start_profiling(['-p', ','.join(self.args.pid)])
431 elif self.args.tid:
432 self.start_profiling(['-t', ','.join(self.args.tid)])
433 elif self.args.system_wide:
439 self.hdc.check_run(['shell', 'aa', 'force-stop', self.args.app])
453 ['shell', 'pidof', self.args.package_name])
456 def run_in_app_dir(self, args): argument
458 hdc_args = ['shell', 'cd /data/data/' + self.args.package_name +
459 ' && ' + (' '.join(args))]
461 hdc_args = ['shell', 'run-as', self.args.package_name] + args
466 record_options = self.args.record_options.split(' ')
469 args = ['hiperf', 'record',
473 args = ['hiperf', 'record', '-o',
475 if self.args.local_lib_dir and self.hdc.run_hdc_cmd(
477 args += ['--symbol-dir', SYMBOL_FILES_DIR]
478 args += selected_args
479 hdc_args = [self.hdc.hdc_path, 'shell'] + args
518 full_path = os.path.join(current_path, self.args.output_perf_data)