/external/autotest/server/hosts/ |
host_info_unittest.py | 11 from autotest_lib.server.hosts import host_info 18 self.info = host_info.HostInfo() 22 self.assertNotEqual(host_info.HostInfo(), 42) 23 self.assertNotEqual(host_info.HostInfo(), None) 25 self.assertFalse(host_info.HostInfo() == 42) 26 self.assertFalse(host_info.HostInfo() == None) 31 self.assertEqual(host_info.HostInfo(), host_info.HostInfo()) 33 self.assertFalse(host_info.HostInfo() != host_info.HostInfo() [all...] |
file_store.py | 9 from autotest_lib.server.hosts import host_info 17 class FileStore(host_info.CachingHostInfoStore): 68 return host_info.json_deserialize(fp) 71 raise host_info.StoreError( 74 raise host_info.StoreError('Failed to read backing file (%s) : %r' 76 except host_info.DeserializationError as e: 77 raise host_info.StoreError( 86 host_info.json_serialize(info, fp) 88 raise host_info.StoreError('Failed to write backing file (%s) : %r' 109 raise host_info.StoreError(e [all...] |
file_store_unittest.py | 13 from autotest_lib.server.hosts import host_info 27 info = host_info.HostInfo(labels=['labels'], 37 info = host_info.HostInfo(labels=['labels'], 50 with self.assertRaises(host_info.StoreError): 66 with file_lock.lock(), self.assertRaises(host_info.StoreError): 67 store.commit(host_info.HostInfo()) 80 store.commit(host_info.HostInfo()) 84 with file_lock.lock(), self.assertRaises(host_info.StoreError): 93 with self.assertRaises(host_info.StoreError): 94 store.commit(host_info.HostInfo() [all...] |
shadowing_store_unittest.py | 12 from autotest_lib.server.hosts import host_info 21 info = host_info.HostInfo(labels='blah', attributes='boo') 32 info = host_info.HostInfo(labels='blah', attributes='boo') 39 init_info = host_info.HostInfo(labels='init') 43 info = host_info.HostInfo(labels='blah', attributes='boo') 50 init_info = host_info.HostInfo(labels='init') 59 init_info = host_info.HostInfo(labels='init') 69 p_info = host_info.HostInfo('primary') 76 s_info = host_info.HostInfo('shadow') 86 p_info = host_info.HostInfo('primary' [all...] |
shadowing_store.py | 11 from autotest_lib.server.hosts import host_info 15 _METRICS_PREFIX = 'chromeos/autotest/autoserv/host_info/shadowing_store/' 22 class ShadowingStore(host_info.CachingHostInfoStore): 60 except host_info.StoreError as e: 76 except host_info.StoreError: 91 except host_info.StoreError: 99 except host_info.StoreError: 112 except host_info.StoreError: 120 except host_info.StoreError:
|
afe_store.py | 9 from autotest_lib.server.hosts import host_info 12 class AfeStore(host_info.CachingHostInfoStore): 43 raise host_info.StoreError(e) 46 raise host_info.StoreError('No hosts founds with hostname: %s' % 54 return host_info.HostInfo(host.labels, host.attributes) 88 raise host_info.StoreError(e) 103 raise host_info.StoreError(e)
|
afe_store_unittest.py | 12 from autotest_lib.server.hosts import host_info 48 with self.assertRaises(host_info.StoreError): 66 info = host_info.HostInfo(['label2'], {}) 84 info = host_info.HostInfo(['label2'], {}) 85 with self.assertRaises(host_info.StoreError): 93 info = host_info.HostInfo([], {'attrib1': 'val1'}) 104 info = host_info.HostInfo([], {'attrib1': 'val1_updated'}) 115 info = host_info.HostInfo([], {})
|
factory_unittest.py | 12 from autotest_lib.server.hosts import host_info 64 store = host_info.InMemoryHostInfoStore() 65 store.commit(host_info.HostInfo(labels, attributes))
|
/test/vti/test_serving/gae/webapp/src/ |
endpoint_main.py | 21 from webapp.src.endpoint import host_info 28 host_info.HostInfoApi,
|
/test/vti/test_serving/gae/testing/ |
test-endpoint.sh | 3 curl -H "Content-Type: application/json" -X POST -d '{"devices": [{"serial": "123", "product": "myfish", "serial": "myserial", "status": 1}], "hostname": "hc1"}' https://vtslab-schedule-prod.appspot.com/_ah/api/host_info/v1/set 7 curl -H "Content-Type: application/json" -X POST -d '{"device": [{"index": 1}], "host_name": "hc1"}' https://vtslab-schedule-prod.appspot.com/_ah/api/host_info/v1/set
|
/external/autotest/server/cros/ |
host_lock_manager.py | 84 host_info = self._afe.get_hosts(hostname=mod_host) 85 if not host_info: 89 host_info = host_info[0] 90 if operation == self.LOCK and host_info.locked: 92 (mod_host, host_info.locked_by, host_info.lock_time)) 95 elif operation == self.UNLOCK and not host_info.locked:
|
host_lock_manager_unittest.py | 88 host_info = [self.FakeHost(locked=True)] 89 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info) 97 host_info = [self.FakeHost()] 98 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info) 106 host_info = [self.FakeHost()] 107 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info) 116 host_info = [self.FakeHost(locked=True)] 117 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info)
|
/external/toolchain-utils/ |
afe_lock_machine.py | 242 host_info = self.local_afe.get_hosts(hostname=m) 243 if host_info: 244 host_info = host_info[0] 245 host_info.delete() 279 host_info = self.local_afe.get_hosts(hostname=m) 280 if host_info: 510 host_info = None 515 host_info = self.afe.get_hosts(hostname=mod_host) 516 if not host_info [all...] |
/external/autotest/server/site_tests/android_EasySetup/ |
android_EasySetup.py | 10 from autotest_lib.server.hosts import host_info 45 except host_info.StoreError:
|
/test/vti/test_serving/gae/script/ |
build.sh | 31 python lib/endpoints/endpointscfg.py get_openapi_spec webapp.src.endpoint.host_info.HostInfoApi --hostname $SERVICE
|
/external/autotest/cli/ |
label.py | 84 host_info = topic_common.item_parse_info(attribute_name='hosts', 86 (options, leftover) = super(label_list, self).parse([host_info]) 186 host_info = topic_common.item_parse_info(attribute_name='hosts', 190 self).parse([host_info],
|
acl.py | 76 host_info = topic_common.item_parse_info(attribute_name='hosts', 80 host_info]) 203 host_info = topic_common.item_parse_info(attribute_name='hosts', 207 self).parse([user_info, host_info],
|
topic_common_unittest.py | 511 host_info = topic_common.item_parse_info(attribute_name='hosts', 518 (options, leftover) = self.atest.parse([host_info, user_info]) 549 host_info = topic_common.item_parse_info(attribute_name='hosts', 555 (options, leftover) = self.atest.parse([host_info, user_info]) 587 host_info = topic_common.item_parse_info(attribute_name='hosts', 593 (options, leftover) = self.atest.parse([host_info, user_info]) 623 host_info = topic_common.item_parse_info(attribute_name='hosts', 629 (options, leftover) = self.atest.parse([host_info, user_info]) 656 host_info = topic_common.item_parse_info(attribute_name='hosts', 660 (options, leftover) = self.atest.parse([host_info, user_info] [all...] |
/external/autotest/server/ |
profilers.py | 176 hostnames = [host_info[0].hostname for host_info in hosts] 216 hostnames = [host_info[0].hostname for host_info in hosts] 231 hostnames = [host_info[0].hostname for host_info in hosts] 246 hostnames = [host_info[0].hostname for host_info in hosts]
|
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/ |
PPCSubtarget.cpp | 30 #include <mach/host_info.h> 39 host_info(mach_host_self(), HOST_BASIC_INFO, (host_info_t)&hostInfo,
|
/test/vti/test_serving/gae/webapp/src/endpoint/ |
lab_info.py | 24 from webapp.src.endpoint import host_info 79 host_info.AddNullDevices(host.hostname, null_device_count)
|
/external/autotest/frontend/tko/ |
rpc_interface.py | 283 host_info = {} 295 host_info.setdefault(hostname, {}) 296 host_info[hostname].setdefault('tests', []) 297 host_info[hostname]['tests'].append(test) 298 host_info[hostname]['id'] = machine_idx 299 return rpc_utils.prepare_for_serialization(host_info)
|
/external/autotest/scheduler/ |
rdb_hosts.py | 166 host_info = super(RDBServerHostWrapper, self).wire_format() 169 host_info['labels'] = self.labels.get_label_names() 170 host_info['acls'] = self.acls 171 host_info['platform_name'] = self.platform_name 172 host_info['protection'] = self.protection 173 return host_info 413 all the fields in a host_info defined above.
|
/external/tensorflow/tensorflow/core/kernels/ |
matrix_inverse_op.cc | 247 for (const auto& host_info : host_infos) { 248 for (int i = 0; i < host_info.size(); ++i) { 253 context, host_info(i) <= 0,
|
/external/autotest/site_utils/deployment/ |
install.py | 686 def _get_afe_servo_port(host_info, afe): 690 @param host_info HostInfo tuple (hostname, host_attr_dict). 693 host_info.host_attr_dict, otherwise None. 698 afe_hosts = afe.get_hosts(hostname=host_info.hostname) 704 host_info_servo_host = host_info.host_attr_dict.get( 727 for host_info in host_info_list: 728 host_attr_dict = host_info.host_attr_dict 733 host_info, afe) 738 host_attributes[host_info.hostname] = host_attr_dict
|