Home
last modified time | relevance | path

Searched refs:BusType (Results 1 – 25 of 30) sorted by relevance

12

/ohos5.0/drivers/external_device_manager/test/unittest/device_manager_test/
H A Ddevice_manager_test.cpp47 unordered_map<BusType, unordered_map<uint64_t, shared_ptr<Device>>> map; in clearDeviceMap()
67 ASSERT_NE(core.busExtensions_[BusType::BUS_TYPE_USB], nullptr);
84 device->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_TEST;
88 ASSERT_EQ(getDeviceNum(extMgr.deviceMap_[BusType::BUS_TYPE_TEST]), 1);
101 device->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_TEST;
121 device0->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_TEST;
126 device1->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_TEST;
147 device0->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_TEST;
152 device1->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_TEST;
166 ASSERT_NE(core.busExtensions_[BusType::BUS_TYPE_USB], nullptr);
[all …]
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/src/bus_extension/core/
H A Dbus_extension_core.cpp37 std::unordered_map<std::string, BusType> BusExtensionCore::busTypeMap_ = {
38 {"usb", BusType::BUS_TYPE_USB}
43 for (BusType i = BUS_TYPE_USB; i < BUS_TYPE_MAX; i = (BusType)(i + 1)) { in LoadBusExtensionLibs()
81 int32_t BusExtensionCore::Register(BusType busType, std::shared_ptr<IBusExtension> busExtension) in Register()
96 BusType BusExtensionCore::GetBusTypeByName(const std::string &busName) in GetBusTypeByName()
101 return BusType::BUS_TYPE_INVALID; in GetBusTypeByName()
108 BusType busType = GetBusTypeByName(busName); in GetBusExtensionByName()
109 if (busType <= BusType::BUS_TYPE_INVALID || busType >= BusType::BUS_TYPE_MAX) { in GetBusExtensionByName()
/ohos5.0/drivers/external_device_manager/utils/include/
H A Dext_object.h23 enum BusType : uint32_t { enum
56 BusType GetBusType() const in GetBusType()
91 BusType busType_;
106 BusType busType = BusType::BUS_TYPE_INVALID,
113 BusType GetBusType() const in GetBusType()
134 BusType busType;
H A Dibus_extension.h33 virtual BusType GetBusType() = 0;
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/include/bus_extension/core/
H A Dbus_extension_core.h33 int32_t Register(BusType busType, std::shared_ptr<IBusExtension> busExtension);
35 static BusType GetBusTypeByName(const std::string &busName);
40 std::unordered_map<BusType, std::shared_ptr<IBusExtension>> busExtensions_;
42 static std::unordered_map<std::string, BusType> busTypeMap_;
47 void RegisterBusExtension(BusType busType) in RegisterBusExtension()
/ohos5.0/drivers/external_device_manager/services/zidl/src/
H A Ddriver_ext_mgr_types.cpp99 BusType busType = static_cast<BusType>(busTypeData); in UnMarshalling()
100 if (busType == BusType::BUS_TYPE_INVALID) { in UnMarshalling()
108 case BusType::BUS_TYPE_USB: { in UnMarshalling()
259 BusType busType = DeviceInfoData::GetBusTypeByDeviceId(deviceId); in UnMarshalling()
260 if (busType <= BusType::BUS_TYPE_INVALID || busType >= BusType::BUS_TYPE_MAX) { in UnMarshalling()
278 case BusType::BUS_TYPE_USB: { in UnMarshalling()
318 BusType DeviceInfoData::GetBusTypeByDeviceId(uint64_t deviceId) in GetBusTypeByDeviceId()
320 return static_cast<BusType>(deviceId & 0x00000000FFFFFFF); in GetBusTypeByDeviceId()
437 …if (driverInfo->busType <= BusType::BUS_TYPE_INVALID || driverInfo->busType >= BusType::BUS_TYPE_M… in ReadDriverInfoData()
477 case BusType::BUS_TYPE_USB: { in UnMarshalling()
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/src/
H A Ddriver_ext_mgr.cpp124 if (busType == BusType::BUS_TYPE_INVALID) { in QueryDevice()
130 ExtDeviceManager::GetInstance().QueryDevice(static_cast<BusType>(busType)); in QueryDevice()
133 case BusType::BUS_TYPE_USB: { in QueryDevice()
184 if (busType <= BusType::BUS_TYPE_INVALID || busType >= BusType::BUS_TYPE_MAX) { in ParseToDeviceInfoData()
191 case BusType::BUS_TYPE_USB: { in ParseToDeviceInfoData()
231 if (busType <= BusType::BUS_TYPE_INVALID || busType >= BusType::BUS_TYPE_MAX) { in ParseToDriverInfoData()
238 case BusType::BUS_TYPE_USB: { in ParseToDriverInfoData()
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/src/bus_extension/usb/
H A Dusb_bus_extension.cpp60 BusType UsbBusExtension::GetBusType() in GetBusType()
62 return BusType::BUS_TYPE_USB; in GetBusType()
112 if (device.GetBusType() != BusType::BUS_TYPE_USB) { in MatchDriver()
114 (uint32_t)device.GetBusType(), (uint32_t)BusType::BUS_TYPE_USB); in MatchDriver()
200 RegisterBusExtension<UsbBusExtension>(BusType::BUS_TYPE_USB); in RegBusExtension()
/ohos5.0/drivers/external_device_manager/test/unittest/bus_extension_usb_test/src/
H A Dusb_bus_extension_test.cpp98 deviceInfo->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_USB;
119 deviceInfo4.devInfo_.devBusInfo.busType = BusType::BUS_TYPE_INVALID;
123 drvInfo->bus_ = BusType::BUS_TYPE_INVALID;
/ohos5.0/drivers/external_device_manager/interfaces/innerkits/
H A Ddriver_ext_mgr_types.h50 BusType busType;
74 static BusType GetBusTypeByDeviceId(uint64_t deviceId);
114 BusType busType;
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/include/device_manager/
H A Detx_device_mgr.h40 vector<shared_ptr<DeviceInfo>> QueryDevice(const BusType busType);
59 unordered_map<BusType, unordered_map<uint64_t, shared_ptr<Device>>> deviceMap_;
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/src/device_manager/
H A Detx_device_mgr.cpp150 BusType type = deviceInfo->GetBusType(); in RemoveDeviceOfDeviceMap()
229 BusType type = devInfo->GetBusType(); in RegisterDevice()
289 BusType type = devInfo->GetBusType(); in UnRegisterDevice()
328 vector<shared_ptr<DeviceInfo>> ExtDeviceManager::QueryDevice(const BusType busType) in QueryDevice()
459 BusType busType = *reinterpret_cast<BusType *>(&deviceId); in QueryDeviceByDeviceID()
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-beta2/
H A Djs-apidiff-driver.md14 |新增|NA|类名:BusType;<br>方法or属性:USB = 1|@ohos.driver.deviceManager.d.ts|
15 |新增|NA|类名:Device;<br>方法or属性:busType: BusType;|@ohos.driver.deviceManager.d.ts|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/
H A Djs-apidiff-driver.md14 |新增|NA|类名:BusType;<br>方法or属性:USB = 1|@ohos.driver.deviceManager.d.ts|
15 |新增|NA|类名:Device;<br>方法or属性:busType: BusType;|@ohos.driver.deviceManager.d.ts|
/ohos5.0/drivers/external_device_manager/services/native/driver_extension_manager/include/bus_extension/usb/
H A Dusb_device_info.h25 : DeviceInfo(busDeviceId, BusType::BUS_TYPE_USB, description) { }
H A Dusb_bus_extension.h42 BusType GetBusType() override;
/ohos5.0/docs/en/release-notes/api-diff/v4.0-beta2/
H A Djs-apidiff-driver.md14 |Added|NA|Class name: BusType;<br>Method or attribute name: USB = 1|@ohos.driver.deviceManager.d.ts|
15 |Added|NA|Class name: Device;<br>Method or attribute name: busType: BusType;|@ohos.driver.deviceMan…
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v3.2-Release/
H A Djs-apidiff-driver.md14 |Added|NA|Class name: BusType;<br>Method or attribute name: USB = 1|@ohos.driver.deviceManager.d.ts|
15 |Added|NA|Class name: Device;<br>Method or attribute name: busType: BusType;|@ohos.driver.deviceMan…
/ohos5.0/drivers/external_device_manager/test/unittest/device_manager_js_test/
H A DDeviceManagerJsTest.js58 var devices = deviceManager.queryDevices(deviceManager.BusType.USB);
382 return (deviceId & 0x00000000FFFFFFFF) === deviceManager.BusType.USB;
489 if (driverInfo.busType === deviceManager.BusType.USB) {
/ohos5.0/drivers/external_device_manager/test/moduletest/drivers_pkg_manager_mt/
H A Ddrivers_pkg_manager_mt.cpp40 deviceInfo->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_USB; in PrintQueryMatchDriver()
/ohos5.0/drivers/external_device_manager/test/unittest/driver_extension_manager_client_test/
H A Ddriver_extension_manager_client_test.cpp160 uint32_t busType = static_cast<uint32_t>(BusType::BUS_TYPE_INVALID);
169 uint32_t busType = static_cast<uint32_t>(BusType::BUS_TYPE_USB);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-driverdevelopment-kit/
H A Djs-apis-driver-deviceManager.md51 let devices : Array<deviceManager.Device> = deviceManager.queryDevices(deviceManager.BusType.USB);
376 | busType | [BusType](#bustype) | 是 | 总线类型。 |
391 ## BusType section
H A Djs-apis-driver-deviceManager-sys.md170 | busType | [BusType](js-apis-driver-deviceManager.md#bustype) | 是 | 总线类型。 |
/ohos5.0/drivers/external_device_manager/frameworks/js/napi/device_manager/
H A Ddevice_manager_middle.cpp372 if (device->busType == BusType::BUS_TYPE_USB) { in ConvertDeviceToJsDevice()
420 BusType busType = DeviceInfoData::GetBusTypeByDeviceId(deviceInfo->deviceId); in ConvertToJsDeviceInfo()
421 if (busType == BusType::BUS_TYPE_USB) { in ConvertToJsDeviceInfo()
462 if (driverInfo->busType == BusType::BUS_TYPE_USB) { in ConvertToJsDriverInfo()
489 int32_t busType = BusType::BUS_TYPE_USB; in QueryDevices()
/ohos5.0/docs/en/application-dev/reference/apis-driverdevelopment-kit/
H A Djs-apis-driver-deviceManager.md51 let devices : Array<deviceManager.Device> = deviceManager.queryDevices(deviceManager.BusType.USB);
376 | busType | [BusType](#bustype) | Yes | Bus type.|
391 ## BusType section

12