Searched refs:srvClient (Results 1 – 8 of 8) sorted by relevance
/base/customization/enterprise_device_management/services/edm_plugin/src/ |
D | allowed_usb_devices_plugin.cpp | 71 auto &srvClient = OHOS::USB::UsbSrvClient::GetInstance(); in OnSetPolicy() local 73 int32_t getRet = srvClient.GetDevices(allDevices); in OnSetPolicy() 82 if (srvClient.ManageDevice(item.GetVendorId(), item.GetProductId(), !isAllowed) != ERR_OK) { in OnSetPolicy() 102 auto &srvClient = OHOS::USB::UsbSrvClient::GetInstance(); in OnRemovePolicy() local 104 int32_t getRet = srvClient.GetDevices(allDevices); in OnRemovePolicy() 111 … if (srvClient.ManageDevice(usbDevice.GetVendorId(), usbDevice.GetProductId(), false) != ERR_OK) { in OnRemovePolicy() 120 auto &srvClient = OHOS::USB::UsbSrvClient::GetInstance(); in OnRemovePolicy() local 122 …if (srvClient.ManageDevice(usbDeviceId.GetVendorId(), usbDeviceId.GetProductId(), true) != ERR_OK)… in OnRemovePolicy() 157 auto &srvClient = OHOS::USB::UsbSrvClient::GetInstance(); in OnAdminRemove() local 158 int32_t getRet = srvClient.GetDevices(allDevices); in OnAdminRemove() [all …]
|
D | disable_usb_plugin.cpp | 55 auto &srvClient = OHOS::USB::UsbSrvClient::GetInstance(); in OnSetPolicy() local 56 int32_t usbRet = srvClient.ManageGlobalInterface(data); in OnSetPolicy() 81 auto &srvClient = OHOS::USB::UsbSrvClient::GetInstance(); in OnAdminRemove() local 82 int32_t usbRet = srvClient.ManageGlobalInterface(!data); in OnAdminRemove()
|
D | usb_read_only_plugin.cpp | 46 auto &srvClient = OHOS::USB::UsbSrvClient::GetInstance(); in SetPolicy() local 61 … int32_t usbRet = srvClient.ManageInterfaceType(OHOS::USB::InterfaceType::TYPE_STORAGE, true); in SetPolicy() 73 usbRet = srvClient.ManageInterfaceType(OHOS::USB::InterfaceType::TYPE_STORAGE, false); in SetPolicy() 101 auto &srvClient = OHOS::USB::UsbSrvClient::GetInstance(); in OnAdminRemove() local 102 … int32_t usbRet = srvClient.ManageInterfaceType(OHOS::USB::InterfaceType::TYPE_STORAGE, false); in OnAdminRemove()
|
/base/usb/usb_manager/test/native/service_unittest/src/ |
D | usb_manage_interface_test.cpp | 53 auto &srvClient = UsbSrvClient::GetInstance(); in SetUpTestCase() local 54 auto ret = srvClient.SetPortRole(1, 1, 1); in SetUpTestCase()
|
D | usb_core_test.cpp | 51 auto &srvClient = UsbSrvClient::GetInstance(); in SetUpTestCase() local 52 auto ret = srvClient.SetPortRole( in SetUpTestCase()
|
D | usb_bulkcallback_test.cpp | 82 auto &srvClient = UsbSrvClient::GetInstance(); in SetUpTestCase() local 83 auto ret = srvClient.SetPortRole(1, 1, 1); in SetUpTestCase()
|
D | usb_request_test.cpp | 50 auto &srvClient = UsbSrvClient::GetInstance(); in SetUpTestCase() local 51 auto ret = srvClient.SetPortRole(1, 1, 1); in SetUpTestCase()
|
D | usb_device_pipe_test.cpp | 47 auto &srvClient = UsbSrvClient::GetInstance(); in SetUpTestCase() local 48 auto ret = srvClient.SetPortRole(1, 1, 1); in SetUpTestCase()
|