Home
last modified time | relevance | path

Searched refs:old_state (Results 1 – 2 of 2) sorted by relevance

/test/testfwk/xdevice/src/xdevice/_core/environment/
Ddevice_state.py87 def handle_allocation_event(old_state, event): argument
91 if old_state == DeviceAllocationState.allocated:
92 new_state = old_state
98 if old_state == DeviceAllocationState.allocated:
99 new_state = old_state
/test/testfwk/xdevice/plugins/ohos/src/ohos/managers/
Dmanager_device.py272 old_state = device.device_allocation_state
273 new_state = handle_allocation_event(old_state, event)
283 if old_state != new_state: