/external/autotest/client/tests/barriertest/ |
H A D | barriertest.py | 12 def run_once(self, our_addr, hostnames, master, timeout=120): 18 listen_server=server).rendezvous(*hostnames) 25 ).rendezvous_servers(hostnames[-1], *hostnames[:-1]) 33 ).rendezvous(abort=True, *hostnames) 49 ).rendezvous_servers(master, *hostnames) 57 ).rendezvous_servers(master, *hostnames)
|
/external/autotest/utils/ |
H A D | reverify_repair_failed.py | 27 hostnames = afe_client.reverify_hosts(status='Repair Failed', 30 # A more recent one returns a list of hostnames to make this message useful. 31 if hostnames: 34 print ' '.join(hostnames)
|
/external/autotest/contrib/ |
H A D | reverify_hosts | 16 # with hostnames=[], the call takes longer than I was willing to 23 frontend.AFE().reverify_hosts(hostnames=sys.argv[1:])
|
H A D | task_runner.sh | 61 hostnames='' 63 if [ "$hostnames" ]; then 64 hostnames="$hostnames,$H" 66 hostnames=$H 70 $AT_DIR/cli/atest host delete $hostnames --web $AFE 73 $AT_DIR/cli/atest host create $hostnames --web $AFE 74 $AT_DIR/cli/atest label add -m $hostnames $labels --web $AFE
|
H A D | compare_dut_perf.py | 39 def get_matched_duts(hostnames=None, board=None, pool=None, other_labels=None): 42 @param hostnames: A list of hostnames. 50 if hostnames: 51 hosts = models.Host.objects.filter(hostname__in=hostnames) 173 help='Enter space deliminated hostnames', 190 hosts = get_matched_duts(hostnames=options.hosts, board=options.board,
|
H A D | manage_powerunit_info.py | 116 @param devices: a list of device hostnames. 144 parser.add_argument('-m', type=str, dest='hostnames', default='', 145 help='A list of machine hostnames seperated by comma, ' 164 if options.action == 'list' and not options.hostnames: 165 logging.error('Please specify hostnames with -m') 185 list_powerunit_info(afe, [h.strip() for h in options.hostnames.split(',')])
|
/external/autotest/scheduler/ |
H A D | agent_task_unittest.py | 45 task.hostnames = {1: self.HOST_IN_RESTRICTED_SUBNET} 62 task.hostnames = {1: self.HOST_NOT_IN_RESTRICTED_SUBNET} 75 task.hostnames = {1: self.HOST_NOT_IN_RESTRICTED_SUBNET,
|
H A D | agent_task.py | 155 self.hostnames = {} 163 self.hostnames = dict((entry.host.id, entry.host.hostname) 168 self.hostnames = {host.id: host.hostname} 374 if (self.hostnames and restricted_subnets and enable_drone_in_subnet): 375 for hostname in self.hostnames.values():
|
/external/autotest/server/cros/dynamic_suite/ |
H A D | fakes.py | 34 def __init__(self, id=0, statuses=[], hostnames=[], parent_job_id=None): 36 self.hostnames = hostnames if hostnames else ['host%d' % id]
|
H A D | job_status_unittest.py | 185 mox.IgnoreArg(), job).InAnyOrder().AndReturn(job.hostnames) 186 used_hostnames.extend([h for h in job.hostnames if h]) 203 job = FakeJob(7, hostnames=[None, None]) 209 job.hostnames = [None] + expected_hostnames[1:] 217 job.hostnames = expected_hostnames 244 job = FakeJob(7, hostnames=[None, None]) 262 job = FakeJob(7, hostnames=[None, None]) 280 job = FakeJob(7, hostnames=[None, None]) 291 job.hostnames = [None] + expected_hostnames[1:] 303 job.hostnames [all...] |
H A D | tools.py | 122 hostnames = [host.hostname for host in host_list] 123 updated_hosts = afe.get_hosts(hostnames=hostnames)
|
H A D | job_status.py | 68 @return iterable of hostnames on which |job| was run, using None as 234 @param my_jobs: a list of all the jobs we need hostnames for. 235 @return: a list of hostnames that correspond to my_jobs. 257 hostnames = [h.hostname for h in running_hosts] 258 if set(hostnames) - locked_hosts != set(): 260 logging.debug('Locking %r.', hostnames) 261 manager.lock(hostnames) 262 locked_hosts = locked_hosts.union(hostnames)
|
/external/autotest/site_utils/ |
H A D | add_detected_host_labels.py | 128 hostnames = [m.strip() for m in options.machines.split(',')] 130 hostnames = afe.get_hostnames() 133 hostnames)) 134 attempts = len(hostnames)
|
H A D | dut_status.py | 263 valid requested hostnames, using the time range supplied on the 275 for hostname in arguments.hostnames: 312 if arguments.hostnames: 425 parser.add_argument('hostnames',
|
H A D | test_push.py | 245 AFE.reverify_hosts(hostnames=[host.hostname]) 309 hostnames = set([hqe.host.hostname for hqe in hqes]) 310 for hostname in hostnames:
|
/external/autotest/server/ |
H A D | profilers.py | 181 hostnames = [host_info[0].hostname for host_info in hosts] 186 control_script = standalone_profiler.generate_test(hostnames, 204 standalone_profiler.wait_for_profilers(hostnames) 221 hostnames = [host_info[0].hostname for host_info in hosts] 223 standalone_profiler.start_profilers(hostnames) 236 hostnames = [host_info[0].hostname for host_info in hosts] 238 standalone_profiler.stop_profilers(hostnames) 251 hostnames = [host_info[0].hostname for host_info in hosts] 253 standalone_profiler.finish_profilers(hostnames)
|
H A D | frontend.py | 208 def _dict_for_host_query(hostnames=(), status=None, label=None): 210 if hostnames: 211 query_args['hostname__in'] = hostnames 219 def get_hosts(self, hostnames=(), status=None, label=None, **dargs): 221 query_args.update(self._dict_for_host_query(hostnames=hostnames, 229 """Like get_hosts() but returns hostnames instead of Host objects.""" 236 def reverify_hosts(self, hostnames=(), status=None, label=None): 239 query_args.update(self._dict_for_host_query(hostnames=hostnames, [all...] |
/external/autotest/site_utils/deployment/ |
H A D | install.py | 483 def _report_results(afe, report_log, hostnames, results): 492 @param hostnames List of the hostnames that were tested. 494 as the hostnames. `None` means the 500 for r, h in zip(results, hostnames): 506 afe_host_list = afe.get_hosts(hostnames=success_hosts) 507 afe.reverify_hosts(hostnames=success_hosts) 508 for h in afe.get_hosts(hostnames=success_hosts): 557 install_pool = multiprocessing.Pool(len(arguments.hostnames)) 560 arguments.hostnames) [all...] |
H A D | commandline.py | 19 The interactive dialog is invoked if the board and hostnames 237 if (not arguments.hostnames and 240 'DUT hostnames are required with board or build.\n') 331 hostnames = [] 341 hostnames.append(h) 342 if not hostnames: 347 return hostnames 354 hostnames. Responses are stored in `arguments`. The user is 371 arguments.hostnames = _read_hostnames(input) 405 parser.add_argument('hostnames', narg [all...] |
/external/autotest/server/cros/ap_configurators/ |
H A D | ap_configurator_factory.py | 242 HOSTNAMES = 'hostnames' 330 def get_aps_by_hostnames(self, hostnames, ap_list=None): 333 @param hostnames: a list of strings, AP's wan_hostname defined in the AP 344 if ap.host_name in hostnames: 419 # If APs hostnames are provided, assume the tester knows the location 421 if spec.hostnames is None: 428 if spec.hostnames is not None: 429 matching_aps = self.get_aps_by_hostnames(spec.hostnames,
|
H A D | ap_spec.py | 133 band=None, mode=None, channel=None, hostnames=None, 143 self._hostnames = hostnames 228 def hostnames(self): member in class:APSpec 229 """Return the hostnames; this may be None."""
|
H A D | ap_configurator_factory_unittest.py | 203 spec = ap_spec.APSpec(hostnames=['chromeos3-row2-rack1-host1']) 207 spec = ap_spec.APSpec(hostnames=['chromeos3-row2-rack1-host1',
|
H A D | ap_batch_locker.py | 70 for ap in factory.get_aps_by_hostnames(ap_spec.hostnames): 215 # Make a copy of all of the hostnames to process
|
/external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/ |
H A D | Crawler.java | 46 private final ConcurrentHashMap<String, AtomicInteger> hostnames = new ConcurrentHashMap<>(); field in class:Crawler 85 AtomicInteger previous = hostnames.putIfAbsent(url.host(), hostnameCount);
|
/external/autotest/frontend/client/src/autotest/afe/ |
H A D | HostSelector.java | 345 List<String> hostnames = new ArrayList<String>(); 348 hostnames.add(Utils.jsonToString(hostObject.get("hostname"))); 352 String hostList = Utils.joinStrings(", ", hostnames);
|