/drivers/external_device_manager/services/native/driver_extension_manager/src/bus_extension/core/ |
H A D | bus_extension_core.cpp | 74 EDM_LOGE(MODULE_DEV_MGR, "busExtension init failed, busType is %{public}d", iter.first); in Init() 76 EDM_LOGD(MODULE_DEV_MGR, "busExtension init successfully, busType is %{public}d", iter.first); in Init() 81 int32_t BusExtensionCore::Register(BusType busType, std::shared_ptr<IBusExtension> busExtension) in Register() argument 87 if (busExtensions_.find(busType) != busExtensions_.end()) { in Register() 88 EDM_LOGI(MODULE_DEV_MGR, "busType %{public}d has been registered", busType); in Register() 91 busExtensions_.emplace(busType, busExtension); in Register() 92 EDM_LOGD(MODULE_DEV_MGR, "busType %{public}d register successfully", busType); in Register() 108 BusType busType in GetBusExtensionByName() local [all...] |
/drivers/external_device_manager/services/native/driver_extension_manager/src/ |
H A D | driver_ext_mgr.cpp | 113 UsbErrCode DriverExtMgr::QueryDevice(uint32_t busType, std::vector<std::shared_ptr<DeviceData>> &devices) in QueryDevice() argument 120 if (busType == BusType::BUS_TYPE_INVALID) { in QueryDevice() 121 EDM_LOGE(MODULE_DEV_MGR, "invalid busType:%{public}d", static_cast<int32_t>(busType)); in QueryDevice() 126 ExtDeviceManager::GetInstance().QueryDevice(static_cast<BusType>(busType)); in QueryDevice() 132 device->busType = usbDeviceInfo->GetBusType(); in QueryDevice() 179 auto busType = deviceInfo->GetBusType(); in ParseToDeviceInfoData() local 180 if (busType <= BusType::BUS_TYPE_INVALID || busType >= BusType::BUS_TYPE_MAX) { in ParseToDeviceInfoData() 181 EDM_LOGD(MODULE_DEV_MGR, "invalid busType in ParseToDeviceInfoData() 226 auto busType = driverInfo->GetBusType(); ParseToDriverInfoData() local [all...] |
/drivers/external_device_manager/services/zidl/src/ |
H A D | driver_ext_mgr_types.cpp | 56 if (!parcel.WriteUint32(static_cast<uint32_t>(busType))) {
in Marshalling() 57 EDM_LOGE(MODULE_DEV_MGR, "failed to write busType");
in Marshalling() 97 EDM_LOGE(MODULE_DEV_MGR, "failed to read busType");
in UnMarshalling() 101 BusType busType = static_cast<BusType>(busTypeData);
in UnMarshalling() local 102 if (busType == BusType::BUS_TYPE_INVALID) {
in UnMarshalling() 103 EDM_LOGE(MODULE_DEV_MGR, "invalid busType:%{public}u", busTypeData);
in UnMarshalling() 109 switch (busType) {
in UnMarshalling() 119 device->busType = busType;
in UnMarshalling() 127 os << "{busType in Dump() local 163 os << "{busType:" << busType << ", "; Dump() local 261 BusType busType = DeviceInfoData::GetBusTypeByDeviceId(deviceId); UnMarshalling() local [all...] |
H A D | driver_ext_mgr_stub.cpp | 50 uint32_t busType = 0; in OnQueryDevice() local 51 if (!data.ReadUint32(busType)) { in OnQueryDevice() 52 EDM_LOGE(MODULE_FRAMEWORK, "failed to read busType"); in OnQueryDevice() 57 UsbErrCode ret = QueryDevice(busType, devices); in OnQueryDevice()
|
/drivers/external_device_manager/services/native/driver_extension_manager/include/bus_extension/core/ |
H A D | bus_extension_core.h | 33 int32_t Register(BusType busType, std::shared_ptr<IBusExtension> busExtension); 47 void RegisterBusExtension(BusType busType) in RegisterBusExtension() argument 49 BusExtensionCore::GetInstance().Register(busType, std::make_shared<BusExtension>()); in RegisterBusExtension()
|
/drivers/external_device_manager/utils/include/ |
H A D | ext_object.h | 106 BusType busType = BusType::BUS_TYPE_INVALID, in DeviceInfo() 109 devInfo_.devBusInfo.busType = busType; in DeviceInfo() 115 return devInfo_.devBusInfo.busType; in GetBusType() 134 BusType busType; member
|
/drivers/external_device_manager/services/native/driver_extension_manager/src/drivers_pkg_manager/ |
H A D | driver_info.cpp | 106 string busType = GetStringValue(jsonObj, "bus"); in UnSerialize() local 107 auto busExt = BusExtensionCore::GetInstance().GetBusExtensionByName(LowerStr(busType)); in UnSerialize() 109 EDM_LOGE(MODULE_COMMON, "unknow bus type. %{public}s", busType.c_str()); in UnSerialize() 126 this->bus_ = busType; in UnSerialize() 127 this->busType_ = BusExtensionCore::GetBusTypeByName(busType); in UnSerialize()
|
/drivers/external_device_manager/test/fuzztest/drivers_pkg_manager_fuzzer/driverpkgmanager_fuzzer/ |
H A D | driverpkgmanager_fuzzer.cpp | 38 int busType = *(static_cast<const uint8_t *>(data)); in QueryMatchDriverIllegalBusTest() local 40 busType); in QueryMatchDriverIllegalBusTest() 41 devInfo->devInfo_.devBusInfo.busType = BUS_TYPE_USB; in QueryMatchDriverIllegalBusTest()
|
/drivers/hdf_core/framework/model/network/wifi/bus/ |
H A D | hdf_ibus_intf.c | 32 if (busConfig->busType >= BUS_BUTT) { in HdfWlanCreateBusManager() 33 HDF_LOGE("%s: Bus type %u not support!", __func__, busConfig->busType); in HdfWlanCreateBusManager()
|
/drivers/hdf_core/framework/model/sensor/driver/common/src/ |
H A D | sensor_platform_if.c | 36 if (busCfg->busType == SENSOR_BUS_I2C) { in ReadSensor() 65 } else if (busCfg->busType == SENSOR_BUS_SPI) { in ReadSensor() 83 if (busCfg->busType == SENSOR_BUS_I2C) { in WriteSensor() 97 } else if (busCfg->busType == SENSOR_BUS_SPI) { in WriteSensor()
|
H A D | sensor_config_parser.c | 236 if (busCfg->busType == SENSOR_BUS_I2C) { in GetSensorBusHandle() 239 } else if (busCfg->busType == SENSOR_BUS_SPI) { in GetSensorBusHandle() 253 if (busCfg->busType == SENSOR_BUS_I2C && busCfg->i2cCfg.handle != NULL) { in ReleaseSensorBusHandle() 258 } else if (busCfg->busType == SENSOR_BUS_SPI) { in ReleaseSensorBusHandle() 404 ret = parser->GetUint8(busNode, "busType", &config->busCfg.busType, 0); in ParseSensorBus() 405 CHECK_PARSER_RESULT_RETURN_VALUE(ret, "busType"); in ParseSensorBus() 409 if (config->busCfg.busType == SENSOR_BUS_I2C) { in ParseSensorBus() 416 } else if (config->busCfg.busType == SENSOR_BUS_SPI) { in ParseSensorBus() 426 } else if (config->busCfg.busType in ParseSensorBus() [all...] |
/drivers/hdf_core/framework/model/misc/vibrator/driver/src/ |
H A D | vibrator_parser.c | 68 ret = parser->GetUint8(busNode, "busType", &config->vibratorBus.busType, 0); in ParseVibratorBus() 69 CHECK_VIBRATOR_PARSER_RESULT_RETURN_VALUE(ret, "busType"); in ParseVibratorBus() 71 if (config->vibratorBus.busType == VIBRATOR_BUS_I2C) { in ParseVibratorBus() 78 } else if (config->vibratorBus.busType == VIBRATOR_BUS_GPIO) { in ParseVibratorBus() 106 if (config->vibratorBus.busType == VIBRATOR_BUS_I2C) { in GetVibratorBaseConfigData()
|
/drivers/external_device_manager/services/native/driver_extension_manager/src/device_manager/ |
H A D | etx_device_mgr.cpp | 325 vector<shared_ptr<DeviceInfo>> ExtDeviceManager::QueryDevice(const BusType busType) in QueryDevice() argument 330 if (deviceMap_.find(busType) == deviceMap_.end()) { in QueryDevice() 331 EDM_LOGE(MODULE_DEV_MGR, "no device is found and busType %{public}d is invalid", busType); in QueryDevice() 335 unordered_map<uint64_t, shared_ptr<Device>> map = deviceMap_[busType]; in QueryDevice() 341 EDM_LOGD(MODULE_DEV_MGR, "find %{public}zu device of busType %{public}d", devInfoVec.size(), busType); in QueryDevice() 431 BusType busType = *reinterpret_cast<BusType *>(&deviceId); in QueryDeviceByDeviceID() local 432 EDM_LOGI(MODULE_DEV_MGR, "the busType: %{public}d", static_cast<uint32_t>(busType)); in QueryDeviceByDeviceID() [all...] |
/drivers/external_device_manager/test/unittest/device_manager_test/ |
H A D | device_manager_test.cpp | 84 device->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_TEST; in HWTEST_F() 101 device->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_TEST; in HWTEST_F() 121 device0->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_TEST; in HWTEST_F() 126 device1->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_TEST; in HWTEST_F() 147 device0->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_TEST; in HWTEST_F() 152 device1->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_TEST; in HWTEST_F()
|
/drivers/hdf_core/framework/model/network/wifi/include/ |
H A D | hdf_wifi_config.h | 58 uint8_t busType; member 92 uint8_t busType; member
|
/drivers/external_device_manager/interfaces/innerkits/ |
H A D | idriver_ext_mgr.h | 34 virtual UsbErrCode QueryDevice(uint32_t busType, std::vector<std::shared_ptr<DeviceData>> &devices) = 0;
|
H A D | driver_ext_mgr_types.h | 50 BusType busType;
member in OHOS::ExternalDeviceManager::DeviceData 114 BusType busType;
member in OHOS::ExternalDeviceManager::DriverInfoData
|
H A D | driver_ext_mgr_client.h | 30 UsbErrCode QueryDevice(uint32_t busType, std::vector<std::shared_ptr<DeviceData>> &devices);
|
/drivers/external_device_manager/frameworks/native/ |
H A D | driver_ext_mgr_client.cpp | 99 UsbErrCode DriverExtMgrClient::QueryDevice(uint32_t busType, std::vector<std::shared_ptr<DeviceData>> &devices)
in QueryDevice() argument 104 return proxy_->QueryDevice(busType, devices);
in QueryDevice()
|
/drivers/external_device_manager/test/unittest/bus_extension_usb_test/src/ |
H A D | usb_bus_extension_test.cpp | 98 deviceInfo->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_USB; in HWTEST_F() 119 deviceInfo4.devInfo_.devBusInfo.busType = BusType::BUS_TYPE_INVALID; in HWTEST_F()
|
/drivers/hdf_core/framework/model/input/driver/ |
H A D | input_config.h | 45 uint8_t busType; member 117 uint8_t busType; member
|
/drivers/peripheral/vibrator/chipset/linear/ |
H A D | vibrator_linear_driver.c | 34 if (drvData->linearCfgData->vibratorBus.busType != VIBRATOR_BUS_GPIO) { in StartLinearVibrator() 61 if (drvData->linearCfgData->vibratorBus.busType != VIBRATOR_BUS_GPIO) { in StopLinearVibrator()
|
/drivers/external_device_manager/test/unittest/driver_extension_manager_client_test/ |
H A D | driver_extension_manager_client_test.cpp | 160 uint32_t busType = static_cast<uint32_t>(BusType::BUS_TYPE_INVALID);
in HWTEST_F() local 162 UsbErrCode ret = DriverExtMgrClient::GetInstance().QueryDevice(busType, devices);
in HWTEST_F() 169 uint32_t busType = static_cast<uint32_t>(BusType::BUS_TYPE_USB);
in HWTEST_F() local 171 UsbErrCode ret = DriverExtMgrClient::GetInstance().QueryDevice(busType, devices);
in HWTEST_F()
|
/drivers/external_device_manager/services/zidl/include/ |
H A D | driver_ext_mgr_proxy.h | 29 UsbErrCode QueryDevice(uint32_t busType, std::vector<std::shared_ptr<DeviceData>> &devices) override;
|
/drivers/external_device_manager/test/moduletest/drivers_pkg_manager_mt/ |
H A D | drivers_pkg_manager_mt.cpp | 40 deviceInfo->devInfo_.devBusInfo.busType = BusType::BUS_TYPE_USB; in PrintQueryMatchDriver()
|