Lines Matching refs:stc
19 from autotest_lib.server.cros.servo.topology import topology_constants as stc unknown
62 b64_val = host_info.get_label_value(stc.SERVO_TOPOLOGY_LABEL_PREFIX)
83 prev_value = host_info.get_label_value(stc.SERVO_TOPOLOGY_LABEL_PREFIX)
88 host_info.set_version_label(stc.SERVO_TOPOLOGY_LABEL_PREFIX, data)
120 if not new_st or not new_st.get(stc.ST_DEVICE_MAIN):
123 children = new_st.get(stc.ST_DEVICE_CHILDREN)
128 children_types = [c.get(stc.ST_DEVICE_TYPE) for c in children]
131 if stc.ST_CR50_TYPE not in children_types:
132 return self._missing_servo_error(stc.ST_CR50_TYPE, raise_error)
137 main_device = new_st.get(stc.ST_DEVICE_MAIN)
139 old_main = t.get(stc.ST_DEVICE_MAIN)
140 old_children = t.get(stc.ST_DEVICE_CHILDREN)
144 old_main.get(stc.ST_DEVICE_HUB_PORT),
152 old_type = child.get(stc.ST_DEVICE_TYPE)
176 for field in stc.SERVO_TOPOLOGY_ITEM_COMPARE_FIELDS:
211 core_device_port = main_device.get(stc.ST_DEVICE_HUB_PORT)
222 if core_device_port == child.get(stc.ST_DEVICE_HUB_PORT):
227 stc.ST_DEVICE_MAIN: main_device,
228 stc.ST_DEVICE_CHILDREN: children
239 if bool(stc.ST_PRODUCT_TYPES.get(product)):
252 stype = stc.ST_PRODUCT_TYPES.get(product)
267 stc.ST_DEVICE_SERIAL: servo_serial,
268 stc.ST_DEVICE_TYPE: servo_type,
269 stc.ST_DEVICE_PRODUCT: product,
270 stc.ST_DEVICE_HUB_PORT: hub_path