Home
last modified time | relevance | path

Searched full:hosts (Results 1 – 25 of 6265) sorted by relevance

12345678910>>...251

/external/cronet/tot/net/dns/
Ddns_config_service_unittest.cc104 // Generate hosts using the given seed.
106 DnsHosts hosts; in MakeHosts() local
109 ParseHosts(hosts_content, &hosts); in MakeHosts()
110 EXPECT_FALSE(hosts.empty()); in MakeHosts()
111 return hosts; in MakeHosts()
158 bool ParseHosts(DnsHosts* hosts) const override { in ParseHosts()
159 return factory_->ParseHosts(hosts); in ParseHosts()
188 // No hosts yet, so no config. in TEST_F()
191 service_->OnHostsRead(config.hosts); in TEST_F()
197 config.hosts = MakeHosts(1); in TEST_F()
[all …]
Ddns_hosts_unittest.cc149 DnsHosts hosts; in TEST() local
150 ParseHosts("", &hosts); in TEST()
151 EXPECT_EQ(0u, hosts.size()); in TEST()
155 DnsHosts hosts; in TEST() local
156 ParseHosts(" ", &hosts); in TEST()
157 EXPECT_EQ(0u, hosts.size()); in TEST()
161 DnsHosts hosts; in TEST() local
162 ParseHosts("127.0.0.1 localhost", &hosts); in TEST()
163 EXPECT_EQ(1u, hosts.size()); in TEST()
167 DnsHosts hosts; in TEST() local
[all …]
Ddns_hosts.h30 // There are OS-specific variations in how commas in the hosts file behave.
41 // Parsed results of a Hosts file.
43 // Although Hosts files map IP address to a list of domain names, for name
45 // When parsing Hosts, we apply the "first hit" rule as Windows and glibc do.
46 // With a Hosts file of:
53 // Parses |contents| (as read from /etc/hosts or equivalent) and stores results
62 // Parses |contents| (as read from /etc/hosts or equivalent) and stores results
67 // Test-injectable HOSTS parser.
72 // Parses HOSTS and stores results in `dns_hosts`, with addresses in the order
75 virtual bool ParseHosts(DnsHosts* hosts) const = 0;
[all …]
/external/cronet/stable/net/dns/
Ddns_config_service_unittest.cc104 // Generate hosts using the given seed.
106 DnsHosts hosts; in MakeHosts() local
109 ParseHosts(hosts_content, &hosts); in MakeHosts()
110 EXPECT_FALSE(hosts.empty()); in MakeHosts()
111 return hosts; in MakeHosts()
158 bool ParseHosts(DnsHosts* hosts) const override { in ParseHosts()
159 return factory_->ParseHosts(hosts); in ParseHosts()
188 // No hosts yet, so no config. in TEST_F()
191 service_->OnHostsRead(config.hosts); in TEST_F()
197 config.hosts = MakeHosts(1); in TEST_F()
[all …]
Ddns_hosts_unittest.cc149 DnsHosts hosts; in TEST() local
150 ParseHosts("", &hosts); in TEST()
151 EXPECT_EQ(0u, hosts.size()); in TEST()
155 DnsHosts hosts; in TEST() local
156 ParseHosts(" ", &hosts); in TEST()
157 EXPECT_EQ(0u, hosts.size()); in TEST()
161 DnsHosts hosts; in TEST() local
162 ParseHosts("127.0.0.1 localhost", &hosts); in TEST()
163 EXPECT_EQ(1u, hosts.size()); in TEST()
167 DnsHosts hosts; in TEST() local
[all …]
Ddns_hosts.h30 // There are OS-specific variations in how commas in the hosts file behave.
41 // Parsed results of a Hosts file.
43 // Although Hosts files map IP address to a list of domain names, for name
45 // When parsing Hosts, we apply the "first hit" rule as Windows and glibc do.
46 // With a Hosts file of:
53 // Parses |contents| (as read from /etc/hosts or equivalent) and stores results
62 // Parses |contents| (as read from /etc/hosts or equivalent) and stores results
67 // Test-injectable HOSTS parser.
72 // Parses HOSTS and stores results in `dns_hosts`, with addresses in the order
75 virtual bool ParseHosts(DnsHosts* hosts) const = 0;
[all …]
/external/autotest/server/cros/
Dhost_lock_manager.py16 locked hosts before the instance is destroyed, it will attempt to unlock() the
17 hosts automatically, but this is to be avoided.
42 """@returns set of locked hosts."""
47 def locked_hosts(self, hosts): argument
50 @param hosts: a set of strings.
52 self._locked_hosts = hosts
60 # Keep track of hosts locked by this instance.
101 def lock(self, hosts, lock_reason='Locked by HostLockManager'): argument
102 """Lock hosts in datastore.
104 @param hosts: a list of strings, host names.
[all …]
Dhost_lock_manager_unittest.py39 def _host_modifier(self, hosts, operation, lock_reason=''): argument
42 Add hosts to self.locked_hosts for LOCK and remove hosts from
47 @param lock_reason: a string, a reason for locking the hosts
51 self.locked_hosts = self.locked_hosts.union(hosts)
53 self.locked_hosts = self.locked_hosts.difference(hosts)
106 """Tests host locking, all hosts not in self.locked_hosts."""
107 hosts = [self.HOST2]
110 manager.lock(hosts, lock_reason='Locking for test')
115 """Tests host locking, some hosts not in self.locked_hosts."""
116 hosts = [self.HOST1, self.HOST2]
[all …]
/external/autotest/server/
Dprofilers.py64 Install autotest on any current job hosts.
67 # find hosts in use but not used by us
68 for host in self.job.hosts:
70 # job.hosts include all host instances created on the fly.
77 logging.debug('Hosts currently in use: %s', set(in_use_hosts))
89 logging.debug('Hosts with profiler clients already installed: %s',
92 # install autotest on any new hosts in use
100 # drop any installs from hosts no longer in job.hosts
107 Returns a list of (Host, Autotest, install directory) tuples for hosts
151 def _get_all_failure_logs(self, test, hosts): argument
[all …]
/external/autotest/server/hosts/
D__init__.py4 """This is a convenience module to import all available types of hosts.
7 You should 'import hosts' instead of importing every available host module.
12 from autotest_lib.server.hosts.base_classes import Host
13 from autotest_lib.server.hosts.remote import RemoteHost
16 from autotest_lib.server.hosts.ssh_host import SSHHost
17 from autotest_lib.server.hosts.cros_host import CrosHost
18 from autotest_lib.server.hosts.chameleon_host import ChameleonHost
19 from autotest_lib.server.hosts.servo_host import ServoHost
20 from autotest_lib.server.hosts.labstation_host import LabstationHost
21 from autotest_lib.server.hosts.android_host import AndroidHost
[all …]
Dservo_repair.py18 from autotest_lib.client.common_lib import hosts
21 from autotest_lib.server.hosts import cros_constants
22 from autotest_lib.server.hosts import repair_utils
23 from autotest_lib.server.hosts import servo_constants
57 class _UpdateVerifier(hosts.Verifier):
84 six.reraise(hosts.AutoservNonCriticalVerifyError,
85 hosts.AutoservNonCriticalVerifyError(e),
100 class _StartServodVerifier(hosts.Verifier):
121 class _RootServoPresentVerifier(hosts.Verifier):
151 raise hosts.AutoservVerifyError('Serial mismatch detected')
[all …]
Drepair_utils.py9 from autotest_lib.client.common_lib import hosts
11 from autotest_lib.server.hosts import servo_constants
12 from autotest_lib.server.hosts import cros_constants
31 raise hosts.AutoservRepairError(
36 class SshVerifier(hosts.Verifier):
61 raise hosts.AutoservVerifyError(msg % host.hostname)
68 class PingVerifier(hosts.Verifier):
91 raise hosts.AutoservVerifyError(msg)
96 raise hosts.AutoservVerifyError(msg)
103 class LegacyHostVerifier(hosts.Verifier):
[all …]
Dcros_repair.py19 from autotest_lib.client.common_lib import hosts
31 from autotest_lib.server.hosts import cros_constants
32 from autotest_lib.server.hosts import cros_firmware
33 from autotest_lib.server.hosts import repair_utils
130 class ACPowerVerifier(hosts.Verifier):
150 raise hosts.AutoservVerifyError(
158 raise hosts.AutoservVerifyError(
161 raise hosts.AutoservVerifyError(
222 raise hosts.AutoservVerifyError(
236 class ProvisioningLabelsVerifier(hosts.Verifier):
[all …]
/external/autotest/frontend/afe/
Dfrontend_test_utils.py13 """Populate the test database with some hosts and labels."""
21 self.hosts = [models.Host.objects.create(hostname=hostname)
26 acl_group.hosts = self.hosts
27 models.AclGroup.smart_get('Everyone').hosts = []
34 for host in self.hosts:
46 self.hosts[0].labels.add(self.label1)
47 self.hosts[1].labels.add(self.label2)
49 self.hosts[hostnum].labels.add(self.label6)
50 self.hosts[6].labels.add(self.label7)
52 self.hosts[hostnum].labels.add(self.label6)
[all …]
Drpc_interface.py13 When specifying foreign key fields (i.e. adding hosts to a label, or adding
123 # Hosts that have the label to be deleted. Save this info before
125 hosts = []
127 hosts.append(models.Host.smart_get(h.id))
132 rpc_utils.fanout_rpc(hosts, 'delete_label', False, id=id)
165 def add_label_to_hosts(id, hosts): argument
166 """Adds a label of the given id to the given hosts only in local DB.
169 @param hosts: The hostnames of hosts that need the label.
177 host_objs = models.Host.smart_get_bulk(hosts)
186 def _create_label_everywhere(id, hosts): argument
[all …]
Dmodels_test.py30 host1, host2 = self.hosts[1:3]
161 host=self.hosts[0], task=models.SpecialTask.Task.VERIFY,
167 self.assertEquals(task.execution_path(), 'hosts/host1/1-verify')
201 job = self._create_job(hosts=[0])
203 host=self.hosts[0], task=models.SpecialTask.Task.VERIFY,
219 entry = self._create_job(hosts=[1]).hostqueueentry_set.all()[0]
237 self.assertFalse(self.hosts[0].invalid)
238 self.hosts[0].delete()
239 self.assertTrue(self.hosts[0].invalid)
240 self.assertTrue(models.Host.objects.get(id=self.hosts[0].id))
[all …]
Drpc_utils.py195 hosts = models.Host.get_hosts_with_labels(
197 if not hosts:
198 return hosts
200 return models.Host.query_objects(filter_data, initial_query=hosts)
295 # check that hosts satisfy dependencies
318 {'hosts' : 'Host(s) failed to meet job dependencies (' +
335 hosts = models.Host.objects.filter(static_labels=static_metahost)
337 hosts = models.Host.objects.filter(labels=metahost)
349 hosts = hosts.filter(static_labels__name=label_name)
351 hosts = hosts.filter(labels__name=label_name)
[all …]
/external/sdv/vsomeip/third_party/boost/asio/test/ip/
Dnetwork_v6.cpp57 ip::address_v6_range hosts = net1.hosts(); in test() local
58 (void)hosts; in test()
212 …//BOOST_ASIO_CHECK(std::distance(net12.hosts().begin(),net12.hosts().end()) == 1844674407370955200… in test()
213 BOOST_ASIO_CHECK(std::distance(net13.hosts().begin(),net13.hosts().end()) == 2); in test()
214 BOOST_ASIO_CHECK(std::distance(net14.hosts().begin(),net14.hosts().end()) == 8); in test()
215 BOOST_ASIO_CHECK(std::distance(net15.hosts().begin(),net15.hosts().end()) == 512); in test()
216 BOOST_ASIO_CHECK(*net12.hosts().begin() == make_address_v6("2001:0370::")); in test()
217 …BOOST_ASIO_CHECK(net12.hosts().end() != net12.hosts().find(make_address_v6("2001:0370::ffff:ffff:f… in test()
218 BOOST_ASIO_CHECK(*net13.hosts().begin() == make_address_v6("2001:0db8::")); in test()
219 BOOST_ASIO_CHECK(net13.hosts().end() != net13.hosts().find(make_address_v6("2001:0db8::1"))); in test()
[all …]
Dnetwork_v4.cpp64 ip::address_v4_range hosts = net1.hosts(); in test() local
65 (void)hosts; in test()
291 BOOST_ASIO_CHECK(std::distance(net12.hosts().begin(),net12.hosts().end()) == 254); in test()
292 BOOST_ASIO_CHECK(*net12.hosts().begin() == make_address_v4("192.168.0.1")); in test()
293 BOOST_ASIO_CHECK(net12.hosts().end() != net12.hosts().find(make_address_v4("192.168.0.10"))); in test()
294 BOOST_ASIO_CHECK(net12.hosts().end() == net12.hosts().find(make_address_v4("192.168.1.10"))); in test()
295 BOOST_ASIO_CHECK(std::distance(net13.hosts().begin(),net13.hosts().end()) == 14); in test()
296 BOOST_ASIO_CHECK(*net13.hosts().begin() == make_address_v4("192.168.1.1")); in test()
297 BOOST_ASIO_CHECK(net13.hosts().end() != net13.hosts().find(make_address_v4("192.168.1.14"))); in test()
298 BOOST_ASIO_CHECK(net13.hosts().end() == net13.hosts().find(make_address_v4("192.168.1.15"))); in test()
[all …]
/external/autotest/server/cros/dynamic_suite/
Dhost_spec.py42 """Given a simple list of HostSpec, extract hosts from hosts_per_spec.
45 get the associated hosts out of hosts_per_spec. Return the spec and the
49 @param hosts_per_spec: map of {HostSpec: [list, of, hosts]}
50 @return (HostSpec, [list, of, hosts]}
57 """A high-level specification of a group of hosts.
59 A HostGroup represents a group of hosts against which a job can be
73 """Returns the number of hosts specified by the group."""
86 """Returns True if enough hosts in the group were reimaged for use."""
103 """A group of hosts, specified by name, to be reimaged for use.
118 @param hosts_per_spec: {HostSpec: [list, of, hosts]}.
[all …]
/external/autotest/cli/
Djob.py159 self.parser.add_option('-N', '--list-hosts',
160 help='Display only a list of hosts',
162 self.parser.add_option('-s', '--list-hosts-status',
163 help='Display only the hosts in these statuses '
181 self.invalid_syntax('--list-hosts is implicit when using '
182 '--list-hosts-status.')
184 self.invalid_syntax('--list-hosts and --list-hosts-status should '
204 job['hosts'] = ' '.join(' '.join(host) for host in
217 if not job.get('hosts'):
218 self.generic_error('Job has unassigned meta-hosts, '
[all …]
/external/autotest/frontend/client/src/autotest/afe/
DHostSelector.java33 * A widget to facilitate selection of a group of hosts for running a job. The
35 * {@link HostTable} displaying available, unselected hosts, and the right table
36 * displays selected hosts. Click on a host in either table moves it to the
38 * convenience controls (such as one to remove all selected hosts) and a special
47 public List<String> hosts = new ArrayList<String>(); field in HostSelector.HostSelection
156 List<String> hosts = Utils.splitListWithSpaces(display.getHostnameField().getText()); in onAddByHostname() local
158 setSelectedHostnames(hosts, allowOneTimeHosts); in onAddByHostname()
161 public void setSelectedHostnames(final List<String> hosts, final boolean allowOneTimeHosts) { in setSelectedHostnames() argument
162 // figure out which hosts exist in the system and which should be one-time hosts in setSelectedHostnames()
164 params.put("hostname__in", Utils.stringsToJSON(hosts)); in setSelectedHostnames()
[all …]
DHostListView.java35 return "hosts"; in getElementId()
84 }, "Hosts"); in reverifySelectedHosts()
93 AfeUtils.changeHostLocks(hostIds, lock, lockReason, "Hosts", new SimpleCallback() { in changeLockStatus()
103 NotifyManager.getInstance().showError("No hosts selected"); in getSelectedHosts()
125 menu.addItem("Reverify hosts", new Command() { in getActionMenu()
130 menu.addItem("Lock hosts for testing", new Command() { in getActionMenu()
135 menu.addItem("Lock hosts for recovery", new Command() { in getActionMenu()
140 menu.addItem("Lock hosts for resource exclusion", new Command() { in getActionMenu()
145 menu.addItem("Lock hosts for defects", new Command() { in getActionMenu()
150 menu.addItem("Unlock hosts", new Command() { in getActionMenu()
/external/boringssl/src/crypto/x509/
Dx509_vpm.cc43 if (mode == SET_HOST && param->hosts) { in int_x509_param_set_hosts()
44 sk_OPENSSL_STRING_pop_free(param->hosts, str_free); in int_x509_param_set_hosts()
45 param->hosts = NULL; in int_x509_param_set_hosts()
53 if (param->hosts == NULL && in int_x509_param_set_hosts()
54 (param->hosts = sk_OPENSSL_STRING_new_null()) == NULL) { in int_x509_param_set_hosts()
59 if (!sk_OPENSSL_STRING_push(param->hosts, copy)) { in int_x509_param_set_hosts()
61 if (sk_OPENSSL_STRING_num(param->hosts) == 0) { in int_x509_param_set_hosts()
62 sk_OPENSSL_STRING_free(param->hosts); in int_x509_param_set_hosts()
63 param->hosts = NULL; in int_x509_param_set_hosts()
86 sk_OPENSSL_STRING_pop_free(param->hosts, str_free); in X509_VERIFY_PARAM_free()
[all …]
/external/autotest/site_utils/
Ddiagnosis_utils.py27 def __init__(self, labels, num_available, num_required, hosts): argument
33 @param num_available: Number of available hosts.
34 @param num_required: Number of hosts required.
35 @param hosts: Sequence of Host instances for given board and pool.
40 self.hosts = hosts
213 hosts = self.rpc_interface.get_hosts(
215 if not hosts:
217 'No hosts found for labels %r. The test lab '
227 if len(hosts) < minimum_duts:
230 'number of available DUTS', labels, len(hosts),
[all …]

12345678910>>...251