Lines Matching refs:service
153 for service in service_list:
155 service['connection_based'] = True
156 elif 'connection_based' not in service:
159 if 'version' not in service.keys():
160 service['version'] = 1
161 if 'version_policy' not in service.keys():
162 service['version_policy'] = 'STRICT'
165 if service['sid'] in sid_list:
166 raise Exception('Service ID: {} has duplications!'.format(service['sid']))
168 sid_list.append(service['sid'])
379 for srv_idx, service in enumerate(manifest.get('services', [])):
380 service_partition_map[service['name']] = manifest['name']
383 service['signal_value'] = (1 << (srv_idx + 4))
387 service['signal_value'] = (1 << srv_idx)
388 if service['connection_based']:
593 for service in service_list:
594 if service['connection_based'] is False:
595 collected_stateless_services.append(service)
611 for service in collected_stateless_services:
613 if 'stateless_handle' not in service:
614 auto_alloc_services.append(service)
617 service_handle = service['stateless_handle']
622 …raise Exception('Invalid stateless_handle setting: {handle}.'.format(handle=service['stateless_han…
627 …Exception('Duplicated stateless_handle setting: {handle}.'.format(handle=service['stateless_handle…
628 reordered_stateless_services[service_handle] = service
630 auto_alloc_services.append(service)
632 …raise Exception('Invalid stateless_handle setting: {handle}.'.format(handle=service['stateless_han…
643 service = reordered_stateless_services[i]
645 if service == None and len(auto_alloc_services) > 0:
646 service = auto_alloc_services.pop(0)
652 if service != None:
656 … stateless_version = (service['version'] & STATIC_HANDLE_VER_MASK) << STATIC_HANDLE_VER_OFFSET
658 service['stateless_handle_value'] = '0x{0:08x}'.format(stateless_handle_value)
659 service['stateless_handle_index'] = stateless_index
661 reordered_stateless_services[i] = service