/external/autotest/scheduler/ |
H A D | rdb_unittest.py | 46 self.get_hosts_manager.add_request(host_id=1) 52 response.append(rdb_testing_utils.FakeHost(hostname='host', host_id=1)) 66 self.get_hosts_manager.add_request(host_id=1) 67 self.get_hosts_manager.add_request(host_id=2) 70 response = [rdb_testing_utils.FakeHost(hostname='host', host_id=1)] 102 for host_id in range(1, 4): 103 self.get_hosts_manager.add_request(host_id=host_id) 105 rdb_testing_utils.FakeHost('host%s'%host_id, host_id)) [all...] |
H A D | rdb_lib.py | 59 'host_id': queue_entry.host_id, 104 for host_id in host_ids: 105 request_manager.add_request(host_id=host_id)
|
H A D | rdb.py | 53 @returns: A list of RDBServerHostWrapper objects, ordered by host_id. 181 # Last payload for a host_id wins in the case of conflicting requests. 184 if unique_host_requests.get(request.host_id): 185 unique_host_requests[request.host_id].update(request.payload) 187 unique_host_requests[request.host_id] = request.payload 191 for host_id, payload in unique_host_requests.iteritems(): 192 similar_requests.setdefault(payload, []).append(host_id) 206 host_id=host, payload=payload).get_request() 219 host_ids = set([request.host_id for request in host_requests]) 227 if request.host_id i [all...] |
H A D | rdb_testing_utils.py | 46 def __init__(self, hostname, host_id, **kwargs): 47 kwargs.update({'hostname': hostname, 'id': host_id}) 120 def create_special_task(cls, job_id=None, host_id=None, 125 host_id = queue_entry.host.id 128 host = models.Host.objects.get(id=host_id) 342 deps=deps, acls=acls, host_id=None, priority=priority, 415 def assert_host_db_status(self, host_id): 422 @param host_id: Id of the host to check. 426 host = models.Host.objects.get(id=host_id) 467 def check_host_assignment(self, job_id, host_id) [all...] |
H A D | host_scheduler_unittests.py | 45 jobs_without_hosts[0].host_id is None) 94 hqes = list(self.db_helper.get_hqes(host_id=host.id)) 114 hqes = list(self.db_helper.get_hqes(host_id=host.id)) 137 hqes = list(self.db_helper.get_hqes(host_id=host.id)) 156 task2 = self.db_helper.create_special_task(host_id=host.id) 186 task = self.db_helper.create_special_task(host_id=host.id) 187 task1 = self.db_helper.create_special_task(host_id=host1.id) 201 self.assertTrue(hqe.active and hqe.host_id == host.id and 204 self.assertTrue(task.is_active == 0 and task.host_id == host.id) 219 task = self.db_helper.create_special_task(host_id [all...] |
H A D | host_scheduler.py | 12 of assignment in this case refers to the modification of the host_id 92 suite, it is a map <host_id -> suite_job_id> 128 if self.hosts_to_suites.get(queue_entry.host_id, None) == parent_id: 135 self.hosts_to_suites[queue_entry.host_id] = parent_id 232 if queue_entry.host_id is None: 234 elif host.id != queue_entry.host_id:
|
H A D | atomic_group_unittests.py | 79 'WHERE host_id in (8,9)') 183 models.IneligibleHostQueue.objects.create(job=job, host_id=5) 184 models.IneligibleHostQueue.objects.create(job=job, host_id=6) 185 models.IneligibleHostQueue.objects.create(job=job, host_id=7) 325 self._update_hqe(set='complete = 1', where='host_id=1')
|
H A D | monitor_db_unittest.py | 84 agent_or_task.hostnames = dict((host_id, '192.168.1.1') 85 for host_id in id_list) 151 'ifnull(nullif(host_id, NULL), host_id) DESC, ' 181 def _record_job_scheduled(self, job_id, host_id): 182 record = (job_id, host_id) 185 (job_id, host_id)) 189 def _assert_job_scheduled_on(self, job_id, host_id): 190 record = (job_id, host_id) 194 (job_id, host_id, sel [all...] |
H A D | query_managers.py | 28 hostless_query = 'host_id IS NULL AND meta_host IS NULL' 74 'ISNULL(host_id), ' 128 queued_tasks, 'afe_host_queue_entries', 'host_id', 130 join_from_key='host_id', force_left_join=True) 153 @return: A list of dictionaries with the hqe id, job_id and host_id 162 'host_id', flat=True)) 165 queue_entry_id__isnull=True).values_list('host_id', flat=True)) 171 'id', 'job_id', 'host_id')) 190 host_id = hqe.host_id [all...] |
H A D | scheduler_models.py | 367 _fields = ('id', 'job_id', 'host_id') 412 WHERE afe_hosts_labels.host_id = %s 466 _fields = ('id', 'job_id', 'host_id', 'status', 'meta_host', 477 if self.host_id: 478 self.host = rdb_lib.get_hosts([self.host_id])[0] 531 self.update_field('host_id', host.id) 536 self.update_field('host_id', None) 541 def block_host(self, host_id): 542 logging.info("creating block %s/%s", self.job.id, host_id) 543 row = [0, self.job.id, host_id] [all...] |
H A D | prejob_task.py | 52 in the Queued state and setting its host_id to None, so it gets a new host 134 host_id=self.queue_entry.host_id).count()
|
H A D | rdb_hosts.py | 203 self.update_request_manager.add_request(host_id=self.id,
|
/external/autotest/site_utils/ |
H A D | status_history.py | 171 def get_tasks(cls, afe, host_id, start_time, end_time): 180 @param host_id Database host id of the desired host. 190 host_id, 198 def get_status_task(cls, afe, host_id, end_time): 206 @param host_id Database host id of the desired host. 214 task = afe.get_host_status_task(host_id, query_end) 252 def get_hqes(cls, afe, host_id, start_time, end_time): 261 @param host_id Database host id of the desired host. 271 host_id=host_id, [all...] |
H A D | job_history.py | 122 It's a dictionary of host_id: TaskCache. 125 def try_get(self, host_id, job_id, start_time, end_time): 128 @param host_id: ID of the host. 136 if not host_id in self: 138 return self[host_id].try_get(job_id, start_time, end_time) 141 def update(self, host_id, start_time, end_time): 144 @param host_id: ID of the host. 151 host_id=host_id, 154 self[host_id] [all...] |
H A D | brillo_test_launcher.py | 36 'object_id=%(host_id)s') 178 moblab=moblab.web_address, host_id=afe_host.id)
|
/external/libnfc-nxp/src/ |
H A D | phHciNfc_Pipe.c | 158 (*ppPipeHandle)->pipe.source.host_id = (uint8_t) phHciNfc_TerminalHostID; 163 (*ppPipeHandle)->pipe.dest.host_id = 164 ((phHciNfc_Gate_Info_t *)destination)->host_id; 210 p_pipe_info->pipe.source.host_id = (uint8_t) phHciNfc_TerminalHostID; 215 p_pipe_info->pipe.dest.host_id = 333 id_dest.host_id = (uint8_t)phHciNfc_HostControllerID; 350 id_dest.host_id = (uint8_t)phHciNfc_HostControllerID; 368 id_dest.host_id = (uint8_t)phHciNfc_HostControllerID; 453 id_dest.host_id = (uint8_t)phHciNfc_HostControllerID; 474 id_dest.host_id [all...] |
/external/autotest/contrib/ |
H A D | compare_dut_perf.py | 75 host_id: id of the dut. 85 host_id = input['host_id'] 89 host_id=host_id, 102 host_id=host_id, 201 'host_id': host['id'],
|
H A D | compare_suite.py | 122 self.host_id = self.tko_job.machine_id 131 self.host_id = 0 349 suite_job_runtime.hosts = set([job.host_id 351 if job.host_id != 0])
|
H A D | sheriff_host_utils.py | 132 relevent_hqes = list(hqes.filter(host_id=host.id,
|
/external/autotest/frontend/afe/ |
H A D | frontend_test_utils.py | 142 for host_id in hosts: 143 models.HostQueueEntry.objects.create(job=job, host_id=host_id, 146 models.IneligibleHostQueue.objects.create(job=job, host_id=host_id)
|
H A D | rpc_interface.py | 528 host_id=host_dict['id'], active=True, complete=False) 533 host_id=host_dict['id'], is_active=True, is_complete=False) 1311 def get_host_special_tasks(host_id, **filter_data): 1315 given by `host_id` and matching the given `filter_data`. 1319 @param host_id Id in the database of the target host. 1325 host = models.Host.smart_get(host_id, False) 1327 return get_special_tasks(host_id=host_id, **filter_data) 1335 host_id=host_id, **filter_dat [all...] |
/external/autotest/server/ |
H A D | frontend.py | 329 def get_host_special_tasks(self, host_id, **data): 331 host_id=host_id, **data) 335 def get_host_status_task(self, host_id, end_time): 337 host_id=host_id, end_time=end_time) 341 def get_host_diagnosis_interval(self, host_id, end_time, success): 343 host_id=host_id, end_time=end_time,
|
/external/libnfc-nci/src/nfa/hci/ |
H A D | nfa_hci_act.c | 1383 UINT8 host_id = 0; local 1443 host_id = (UINT8) *p_data++; 1445 if ( (host_id >= NFA_HCI_HOST_ID_UICC0) 1446 &&(host_id < NFA_HCI_HOST_ID_UICC0 + NFA_HCI_MAX_HOST_IN_NETWORK) ) 1448 nfa_hci_cb.inactive_host[host_id - NFA_HCI_HOST_ID_UICC0] = 0x00; 1449 nfa_hci_cb.reset_host[host_id - NFA_HCI_HOST_ID_UICC0] = 0x00; 1552 host_id = (UINT8) *p_data++; 1554 if ( (host_id >= NFA_HCI_HOST_ID_UICC0) 1555 &&(host_id < NFA_HCI_HOST_ID_UICC0 + NFA_HCI_MAX_HOST_IN_NETWORK) ) 1557 nfa_hci_cb.inactive_host[host_id [all...] |
/external/libnfc-nci/src/nfa/int/ |
H A D | nfa_dm_int.h | 346 tNFA_DM_DISC_HOST_ID host_id; /* DH or UICC1/UICC2 */ member in struct:__anon10586 619 tNFA_HANDLE nfa_dm_add_rf_discover (tNFA_DM_DISC_TECH_PROTO_MASK disc_mask, tNFA_DM_DISC_HOST_ID host_id, tNFA_DISCOVER_CBACK *p_disc_cback);
|
H A D | nfa_hci_int.h | 474 extern BOOLEAN nfa_hciu_is_active_host (UINT8 host_id); 475 extern BOOLEAN nfa_hciu_is_host_reseting (UINT8 host_id);
|