Home
last modified time | relevance | path

Searched refs:pipe (Results 1 - 25 of 62) sorted by relevance

123

/base/usb/usb_manager/test/native/service_unittest/src/
H A Dusb_bulkcallback_test.cpp111 * @tc.desc: Test functions to int32_t RegBulkCallback(const UsbDev &devInfo, const UsbPipe &pipe, const
126 USBDevicePipe pipe; in HWTEST_F() local
129 ret = UsbSrvClient.OpenDevice(device, pipe); in HWTEST_F()
137 ret = UsbSrvClient.ClaimInterface(pipe, interface, true); in HWTEST_F()
141 ret = UsbSrvClient.RegBulkCallback(pipe, point, cb); in HWTEST_F()
145 ret = UsbSrvClient.UnRegBulkCallback(pipe, point); in HWTEST_F()
149 bool close = UsbSrvClient.Close(pipe); in HWTEST_F()
158 * @tc.desc: Test functions to int32_t RegBulkCallback(const UsbDev &devInfo, const UsbPipe &pipe, const
174 USBDevicePipe pipe; in HWTEST_F() local
177 ret = UsbSrvClient.OpenDevice(device, pipe); in HWTEST_F()
222 USBDevicePipe pipe; HWTEST_F() local
272 USBDevicePipe pipe; HWTEST_F() local
322 USBDevicePipe pipe; HWTEST_F() local
372 USBDevicePipe pipe; HWTEST_F() local
423 USBDevicePipe pipe; HWTEST_F() local
477 USBDevicePipe pipe; HWTEST_F() local
531 USBDevicePipe pipe; HWTEST_F() local
587 USBDevicePipe pipe; HWTEST_F() local
643 USBDevicePipe pipe; HWTEST_F() local
697 USBDevicePipe pipe; HWTEST_F() local
753 USBDevicePipe pipe; HWTEST_F() local
808 USBDevicePipe pipe; HWTEST_F() local
864 USBDevicePipe pipe; HWTEST_F() local
919 USBDevicePipe pipe; HWTEST_F() local
963 USBDevicePipe pipe; HWTEST_F() local
1011 USBDevicePipe pipe; HWTEST_F() local
[all...]
H A Dusb_device_status_test.cpp94 USBDevicePipe pipe; in HWTEST_F() local
97 ret = UsbSrvClient.OpenDevice(device, pipe); in HWTEST_F()
102 ret = UsbSrvClient.GetDeviceSpeed(pipe, speed); in HWTEST_F()
108 ret = UsbSrvClient.Close(pipe); in HWTEST_F()
130 USBDevicePipe pipe; in HWTEST_F() local
133 ret = UsbSrvClient.OpenDevice(device, pipe); in HWTEST_F()
137 USBDevicePipe pipeTmp = pipe; in HWTEST_F()
146 pipe.SetBusNum(device.GetBusNum()); in HWTEST_F()
147 ret = UsbSrvClient.Close(pipe); in HWTEST_F()
169 USBDevicePipe pipe; in HWTEST_F() local
208 USBDevicePipe pipe; HWTEST_F() local
249 USBDevicePipe pipe; HWTEST_F() local
291 USBDevicePipe pipe; HWTEST_F() local
334 USBDevicePipe pipe; HWTEST_F() local
377 USBDevicePipe pipe; HWTEST_F() local
420 USBDevicePipe pipe; HWTEST_F() local
461 USBDevicePipe pipe; HWTEST_F() local
500 USBDevicePipe pipe; HWTEST_F() local
539 USBDevicePipe pipe; HWTEST_F() local
576 USBDevicePipe pipe; HWTEST_F() local
615 USBDevicePipe pipe; HWTEST_F() local
654 USBDevicePipe pipe; HWTEST_F() local
695 USBDevicePipe pipe; HWTEST_F() local
736 USBDevicePipe pipe; HWTEST_F() local
773 USBDevicePipe pipe; HWTEST_F() local
809 USBDevicePipe pipe; HWTEST_F() local
845 USBDevicePipe pipe; HWTEST_F() local
883 USBDevicePipe pipe; HWTEST_F() local
919 USBDevicePipe pipe; HWTEST_F() local
955 USBDevicePipe pipe; HWTEST_F() local
993 USBDevicePipe pipe; HWTEST_F() local
1031 USBDevicePipe pipe; HWTEST_F() local
1065 USBDevicePipe pipe; HWTEST_F() local
1101 USBDevicePipe pipe; HWTEST_F() local
1137 USBDevicePipe pipe; HWTEST_F() local
1171 USBDevicePipe pipe; HWTEST_F() local
1207 USBDevicePipe pipe; HWTEST_F() local
1243 USBDevicePipe pipe; HWTEST_F() local
1281 USBDevicePipe pipe; HWTEST_F() local
[all...]
H A Dusb_device_pipe_test.cpp93 USBDevicePipe pipe; in HWTEST_F() local
96 ret = UsbSrvClient.OpenDevice(device, pipe); in HWTEST_F()
99 ret = UsbSrvClient.Close(pipe); in HWTEST_F()
124 USBDevicePipe pipe; in HWTEST_F() local
126 ret = UsbSrvClient.OpenDevice(device, pipe); in HWTEST_F()
130 ret = UsbSrvClient.Close(pipe); in HWTEST_F()
155 USBDevicePipe pipe; in HWTEST_F() local
157 ret = UsbSrvClient.OpenDevice(device, pipe); in HWTEST_F()
160 ret = UsbSrvClient.ResetDevice(device, pipe); in HWTEST_F()
164 ret = UsbSrvClient.Close(pipe); in HWTEST_F()
188 USBDevicePipe pipe; HWTEST_F() local
222 USBDevicePipe pipe; HWTEST_F() local
256 USBDevicePipe pipe; HWTEST_F() local
289 USBDevicePipe pipe; HWTEST_F() local
326 USBDevicePipe pipe; HWTEST_F() local
365 USBDevicePipe pipe; HWTEST_F() local
404 USBDevicePipe pipe; HWTEST_F() local
441 USBDevicePipe pipe; HWTEST_F() local
480 USBDevicePipe pipe; HWTEST_F() local
519 USBDevicePipe pipe; HWTEST_F() local
558 USBDevicePipe pipe; HWTEST_F() local
599 USBDevicePipe pipe; HWTEST_F() local
640 USBDevicePipe pipe; HWTEST_F() local
678 USBDevicePipe pipe; HWTEST_F() local
718 USBDevicePipe pipe; HWTEST_F() local
759 USBDevicePipe pipe; HWTEST_F() local
798 USBDevicePipe pipe; HWTEST_F() local
839 USBDevicePipe pipe; HWTEST_F() local
879 USBDevicePipe pipe; HWTEST_F() local
917 USBDevicePipe pipe; HWTEST_F() local
957 USBDevicePipe pipe; HWTEST_F() local
997 USBDevicePipe pipe; HWTEST_F() local
1034 USBDevicePipe pipe; HWTEST_F() local
1073 USBDevicePipe pipe; HWTEST_F() local
1112 USBDevicePipe pipe; HWTEST_F() local
1149 USBDevicePipe pipe; HWTEST_F() local
1188 USBDevicePipe pipe; HWTEST_F() local
1227 USBDevicePipe pipe; HWTEST_F() local
1264 USBDevicePipe pipe; HWTEST_F() local
1303 USBDevicePipe pipe; HWTEST_F() local
1342 USBDevicePipe pipe; HWTEST_F() local
1381 USBDevicePipe pipe; HWTEST_F() local
1422 USBDevicePipe pipe; HWTEST_F() local
1463 USBDevicePipe pipe; HWTEST_F() local
1501 USBDevicePipe pipe; HWTEST_F() local
1541 USBDevicePipe pipe; HWTEST_F() local
1582 USBDevicePipe pipe; HWTEST_F() local
1621 USBDevicePipe pipe; HWTEST_F() local
1662 USBDevicePipe pipe; HWTEST_F() local
1702 USBDevicePipe pipe; HWTEST_F() local
1740 USBDevicePipe pipe; HWTEST_F() local
1780 USBDevicePipe pipe; HWTEST_F() local
1820 USBDevicePipe pipe; HWTEST_F() local
1857 USBDevicePipe pipe; HWTEST_F() local
1896 USBDevicePipe pipe; HWTEST_F() local
1935 USBDevicePipe pipe; HWTEST_F() local
1970 USBDevicePipe pipe; HWTEST_F() local
2005 USBDevicePipe pipe; HWTEST_F() local
2040 USBDevicePipe pipe; HWTEST_F() local
2075 USBDevicePipe pipe; HWTEST_F() local
2112 USBDevicePipe pipe; HWTEST_F() local
2149 USBDevicePipe pipe; HWTEST_F() local
2186 USBDevicePipe pipe; HWTEST_F() local
2224 USBDevicePipe pipe; HWTEST_F() local
2260 USBDevicePipe pipe; HWTEST_F() local
2298 USBDevicePipe pipe; HWTEST_F() local
2336 USBDevicePipe pipe; HWTEST_F() local
2376 USBDevicePipe pipe; HWTEST_F() local
2414 USBDevicePipe pipe; HWTEST_F() local
2452 USBDevicePipe pipe; HWTEST_F() local
2498 USBDevicePipe pipe; HWTEST_F() local
2542 USBDevicePipe pipe; HWTEST_F() local
2590 USBDevicePipe pipe; HWTEST_F() local
2639 USBDevicePipe pipe; HWTEST_F() local
2686 USBDevicePipe pipe; HWTEST_F() local
2733 USBDevicePipe pipe; HWTEST_F() local
2779 USBDevicePipe pipe; HWTEST_F() local
2827 USBDevicePipe pipe; HWTEST_F() local
2875 USBDevicePipe pipe; HWTEST_F() local
2920 USBDevicePipe pipe; HWTEST_F() local
2955 USBDevicePipe pipe; HWTEST_F() local
2992 USBDevicePipe pipe; HWTEST_F() local
3029 USBDevicePipe pipe; HWTEST_F() local
3056 USBDevicePipe pipe; HWTEST_F() local
3088 USBDevicePipe pipe; HWTEST_F() local
3121 USBDevicePipe pipe; HWTEST_F() local
3159 USBDevicePipe pipe; HWTEST_F() local
3199 USBDevicePipe pipe; HWTEST_F() local
3239 USBDevicePipe pipe; HWTEST_F() local
3277 USBDevicePipe pipe; HWTEST_F() local
3317 USBDevicePipe pipe; HWTEST_F() local
3357 USBDevicePipe pipe; HWTEST_F() local
3391 USBDevicePipe pipe; HWTEST_F() local
3427 USBDevicePipe pipe; HWTEST_F() local
3463 USBDevicePipe pipe; HWTEST_F() local
3508 USBDevicePipe pipe; HWTEST_F() local
3551 USBDevicePipe pipe; HWTEST_F() local
[all...]
H A Dusb_dfx_test.cpp225 USBDevicePipe pipe; in HWTEST_F() local
226 UsbSrvClient.OpenDevice(device, pipe); in HWTEST_F()
229 UsbSrvClient.BulkTransfer(pipe, pointIn, buffData, 100); in HWTEST_F()
231 UsbSrvClient.BulkTransfer(pipe, pointOut, buffData, 100); in HWTEST_F()
234 UsbSrvClient.ControlTransfer(pipe, ctrldata, buffData); in HWTEST_F()
236 UsbSrvClient.GetRawDescriptors(pipe, buffData); in HWTEST_F()
237 UsbSrvClient.Close(pipe); in HWTEST_F()
242 UsbSrvClient.BulkRead(pipe, pointIn, ashmem); in HWTEST_F()
243 ret = UsbSrvClient.BulkWrite(pipe, pointOut, ashmem); in HWTEST_F()
267 USBDevicePipe pipe; in HWTEST_F() local
[all...]
/base/usb/usb_manager/interfaces/innerkits/native/src/
H A Dusb_srv_client.cpp109 int32_t UsbSrvClient::OpenDevice(const UsbDevice &device, USBDevicePipe &pipe) in OpenDevice() argument
119 pipe.SetBusNum(device.GetBusNum()); in OpenDevice()
120 pipe.SetDevAddr(device.GetDevAddr()); in OpenDevice()
124 int32_t UsbSrvClient::ResetDevice(const UsbDevice &device, USBDevicePipe &pipe) in ResetDevice() argument
134 pipe.SetBusNum(device.GetBusNum()); in ResetDevice()
135 pipe.SetDevAddr(device.GetDevAddr()); in ResetDevice()
254 int32_t UsbSrvClient::ClaimInterface(USBDevicePipe &pipe, const UsbInterface &interface, bool force) in ClaimInterface() argument
257 int32_t ret = proxy_->ClaimInterface(pipe.GetBusNum(), pipe.GetDevAddr(), interface.GetId(), force); in ClaimInterface()
264 int32_t UsbSrvClient::UsbAttachKernelDriver(USBDevicePipe &pipe, cons argument
274 UsbDetachKernelDriver(USBDevicePipe &pipe, const UsbInterface &interface) UsbDetachKernelDriver() argument
284 ReleaseInterface(USBDevicePipe &pipe, const UsbInterface &interface) ReleaseInterface() argument
294 BulkTransfer( USBDevicePipe &pipe, const USBEndpoint &endpoint, std::vector<uint8_t> &bufferData, int32_t timeOut) BulkTransfer() argument
313 ControlTransfer( USBDevicePipe &pipe, const UsbCtrlTransfer &ctrl, std::vector<uint8_t> &bufferData) ControlTransfer() argument
326 UsbControlTransfer(USBDevicePipe &pipe, const HDI::Usb::V1_1::UsbCtrlTransferParams &ctrlParams, std::vector<uint8_t> &bufferData) UsbControlTransfer() argument
339 SetConfiguration(USBDevicePipe &pipe, const USBConfig &config) SetConfiguration() argument
346 SetInterface(USBDevicePipe &pipe, const UsbInterface &interface) SetInterface() argument
353 GetRawDescriptors(USBDevicePipe &pipe, std::vector<uint8_t> &bufferData) GetRawDescriptors() argument
363 GetFileDescriptor(USBDevicePipe &pipe, int32_t &fd) GetFileDescriptor() argument
373 Close(const USBDevicePipe &pipe) Close() argument
380 PipeRequestWait(USBDevicePipe &pipe, int64_t timeOut, UsbRequest &req) PipeRequestWait() argument
401 const USBDevicePipe &pipe = request.GetPipe(); RequestInitialize() local
409 const USBDevicePipe &pipe = request.GetPipe(); RequestFree() local
417 const USBDevicePipe &pipe = request.GetPipe(); RequestAbort() local
425 const USBDevicePipe &pipe = request.GetPipe(); RequestQueue() local
544 ClearHalt(USBDevicePipe &pipe, const USBEndpoint &ep) ClearHalt() argument
554 GetDeviceSpeed(USBDevicePipe &pipe, uint8_t &speed) GetDeviceSpeed() argument
565 GetInterfaceActiveStatus(USBDevicePipe &pipe, const UsbInterface &interface, bool &unactivated) GetInterfaceActiveStatus() argument
[all...]
/base/usb/usb_manager/test/native/mock/src/
H A Dusb_bulkcallback_mock_test.cpp156 * @tc.desc: Test functions to int32_t RegBulkCallback(const UsbDev &devInfo, const UsbPipe &pipe, const
166 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; in HWTEST_F() local
168 auto ret = usbSrv_->RegBulkCallback(dev_, pipe, cb); in HWTEST_F()
173 ret = usbSrv_->UnRegBulkCallback(dev_, pipe); in HWTEST_F()
179 * @tc.desc: Test functions to int32_t RegBulkCallback(const UsbDev &devInfo, const UsbPipe &pipe, const
189 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; in HWTEST_F() local
191 auto ret = usbSrv_->RegBulkCallback(dev_, pipe, cb); in HWTEST_F()
196 ret = usbSrv_->UnRegBulkCallback(dev_, pipe); in HWTEST_F()
202 * @tc.desc: Test functions to int32_t RegBulkCallback(const UsbDev &devInfo, const UsbPipe &pipe, const
212 UsbPipe pipe in HWTEST_F() local
239 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
265 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
299 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
333 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
369 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
405 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
439 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
473 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
509 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
545 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
584 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
625 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
666 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
688 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
714 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
[all...]
H A Dusb_request_mock_test.cpp130 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; in HWTEST_F() local
134 auto ret = usbSrv_->RequestQueue(dev_, pipe, cmdData, bufferData); in HWTEST_F()
148 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; in HWTEST_F() local
152 auto ret = usbSrv_->RequestQueue(dev_, pipe, cmdData, dataBuffer); in HWTEST_F()
166 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; in HWTEST_F() local
172 auto ret = usbSrv_->RequestQueue(dev_, pipe, cmdData, bufferData); in HWTEST_F()
188 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; in HWTEST_F() local
194 auto ret = usbSrv_->RequestQueue(dev_, pipe, cmdData, bufferData); in HWTEST_F()
210 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; in HWTEST_F() local
216 auto ret = usbSrv_->RequestQueue(dev_, pipe, cmdDat in HWTEST_F()
232 UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
369 const UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
393 const UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
419 const UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
446 const UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
470 const UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
497 const UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
523 const UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
545 const UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
571 const UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
597 const UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
619 const UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
645 const UsbPipe pipe = {point.GetInterfaceId(), point.GetAddress()}; HWTEST_F() local
[all...]
/base/usb/usb_manager/test/fuzztest/common/src/
H A 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/usb/usb_manager/test/native/mock/include/
H A Dusb_impl_mock.h72 BulkTransferRead, int32_t(const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, std::vector<uint8_t> &data));
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<uint8_t> &data));
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<IUsbdBulkCallback> &cb));
96 MOCK_METHOD2(UnRegBulkCallback, int32_t(const UsbDev &dev, const UsbPipe &pipe));
[all...]
/base/usb/usb_manager/test/fuzztest/usbmgrclearhalt_fuzzer/
H A Dusbmgrclearhalt_fuzzer.cpp35 USBDevicePipe pipe; in UsbMgrClearHaltFuzzTest() local
38 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrClearHaltFuzzTest()
45 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrClearHaltFuzzTest()
53 ret = usbSrvClient.ClearHalt(pipe, ep); in UsbMgrClearHaltFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrresetdevice_fuzzer/
H A Dusbmgrresetdevice_fuzzer.cpp35 USBDevicePipe pipe; in UsbMgrResetDeivceFuzzTest() local
38 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrResetDeivceFuzzTest()
45 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrResetDeivceFuzzTest()
51 ret = usbSrvClient.ResetDevice(device, pipe); in UsbMgrResetDeivceFuzzTest()
/base/usb/usb_manager/services/native/src/
H A Dusb_report_sys_event.cpp27 const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe, int32_t ret) in ReportTransforFaultSysEvent()
32 "INFT_ID", pipe.intfId, "ENDPOINT_ID", pipe.endpointId, "FAIL_REASON", ret); in ReportTransforFaultSysEvent()
26 ReportTransforFaultSysEvent(const std::string interfaceName, const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe, int32_t ret) ReportTransforFaultSysEvent() argument
/base/notification/eventhandler/frameworks/test/moduletest/
H A Devent_handler_fd_listener_module_test.cpp153 int32_t pipe = pipe2(fds, O_NONBLOCK); in HWTEST_F() local
154 EXPECT_GE(pipe, 0); in HWTEST_F()
207 int32_t pipe = pipe2(fds, O_NONBLOCK); in HWTEST_F() local
208 EXPECT_GE(pipe, 0); in HWTEST_F()
232 int32_t pipe = pipe2(fds, O_NONBLOCK); in HWTEST_F() local
233 EXPECT_GE(pipe, 0); in HWTEST_F()
256 int32_t pipe = pipe2(fds, O_NONBLOCK); in HWTEST_F() local
257 EXPECT_GE(pipe, 0); in HWTEST_F()
280 int32_t pipe = pipe2(fds, O_NONBLOCK); in HWTEST_F() local
281 EXPECT_GE(pipe, in HWTEST_F()
314 int32_t pipe = pipe2(fds, O_NONBLOCK); HWTEST_F() local
348 int32_t pipe = pipe2(fds, O_NONBLOCK); HWTEST_F() local
385 int32_t pipe = pipe2(fds, O_NONBLOCK); HWTEST_F() local
415 int32_t pipe = pipe2(fds, O_NONBLOCK); HWTEST_F() local
437 int32_t pipe = pipe2(fds, O_NONBLOCK); AddFileDescriptorHelper() local
[all...]
/base/usb/usb_manager/interfaces/innerkits/native/include/
H A 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()
H A Dusb_srv_client.h46 int32_t OpenDevice(const UsbDevice &device, USBDevicePipe &pipe);
47 int32_t ResetDevice(const UsbDevice &device, USBDevicePipe &pipe);
67 int32_t UsbControlTransfer(USBDevicePipe &pipe, const HDI::Usb::V1_1::UsbCtrlTransferParams &ctrlParams,
70 int32_t SetInterface(USBDevicePipe &pipe, const UsbInterface &interface);
71 int32_t GetRawDescriptors(USBDevicePipe &pipe, std::vector<uint8_t> &bufferData);
72 int32_t GetFileDescriptor(USBDevicePipe &pipe, int32_t &fd);
80 int32_t GetDeviceSpeed(USBDevicePipe &pipe, uint8_t &speed);
81 int32_t GetInterfaceActiveStatus(USBDevicePipe &pipe, const UsbInterface &interface, bool &unactivated);
98 int32_t ClearHalt(USBDevicePipe &pipe, const USBEndpoint &endpoint);
/base/usb/usb_manager/test/fuzztest/usbmgrrequestqueue_fuzzer/
H A 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/usbmgrrequestfree_fuzzer/
H A 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/usbmgrbulktransfer_fuzzer/
H A Dusbmgrbulktransfer_fuzzer.cpp36 USBDevicePipe pipe; in UsbMgrBulkTransferFuzzTest() local
39 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrBulkTransferFuzzTest()
46 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrBulkTransferFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrreleaseinterface_fuzzer/
H A Dusbmgrreleaseinterface_fuzzer.cpp35 USBDevicePipe pipe; in UsbMgrReleaseInterfaceFuzzTest() local
38 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrReleaseInterfaceFuzzTest()
45 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrReleaseInterfaceFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrsetinterface_fuzzer/
H A Dusbmgrsetinterface_fuzzer.cpp35 USBDevicePipe pipe; in UsbMgrSetInterfaceFuzzTest() local
38 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrSetInterfaceFuzzTest()
45 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrSetInterfaceFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrgetinterfacestatus_fuzzer/
H A Dusbmgrgetinterfacestatus_fuzzer.cpp35 USBDevicePipe pipe; in UsbMgrGetInterfaceStatusFuzzTest() local
38 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrGetInterfaceStatusFuzzTest()
45 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrGetInterfaceStatusFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrusbcontroltransfer_fuzzer/
H A Dusbmgrusbcontroltransfer_fuzzer.cpp37 USBDevicePipe pipe; in UsbMgrUsbControlTransferFuzzTest() local
40 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrUsbControlTransferFuzzTest()
47 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrUsbControlTransferFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrcontroltransfer_fuzzer/
H A Dusbmgrcontroltransfer_fuzzer.cpp36 USBDevicePipe pipe; in UsbMgrControlTransferFuzzTest() local
39 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrControlTransferFuzzTest()
46 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrControlTransferFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrpiperequestwait_fuzzer/
H A Dusbmgrpiperequestwait_fuzzer.cpp36 USBDevicePipe pipe; in UsbMgrPipeRequestWaitFuzzTest() local
39 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrPipeRequestWaitFuzzTest()
46 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrPipeRequestWaitFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrregbulkcallback_fuzzer/
H A Dusbmgrregbulkcallback_fuzzer.cpp30 auto[res, pipe, interface] = UsbMgrPrepareFuzzEnv(); in UsbMgrRegBulkCallbackFuzzTest()
31 (void)pipe; in UsbMgrRegBulkCallbackFuzzTest()

Completed in 15 milliseconds

123