Home
last modified time | relevance | path

Searched refs:device_state (Results 1 – 6 of 6) sorted by relevance

/test/testfwk/xdevice/src/xdevice/_core/environment/
Ddevice_state.py32 def get_test_device_state(device_state): argument
33 if device_state is None:
35 elif device_state == DeviceState.ONLINE:
37 elif device_state == DeviceState.CONNECTED:
39 elif device_state == DeviceState.OFFLINE:
41 elif device_state == DeviceState.RECOVERY:
43 elif device_state == DeviceState.BOOTLOADER:
59 for device_state in DeviceState:
60 if device_state.value == state.lower():
61 return device_state
Ddevice_monitor.py22 from _core.environment.device_state import TestDeviceState
50 self.device_state = device.test_device_state
57 if self.device_state == state:
70 return self.device_state == state
119 self.device_state = new_state
Dmanager_env.py29 from _core.environment.device_state import DeviceAllocationState
/test/testfwk/xdevice/src/xdevice/
D__init__.py129 from _core.environment.device_state import DeviceEvent
130 from _core.environment.device_state import TestDeviceState
131 from _core.environment.device_state import DeviceState
132 from _core.environment.device_state import \
134 from _core.environment.device_state import \
/test/testfwk/xdevice/plugins/ohos/src/ohos/managers/
Dmanager_device.py237 device_instance.device_state = idevice.device_state
240 device_instance.device_state)
243 if idevice.device_state == DeviceState.ONLINE or \
244 idevice.device_state == DeviceState.CONNECTED:
348 new_state = TestDeviceState.get_test_device_state(idevice.device_state)
367 new_state = TestDeviceState.get_test_device_state(idevice.device_state)
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/
Ddmlib.py147 local_device1.device_state = DeviceState.OFFLINE
238 device_instance.device_state = DeviceState.get_state(items[3])
251 if local_device1.device_state != \
252 local_device2.device_state:
253 local_device1.device_state = local_device2.device_state