Home
last modified time | relevance | path

Searched refs:UsbInterface (Results 1 - 25 of 48) sorted by relevance

12

/base/usb/usb_manager/interfaces/innerkits/native/include/
H A Dusb_device_pipe.h29 int32_t ClaimInterface(const UsbInterface &interface, bool force);
30 int32_t ReleaseInterface(const UsbInterface &interface);
36 int32_t SetInterface(const UsbInterface &interface);
H A Dusb_config.h33 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 Dusb_srv_client.h59 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 Dusb_interface.h28 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 Dusb_device_pipe.cpp43 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 Dusb_common_fuzz.cpp23 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 Dusbmgrreleaseinterface_fuzzer.cpp44 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 Dusbmgrsetinterface_fuzzer.cpp44 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 Dusbmgrgetinterfacestatus_fuzzer.cpp44 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 Dusb_common_fuzz.h25 std::tuple<bool, const USBDevicePipe&, const UsbInterface&> UsbMgrPrepareFuzzEnv();
/base/usb/usb_manager/test/native/mock/include/
H A Dusb_bulkcallback_mock_test.h36 static UsbInterface interface_;
H A Dusb_request_mock_test.h36 static UsbInterface interface_;
/base/usb/usb_manager/test/native/mock/src/
H A Dusb_device_pipe_mock_test.cpp697 * @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 Dusb_device_status_test.cpp255 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 Dusb_bulkcallback_test.cpp133 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 Dusb_request_test.cpp97 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 Dprint_usb_manager.cpp63 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 Dusb_descriptor_parser.h32 UsbInterface &interface);
/base/usb/usb_manager/test/fuzztest/usbmgrclaiminterface_fuzzer/
H A Dusbmgrclaiminterface_fuzzer.cpp45 reinterpret_cast<const UsbInterface &>(std::move(data + OFFSET)), true); in UsbMgrClaimInterfaceFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrbulkwrite_fuzzer/
H A Dusbmgrbulkwrite_fuzzer.cpp39 const_cast<USBDevicePipe &>(pipe), const_cast<UsbInterface &>(interface).GetEndpoints().at(1), cb); in UsbMgrBulkWriteFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrbulkread_fuzzer/
H A Dusbmgrbulkread_fuzzer.cpp39 const_cast<USBDevicePipe &>(pipe), const_cast<UsbInterface &>(interface).GetEndpoints().at(1), cb); in UsbMgrBulkReadFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrrequestqueue_fuzzer/
H A Dusbmgrrequestqueue_fuzzer.cpp42 UsbInterface interface = devList.front().GetConfigs().front().GetInterfaces().front(); in UsbMgrRequestQueueFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrrequestfree_fuzzer/
H A Dusbmgrrequestfree_fuzzer.cpp42 UsbInterface interface = devList.front().GetConfigs().front().GetInterfaces().front(); in UsbMgrRequestFreeFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrunregbulkcallback_fuzzer/
H A Dusbmgrunregbulkcallback_fuzzer.cpp39 const_cast<USBDevicePipe &>(pipe), const_cast<UsbInterface &>(interface).GetEndpoints().at(1), cb); in UsbMgrUnRegBulkCallbackFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrbulktransfer_fuzzer/
H A Dusbmgrbulktransfer_fuzzer.cpp45 UsbInterface interface = devList.front().GetConfigs().front().GetInterfaces().front(); in UsbMgrBulkTransferFuzzTest()

Completed in 22 milliseconds

12