Home
last modified time | relevance | path

Searched refs:UsbDevice (Results 1 – 25 of 37) sorted by relevance

12

/base/usb/usb_manager/services/native/include/
Dusb_host_manager.h29 typedef std::map<std::string, UsbDevice *> MAP_STR_DEVICE;
37 bool AddDevice(UsbDevice *dev);
41 bool PublishCommonEvent(const std::string &event, const UsbDevice &dev);
42 void ReportHostPlugSysEvent(const std::string &event, const UsbDevice &dev);
Dusb_service.h68 int32_t GetDevices(std::vector<UsbDevice> &deviceList) override;
100 int32_t GetDeviceInfo(uint8_t busNum, uint8_t devAddr, UsbDevice &dev);
102 UsbDevice &dev);
103 int32_t GetConfigDescriptor(UsbDevice &dev, std::vector<uint8_t> &descriptor);
131 int32_t FillDevStrings(UsbDevice &dev);
Dusb_descriptor_parser.h27 static int32_t ParseDeviceDescriptor(const uint8_t *buffer, uint32_t length, UsbDevice &dev);
/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_device_pipe_test.cpp76 vector<UsbDevice> devi;
85 UsbDevice device = devi.front();
107 std::vector<UsbDevice> deviceList;
114 UsbDevice device = deviceList.front();
135 vector<UsbDevice> devi;
144 UsbDevice device = devi.front();
172 vector<UsbDevice> devi;
181 UsbDevice device = devi.front();
211 vector<UsbDevice> devi;
220 UsbDevice device = devi.front();
[all …]
Dusb_bulkcallback_test.cpp113 vector<UsbDevice> devi;
122 UsbDevice device = devi.front();
161 vector<UsbDevice> devi;
170 UsbDevice device = devi.front();
209 vector<UsbDevice> devi;
218 UsbDevice device = devi.front();
259 vector<UsbDevice> devi;
268 UsbDevice device = devi.front();
309 vector<UsbDevice> devi;
318 UsbDevice device = devi.front();
[all …]
Dusb_request_test.cpp78 vector<UsbDevice> delist;
85 UsbDevice device = delist.front();
121 vector<UsbDevice> delist;
128 UsbDevice device = delist.front();
167 vector<UsbDevice> delist;
174 UsbDevice device = delist.front();
210 vector<UsbDevice> delist;
217 UsbDevice device = delist.front();
253 vector<UsbDevice> delist;
260 UsbDevice device = delist.front();
[all …]
/base/usb/usb_manager/services/native/src/
Dusb_host_manager.cpp53 UsbDevice *devOld = iter->second; in DelDevice()
69 bool UsbHostManager::AddDevice(UsbDevice *dev) in AddDevice()
88 UsbDevice *devOld = iter->second; in AddDevice()
94 devices_.insert(std::pair<std::string, UsbDevice *>(name, dev)); in AddDevice()
98 bool UsbHostManager::PublishCommonEvent(const std::string &event, const UsbDevice &dev) in PublishCommonEvent()
131 void UsbHostManager::ReportHostPlugSysEvent(const std::string &event, const UsbDevice &dev) in ReportHostPlugSysEvent()
/base/usb/usb_manager/test/fuzztest/usbmgrrequestinitialize_fuzzer/
Dusbmgrrequestinitialize_fuzzer.cpp25 std::vector<UsbDevice> devList; in UsbMgrRequestInitializeFuzzTest()
34 UsbDevice device = devList.front(); in UsbMgrRequestInitializeFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrclose_fuzzer/
Dusbmgrclose_fuzzer.cpp25 std::vector<UsbDevice> devList; in UsbMgrCloseFuzzTest()
34 UsbDevice device = devList.front(); in UsbMgrCloseFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrclaiminterface_fuzzer/
Dusbmgrclaiminterface_fuzzer.cpp25 std::vector<UsbDevice> devList; in UsbMgrClaimInterfaceFuzzTest()
34 UsbDevice device = devList.front(); in UsbMgrClaimInterfaceFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrsetconfiguration_fuzzer/
Dusbmgrsetconfiguration_fuzzer.cpp25 std::vector<UsbDevice> devList; in UsbMgrSetConfigurationFuzzTest()
34 UsbDevice device = devList.front(); in UsbMgrSetConfigurationFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrgetfiledescriptor_fuzzer/
Dusbmgrgetfiledescriptor_fuzzer.cpp25 std::vector<UsbDevice> devList; in UsbMgrGetFileDescriptorFuzzTest()
34 UsbDevice device = devList.front(); in UsbMgrGetFileDescriptorFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrgetrawdescriptors_fuzzer/
Dusbmgrgetrawdescriptors_fuzzer.cpp25 std::vector<UsbDevice> devList; in UsbMgrGetRawDescriptorsFuzzTest()
34 UsbDevice device = devList.front(); in UsbMgrGetRawDescriptorsFuzzTest()
/base/usb/usb_manager/test/fuzztest/common/src/
Dusb_common_fuzz.cpp25 std::vector<UsbDevice> devList; in UsbMgrPrepareFuzzEnv()
34 UsbDevice device = devList.front(); in UsbMgrPrepareFuzzEnv()
/base/usb/usb_manager/test/fuzztest/usbmgrrequestqueue_fuzzer/
Dusbmgrrequestqueue_fuzzer.cpp25 std::vector<UsbDevice> devList; in UsbMgrRequestQueueFuzzTest()
34 UsbDevice device = devList.front(); in UsbMgrRequestQueueFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrsetinterface_fuzzer/
Dusbmgrsetinterface_fuzzer.cpp25 std::vector<UsbDevice> devList; in UsbMgrSetInterfaceFuzzTest()
34 UsbDevice device = devList.front(); in UsbMgrSetInterfaceFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrrequestfree_fuzzer/
Dusbmgrrequestfree_fuzzer.cpp25 std::vector<UsbDevice> devList; in UsbMgrRequestFreeFuzzTest()
34 UsbDevice device = devList.front(); in UsbMgrRequestFreeFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrpiperequestwait_fuzzer/
Dusbmgrpiperequestwait_fuzzer.cpp25 std::vector<UsbDevice> devList; in UsbMgrPipeRequestWaitFuzzTest()
34 UsbDevice device = devList.front(); in UsbMgrPipeRequestWaitFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrreleaseinterface_fuzzer/
Dusbmgrreleaseinterface_fuzzer.cpp25 std::vector<UsbDevice> devList; in UsbMgrReleaseInterfaceFuzzTest()
34 UsbDevice device = devList.front(); in UsbMgrReleaseInterfaceFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrcontroltransfer_fuzzer/
Dusbmgrcontroltransfer_fuzzer.cpp25 std::vector<UsbDevice> devList; in UsbMgrControlTransferFuzzTest()
34 UsbDevice device = devList.front(); in UsbMgrControlTransferFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrbulktransfer_fuzzer/
Dusbmgrbulktransfer_fuzzer.cpp25 std::vector<UsbDevice> devList; in UsbMgrBulkTransferFuzzTest()
34 UsbDevice device = devList.front(); in UsbMgrBulkTransferFuzzTest()
/base/usb/usb_manager/interfaces/innerkits/native/include/
Dusb_device.h29 class UsbDevice {
31UsbDevice(std::string name, std::string manufacturerName, std::string productName, std::string ver… in UsbDevice() function
49 explicit UsbDevice(const Json::Value &device) in UsbDevice() function
70 UsbDevice() {} in UsbDevice() function
71 ~UsbDevice() {} in ~UsbDevice()
/base/usb/usb_manager/test/fuzztest/usbmgrhasright_fuzzer/
Dusbmgrhasright_fuzzer.cpp26 std::vector<UsbDevice> devList; in UsbMgrHasRightFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrremoveright_fuzzer/
Dusbmgrremoveright_fuzzer.cpp26 std::vector<UsbDevice> devList; in UsbMgrRemoveRightFuzzTest()
/base/usb/usb_manager/services/zidl/include/
Dusb_server_proxy.h34 int32_t GetDevices(std::vector<UsbDevice> &deviceList) override;
84 int32_t GetDeviceListMessageParcel(MessageParcel &data, std::vector<UsbDevice> &deviceList);
85 int32_t GetDeviceMessageParcel(MessageParcel &data, UsbDevice &devInfo);

12