Searched refs:DeviceEvent (Results 1 – 6 of 6) sorted by relevance
66 class DeviceEvent(Enum): class89 if event == DeviceEvent.CONNECTED_ONLINE \90 or event == DeviceEvent.STATE_CHANGE_ONLINE:95 elif event == DeviceEvent.CONNECTED_OFFLINE \96 or event == DeviceEvent.STATE_CHANGE_OFFLINE \97 or event == DeviceEvent.DISCONNECTED:102 elif event == DeviceEvent.ALLOCATE_REQUEST:104 elif event == DeviceEvent.FREE_AVAILABLE:106 elif event == DeviceEvent.FREE_UNAVAILABLE:108 elif event == DeviceEvent.AVAILABLE_CHECK_IGNORED:[all …]
33 from xdevice import DeviceEvent158 DeviceEvent.ALLOCATE_REQUEST)173 self.handle_device_event(device, DeviceEvent.FREE_AVAILABLE)175 self.handle_device_event(device, DeviceEvent.FREE_UNAVAILABLE)278 event = DeviceEvent.AVAILABLE_CHECK_IGNORED280 event = DeviceEvent.AVAILABLE_CHECK_PASSED352 DeviceEvent.STATE_CHANGE_ONLINE)355 DeviceEvent.STATE_CHANGE_OFFLINE)371 DeviceEvent.CONNECTED_ONLINE)374 DeviceEvent.CONNECTED_OFFLINE)[all …]
21 int32_t UsbSubscriberTest::DeviceEvent(const USBDeviceInfo &info) in DeviceEvent() function in OHOS::USB::UsbSubscriberTest
37 int32_t DeviceEvent(const USBDeviceInfo &info) override;
110 auto ret = subscriber_->DeviceEvent(info); in SubscriberDeviceEvent()
129 from _core.environment.device_state import DeviceEvent