Home | History | Annotate | Download | only in stable_images

Lines Matching refs:AFE

16     Used to specify an alternative server for the AFE RPC interface.
80 @property _afe AFE RPC object.
81 @property _version_map AFE version map object for the image type.
89 def __init__(self, afe, dry_run):
90 self._afe = afe
92 self._version_map = afe.get_stable_version_map(self.TYPE)
141 the AFE.
185 TYPE = frontend.AFE.FIRMWARE_IMAGE_TYPE
190 TYPE = frontend.AFE.CROS_IMAGE_TYPE
235 TYPE = frontend.AFE.FAFT_IMAGE_TYPE
248 def _create_version_map_handler(image_type, afe, dry_run):
249 return _IMAGE_TYPE_HANDLERS[image_type](afe, dry_run)
252 def _requested_mapping_handlers(afe, image_type):
263 @param afe AFE RPC interface object; created from SERVER.
269 yield _create_version_map_handler(image_type, afe, True)
272 yield cls(afe, True)
275 def list_all_mappings(afe, image_type):
276 """List all mappings in the AFE.
282 @param afe AFE RPC interface object; created from SERVER.
286 for handler in _requested_mapping_handlers(afe, image_type):
293 def list_mapping_by_key(afe, image_type, key):
300 @param afe AFE RPC interface object; created from SERVER.
304 for handler in _requested_mapping_handlers(afe, image_type):
329 def set_mapping(afe, image_type, key, version, dry_run):
336 @param afe AFE RPC interface object; created from SERVER.
344 handler = _create_version_map_handler(image_type, afe, dry_run)
367 def delete_mapping(afe, image_type, key, dry_run):
374 @param afe AFE RPC interface object; created from SERVER.
381 handler = _create_version_map_handler(image_type, afe, dry_run)
396 help='Specify the AFE to query.')
414 def _dispatch_command(afe, arguments):
417 delete_mapping(afe, arguments.type, arguments.key,
420 list_all_mappings(afe, arguments.type)
422 list_mapping_by_key(afe, arguments.type, arguments.key)
425 set_mapping(afe, arguments.type, arguments.key,
435 afe = frontend.AFE(server=arguments.web)
437 _dispatch_command(afe, arguments)