Home
last modified time | relevance | path

Searched refs:new_state (Results 1 - 5 of 5) sorted by relevance

/test/testfwk/xdevice/src/xdevice/_core/environment/
H A Ddevice_state.py88 new_state = None
92 new_state = old_state
94 new_state = DeviceAllocationState.checking_availability
99 new_state = old_state
101 new_state = DeviceAllocationState.unknown
103 new_state = DeviceAllocationState.allocated
105 new_state = DeviceAllocationState.available
107 new_state = DeviceAllocationState.unknown
109 new_state = DeviceAllocationState.ignored
111 new_state
[all...]
H A Ddevice_monitor.py34 def state_changed(self, new_state):
35 if self.expected_state == new_state:
117 def set_state(self, new_state):
118 if not new_state:
120 self.device_state = new_state
122 listener.state_changed(new_state)
/test/testfwk/xdevice/plugins/ohos/src/ohos/managers/
H A Dmanager_device.py294 new_state = handle_allocation_event(old_state, event)
296 if new_state == DeviceAllocationState.checking_availability:
302 new_state = handle_allocation_event(new_state, event)
304 if old_state != new_state:
306 device.device_allocation_state = new_state
309 new_state == DeviceAllocationState.available:
392 new_state = TestDeviceState.get_test_device_state(idevice.device_state)
393 test_device.test_device_state = new_state
396 if new_state
[all...]
/foundation/multimedia/audio_framework/frameworks/native/pulseaudio/modules/capturer/
H A Dmodule_inner_capturer_sink.c113 static int SinkSetStateInIoThreadCb(pa_sink *s, pa_sink_state_t new_state, pa_suspend_cause_t new_suspend_cause) in SinkSetStateInIoThreadCb() argument
120 if (PA_SINK_IS_OPENED(new_state)) { in SinkSetStateInIoThreadCb()
/foundation/multimedia/audio_framework/frameworks/native/pulseaudio/modules/hdi/
H A Dmodule_split_stream_sink.c233 static int SinkSetStateInIoThreadCb(pa_sink *s, pa_sink_state_t new_state, pa_suspend_cause_t new_suspend_cause) in SinkSetStateInIoThreadCb() argument
241 if (PA_SINK_IS_OPENED(new_state)) { in SinkSetStateInIoThreadCb()

Completed in 5 milliseconds