/base/usb/usb_manager/test/native/service_unittest/src/ |
D | usb_request_test.cpp | 92 USBDevicePipe pip; variable 93 ret = UsbSrvClient.OpenDevice(device, pip); 99 ret = UsbSrvClient.ClaimInterface(pip, interface, true); 107 ret = request.Initialize(pip, point); 111 bool close = UsbSrvClient.Close(pip); 135 USBDevicePipe pip; variable 136 ret = UsbSrvClient.OpenDevice(device, pip); 143 ret = UsbSrvClient.ClaimInterface(pip, interface, true); 153 ret = request.Initialize(pip, point); 157 bool close = UsbSrvClient.Close(pip); [all …]
|
/base/usb/usb_manager/interfaces/innerkits/native/include/ |
D | usb_srv_client.h | 59 int32_t ClaimInterface(USBDevicePipe &pip, const UsbInterface &interface, bool force); 60 int32_t ReleaseInterface(USBDevicePipe &pip, const UsbInterface &interface); 61 …int32_t BulkTransfer(USBDevicePipe &pip, const USBEndpoint &endpoint, std::vector<uint8_t> &buffer… 63 int32_t ControlTransfer(USBDevicePipe &pip, const HDI::Usb::V1_0::UsbCtrlTransfer &ctrl, 65 int32_t SetConfiguration(USBDevicePipe &pip, const USBConfig &config); 69 bool Close(const USBDevicePipe &pip); 70 int32_t PipeRequestWait(USBDevicePipe &pip, int64_t timeOut, UsbRequest &req); 82 …int32_t RegBulkCallback(USBDevicePipe &pip, const USBEndpoint &endpoint, const sptr<IRemoteObject>… 83 int32_t UnRegBulkCallback(USBDevicePipe &pip, const USBEndpoint &endpoint); 84 int32_t BulkRead(USBDevicePipe &pip, const USBEndpoint &endpoint, sptr<Ashmem> &ashmem); [all …]
|
/base/usb/usb_manager/test/native/js_unittest/ |
D | UsbDevicePipeJsunit.test.js | 112 pip: null, property 127 testParam.pip = gPipe 146 testParam.isClaimed = usb.claimInterface(testParam.pip, testParam.interface, true); 151 usb.bulkTransfer(testParam.pip, testParam.inEndpoint, tmpUint8Array, 5000).then(data => { 175 testParam.isClaimed = usb.claimInterface(testParam.pip, testParam.interface, true); 187 usb.bulkTransfer(testParam.pip, testParam.outEndpoint, tmpUint8Array, 5000).then(data => { 359 function callControlTransfer(pip, controlParam, timeout, caseName) { argument 360 usb.controlTransfer(pip, controlParam, timeout).then(data => { 388 …callControlTransfer(testParam.pip, controlParam, timeout, 'control_transfer_test_01 GetDescriptor') 407 callControlTransfer(testParam.pip, controlParam, timeout, 'control_transfer_test_02 GetStatus') [all …]
|
D | UsbDevicePipeJsunitEx.test.js | 114 pip: null, property 129 testParam.pip = gPipe 148 testParam.isClaimed = usb.claimInterface(testParam.pip, testParam.interface, true); 155 usb.bulkTransfer(TmpTestParam.pip, TmpTestParam.outEndpoint, tmpUint8Array, 5000).then(data => { 179 testParam.isClaimed = usb.claimInterface(testParam.pip, testParam.interface, true); 186 usb.bulkTransfer(TmpTestParam.pip, TmpTestParam.outEndpoint, tmpUint8Array, 5000).then(data => { 210 testParam.isClaimed = usb.claimInterface(testParam.pip, testParam.interface, true); 217 usb.bulkTransfer(TmpTestParam.pip, TmpTestParam.outEndpoint, tmpUint8Array, 5000).then(data => {
|
/base/usb/usb_manager/ |
D | README_zh.md | 41 | int32_t OpenDevice(const UsbDevice &device, USBDevicePipe &pip); | 打开设备,建立连接 | 42 | bool Close(const USBDevicePipe &pip); | 关闭设备,释放与设备相关的所有系统资源 | 44 | int32_t SetConfiguration(USBDevicePipe &pip, const USBConfig &config); | 设置设备当前使用的配置,通过配置值进行指定 | 45 | int32_t ClaimInterface(USBDevicePipe &pip, const UsbInterface &interface, bool force); | 打开接口,并申明… 46 | int32_t ReleaseInterface(USBDevicePipe &pip, const UsbInterface &interface); | 关闭接口,释放接口的占用,在停止数据… 48 | int32_t BulkTransfer(USBDevicePipe &pip, const USBEndpoint &endpoint, std::vector<uint8_t> &vdata… 49 | int32_t ControlTransfer(USBDevicePipe &pip, const UsbCtrlTransfer &ctrl, std::vector<uint8_t> &vd… 52 | int32_t PipeRequestWait(USBDevicePipe &pip, int64_t timeout, UsbRequest &req); | 等待RequestQueue异步… 117 usb.bulkTransfer(this.pip, this.outEndpoint, dataUint8Array, 15000).then(dataLength => {
|
D | README.md | 47 | int32_t OpenDevice(const UsbDevice &device, USBDevicePipe &pip); … 48 | bool Close(const USBDevicePipe &pip); … 50 | int32_t SetConfiguration(USBDevicePipe &pip, const USBConfig &config); … 51 | int32_t ClaimInterface(USBDevicePipe &pip, const UsbInterface &interface, bool force); … 52 | int32_t ReleaseInterface(USBDevicePipe &pip, const UsbInterface &interface); … 54 | int32_t BulkTransfer(USBDevicePipe &pip, const USBEndpoint &endpoint, std::vector<uint8_t> &vdata… 55 | int32_t ControlTransfer(USBDevicePipe &pip, const UsbCtrlTransfer &ctrl, std::vector<uint8_t> &vd… 58 | int32_t PipeRequestWait(USBDevicePipe &pip, int64_t timeout, UsbRequest &req); … 136 usb.bulkTransfer(this.pip, this.outEndpoint, dataUint8Array, 15000).then(dataLength => {
|
/base/usb/usb_manager/interfaces/innerkits/native/src/ |
D | usb_srv_client.cpp | 355 int32_t UsbSrvClient::RegBulkCallback(USBDevicePipe &pip, const USBEndpoint &endpoint, const sptr<I… in RegBulkCallback() argument 358 const UsbDev tdev = {pip.GetBusNum(), pip.GetDevAddr()}; in RegBulkCallback() 367 int32_t UsbSrvClient::UnRegBulkCallback(USBDevicePipe &pip, const USBEndpoint &endpoint) in UnRegBulkCallback() argument 370 const UsbDev tdev = {pip.GetBusNum(), pip.GetDevAddr()}; in UnRegBulkCallback() 379 int32_t UsbSrvClient::BulkRead(USBDevicePipe &pip, const USBEndpoint &endpoint, sptr<Ashmem> &ashme… in BulkRead() argument 382 const UsbDev tdev = {pip.GetBusNum(), pip.GetDevAddr()}; in BulkRead() 391 int32_t UsbSrvClient::BulkWrite(USBDevicePipe &pip, const USBEndpoint &endpoint, sptr<Ashmem> &ashm… in BulkWrite() argument 394 const UsbDev tdev = {pip.GetBusNum(), pip.GetDevAddr()}; in BulkWrite() 403 int32_t UsbSrvClient::BulkCancel(USBDevicePipe &pip, const USBEndpoint &endpoint) in BulkCancel() argument 406 const UsbDev tdev = {pip.GetBusNum(), pip.GetDevAddr()}; in BulkCancel()
|
/base/startup/init/test/unittest/loopevent/ |
D | loopserver_unittest.cpp | 412 TaskHandle pip = test.CreateConnect(PIPE_SERVER.c_str(), TASK_PIPE); variable 413 EXPECT_NE(pip, nullptr); 414 SendMessage(g_loopClient_, pip, FORMAT_STR.c_str(), g_cmd, "connect success"); 416 LE_CloseStreamTask(g_loopClient_, pip);
|