Home
last modified time | relevance | path

Searched refs:srvClient (Results 1 – 8 of 8) sorted by relevance

/base/customization/enterprise_device_management/services/edm_plugin/src/
Dallowed_usb_devices_plugin.cpp71 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 …]
Ddisable_usb_plugin.cpp55 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()
Dusb_read_only_plugin.cpp46 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/
Dusb_manage_interface_test.cpp53 auto &srvClient = UsbSrvClient::GetInstance(); in SetUpTestCase() local
54 auto ret = srvClient.SetPortRole(1, 1, 1); in SetUpTestCase()
Dusb_core_test.cpp51 auto &srvClient = UsbSrvClient::GetInstance(); in SetUpTestCase() local
52 auto ret = srvClient.SetPortRole( in SetUpTestCase()
Dusb_bulkcallback_test.cpp82 auto &srvClient = UsbSrvClient::GetInstance(); in SetUpTestCase() local
83 auto ret = srvClient.SetPortRole(1, 1, 1); in SetUpTestCase()
Dusb_request_test.cpp50 auto &srvClient = UsbSrvClient::GetInstance(); in SetUpTestCase() local
51 auto ret = srvClient.SetPortRole(1, 1, 1); in SetUpTestCase()
Dusb_device_pipe_test.cpp47 auto &srvClient = UsbSrvClient::GetInstance(); in SetUpTestCase() local
48 auto ret = srvClient.SetPortRole(1, 1, 1); in SetUpTestCase()