Home
last modified time | relevance | path

Searched refs:driverInfos (Results 1 - 18 of 18) sorted by relevance

/drivers/external_device_manager/services/native/driver_extension_manager/src/drivers_pkg_manager/
H A Ddrv_bundle_state_callback.cpp89 void DrvBundleStateCallback::ParseToPkgInfoTables(const std::vector<ExtensionAbilityInfo> &driverInfos, in ParseToPkgInfoTables() argument
94 for (const auto &driverInfo : driverInfos) { in ParseToPkgInfoTables()
201 std::vector<ExtensionAbilityInfo> driverInfos; in OnBundleAdded() local
202 if (!QueryDriverInfos(bundleName, userId, driverInfos) || driverInfos.empty()) { in OnBundleAdded()
206 if (!UpdateToRdb(driverInfos, bundleName)) { in OnBundleAdded()
223 std::vector<ExtensionAbilityInfo> driverInfos; in OnBundleUpdated() local
224 if (!QueryDriverInfos(bundleName, userId, driverInfos)) { in OnBundleUpdated()
228 if (driverInfos.empty()) { in OnBundleUpdated()
233 if (!UpdateToRdb(driverInfos, bundleNam in OnBundleUpdated()
287 std::vector<ExtensionAbilityInfo> driverInfos; GetAllDriverInfos() local
348 QueryDriverInfos(const std::string &bundleName, const int userId, std::vector<ExtensionAbilityInfo> &driverInfos) QueryDriverInfos() argument
388 UpdateToRdb(const std::vector<ExtensionAbilityInfo> &driverInfos, const std::string &bundleName) UpdateToRdb() argument
[all...]
H A Ddriver_pkg_manager.cpp137 EDM_LOGI(MODULE_PKG_MGR, "Total driverInfos number: %{public}zu", pkgInfos.size()); in QueryMatchDriver()
153 int32_t DriverPkgManager::QueryDriverInfo(vector<shared_ptr<DriverInfo>> &driverInfos, in QueryDriverInfo() argument
180 driverInfos.push_back(driverInfo); in QueryDriverInfo()
182 EDM_LOGD(MODULE_PKG_MGR, "DriverPkgManager::QueryDriverInfo driverInfos size:%{public}zu", driverInfos.size()); in QueryDriverInfo()
H A Dpkg_db_helper.cpp206 int32_t PkgDbHelper::QueryAllDriverInfos(std::vector<std::string> &driverInfos) in QueryAllDriverInfos() argument
211 return QueryAndGetResultColumnValues(rdbPredicates, columns, "driverInfo", driverInfos); in QueryAllDriverInfos()
/drivers/external_device_manager/frameworks/native/
H A Ddriver_ext_mgr_client.cpp140 UsbErrCode DriverExtMgrClient::QueryDriverInfo(std::vector<std::shared_ptr<DriverInfoData>> &driverInfos) in QueryDriverInfo() argument
145 return proxy_->QueryDriverInfo(driverInfos); in QueryDriverInfo()
149 std::vector<std::shared_ptr<DriverInfoData>> &driverInfos) in QueryDriverInfo()
154 return proxy_->QueryDriverInfo(driverInfos, true, driverUid); in QueryDriverInfo()
148 QueryDriverInfo(const std::string &driverUid, std::vector<std::shared_ptr<DriverInfoData>> &driverInfos) QueryDriverInfo() argument
/drivers/external_device_manager/interfaces/innerkits/
H A Ddriver_ext_mgr_client.h35 UsbErrCode QueryDriverInfo(std::vector<std::shared_ptr<DriverInfoData>> &driverInfos);
36 UsbErrCode QueryDriverInfo(const std::string &driverUid, std::vector<std::shared_ptr<DriverInfoData>> &driverInfos);
H A Didriver_ext_mgr.h39 virtual UsbErrCode QueryDriverInfo(std::vector<std::shared_ptr<DriverInfoData>> &driverInfos,
H A Ddriver_ext_mgr_types.h112 std::vector<std::shared_ptr<DriverInfoData>> &driverInfos);
/drivers/external_device_manager/services/zidl/src/
H A Ddriver_ext_mgr_stub.cpp190 std::vector<std::shared_ptr<DriverInfoData>> driverInfos; in OnQueryDriverInfo() local
191 int32_t ret = QueryDriverInfo(driverInfos, isByDriverUid, driverUid); in OnQueryDriverInfo()
197 uint64_t driverInfoSize = static_cast<uint64_t>(driverInfos.size()); in OnQueryDriverInfo()
199 EDM_LOGE(MODULE_FRAMEWORK, "failed to write size of driverInfos"); in OnQueryDriverInfo()
204 if (driverInfos[i] == nullptr) { in OnQueryDriverInfo()
209 if (!driverInfos[i]->Marshalling(reply)) { in OnQueryDriverInfo()
H A Ddriver_ext_mgr_proxy.cpp192 UsbErrCode DriverExtMgrProxy::QueryDriverInfo(std::vector<std::shared_ptr<DriverInfoData>> &driverInfos, in QueryDriverInfo() argument
228 if (!DriverInfoData::DriverInfosUnMarshalling(reply, driverInfos)) { in QueryDriverInfo()
229 EDM_LOGE(MODULE_FRAMEWORK, "failed to write driverInfos"); in QueryDriverInfo()
H A Ddriver_ext_mgr_types.cpp504 std::vector<std::shared_ptr<DriverInfoData>> &driverInfos) in DriverInfosUnMarshalling()
512 if (driverInfoSize > driverInfos.max_size()) { in DriverInfosUnMarshalling()
523 driverInfos.push_back(driverInfo); in DriverInfosUnMarshalling()
503 DriverInfosUnMarshalling(MessageParcel &parcel, std::vector<std::shared_ptr<DriverInfoData>> &driverInfos) DriverInfosUnMarshalling() argument
/drivers/external_device_manager/services/native/driver_extension_manager/include/drivers_pkg_manager/
H A Ddrv_bundle_state_callback.h113 std::vector<ExtensionAbilityInfo> &driverInfos);
114 bool UpdateToRdb(const std::vector<ExtensionAbilityInfo> &driverInfos, const std::string &bundleName = "");
121 const std::vector<ExtensionAbilityInfo> &driverInfos, std::vector<PkgInfoTable> &pkgInfoTables);
H A Ddriver_pkg_manager.h61 int32_t QueryDriverInfo(vector<shared_ptr<DriverInfo>> &driverInfos,
H A Dpkg_db_helper.h38 int32_t QueryAllDriverInfos(std::vector<std::string> &driverInfos);
/drivers/external_device_manager/services/zidl/include/
H A Ddriver_ext_mgr_proxy.h34 UsbErrCode QueryDriverInfo(std::vector<std::shared_ptr<DriverInfoData>> &driverInfos,
/drivers/external_device_manager/services/native/driver_extension_manager/src/
H A Ddriver_ext_mgr.cpp287 UsbErrCode DriverExtMgr::QueryDriverInfo(std::vector<std::shared_ptr<DriverInfoData>> &driverInfos, in QueryDriverInfo() argument
308 driverInfos.push_back(tempDriverInfo); in QueryDriverInfo()
311 EDM_LOGD(MODULE_DEV_MGR, "driverInfos size: %{public}zu enter", driverInfos.size()); in QueryDriverInfo()
/drivers/external_device_manager/test/unittest/drivers_pkg_manager_test/src/
H A Dpkg_db_helper_test.cpp228 std::vector<std::string> driverInfos; in HWTEST_F() local
229 int32_t ret = helper->QueryAllDriverInfos(driverInfos); in HWTEST_F()
231 EXPECT_LE(g_expect_size, driverInfos.size()); in HWTEST_F()
/drivers/external_device_manager/services/native/driver_extension_manager/include/
H A Ddriver_ext_mgr.h40 UsbErrCode QueryDriverInfo(std::vector<std::shared_ptr<DriverInfoData>> &driverInfos,
/drivers/external_device_manager/frameworks/js/napi/device_manager/
H A Ddevice_manager_middle.cpp598 std::vector<std::shared_ptr<DriverInfoData>> driverInfos; in QueryDriverInfo() local
606 ret = g_edmClient.QueryDriverInfo(driverUid, driverInfos); in QueryDriverInfo()
608 ret = g_edmClient.QueryDriverInfo(driverInfos); in QueryDriverInfo()
624 for (size_t index = 0; index < driverInfos.size(); index++) { in QueryDriverInfo()
625 napi_value element = ConvertToJsDriverInfo(env, driverInfos[index]); in QueryDriverInfo()

Completed in 8 milliseconds