/base/usb/usb_manager/test/native/mock/src/ |
D | usb_device_pipe_mock_test.cpp | 111 ret = usbSrv_->OpenDevice(dev_.busNum, dev_.devAddr); in SetUpTestCase() 119 auto ret = usbSrv_->Close(dev_.busNum, dev_.devAddr); in TearDownTestCase() 162 auto ret = usbSrv_->Close(dev_.busNum, dev_.devAddr); 166 ret = usbSrv_->OpenDevice(dev_.busNum, dev_.devAddr); 194 dev_.busNum = BUS_NUM_INVALID; 203 dev_.busNum = BUS_NUM_OK; 251 dev_.busNum = BUS_NUM_INVALID; 261 dev_.busNum = BUS_NUM_OK; 310 dev_.busNum = BUS_NUM_INVALID; 320 dev_.busNum = BUS_NUM_OK; [all …]
|
D | usb_request_mock_test.cpp | 87 ret = usbSrv_->OpenDevice(dev_.busNum, dev_.devAddr); in SetUpTestCase() 93 ret = usbSrv_->ClaimInterface(dev_.busNum, dev_.devAddr, interfaceId, true); in SetUpTestCase() 101 auto ret = usbSrv_->Close(dev_.busNum, dev_.devAddr); in TearDownTestCase() 169 dev_.busNum = BUS_NUM_INVALID; 176 dev_.busNum = BUS_NUM_OK; 213 dev_.busNum = BUS_NUM_INVALID; 220 dev_.busNum = BUS_NUM_OK; 257 auto ret = usbSrv_->RequestCancel(dev_.busNum, dev_.devAddr, interfaceId, endpointId); 273 dev_.busNum = BUS_NUM_INVALID; 275 auto ret = usbSrv_->RequestCancel(dev_.busNum, dev_.devAddr, interfaceId, endpointId); [all …]
|
D | usb_impl_mock.cpp | 58 if ((BUS_NUM_OK != dev.busNum) || (DEV_ADDR_OK != dev.devAddr)) { in GetRawDescriptor() 68 if ((BUS_NUM_OK != dev.busNum) || (DEV_ADDR_OK != dev.devAddr)) { in GetStringDescriptor()
|
D | usb_bulkcallback_mock_test.cpp | 119 ret = usbSrv_->OpenDevice(dev_.busNum, dev_.devAddr); in SetUpTestCase() 125 ret = usbSrv_->ClaimInterface(dev_.busNum, dev_.devAddr, interfaceId, true); in SetUpTestCase() 133 auto ret = usbSrv_->Close(dev_.busNum, dev_.devAddr); in TearDownTestCase() 213 dev_.busNum = BUS_NUM_INVALID; 224 dev_.busNum = BUS_NUM_OK; 342 dev_.busNum = BUS_NUM_INVALID; 348 dev_.busNum = BUS_NUM_OK; 482 dev_.busNum = BUS_NUM_INVALID; 488 dev_.busNum = BUS_NUM_OK; 601 dev_.busNum = BUS_NUM_INVALID; [all …]
|
/base/usb/usb_manager/services/zidl/src/ |
D | usb_srv_stub.cpp | 26 int32_t UsbServerStub::GetDeviceMessage(MessageParcel &data, uint8_t &busNum, uint8_t &devAddr) in GetDeviceMessage() argument 28 if (!data.ReadUint8(busNum)) { in GetDeviceMessage() 249 uint8_t busNum = 0; in DoOpenDevice() local 251 READ_PARCEL_WITH_RET(data, Uint8, busNum, UEC_SERVICE_READ_PARCEL_ERROR); in DoOpenDevice() 253 int32_t ret = OpenDevice(busNum, devAddr); in DoOpenDevice() 343 uint8_t busNum = 0; in DoClaimInterface() local 347 READ_PARCEL_WITH_RET(data, Uint8, busNum, UEC_SERVICE_READ_PARCEL_ERROR); in DoClaimInterface() 352 … reply, Int32, ClaimInterface(busNum, devAddr, interface, force), UEC_SERVICE_WRITE_PARCEL_ERROR); in DoClaimInterface() 358 uint8_t busNum = 0; in DoReleaseInterface() local 361 READ_PARCEL_WITH_RET(data, Uint8, busNum, UEC_SERVICE_READ_PARCEL_ERROR); in DoReleaseInterface() [all …]
|
D | usb_srv_proxy.cpp | 35 int32_t UsbServerProxy::SetDeviceMessage(MessageParcel &data, uint8_t busNum, uint8_t devAddr) in SetDeviceMessage() argument 37 WRITE_PARCEL_WITH_RET(data, Uint8, busNum, UEC_SERVICE_WRITE_PARCEL_ERROR); in SetDeviceMessage() 296 int32_t UsbServerProxy::OpenDevice(uint8_t busNum, uint8_t devAddr) in OpenDevice() argument 308 int32_t ret = SetDeviceMessage(data, busNum, devAddr); in OpenDevice() 582 int32_t UsbServerProxy::ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface, uint8_t … in ClaimInterface() argument 593 SetDeviceMessage(data, busNum, devAddr); in ClaimInterface() 606 int32_t UsbServerProxy::ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface) in ReleaseInterface() argument 617 SetDeviceMessage(data, busNum, devAddr); in ReleaseInterface() 640 SetDeviceMessage(data, dev.busNum, dev.devAddr); in BulkTransferRead() 671 SetDeviceMessage(data, dev.busNum, dev.devAddr); in BulkTransferWrite() [all …]
|
/base/usb/usb_manager/services/native/src/ |
D | usb_host_manager.cpp | 42 bool UsbHostManager::DelDevice(uint8_t busNum, uint8_t devNum) in DelDevice() argument 44 std::string name = std::to_string(busNum) + "-" + std::to_string(devNum); in DelDevice() 47 …ODULE_SERVICE, "name:%{public}s bus:%{public}hhu dev:%{public}hhu not exist", name.c_str(), busNum, in DelDevice() 52 …RVICE, "device:%{public}s bus:%{public}hhu dev:%{public}hhu erase ", name.c_str(), busNum, devNum); in DelDevice() 81 uint8_t busNum = dev->GetBusNum(); in AddDevice() local 83 std::string name = std::to_string(busNum) + "-" + std::to_string(devNum); in AddDevice() 87 busNum, devNum); in AddDevice() 93 …RVICE, "device:%{public}s bus:%{public}hhu dev:%{public}hhu insert", name.c_str(), busNum, devNum); in AddDevice()
|
D | usb_service.cpp | 268 int32_t UsbService::OpenDevice(uint8_t busNum, uint8_t devAddr) in OpenDevice() argument 270 std::string name = std::to_string(busNum) + "-" + std::to_string(devAddr); in OpenDevice() 276 const UsbDev dev = {busNum, devAddr}; in OpenDevice() 517 int32_t UsbService::ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface, uint8_t forc… in ClaimInterface() argument 519 const UsbDev dev = {busNum, devAddr}; in ClaimInterface() 527 int32_t UsbService::ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface) in ReleaseInterface() argument 529 const UsbDev dev = {busNum, devAddr}; in ReleaseInterface() 588 int32_t UsbService::SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configIndex) in SetActiveConfig() argument 590 const UsbDev dev = {busNum, devAddr}; in SetActiveConfig() 598 int32_t UsbService::GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configIndex) in GetActiveConfig() argument [all …]
|
D | usb_service_subscriber.cpp | 83 int32_t busNum = info.busNum; in DeviceEvent() local 87 pms->AddDevice(busNum, devAddr); in DeviceEvent() 90 pms->DelDevice(busNum, devAddr); in DeviceEvent()
|
/base/usb/usb_manager/interfaces/innerkits/native/include/ |
D | iusb_srv.h | 29 virtual int32_t OpenDevice(uint8_t busNum, uint8_t devAddr) = 0; 41 virtual int32_t ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid) = 0; 42 …virtual int32_t ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t force… 49 virtual int32_t SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configId) = 0; 50 virtual int32_t GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configId) = 0; 51 …virtual int32_t SetInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t altInde… 52 …virtual int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData… 53 virtual int32_t GetFileDescriptor(uint8_t busNum, uint8_t devAddr, int32_t &fd) = 0; 58 …virtual int32_t RequestCancel(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t endpoi… 59 virtual int32_t Close(uint8_t busNum, uint8_t devAddr) = 0;
|
D | usb_device_pipe.h | 28 USBDevicePipe(uint8_t busNum, uint8_t devAddr); 37 void SetBusNum(uint8_t busNum);
|
D | usb_device.h | 32 …uint8_t devAddr, uint8_t busNum, int32_t vendorId, int32_t productId, int32_t klass, int32_t subCl… in UsbDevice() argument 40 this->busNum_ = busNum; in UsbDevice()
|
/base/usb/usb_manager/services/native/include/ |
D | usb_service.h | 68 int32_t OpenDevice(uint8_t busNum, uint8_t devAddr) override; 81 …int32_t ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t force) overri… 82 int32_t ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid) override; 89 int32_t SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configIndex) override; 90 int32_t GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configIndex) override; 91 …int32_t SetInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t altIndex) overr… 92 …int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData) overri… 93 int32_t GetFileDescriptor(uint8_t busNum, uint8_t devAddr, int32_t &fd) override; 98 …int32_t RequestCancel(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t endpointId) ov… 99 int32_t Close(uint8_t busNum, uint8_t devAddr) override; [all …]
|
D | usb_host_manager.h | 36 bool DelDevice(uint8_t busNum, uint8_t devNum);
|
/base/usb/usb_manager/services/zidl/include/ |
D | usb_server_proxy.h | 36 int32_t OpenDevice(uint8_t busNum, uint8_t devAddr) override; 48 …int32_t ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t force) overri… 49 int32_t ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid) override; 57 int32_t SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configIndex) override; 58 int32_t GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configIndex) override; 59 …int32_t SetInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t altIndex) overr… 60 …int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData) overri… 61 int32_t GetFileDescriptor(uint8_t busNum, uint8_t devAddr, int32_t &fd) override; 66 …int32_t RequestCancel(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t endpointId) ov… 67 int32_t Close(uint8_t busNum, uint8_t devAddr) override; [all …]
|
D | usb_server_stub.h | 72 int32_t GetDeviceMessage(MessageParcel &data, uint8_t &busNum, uint8_t &devAddr);
|
/base/usb/usb_manager/interfaces/innerkits/native/src/ |
D | usb_device_pipe.cpp | 28 USBDevicePipe::USBDevicePipe(uint8_t busNum, uint8_t devAddr) in USBDevicePipe() argument 29 : busNum_(busNum), devAddr_(devAddr) in USBDevicePipe() 73 void USBDevicePipe::SetBusNum(uint8_t busNum) in SetBusNum() argument 75 this->busNum_ = busNum; in SetBusNum()
|
/base/startup/init/test/unittest/ueventd/ |
D | ueventd_event_unittest.cpp | 205 ueventdBuffer.append(std::string("BUSNUM=") + std::to_string(uevent.busNum) + '\000'); in GenerateUeventBuffer() 248 .busNum = 1, 258 EXPECT_EQ(outEvent.busNum, 1); 331 .busNum = 1, 361 .busNum = 1, 393 .busNum = 1, 464 .busNum = -1, 479 .busNum = 3, 509 .busNum = 1, 518 EXPECT_EQ(outEvent.busNum, 1); [all …]
|
/base/usb/usb_manager/test/native/js_unittest/ |
D | UsbCoreJsunit.test.js | 165 tmpPipe.busNum = -23 208 tmpPipe.busNum = -23 294 var tempPipe = {busNum : 255, devAddress : 255} property 316 var tempPipe = {busNum : 255, devAddress : gPipe.devAddress} property 338 var tempPipe = {busNum : gPipe.busNum, devAddress : 255} property
|
D | UsbCoreJsunitEx.test.js | 113 device.busNum = 2 + 1000 121 ' busNum ' + device.busNum);
|
/base/usb/usb_manager/interfaces/kits/js/ |
D | @ohos.usbManager.d.ts | 480 busNum: number; property 580 busNum: number; property
|
/base/startup/init/ueventd/include/ |
D | ueventd.h | 56 int busNum; member
|
/base/startup/init/ueventd/ |
D | ueventd_device_handler.c | 530 if (uevent->busNum < 0 || uevent->devNum < 0) { in HandleOtherDeviceEvent() 536 "/dev/bus/usb/%03d/%03d", uevent->busNum, uevent->devNum) == -1) { in HandleOtherDeviceEvent() 537 … INIT_LOGE("Make usb device node for device [%d : %d]", uevent->busNum, uevent->devNum); in HandleOtherDeviceEvent()
|
D | ueventd.c | 240 uevent->busNum = StringToInt(event + strlen("BUSNUM="), -1); in AddUevent() 274 uevent->busNum = -1; in ParseUeventMessage()
|
/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
D | usb_info.cpp | 62 int32_t busNum = 0; in ParseUsbDevicePipe() local 63 NapiUtil::JsObjectToInt(env, obj, "busNum", busNum); in ParseUsbDevicePipe() 64 pipe.SetBusNum(static_cast<uint8_t>(busNum)); in ParseUsbDevicePipe() 368 int32_t busNum = 0; in ParseDeviceObj() local 369 NapiUtil::JsObjectToInt(env, deviceObj, "busNum", busNum); in ParseDeviceObj() 382 …dev = UsbDevice(name, manufacturerName, productName, version, devAddr, busNum, vendorId, productId… in ParseDeviceObj()
|