Home
last modified time | relevance | path

Searched refs:pipe (Results 1 – 25 of 87) sorted by relevance

1234

/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_bulkcallback_test.cpp124 USBDevicePipe pipe; variable
127 ret = UsbSrvClient.OpenDevice(device, pipe);
135 ret = UsbSrvClient.ClaimInterface(pipe, interface, true);
139 ret = UsbSrvClient.RegBulkCallback(pipe, point, cb);
143 ret = UsbSrvClient.UnRegBulkCallback(pipe, point);
147 bool close = UsbSrvClient.Close(pipe);
172 USBDevicePipe pipe; variable
175 ret = UsbSrvClient.OpenDevice(device, pipe);
183 ret = UsbSrvClient.ClaimInterface(pipe, interface, true);
187 ret = UsbSrvClient.RegBulkCallback(pipe, point, cb);
[all …]
Dusb_device_pipe_test.cpp87 USBDevicePipe pipe; variable
90 ret = UsbSrvClient.OpenDevice(device, pipe);
93 ret = UsbSrvClient.Close(pipe);
118 USBDevicePipe pipe; variable
120 ret = UsbSrvClient.OpenDevice(device, pipe);
124 ret = UsbSrvClient.Close(pipe);
146 USBDevicePipe pipe; variable
149 ret = UsbSrvClient.OpenDevice(device, pipe);
157 ret = UsbSrvClient.ControlTransfer(pipe, ctrldata, ctrlbuffer);
161 ret = UsbSrvClient.Close(pipe);
[all …]
/base/usb/usb_manager/interfaces/innerkits/native/src/
Dusb_srv_client.cpp85 int32_t UsbSrvClient::OpenDevice(const UsbDevice &device, USBDevicePipe &pipe) in OpenDevice() argument
95 pipe.SetBusNum(device.GetBusNum()); in OpenDevice()
96 pipe.SetDevAddr(device.GetDevAddr()); in OpenDevice()
211 int32_t UsbSrvClient::ClaimInterface(USBDevicePipe &pipe, const UsbInterface &interface, bool force) in ClaimInterface() argument
214 …int32_t ret = proxy_->ClaimInterface(pipe.GetBusNum(), pipe.GetDevAddr(), interface.GetId(), force… in ClaimInterface()
221 int32_t UsbSrvClient::ReleaseInterface(USBDevicePipe &pipe, const UsbInterface &interface) in ReleaseInterface() argument
224 int32_t ret = proxy_->ReleaseInterface(pipe.GetBusNum(), pipe.GetDevAddr(), interface.GetId()); in ReleaseInterface()
232 …USBDevicePipe &pipe, const USBEndpoint &endpoint, std::vector<uint8_t> &bufferData, int32_t timeOu… in BulkTransfer() argument
236 const UsbDev tdev = {pipe.GetBusNum(), pipe.GetDevAddr()}; in BulkTransfer()
250 USBDevicePipe &pipe, const UsbCtrlTransfer &ctrl, std::vector<uint8_t> &bufferData) in ControlTransfer() argument
[all …]
/base/usb/usb_manager/test/native/mock/src/
Dusb_bulkcallback_mock_test.cpp166 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; variable
168 auto ret = usbSrv_->RegBulkCallback(dev_, pipe, cb);
173 ret = usbSrv_->UnRegBulkCallback(dev_, pipe);
189 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; variable
191 auto ret = usbSrv_->RegBulkCallback(dev_, pipe, cb);
196 ret = usbSrv_->UnRegBulkCallback(dev_, pipe);
212 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; variable
216 auto ret = usbSrv_->RegBulkCallback(dev_, pipe, cb);
221 ret = usbSrv_->UnRegBulkCallback(dev_, pipe);
239 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; variable
[all …]
Dusb_request_mock_test.cpp130 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; variable
134 auto ret = usbSrv_->RequestQueue(dev_, pipe, cmdData, bufferData);
148 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; variable
152 auto ret = usbSrv_->RequestQueue(dev_, pipe, cmdData, dataBuffer);
166 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; variable
172 auto ret = usbSrv_->RequestQueue(dev_, pipe, cmdData, bufferData);
188 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; variable
194 auto ret = usbSrv_->RequestQueue(dev_, pipe, cmdData, bufferData);
210 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; variable
216 auto ret = usbSrv_->RequestQueue(dev_, pipe, cmdData, dataBuffer);
[all …]
/base/usb/usb_manager/interfaces/kits/js/
D@ohos.usbManager.d.ts185 function claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number;
196 function releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number;
208 function setConfiguration(pipe: USBDevicePipe, config: USBConfiguration): number;
220 function setInterface(pipe: USBDevicePipe, iface: USBInterface): number;
231 function getRawDescriptor(pipe: USBDevicePipe): Uint8Array;
242 function getFileDescriptor(pipe: USBDevicePipe): number;
255 …function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): P…
269 function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,
281 function closePipe(pipe: USBDevicePipe): number;
/base/usb/usb_manager/test/fuzztest/common/src/
Dusb_common_fuzz.cpp33 USBDevicePipe pipe; in UsbMgrPrepareFuzzEnv() local
36 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrPrepareFuzzEnv()
43 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrPrepareFuzzEnv()
46 usbSrvClient.Close(pipe); in UsbMgrPrepareFuzzEnv()
50 return {true, pipe, interface}; in UsbMgrPrepareFuzzEnv()
/base/notification/eventhandler/frameworks/test/moduletest/
Devent_handler_fd_listener_module_test.cpp141 int32_t pipe = pipe2(fds, O_NONBLOCK); variable
142 EXPECT_GE(pipe, 0);
193 int32_t pipe = pipe2(fds, O_NONBLOCK); variable
194 EXPECT_GE(pipe, 0);
218 int32_t pipe = pipe2(fds, O_NONBLOCK); variable
219 EXPECT_GE(pipe, 0);
241 int32_t pipe = pipe2(fds, O_NONBLOCK); variable
242 EXPECT_GE(pipe, 0);
264 int32_t pipe = pipe2(fds, O_NONBLOCK); variable
265 EXPECT_GE(pipe, 0);
[all …]
/base/usb/usb_manager/test/native/mock/include/
Dusb_impl_mock.h72 …BulkTransferRead, int32_t(const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, std::vector<uin…
74 …int32_t(const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, const std::vector<uint8_t> &data)…
80 … int32_t(const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, std::vector<uint8_t> &data));
82 …int32_t(const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, const std::vector<uint8_t> &data)…
84 …IsoTransferRead, int32_t(const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, std::vector<uint…
86 …int32_t(const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, const std::vector<uint8_t> &data)…
88 int32_t(const UsbDev &dev, const UsbPipe &pipe, const std::vector<uint8_t> &clientData,
92 MOCK_METHOD2(RequestCancel, int32_t(const UsbDev &dev, const UsbPipe &pipe));
95 …MOCK_METHOD3(RegBulkCallback, int32_t(const UsbDev &dev, const UsbPipe &pipe, const sptr<IUsbdBulk…
96 MOCK_METHOD2(UnRegBulkCallback, int32_t(const UsbDev &dev, const UsbPipe &pipe));
[all …]
/base/usb/usb_manager/interfaces/innerkits/native/include/
Diusb_srv.h43 …al int32_t BulkTransferRead(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe,
45 …l int32_t BulkTransferWrite(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe,
54 …irtual int32_t RequestQueue(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe,
61 …int32_t RegBulkCallback(const HDI::Usb::V1_0::UsbDev &devInfo, const HDI::Usb::V1_0::UsbPipe &pipe,
63 … UnRegBulkCallback(const HDI::Usb::V1_0::UsbDev &devInfo, const HDI::Usb::V1_0::UsbPipe &pipe) = 0;
64 …irtual int32_t BulkRead(const HDI::Usb::V1_0::UsbDev &devInfo, const HDI::Usb::V1_0::UsbPipe &pipe,
66 …rtual int32_t BulkWrite(const HDI::Usb::V1_0::UsbDev &devInfo, const HDI::Usb::V1_0::UsbPipe &pipe,
68 …int32_t BulkCancel(const HDI::Usb::V1_0::UsbDev &devInfo, const HDI::Usb::V1_0::UsbPipe &pipe) = 0;
Dusb_request.h29 int32_t Initialize(const USBDevicePipe &pipe, const USBEndpoint &endpoint);
33 void SetPipe(const USBDevicePipe &pipe) in SetPipe() argument
35 this->pipe_ = pipe; in SetPipe()
/base/usb/usb_manager/test/fuzztest/usbmgrrequestfree_fuzzer/
Dusbmgrrequestfree_fuzzer.cpp33 USBDevicePipe pipe; in UsbMgrRequestFreeFuzzTest() local
36 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrRequestFreeFuzzTest()
43 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrRequestFreeFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrrequestqueue_fuzzer/
Dusbmgrrequestqueue_fuzzer.cpp33 USBDevicePipe pipe; in UsbMgrRequestQueueFuzzTest() local
36 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrRequestQueueFuzzTest()
43 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrRequestQueueFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrsetinterface_fuzzer/
Dusbmgrsetinterface_fuzzer.cpp33 USBDevicePipe pipe; in UsbMgrSetInterfaceFuzzTest() local
36 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrSetInterfaceFuzzTest()
43 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrSetInterfaceFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrpiperequestwait_fuzzer/
Dusbmgrpiperequestwait_fuzzer.cpp33 USBDevicePipe pipe; in UsbMgrPipeRequestWaitFuzzTest() local
36 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrPipeRequestWaitFuzzTest()
43 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrPipeRequestWaitFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrreleaseinterface_fuzzer/
Dusbmgrreleaseinterface_fuzzer.cpp33 USBDevicePipe pipe; in UsbMgrReleaseInterfaceFuzzTest() local
36 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrReleaseInterfaceFuzzTest()
43 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrReleaseInterfaceFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrcontroltransfer_fuzzer/
Dusbmgrcontroltransfer_fuzzer.cpp33 USBDevicePipe pipe; in UsbMgrControlTransferFuzzTest() local
36 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrControlTransferFuzzTest()
43 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrControlTransferFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrbulktransfer_fuzzer/
Dusbmgrbulktransfer_fuzzer.cpp33 USBDevicePipe pipe; in UsbMgrBulkTransferFuzzTest() local
36 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrBulkTransferFuzzTest()
43 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrBulkTransferFuzzTest()
/base/usb/usb_manager/services/zidl/include/
Dusb_server_proxy.h50 int32_t BulkTransferRead(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe,
52 … int32_t BulkTransferWrite(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe,
62 int32_t RequestQueue(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe,
69 int32_t RegBulkCallback(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe,
71 …UnRegBulkCallback(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe) override;
72 int32_t BulkRead(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe,
74 int32_t BulkWrite(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe,
76 …int32_t BulkCancel(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe) overrid…
/base/usb/usb_manager/test/fuzztest/usbmgrregbulkcallback_fuzzer/
Dusbmgrregbulkcallback_fuzzer.cpp27 auto[res, pipe, interface] = UsbMgrPrepareFuzzEnv(); in UsbMgrRegBulkCallbackFuzzTest()
28 (void)pipe; in UsbMgrRegBulkCallbackFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrbulkcancel_fuzzer/
Dusbmgrbulkcancel_fuzzer.cpp56 auto[res, pipe, interface] = UsbMgrPrepareFuzzEnv(); in UsbMgrBulkCancelFuzzTest()
65 auto ret = usbSrvClient.RegBulkCallback(const_cast<USBDevicePipe &>(pipe), point, cb); in UsbMgrBulkCancelFuzzTest()
77 ret = usbSrvClient.BulkWrite(const_cast<USBDevicePipe &>(pipe), point, sharedMem); in UsbMgrBulkCancelFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrunregbulkcallback_fuzzer/
Dusbmgrunregbulkcallback_fuzzer.cpp28 auto[res, pipe, interface] = UsbMgrPrepareFuzzEnv(); in UsbMgrUnRegBulkCallbackFuzzTest()
37 …const_cast<USBDevicePipe &>(pipe), const_cast<UsbInterface &>(interface).GetEndpoints().at(1), cb); in UsbMgrUnRegBulkCallbackFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrbulkwrite_fuzzer/
Dusbmgrbulkwrite_fuzzer.cpp27 auto[res, pipe, interface] = UsbMgrPrepareFuzzEnv(); in UsbMgrBulkWriteFuzzTest()
36 …const_cast<USBDevicePipe &>(pipe), const_cast<UsbInterface &>(interface).GetEndpoints().at(1), cb); in UsbMgrBulkWriteFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrbulkread_fuzzer/
Dusbmgrbulkread_fuzzer.cpp27 auto[res, pipe, interface] = UsbMgrPrepareFuzzEnv(); in UsbMgrBulkReadFuzzTest()
36 …const_cast<USBDevicePipe &>(pipe), const_cast<UsbInterface &>(interface).GetEndpoints().at(1), cb); in UsbMgrBulkReadFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrrequestinitialize_fuzzer/
Dusbmgrrequestinitialize_fuzzer.cpp33 USBDevicePipe pipe; in UsbMgrRequestInitializeFuzzTest() local
36 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrRequestInitializeFuzzTest()

1234