• Home
  • Raw
  • Download

Lines Matching refs:conf

36 from conf import JsonConf
181 self.conf = {}
220 self.conf = target_conf
223 self.conf = self.loadTargetConfig(target_conf)
226 self.conf = self.loadTargetConfig()
227 self._log.debug('Target configuration %s', self.conf)
239 self._log.debug('Test configuration %s', self.conf)
242 if 'workdir' in self.conf:
243 self.workdir = self.conf['workdir']
247 target_conf_tools = self.conf.get('tools', [])
253 self.conf['ftrace'] = self.test_conf['ftrace']
254 if self.conf.get('ftrace'):
258 if '__features__' not in self.conf:
259 self.conf['__features__'] = []
272 self.conf.get('results_dir'))
317 conf = JsonConf(conf_file)
318 conf.load()
319 return conf.json
365 if 'username' in self.conf:
366 self.__connection_settings['username'] = self.conf['username']
371 if 'keyfile' in self.conf:
372 self.__connection_settings['keyfile'] = self.conf['keyfile']
373 elif 'password' in self.conf:
374 self.__connection_settings['password'] = self.conf['password']
379 if 'port' in self.conf:
380 self.__connection_settings['port'] = self.conf['port']
383 if 'host' in self.conf:
385 if ':' in self.conf['host']:
386 (self.mac, self.ip) = self.resolv_host(self.conf['host'])
388 self.ip = self.conf['host']
394 platform_type = self.conf['platform']
399 self.ANDROID_HOME = self.conf.get('ANDROID_HOME',
435 if 'board' not in self.conf:
436 self.conf['board'] = 'UNKNOWN'
439 if self.conf['board'].upper() == 'TC2':
444 elif self.conf['board'].upper() in ('JUNO', 'JUNO2'):
450 elif self.conf['board'].upper() == 'OAK':
455 elif self.conf['board'].upper() == 'HIKEY':
461 elif self.conf['board'].upper() == 'PIXEL':
466 elif self.conf['board'] != 'UNKNOWN':
468 board = self._load_board(self.conf['board'])
472 model=self.conf['board'],
486 modules.update(self.conf.get('modules', []))
490 remove_modules = set(self.conf.get('exclude_modules', []) +
505 if 'device' in self.conf:
506 device = self.conf['device']
508 elif 'host' in self.conf:
509 host = self.conf['host']
511 if 'port' in self.conf:
512 port = str(self.conf['port'])
611 def ftrace_conf(self, conf): argument
612 self._init_ftrace(True, conf)
614 def _init_ftrace(self, force=False, conf=None): argument
619 if conf is None and 'ftrace' not in self.conf:
622 if conf is not None:
623 ftrace = conf
625 ftrace = self.conf['ftrace']
662 self.emeter = EnergyMeter.getInstance(self.target, self.conf, force,
748 if 'nrg_model' in self.conf:
749 self.platform['nrg_model'] = self.conf['nrg_model']
752 self.platform['nrg_model'] = self._load_em(self.conf['board'])
799 if not force and 'rtapp-calib' in self.conf:
803 for key, value in self.conf['rtapp-calib'].items()
826 host = self.conf['host']
904 if 'reboot_time' in self.conf:
905 reboot_time = int(self.conf['reboot_time'])
907 if 'ping_time' in self.conf:
908 ping_time = int(self.conf['ping_time'])
977 elif 'tftp' in self.conf:
1015 tftp = self.conf['tftp']
1033 return feature in self.conf['__features__']