MCPcopy
hub / github.com/zai-org/Open-AutoGLM / get_device_factory

Function get_device_factory

phone_agent/device_factory.py:157–167  ·  view source on GitHub ↗

Get the global device factory instance. Returns: The device factory instance.

()

Source from the content-addressed store, hash-verified

155
156
157def get_device_factory() -> DeviceFactory:
158 """
159 Get the global device factory instance.
160
161 Returns:
162 The device factory instance.
163 """
164 global _device_factory
165 if _device_factory is None:
166 _device_factory = DeviceFactory(DeviceType.ADB) # Default to ADB
167 return _device_factory

Callers 12

handle_device_commandsFunction · 0.90
mainFunction · 0.90
_execute_stepMethod · 0.90
_handle_launchMethod · 0.90
_handle_tapMethod · 0.90
_handle_typeMethod · 0.90
_handle_swipeMethod · 0.90
_handle_backMethod · 0.90
_handle_homeMethod · 0.90
_handle_double_tapMethod · 0.90
_handle_long_pressMethod · 0.90
_send_keyeventMethod · 0.90

Calls 1

DeviceFactoryClass · 0.85

Tested by

no test coverage detected