/drivers/external_device_manager/services/native/driver_extension_manager/src/drivers_pkg_manager/ |
H A D | drv_bundle_state_callback.cpp | 54 std::string DrvBundleStateCallback::GetBundleSize(const std::string &bundleName) in GetBundleSize() argument 64 if (!bundleMgr_->GetBundleStats(bundleName, userId, bundleStats)) { in GetBundleSize() 98 DriverInfo tmpDrvInfo(driverInfo.bundleName, driverInfo.name); in ParseToPkgInfoTables() 115 if (bundlesSize.find(driverInfo.bundleName) == bundlesSize.end()) { in ParseToPkgInfoTables() 116 std::string bundleSize = GetBundleSize(driverInfo.bundleName); in ParseToPkgInfoTables() 117 bundlesSize.emplace(driverInfo.bundleName, bundleSize); in ParseToPkgInfoTables() 120 tmpDrvInfo.driverSize_ = bundlesSize[driverInfo.bundleName]; in ParseToPkgInfoTables() 137 .bundleAbility = driverInfo.bundleName + "-" + driverInfo.name, in CreatePkgInfoTable() 138 .bundleName = driverInfo.bundleName, in CreatePkgInfoTable() 182 OnBundleStateChanged(const uint8_t installType, const int32_t resultCode, const std::string &resultMsg, const std::string &bundleName) OnBundleStateChanged() argument 194 OnBundleAdded(const std::string &bundleName, const int userId) OnBundleAdded() argument 216 OnBundleUpdated(const std::string &bundleName, const int userId) OnBundleUpdated() argument 244 OnBundleRemoved(const std::string &bundleName, const int userId) OnBundleRemoved() argument 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 460 OnBundleDrvRemoved(const std::string &bundleName) OnBundleDrvRemoved() argument [all...] |
H A D | pkg_db_helper.cpp | 68 int32_t PkgDbHelper::DeleteRightRecord(const std::string &bundleName) in DeleteRightRecord() argument 71 std::string whereClause = {"bundleName = ?"}; in DeleteRightRecord() 72 std::vector<std::string> whereArgs = {bundleName}; in DeleteRightRecord() 80 int32_t PkgDbHelper::AddOrUpdatePkgInfo(const std::vector<PkgInfoTable> &pkgInfos, const std::string &bundleName) in AddOrUpdatePkgInfo() argument 92 if (!bundleName.empty()) { in AddOrUpdatePkgInfo() 93 whereClause.append("bundleName = ?"); in AddOrUpdatePkgInfo() 94 whereArgs.emplace_back(bundleName); in AddOrUpdatePkgInfo() 110 values.PutString("bundleName", pkgInfo.bundleName); in AddOrUpdatePkgInfo() 129 const std::string & bundleName, cons in AddOrUpdateRightRecord() 128 AddOrUpdateRightRecord( const std::string & bundleName, const std::string & bundleAbility, const std::string &driverInfo) AddOrUpdateRightRecord() argument 181 AddOrUpdateRightRecordEx(bool isUpdate, const std::string & bundleName, const std::string & bundleAbility, const std::string &driverInfo) AddOrUpdateRightRecordEx() argument 214 QueryAllBundleAbilityNames(const std::string &bundleName, std::vector<std::string> &bundleAbilityNames) QueryAllBundleAbilityNames() argument [all...] |
H A D | driver_pkg_manager.cpp | 118 ret->bundleName.clear(); in QueryMatchDriver() 143 ret->bundleName = pkgInfo.bundleName; in QueryMatchDriver() 176 = std::make_shared<DriverInfo>(pkgInfo.bundleName, pkgInfo.driverName, pkgInfo.driverUid); in QueryDriverInfo()
|
/drivers/external_device_manager/services/native/driver_extension_manager/src/device_manager/ |
H A D | driver_extension_controller.cpp | 69 const std::string& bundleName, in StartDriverExtension() 73 bundleName.c_str(), abilityName.c_str()); in StartDriverExtension() 80 want.SetElementName(bundleName, abilityName); in StartDriverExtension() 92 const std::string& bundleName, in StopDriverExtension() 97 bundleName.c_str(), abilityName.c_str()); in StopDriverExtension() 104 want.SetElementName(bundleName, abilityName); in StopDriverExtension() 114 const std::string& bundleName, in ConnectDriverExtension() 121 bundleName.c_str(), abilityName.c_str()); in ConnectDriverExtension() 133 callback->info_->bundleName_ = bundleName; in ConnectDriverExtension() 144 want.SetElementName(bundleName, abilityNam in ConnectDriverExtension() 68 StartDriverExtension( const std::string& bundleName, const std::string& abilityName) StartDriverExtension() argument 91 StopDriverExtension( const std::string& bundleName, const std::string& abilityName, int32_t userId) StopDriverExtension() argument 113 ConnectDriverExtension( const std::string& bundleName, const std::string& abilityName, std::shared_ptr<IDriverExtensionConnectCallback> callback, uint32_t deviceId ) ConnectDriverExtension() argument 155 DisconnectDriverExtension( const std::string& bundleName, const std::string& abilityName, std::shared_ptr<IDriverExtensionConnectCallback> callback, uint32_t deviceId ) DisconnectDriverExtension() argument [all...] |
H A D | bundle_update_callback.cpp | 21 void BundleUpdateCallback::OnBundlesUpdated(const std::string &bundleName) in OnBundlesUpdated() argument 23 auto deviceIds = ExtDeviceManager::GetInstance().DeleteBundlesOfBundleInfoMap(bundleName); in OnBundlesUpdated()
|
H A D | device.cpp | 53 std::string bundleName = Device::GetBundleName(bundleInfo);
in Connect() local 57 bundleName, abilityName, connectNofitier_, busDevId);
in Connect() 66 __func__, bundleName.c_str(), abilityName.c_str(), ret, retry);
in Connect() 71 bundleName, abilityName, connectNofitier_, busDevId);
in Connect() 104 std::string bundleName = Device::GetBundleName(bundleInfo);
in Connect() local 109 bundleName, abilityName, connectNofitier_, busDevId);
in Connect() 128 std::string bundleName = Device::GetBundleName(bundleInfo);
in Disconnect() local 131 bundleName, abilityName, connectNofitier_, busDevId);
in Disconnect() 175 std::string bundleName = Device::GetBundleName(bundleInfo);
in OnDisconnect() local 177 DriverExtensionController::GetInstance().StopDriverExtension(bundleName, abilityNam in OnDisconnect() [all...] |
H A D | etx_device_mgr.cpp | 161 std::unordered_set<uint64_t> ExtDeviceManager::DeleteBundlesOfBundleInfoMap(const std::string &bundleName) in DeleteBundlesOfBundleInfoMap() argument 166 if (bundleName.empty()) { in DeleteBundlesOfBundleInfoMap() 169 std::string startStr = bundleName + Device::GetStiching(); in DeleteBundlesOfBundleInfoMap() 200 std::string bundleInfo = bundleInfoNames->bundleName + Device::GetStiching() + bundleInfoNames->abilityName; in MatchDriverInfos() 259 bundleInfo = bundleInfoNames->bundleName + Device::GetStiching() + bundleInfoNames->abilityName; in RegisterDevice()
|
/drivers/external_device_manager/services/native/driver_extension_manager/include/drivers_pkg_manager/ |
H A D | pkg_db_helper.h | 43 const std::string &bundleName, const std::string &bundleAbility, const std::string &driverInfo); 45 int32_t QueryAllBundleAbilityNames(const std::string &bundleName, std::vector<std::string> &bundleAbilityNames); 47 int32_t DeleteRightRecord(const std::string &bundleName); 50 bool &isUpdate, const std::string &bundleName); 52 int32_t AddOrUpdatePkgInfo(const std::vector<PkgInfoTable> &pkgInfos, const std::string &bundleName = ""); 57 int32_t AddOrUpdateRightRecordEx(bool isUpdate, const std::string &bundleName,
|
H A D | drv_bundle_state_callback.h | 64 const std::string &resultMsg, const std::string &bundleName) override; 68 * @param bundleName Indicates the name of the bundle whose state has been installed. 71 virtual void OnBundleAdded(const std::string &bundleName, const int userId) override; 74 * @param bundleName Indicates the name of the bundle whose state has been Updated. 77 virtual void OnBundleUpdated(const std::string &bundleName, const int userId) override; 80 * @param bundleName Indicates the name of the bundle whose state has been Removed. 83 virtual void OnBundleRemoved(const std::string &bundleName, const int userId) override; 112 bool QueryDriverInfos(const std::string &bundleName, const int userId, 114 bool UpdateToRdb(const std::vector<ExtensionAbilityInfo> &driverInfos, const std::string &bundleName = ""); 119 std::string GetBundleSize(const std::string &bundleName); [all...] |
H A D | pkg_tables.h | 27 std::string bundleName; member
|
H A D | ibundle_update_callback.h | 26 virtual void OnBundlesUpdated(const std::string &bundleName) = 0;
|
H A D | driver_pkg_manager.h | 41 string bundleName; member 53 * @param bundleName Indicates the bundle name of the application.
|
/drivers/external_device_manager/test/moduletest/driver_extension_controller_mt/ |
H A D | driver_extension_controller_mt.cpp | 62 cout << "[usage]: start/stop/connect bundleName ExtensionAbilityName" << endl; in TestEntry() 69 string bundleName(argv[PARAM_INDEX_OF_BUNDLENAME]); in TestEntry() 71 cout << "args: "<< action << ", " << bundleName << ", " << abilityName << endl; in TestEntry() 75 ret = drvExtCtrl.StartDriverExtension(bundleName, abilityName); in TestEntry() 78 ret = drvExtCtrl.StopDriverExtension(bundleName, abilityName); in TestEntry() 80 ConnectAbilityTest(bundleName, abilityName); in TestEntry() 98 void ConnectAbilityTest(const string bundleName, const string abilityName) in ConnectAbilityTest() argument 103 auto ret = drvExtCtrl.ConnectDriverExtension(bundleName, abilityName, conCb); in ConnectAbilityTest() 113 ret = drvExtCtrl.DisconnectDriverExtension(bundleName, abilityName, conCb); in ConnectAbilityTest()
|
/drivers/peripheral/power/interfaces/hdi_service/src/ |
H A D | running_lock_impl.h | 36 uint64_t lockid = 0, const std::string &bundleName = ""); 38 uint64_t lockid = 0, const std::string &bundleName = ""); 40 uint64_t lockid = 0, const std::string &bundleName = ""); 42 uint64_t lockid = 0, const std::string &bundleName = ""); 54 const uint64_t &lockid, const std::string &bundleName, const std::string &tag);
|
H A D | running_lock_impl.cpp | 44 uint64_t lockid, const std::string &bundleName) in Hold() 74 std::function<void()> unholdFunc = std::bind(&RunningLockImpl::Unhold, filledInfo, lockid, bundleName); in Hold() 77 RunningLockImpl::NotifyChanged(filledInfo, lockid, bundleName, "DUBAI_TAG_RUNNINGLOCK_ADD"); in Hold() 82 uint64_t lockid, const std::string &bundleName) in Unhold() 105 RunningLockImpl::NotifyChanged(filledInfo, lockid, bundleName, "DUBAI_TAG_RUNNINGLOCK_REMOVE"); in Unhold() 111 uint64_t lockid, const std::string &bundleName) in HoldLock() 123 uint64_t lockid, const std::string &bundleName) in UnholdLock() 262 const uint64_t &lockid, const std::string &bundleName, const std::string &tag) in NotifyChanged() 276 .append(" BUNDLENAME=").append(bundleName) in NotifyChanged() 43 Hold(const RunningLockInfo &info, PowerHdfState state, uint64_t lockid, const std::string &bundleName) Hold() argument 81 Unhold(const RunningLockInfo &info, uint64_t lockid, const std::string &bundleName) Unhold() argument 110 HoldLock(const RunningLockInfo &info, PowerHdfState state, uint64_t lockid, const std::string &bundleName) HoldLock() argument 122 UnholdLock(const RunningLockInfo &info, uint64_t lockid, const std::string &bundleName) UnholdLock() argument 261 NotifyChanged(const RunningLockInfo &info, const uint64_t &lockid, const std::string &bundleName, const std::string &tag) NotifyChanged() argument
|
H A D | power_interface_impl.h | 64 uint64_t lockid, const std::string &bundleName) override; 67 uint64_t lockid, const std::string &bundleName) override;
|
H A D | running_lock_counter.cpp | 75 const std::string bundleName = ""; in NotifyHiView() local 79 "BUNDLENAME", bundleName, "LOG_LEVEL", logLevel, "TAG", tag); in NotifyHiView()
|
H A D | power_interface_impl.cpp | 462 uint64_t lockid, const std::string &bundleName) in HoldRunningLockExt() 465 return RunningLockImpl::HoldLock(info, g_powerState, lockid, bundleName); in HoldRunningLockExt() 469 uint64_t lockid, const std::string &bundleName) in UnholdRunningLockExt() 472 return RunningLockImpl::UnholdLock(info, lockid, bundleName); in UnholdRunningLockExt() 461 HoldRunningLockExt(const RunningLockInfo &info, uint64_t lockid, const std::string &bundleName) HoldRunningLockExt() argument 468 UnholdRunningLockExt(const RunningLockInfo &info, uint64_t lockid, const std::string &bundleName) UnholdRunningLockExt() argument
|
/drivers/external_device_manager/services/native/driver_extension_manager/include/device_manager/ |
H A D | driver_extension_controller.h | 31 int32_t StartDriverExtension(const std::string& bundleName, const std::string& abilityName); 32 int32_t StopDriverExtension(const std::string& bundleName, const std::string& abilityName, int32_t userId = -1); 34 const std::string& bundleName, 40 const std::string& bundleName,
|
H A D | bundle_update_callback.h | 25 void OnBundlesUpdated(const std::string &bundleName) override;
|
H A D | etx_device_mgr.h | 46 std::unordered_set<uint64_t> DeleteBundlesOfBundleInfoMap(const std::string &bundleName = "");
|
/drivers/external_device_manager/utils/include/ |
H A D | ext_object.h | 41 DriverInfo(const std::string &bundleName, const std::string &driverName, const std::string &driverUid = "") in DriverInfo() argument 42 : bundleName_(bundleName), driverName_(driverName) in DriverInfo() 45 driverUid_ = bundleName + "-" + driverName; in DriverInfo()
|
/drivers/external_device_manager/test/unittest/drivers_pkg_manager_test/src/ |
H A D | pkg_db_helper_test.cpp | 239 string bundleName = helper->QueryBundleInfoNames(driverInfo); in HWTEST_F() local 240 EXPECT_EQ("testAbility", bundleName); in HWTEST_F() 248 string bundleName = helper->QueryBundleInfoNames(driverInfo); in HWTEST_F() local 249 EXPECT_EQ("", bundleName); in HWTEST_F()
|