/base/usb/usb_manager/test/native/service_unittest/src/ |
D | usb_bulkcallback_test.cpp | 121 USBDevicePipe pipe; variable 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); 169 USBDevicePipe pipe; variable 172 ret = UsbSrvClient.OpenDevice(device, pipe); 180 ret = UsbSrvClient.ClaimInterface(pipe, interface, true); 184 ret = UsbSrvClient.RegBulkCallback(pipe, point, cb); [all …]
|
D | usb_device_pipe_test.cpp | 84 USBDevicePipe pipe; variable 87 ret = UsbSrvClient.OpenDevice(device, pipe); 90 ret = UsbSrvClient.Close(pipe); 115 USBDevicePipe pipe; variable 117 ret = UsbSrvClient.OpenDevice(device, pipe); 121 ret = UsbSrvClient.Close(pipe); 143 USBDevicePipe pipe; variable 146 ret = UsbSrvClient.OpenDevice(device, pipe); 154 ret = UsbSrvClient.ControlTransfer(pipe, ctrldata, ctrlbuffer); 158 ret = UsbSrvClient.Close(pipe); [all …]
|
/base/usb/usb_manager/interfaces/innerkits/native/src/ |
D | usb_srv_client.cpp | 85 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/interfaces/kits/js/ |
D | @ohos.usbManager.d.ts | 184 function claimInterface(pipe: USBDevicePipe, iface: USBInterface, force?: boolean): number; 195 function releaseInterface(pipe: USBDevicePipe, iface: USBInterface): number; 207 function setConfiguration(pipe: USBDevicePipe, config: USBConfiguration): number; 219 function setInterface(pipe: USBDevicePipe, iface: USBInterface): number; 230 function getRawDescriptor(pipe: USBDevicePipe): Uint8Array; 241 function getFileDescriptor(pipe: USBDevicePipe): number; 254 …function controlTransfer(pipe: USBDevicePipe, controlparam: USBControlParams, timeout?: number): P… 268 function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array, 280 function closePipe(pipe: USBDevicePipe): number;
|
/base/usb/usb_manager/test/fuzztest/common/src/ |
D | usb_common_fuzz.cpp | 33 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/ |
D | event_handler_fd_listener_module_test.cpp | 141 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/interfaces/innerkits/native/include/ |
D | usb_request.h | 29 int32_t Initialize(const USBDevicePipe &pipe, const USBEndpoint &endpoint); 33 void SetPipe(const USBDevicePipe &pipe) in SetPipe() argument 35 this->pipe_ = pipe; in SetPipe()
|
D | iusb_srv.h | 79 …al int32_t BulkTransferRead(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe, 81 …l int32_t BulkTransferWrite(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe, 90 …irtual int32_t RequestQueue(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe, 97 …int32_t RegBulkCallback(const HDI::Usb::V1_0::UsbDev &devInfo, const HDI::Usb::V1_0::UsbPipe &pipe, 99 … UnRegBulkCallback(const HDI::Usb::V1_0::UsbDev &devInfo, const HDI::Usb::V1_0::UsbPipe &pipe) = 0; 100 …irtual int32_t BulkRead(const HDI::Usb::V1_0::UsbDev &devInfo, const HDI::Usb::V1_0::UsbPipe &pipe, 102 …rtual int32_t BulkWrite(const HDI::Usb::V1_0::UsbDev &devInfo, const HDI::Usb::V1_0::UsbPipe &pipe, 104 …int32_t BulkCancel(const HDI::Usb::V1_0::UsbDev &devInfo, const HDI::Usb::V1_0::UsbPipe &pipe) = 0;
|
/base/usb/usb_manager/test/fuzztest/usbmgrrequestqueue_fuzzer/ |
D | usbmgrrequestqueue_fuzzer.cpp | 33 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/ |
D | usbmgrsetinterface_fuzzer.cpp | 33 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/usbmgrrequestfree_fuzzer/ |
D | usbmgrrequestfree_fuzzer.cpp | 33 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/usbmgrpiperequestwait_fuzzer/ |
D | usbmgrpiperequestwait_fuzzer.cpp | 33 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/ |
D | usbmgrreleaseinterface_fuzzer.cpp | 33 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/ |
D | usbmgrcontroltransfer_fuzzer.cpp | 33 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/ |
D | usbmgrbulktransfer_fuzzer.cpp | 33 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/ |
D | usb_server_proxy.h | 49 int32_t BulkTransferRead(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe, 51 … int32_t BulkTransferWrite(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe, 61 int32_t RequestQueue(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe, 68 int32_t RegBulkCallback(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe, 70 …UnRegBulkCallback(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe) override; 71 int32_t BulkRead(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe, 73 int32_t BulkWrite(const HDI::Usb::V1_0::UsbDev &dev, const HDI::Usb::V1_0::UsbPipe &pipe, 75 …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/ |
D | usbmgrregbulkcallback_fuzzer.cpp | 27 auto[res, pipe, interface] = UsbMgrPrepareFuzzEnv(); in UsbMgrRegBulkCallbackFuzzTest() 28 (void)pipe; in UsbMgrRegBulkCallbackFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/usbmgrbulkcancel_fuzzer/ |
D | usbmgrbulkcancel_fuzzer.cpp | 56 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/usbmgrbulkread_fuzzer/ |
D | usbmgrbulkread_fuzzer.cpp | 27 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/usbmgrbulkwrite_fuzzer/ |
D | usbmgrbulkwrite_fuzzer.cpp | 27 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/usbmgrunregbulkcallback_fuzzer/ |
D | usbmgrunregbulkcallback_fuzzer.cpp | 28 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/usbmgrrequestinitialize_fuzzer/ |
D | usbmgrrequestinitialize_fuzzer.cpp | 33 USBDevicePipe pipe; in UsbMgrRequestInitializeFuzzTest() local 36 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrRequestInitializeFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/usbmgrclose_fuzzer/ |
D | usbmgrclose_fuzzer.cpp | 33 USBDevicePipe pipe; in UsbMgrCloseFuzzTest() local 36 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrCloseFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/usbmgrclaiminterface_fuzzer/ |
D | usbmgrclaiminterface_fuzzer.cpp | 33 USBDevicePipe pipe; in UsbMgrClaimInterfaceFuzzTest() local 36 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrClaimInterfaceFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/usbmgrsetconfiguration_fuzzer/ |
D | usbmgrsetconfiguration_fuzzer.cpp | 33 USBDevicePipe pipe; in UsbMgrSetConfigurationFuzzTest() local 36 ret = usbSrvClient.OpenDevice(device, pipe); in UsbMgrSetConfigurationFuzzTest()
|