webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
webkitpy.xcode.simulated_device.SimulatedDevice Class Reference
Inheritance diagram for webkitpy.xcode.simulated_device.SimulatedDevice:
webkitpy.xcode.device.Device

Public Member Functions

def __init__ (self, name, udid, available, runtime, host)
 
def state (self)
 
def path (self)
 
def create (cls, name, device_type, runtime)
 
def shutdown (cls, udid)
 
def delete (cls, udid)
 
def reset (cls, udid)
 
def install_app (self, app_path, env=None)
 
def launch_app (self, bundle_id, args, env=None, attempts=3)
 
def __repr__ (self)
 
- Public Member Functions inherited from webkitpy.xcode.device.Device
def __init__ (self, name, udid, host)
 
def install_app (self, app_path, env=None)
 
def launch_app (self, bundle_id, args, env=None)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __repr__ (self)
 

Public Attributes

 available
 
 runtime
 
- Public Attributes inherited from webkitpy.xcode.device.Device
 name
 
 udid
 

Detailed Description

Represents a CoreSimulator device underneath a runtime

Constructor & Destructor Documentation

◆ __init__()

def webkitpy.xcode.simulated_device.SimulatedDevice.__init__ (   self,
  name,
  udid,
  available,
  runtime,
  host 
)
:param name: The device name
:type name: str
:param udid: The device UDID (a UUID string)
:type udid: str
:param available: Whether the device is available for use.
:type available: bool
:param runtime: The iOS Simulator runtime that hosts this device
:type runtime: Runtime
:param host: The host which can run command line commands
:type host: Host

Member Function Documentation

◆ __repr__()

def webkitpy.xcode.simulated_device.SimulatedDevice.__repr__ (   self)

◆ create()

def webkitpy.xcode.simulated_device.SimulatedDevice.create (   cls,
  name,
  device_type,
  runtime 
)
Create a new CoreSimulator device.
:param name: The name of the device.
:type name: str
:param device_type: The CoreSimulatort device type.
:type device_type: DeviceType
:param runtime:  The CoreSimualtor runtime.
:type runtime: Runtime
:return: The new device or raises a CalledProcessError if ``simctl create`` failed.
:rtype: Device

◆ delete()

def webkitpy.xcode.simulated_device.SimulatedDevice.delete (   cls,
  udid 
)
Delete the given CoreSimulator device.
:param udid: The udid of the device.
:type udid: str

◆ install_app()

def webkitpy.xcode.simulated_device.SimulatedDevice.install_app (   self,
  app_path,
  env = None 
)

◆ launch_app()

def webkitpy.xcode.simulated_device.SimulatedDevice.launch_app (   self,
  bundle_id,
  args,
  env = None,
  attempts = 3 
)

◆ path()

def webkitpy.xcode.simulated_device.SimulatedDevice.path (   self)
:returns: The filesystem path that contains the simulator device's data.
:rtype: str

◆ reset()

def webkitpy.xcode.simulated_device.SimulatedDevice.reset (   cls,
  udid 
)
Reset the given CoreSimulator device.
:param udid: The udid of the device.
:type udid: str

◆ shutdown()

def webkitpy.xcode.simulated_device.SimulatedDevice.shutdown (   cls,
  udid 
)
Shut down the given CoreSimulator device.
:param udid: The udid of the device.
:type udid: str

◆ state()

def webkitpy.xcode.simulated_device.SimulatedDevice.state (   self)
:returns: The current state of the device.
:rtype: Simulator.DeviceState

Member Data Documentation

◆ available

webkitpy.xcode.simulated_device.SimulatedDevice.available

◆ runtime

webkitpy.xcode.simulated_device.SimulatedDevice.runtime

The documentation for this class was generated from the following file: