Home
last modified time | relevance | path

Searched refs:UsbSrvClient (Results 1 – 25 of 37) sorted by relevance

12

/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_core_test.cpp46 auto &srvClient = UsbSrvClient::GetInstance(); in SetUpTestCase()
74 auto &instance = UsbSrvClient::GetInstance();
90 auto &instance = UsbSrvClient::GetInstance();
105 auto &instance = UsbSrvClient::GetInstance();
120 auto &instance = UsbSrvClient::GetInstance();
135 auto &instance = UsbSrvClient::GetInstance();
150 auto &instance = UsbSrvClient::GetInstance();
165 auto &instance = UsbSrvClient::GetInstance();
180 auto &instance = UsbSrvClient::GetInstance();
195 auto &instance = UsbSrvClient::GetInstance();
[all …]
Dusb_bulkcallback_test.cpp78 auto &srvClient = UsbSrvClient::GetInstance(); in SetUpTestCase()
115 auto &UsbSrvClient = UsbSrvClient::GetInstance(); variable
116 auto ret = UsbSrvClient.GetDevices(devi);
123 UsbSrvClient.RequestRight(device.GetName());
124 ret = UsbSrvClient.OpenDevice(device, pipe);
132 ret = UsbSrvClient.ClaimInterface(pipe, interface, true);
136 ret = UsbSrvClient.RegBulkCallback(pipe, point, cb);
140 ret = UsbSrvClient.UnRegBulkCallback(pipe, point);
144 bool close = UsbSrvClient.Close(pipe);
163 auto &UsbSrvClient = UsbSrvClient::GetInstance(); variable
[all …]
Dusb_device_pipe_test.cpp42 auto &srvClient = UsbSrvClient::GetInstance(); in SetUpTestCase()
77 auto &UsbSrvClient = UsbSrvClient::GetInstance(); variable
78 auto ret = UsbSrvClient.GetDevices(devi);
86 UsbSrvClient.RequestRight(device.GetName());
87 ret = UsbSrvClient.OpenDevice(device, pipe);
90 ret = UsbSrvClient.Close(pipe);
106 auto &UsbSrvClient = UsbSrvClient::GetInstance(); variable
108 auto ret = UsbSrvClient.GetDevices(deviceList);
116 UsbSrvClient.RequestRight(device.GetName());
117 ret = UsbSrvClient.OpenDevice(device, pipe);
[all …]
Dusb_request_test.cpp46 auto &srvClient = UsbSrvClient::GetInstance(); in SetUpTestCase()
79 auto &UsbSrvClient = UsbSrvClient::GetInstance(); variable
80 auto ret = UsbSrvClient.GetDevices(delist);
86 UsbSrvClient.RequestRight(device.GetName());
88 ret = UsbSrvClient.OpenDevice(device, pip);
94 ret = UsbSrvClient.ClaimInterface(pip, interface, true);
106 bool close = UsbSrvClient.Close(pip);
122 auto &UsbSrvClient = UsbSrvClient::GetInstance(); variable
123 auto ret = UsbSrvClient.GetDevices(delist);
129 UsbSrvClient.RequestRight(device.GetName());
[all …]
/base/usb/usb_manager/interfaces/innerkits/native/src/
Dusb_srv_client.cpp30 UsbSrvClient::UsbSrvClient() in UsbSrvClient() function in OHOS::USB::UsbSrvClient
34 UsbSrvClient::~UsbSrvClient() {} in ~UsbSrvClient()
36 int32_t UsbSrvClient::Connect() in Connect()
64 void UsbSrvClient::ResetProxy(const wptr<IRemoteObject> &remote) in ResetProxy()
75 void UsbSrvClient::UsbSrvDeathRecipient::OnRemoteDied(const wptr<IRemoteObject> &remote) in OnRemoteDied()
81 UsbSrvClient::GetInstance().ResetProxy(remote); in OnRemoteDied()
85 int32_t UsbSrvClient::OpenDevice(const UsbDevice &device, USBDevicePipe &pipe) in OpenDevice()
100 bool UsbSrvClient::HasRight(std::string deviceName) in HasRight()
107 int32_t UsbSrvClient::RequestRight(std::string deviceName) in RequestRight()
117 int32_t UsbSrvClient::RemoveRight(std::string deviceName) in RemoveRight()
[all …]
Dusb_device_pipe.cpp36 bool bSuccess = UsbSrvClient::GetInstance().Close(*this); in Close()
45 return UsbSrvClient::GetInstance().ClaimInterface(*this, interface, force); in ClaimInterface()
50 return UsbSrvClient::GetInstance().ReleaseInterface(*this, interface); in ReleaseInterface()
55 return UsbSrvClient::GetInstance().BulkTransfer(*this, endpoint, bufferData, timeOut); in BulkTransfer()
60 return UsbSrvClient::GetInstance().ControlTransfer(*this, ctrl, bufferData); in ControlTransfer()
65 return UsbSrvClient::GetInstance().SetConfiguration(*this, config); in SetConfiguration()
70 return UsbSrvClient::GetInstance().SetInterface(*this, interface); in SetInterface()
Dusb_request.cpp26 int32_t ret = UsbSrvClient::GetInstance().RequestInitialize(*this); in Initialize()
35 int32_t ret = UsbSrvClient::GetInstance().RequestQueue(*this); in Queue()
44 int32_t ret = UsbSrvClient::GetInstance().RequestFree(*this); in Free()
53 int32_t ret = UsbSrvClient::GetInstance().RequestAbort(*this); in Abort()
/base/usb/usb_manager/test/tool/
Dusb_function_port_test.cpp31 static UsbSrvClient &g_usbClient = UsbSrvClient::GetInstance();
65 static void FunctionSwitch(UsbSrvClient &g_usbClient, int32_t mode) in FunctionSwitch()
98 static void PortSwitch(UsbSrvClient &g_usbClient, int32_t mode) in PortSwitch()
/base/usb/usb_manager/interfaces/innerkits/native/include/
Dusb_srv_client.h40 class UsbSrvClient final : public DelayedRefSingleton<UsbSrvClient> {
41 DECLARE_DELAYED_REF_SINGLETON(UsbSrvClient)
44 DISALLOW_COPY_AND_MOVE(UsbSrvClient);
/base/usb/usb_manager/test/fuzztest/usbmgrrequestright_fuzzer/
Dusbmgrrequestright_fuzzer.cpp25 auto &usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrRequestRightFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrusbfunctionsfromstring_fuzzer/
Dusbmgrusbfunctionsfromstring_fuzzer.cpp25 auto &usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrUsbFunctionsFromStringFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrsetportrole_fuzzer/
Dusbmgrsetportrole_fuzzer.cpp25 auto &usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrSetPortRoleFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrgetsupportedmodes_fuzzer/
Dusbmgrgetsupportedmodes_fuzzer.cpp25 auto &usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrGetSupportedModesFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrusbfunctionstostring_fuzzer/
Dusbmgrusbfunctionstostring_fuzzer.cpp29 auto &usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrUsbFunctionsToStringFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrsetcurrentfunctions_fuzzer/
Dusbmgrsetcurrentfunctions_fuzzer.cpp29 auto &usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrSetCurrentFunctionsFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrregbulkcallback_fuzzer/
Dusbmgrregbulkcallback_fuzzer.cpp35 … int32_t ret = UsbSrvClient::GetInstance().RegBulkCallback(reinterpret_cast<USBDevicePipe &>(data), in UsbMgrRegBulkCallbackFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrhasright_fuzzer/
Dusbmgrhasright_fuzzer.cpp25 auto &usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrHasRightFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrremoveright_fuzzer/
Dusbmgrremoveright_fuzzer.cpp25 auto &usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrRemoveRightFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrbulkread_fuzzer/
Dusbmgrbulkread_fuzzer.cpp33 auto& usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrBulkReadFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrbulkwrite_fuzzer/
Dusbmgrbulkwrite_fuzzer.cpp33 auto& usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrBulkWriteFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrunregbulkcallback_fuzzer/
Dusbmgrunregbulkcallback_fuzzer.cpp34 auto& usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrUnRegBulkCallbackFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrrequestinitialize_fuzzer/
Dusbmgrrequestinitialize_fuzzer.cpp26 auto &usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrRequestInitializeFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrclose_fuzzer/
Dusbmgrclose_fuzzer.cpp26 auto &usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrCloseFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrclaiminterface_fuzzer/
Dusbmgrclaiminterface_fuzzer.cpp26 auto &usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrClaimInterfaceFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrsetconfiguration_fuzzer/
Dusbmgrsetconfiguration_fuzzer.cpp26 auto &usbSrvClient = UsbSrvClient::GetInstance(); in UsbMgrSetConfigurationFuzzTest()

12