/base/usb/usb_manager/interfaces/innerkits/native/include/ |
H A D | usb_device_pipe.h | 29 int32_t ClaimInterface(const UsbInterface &interface, bool force); 30 int32_t ReleaseInterface(const UsbInterface &interface); 36 int32_t SetInterface(const UsbInterface &interface);
|
H A D | usb_config.h | 33 std::vector<UsbInterface> interfaces) in USBConfig() 59 UsbInterface interface(jsonInterface); in USBConfig() 100 bool GetInterface(uint32_t index, UsbInterface &interface) const in GetInterface() 135 void SetInterfaces(const std::vector<UsbInterface> &interfaces) in SetInterfaces() 140 std::vector<UsbInterface> &GetInterfaces() in GetInterfaces() 171 const UsbInterface &interface = interfaces_[i]; in ToString() 231 std::vector<UsbInterface> interfaces_;
|
H A D | usb_srv_client.h | 59 int32_t ClaimInterface(USBDevicePipe &pip, const UsbInterface &interface, bool force); 60 int32_t UsbAttachKernelDriver(USBDevicePipe &pip, const UsbInterface &interface); 61 int32_t UsbDetachKernelDriver(USBDevicePipe &pip, const UsbInterface &interface); 62 int32_t ReleaseInterface(USBDevicePipe &pip, const UsbInterface &interface); 70 int32_t SetInterface(USBDevicePipe &pipe, const UsbInterface &interface); 81 int32_t GetInterfaceActiveStatus(USBDevicePipe &pipe, const UsbInterface &interface, bool &unactivated);
|
H A D | usb_interface.h | 28 class UsbInterface { class 30 UsbInterface(int32_t id, in UsbInterface() function in OHOS::USB::UsbInterface 46 explicit UsbInterface(const cJSON *interface) in UsbInterface() function in OHOS::USB::UsbInterface 70 UsbInterface() {} in UsbInterface() function in OHOS::USB::UsbInterface 179 ~UsbInterface() {} in ~UsbInterface() 191 std::string str = "UsbInterface[" + ss.str() + "]; "; in ToString()
|
/base/usb/usb_manager/interfaces/innerkits/native/src/ |
H A D | usb_device_pipe.cpp | 43 int32_t USBDevicePipe::ClaimInterface(const UsbInterface &interface, bool force) in ClaimInterface() 48 int32_t USBDevicePipe::ReleaseInterface(const UsbInterface &interface) in ReleaseInterface() 74 int32_t USBDevicePipe::SetInterface(const UsbInterface &interface) in SetInterface()
|
/base/usb/usb_manager/test/fuzztest/common/src/ |
H A D | usb_common_fuzz.cpp | 23 std::tuple<bool, const USBDevicePipe&, const UsbInterface&> UsbMgrPrepareFuzzEnv() in UsbMgrPrepareFuzzEnv() 42 UsbInterface interface = devList.front().GetConfigs().front().GetInterfaces().at(1); in UsbMgrPrepareFuzzEnv()
|
/base/usb/usb_manager/test/fuzztest/usbmgrreleaseinterface_fuzzer/ |
H A D | usbmgrreleaseinterface_fuzzer.cpp | 44 UsbInterface interface = devList.front().GetConfigs().front().GetInterfaces().front(); in UsbMgrReleaseInterfaceFuzzTest() 52 reinterpret_cast<USBDevicePipe &>(data), reinterpret_cast<const UsbInterface &>(std::move(data + OFFSET))); in UsbMgrReleaseInterfaceFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/usbmgrsetinterface_fuzzer/ |
H A D | usbmgrsetinterface_fuzzer.cpp | 44 UsbInterface interface = devList.front().GetConfigs().front().GetInterfaces().front(); in UsbMgrSetInterfaceFuzzTest() 52 reinterpret_cast<const UsbInterface &>(std::move(data + OFFSET))) == UEC_OK) { in UsbMgrSetInterfaceFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/usbmgrgetinterfacestatus_fuzzer/ |
H A D | usbmgrgetinterfacestatus_fuzzer.cpp | 44 UsbInterface interface = devList.front().GetConfigs().front().GetInterfaces().front(); in UsbMgrGetInterfaceStatusFuzzTest() 53 reinterpret_cast<const UsbInterface &>(std::move(data + OFFSET)), unactived) == UEC_OK) { in UsbMgrGetInterfaceStatusFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/common/include/ |
H A D | usb_common_fuzz.h | 25 std::tuple<bool, const USBDevicePipe&, const UsbInterface&> UsbMgrPrepareFuzzEnv();
|
/base/usb/usb_manager/test/native/mock/include/ |
H A D | usb_bulkcallback_mock_test.h | 36 static UsbInterface interface_;
|
H A D | usb_request_mock_test.h | 36 static UsbInterface interface_;
|
/base/usb/usb_manager/test/native/mock/src/ |
H A D | usb_device_pipe_mock_test.cpp | 697 * @tc.desc: Test functions to ClaimInterface(const UsbInterface &interface, bool force); 703 UsbInterface interface = device_.GetConfigs().front().GetInterfaces().front(); in HWTEST_F() 713 * @tc.desc: Test functions to ClaimInterface(const UsbInterface &interface, bool force); 719 UsbInterface interface = device_.GetConfigs().front().GetInterfaces().front(); in HWTEST_F() 729 * @tc.desc: Test functions to ClaimInterface(const UsbInterface &interface, bool force); 735 UsbInterface interface = device_.GetConfigs().front().GetInterfaces().at(1); in HWTEST_F() 745 * @tc.desc: Test functions to ClaimInterface(const UsbInterface &interface, bool force); 751 UsbInterface interface = device_.GetConfigs().front().GetInterfaces().at(1); in HWTEST_F() 761 * @tc.desc: Test functions to ClaimInterface(const UsbInterface &interface, bool force); 767 UsbInterface interfac in HWTEST_F() [all...] |
/base/usb/usb_manager/test/native/service_unittest/src/ |
H A D | usb_device_status_test.cpp | 255 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(0);
in HWTEST_F() 297 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(0);
in HWTEST_F() 340 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(0);
in HWTEST_F() 383 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(0);
in HWTEST_F() 427 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(0);
in HWTEST_F() 468 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(0);
in HWTEST_F() 507 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(0);
in HWTEST_F() 546 UsbInterface interface = device.GetConfigs().at(0).GetInterfaces().at(1);
in HWTEST_F() 583 UsbInterface interface = device.GetConfigs().at(0).GetInterfaces().at(1);
in HWTEST_F() 622 UsbInterface interfac in HWTEST_F() [all...] |
H A D | usb_bulkcallback_test.cpp | 133 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1);
in HWTEST_F() 181 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1);
in HWTEST_F() 229 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1);
in HWTEST_F() 279 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1);
in HWTEST_F() 329 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1);
in HWTEST_F() 379 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1);
in HWTEST_F() 429 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1);
in HWTEST_F() 483 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1);
in HWTEST_F() 537 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1);
in HWTEST_F() 593 UsbInterface interfac in HWTEST_F() [all...] |
H A D | usb_request_test.cpp | 97 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); in HWTEST_F() 141 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); in HWTEST_F() 186 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); in HWTEST_F() 229 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); in HWTEST_F() 272 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); in HWTEST_F() 318 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); in HWTEST_F() 365 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); in HWTEST_F() 413 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); in HWTEST_F() 461 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); in HWTEST_F() 512 UsbInterface interfac in HWTEST_F() [all...] |
/base/print/print_fwk/services/print_service/src/ |
H A D | print_usb_manager.cpp | 63 UsbInterface usbInterface = usbdevice.GetConfigs()[configIndex].GetInterfaces()[interfaceIndex]; in isPrintDevice() 176 UsbInterface ippInterface = in AllocateInterface() 199 UsbInterface commonInterface = in AllocateInterface() 249 UsbInterface commonInterface = in DisConnectUsbPinter() 251 UsbInterface sendDocIterface = in DisConnectUsbPinter() 280 UsbInterface useInterface = usbdevice.GetConfigs()[currentConfigIndex].GetInterfaces()[currentInterfaceIndex]; in BulkTransferWrite() 315 UsbInterface useInterface = usbdevice.GetConfigs()[currentConfigIndex].GetInterfaces()[currentInterfaceIndex]; in BulkTransferRead()
|
/base/usb/usb_manager/services/native/include/ |
H A D | usb_descriptor_parser.h | 32 UsbInterface &interface);
|
/base/usb/usb_manager/test/fuzztest/usbmgrclaiminterface_fuzzer/ |
H A D | usbmgrclaiminterface_fuzzer.cpp | 45 reinterpret_cast<const UsbInterface &>(std::move(data + OFFSET)), true); in UsbMgrClaimInterfaceFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/usbmgrbulkwrite_fuzzer/ |
H A D | usbmgrbulkwrite_fuzzer.cpp | 39 const_cast<USBDevicePipe &>(pipe), const_cast<UsbInterface &>(interface).GetEndpoints().at(1), cb); in UsbMgrBulkWriteFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/usbmgrbulkread_fuzzer/ |
H A D | usbmgrbulkread_fuzzer.cpp | 39 const_cast<USBDevicePipe &>(pipe), const_cast<UsbInterface &>(interface).GetEndpoints().at(1), cb); in UsbMgrBulkReadFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/usbmgrrequestqueue_fuzzer/ |
H A D | usbmgrrequestqueue_fuzzer.cpp | 42 UsbInterface interface = devList.front().GetConfigs().front().GetInterfaces().front(); in UsbMgrRequestQueueFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/usbmgrrequestfree_fuzzer/ |
H A D | usbmgrrequestfree_fuzzer.cpp | 42 UsbInterface interface = devList.front().GetConfigs().front().GetInterfaces().front(); in UsbMgrRequestFreeFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/usbmgrunregbulkcallback_fuzzer/ |
H A D | usbmgrunregbulkcallback_fuzzer.cpp | 39 const_cast<USBDevicePipe &>(pipe), const_cast<UsbInterface &>(interface).GetEndpoints().at(1), cb); in UsbMgrUnRegBulkCallbackFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/usbmgrbulktransfer_fuzzer/ |
H A D | usbmgrbulktransfer_fuzzer.cpp | 45 UsbInterface interface = devList.front().GetConfigs().front().GetInterfaces().front(); in UsbMgrBulkTransferFuzzTest()
|