/base/hiviewdfx/hiview/plugins/performance/persistence/ |
H A D | AppLaunchSceneDbAdapter.cpp | 20 void AppLaunchSceneDbAdapter::CreateRecord(const std::string& bundleName, const AppStartRecord& record) in CreateRecord() argument 22 appStartRecords.insert(std::make_pair(bundleName, record)); in CreateRecord() 25 void AppLaunchSceneDbAdapter::UpdateRecord(const std::string& bundleName, const AppStartRecord& record) in UpdateRecord() argument 27 appStartRecords[bundleName] = record; in UpdateRecord() 30 void AppLaunchSceneDbAdapter::DeleteRecord(const std::string& bundleName) in DeleteRecord() argument 32 appStartRecords.erase(bundleName); in DeleteRecord() 35 AppLaunchSceneDbAdapter::AppStartRecord AppLaunchSceneDbAdapter::QueryRecord(const std::string& bundleName) in QueryRecord() argument 38 auto it = appStartRecords.find(bundleName); in QueryRecord() 47 appStartRecords.insert(std::make_pair(record.bundleName, record)); in CreateRecord() 52 appStartRecords[record.bundleName] in UpdateRecord() [all...] |
/base/notification/common_event_service/services/src/ |
H A D | static_subscriber_manager.cpp | 62 std::string bundleName = appInfo.bundleName; in InitAllowList() local 64 if (staticSubscribers_.find(bundleName) == staticSubscribers_.end()) { in InitAllowList() 68 staticSubscribers_.insert(std::make_pair(bundleName, subscriber)); in InitAllowList() 70 staticSubscribers_[bundleName].events.emplace(e); in InitAllowList() 98 if (staticSubscribers_.find(extension.bundleName) == staticSubscribers_.end()) { in InitValidSubscribers() 100 extension.bundleName.c_str()); in InitValidSubscribers() 103 EVENT_LOGI("StaticExtension exists, bundlename = %{public}s", extension.bundleName.c_str()); in InitValidSubscribers() 115 for (auto bundleName : bundleList) { in InitValidSubscribers() 116 auto finder = staticSubscribers_.find(bundleName); in InitValidSubscribers() 130 IsDisableEvent(const std::string &bundleName, const std::string &event) IsDisableEvent() argument 145 PublishCommonEventConnecAbility(const CommonEventData &data, const sptr<IRemoteObject> &service, const int32_t &userId, const std::string &bundleName, const std::string &abilityName) PublishCommonEventConnecAbility() argument 157 PublishCommonEventInner(const CommonEventData &data, const CommonEventPublishInfo &publishInfo, const Security::AccessToken::AccessTokenID &callerToken, const int32_t &userId, const sptr<IRemoteObject> &service, const std::string &bundleName) PublishCommonEventInner() argument 210 PublishCommonEvent(const CommonEventData &data, const CommonEventPublishInfo &publishInfo, const Security::AccessToken::AccessTokenID &callerToken, const int32_t &userId, const sptr<IRemoteObject> &service, const std::string &bundleName) PublishCommonEvent() argument 250 VerifySubscriberPermission(const std::string &bundleName, const int32_t &userId, const std::vector<std::string> &permissions) VerifySubscriberPermission() argument 371 AddSubscriberWithBundleName(const std::string &bundleName, const int32_t &userId) AddSubscriberWithBundleName() argument 389 RemoveSubscriberWithBundleName(const std::string &bundleName, const int32_t &userId) RemoveSubscriberWithBundleName() argument 436 std::string bundleName = data.GetWant().GetElement().GetBundleName(); UpdateSubscriber() local 488 UpdateDisableEvents( const std::string &bundleName, const std::vector<std::string> &events, bool enable) UpdateDisableEvents() argument 529 auto bundleName = SetStaticSubscriberState() local 546 auto bundleName = SetStaticSubscriberState() local [all...] |
/base/hiviewdfx/hiview/plugins/performance/scene_data_processor/ |
H A D | AppLaunchSceneDataProcessor.cpp | 59 std::string bundleName = data.bundleName; in GetBundleName() local 62 bundleName = pidBundleMap[data.appPid]; in GetBundleName() 66 bundleName = data.note; in GetBundleName() 68 return bundleName; in GetBundleName() 77 std::string bundleName = GetBundleName(data); in ProcessSceneData() local 78 if (bundleName.empty()) { in ProcessSceneData() 81 AppStartRecord record = GetRecord(bundleName); in ProcessSceneData() 84 CreateRecord(bundleName, data); in ProcessSceneData() 85 StartTimer(bundleName); in ProcessSceneData() 102 Expired(std::string bundleName) Expired() argument 147 SaveCheckPoint(const std::string& bundleName, const AppStartCheckPointData& data) SaveCheckPoint() argument 231 AllPointsReceived(const std::string& bundleName) AllPointsReceived() argument 274 CalcMetrics(const std::string& bundleName) CalcMetrics() argument 352 ReportConditionMet(const std::string& bundleName) ReportConditionMet() argument 359 GetRecord(const std::string& bundleName) GetRecord() argument 364 DeleteRecord(const std::string& bundleName) DeleteRecord() argument 374 CreateRecord(const std::string& bundleName, const AppStartCheckPointData& data) CreateRecord() argument [all...] |
H A D | SceneDataMapDbAdapter.cpp | 19 void SceneDataMapDbAdapter::ClearMapByBundleName(const std::string& bundleName) in ClearMapByBundleName() argument 22 if (it->second == bundleName) { in ClearMapByBundleName() 30 void SceneDataMapDbAdapter::SaveAppIdIntoMap(const int32_t& appId, const std::string& bundleName) in SaveAppIdIntoMap() argument 34 pidBundleMap.insert(std::make_pair(appId, bundleName)); in SaveAppIdIntoMap() 36 pidBundleMap[appId] = bundleName; in SaveAppIdIntoMap()
|
/base/useriam/user_auth_framework/services/context/src/ |
H A D | context_appstate_observer.cpp | 59 const std::string bundleName = callback->GetCallerName(); in SubscribeAppState() local 60 if (bundleName.empty()) { in SubscribeAppState() 61 IAM_LOGE("bundleName is null"); in SubscribeAppState() 71 appStateObserver_ = new (std::nothrow) ContextAppStateObserver(contextId, bundleName); in SubscribeAppState() 78 bundleNameList.emplace_back(bundleName); in SubscribeAppState() 86 IAM_LOGI("SubscribeAppState success, contextId:****%{public}hx, bundleName:%{public}s", in SubscribeAppState() 87 static_cast<uint16_t>(contextId), bundleName.c_str()); in SubscribeAppState() 134 const std::string bundleName) : contextId_(contextId), bundleName_(bundleName) in ContextAppStateObserver() 165 auto bundleName in OnAppStateChanged() local 133 ContextAppStateObserver(const uint64_t contextId, const std::string bundleName) ContextAppStateObserver() argument 180 auto bundleName = appStateData.bundleName; OnForegroundApplicationChanged() local 195 auto bundleName = abilityStateData.bundleName; OnAbilityStateChanged() local [all...] |
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_bundle_option_test.cpp | 43 std::string bundleName = "BundleName"; in HWTEST_F() local 46 auto rrc = std::make_shared<NotificationBundleOption>(bundleName, uid); in HWTEST_F() 59 std::string bundleName = "BundleName"; in HWTEST_F() local 62 auto rrc = std::make_shared<NotificationBundleOption>(bundleName, uid); in HWTEST_F() 75 std::string bundleName = "BundleName"; in HWTEST_F() local 77 auto rrc = std::make_shared<NotificationBundleOption>(bundleName, uid); in HWTEST_F() 79 "NotificationBundleOption{ bundleName = BundleName, uid = 10, instanceKey = 0, appIndex = -1 }"; in HWTEST_F() 92 std::string bundleName = "BundleName"; in HWTEST_F() local 94 auto rrc = std::make_shared<NotificationBundleOption>(bundleName, uid); in HWTEST_F() 108 std::string bundleName in HWTEST_F() local 130 std::string bundleName = "BundleName"; HWTEST_F() local 144 std::string bundleName = "BundleName"; HWTEST_F() local [all...] |
/base/account/os_account/services/accountmgr/src/appaccount/ |
H A D | inner_app_account_manager.cpp | 40 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) in AddAccount() 42 AppAccountInfo appAccountInfo(name, bundleName); in AddAccount() 44 return controlManager_.AddAccount(name, extraInfo, uid, bundleName, appAccountInfo); in AddAccount() 53 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) in CreateAccount() 55 AppAccountInfo appAccountInfo(name, bundleName); in CreateAccount() 57 return controlManager_.CreateAccount(name, options, uid, bundleName, appAccountInfo); in CreateAccount() 66 const std::string &name, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) in DeleteAccount() 68 AppAccountInfo appAccountInfo(name, bundleName); in DeleteAccount() 70 ErrCode result = controlManager_.DeleteAccount(name, uid, bundleName, appAccountInfo); in DeleteAccount() 71 if ((result == ERR_OK) && (!subscribeManager_.PublishAccount(appAccountInfo, uid, bundleName))) { in DeleteAccount() 39 AddAccount(const std::string &name, const std::string &extraInfo, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) AddAccount() argument 52 CreateAccount(const std::string &name, const CreateAccountOptions &options, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) CreateAccount() argument 65 DeleteAccount( const std::string &name, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) DeleteAccount() argument 77 GetAccountExtraInfo(const std::string &name, std::string &extraInfo, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) GetAccountExtraInfo() argument 83 SetAccountExtraInfo(const std::string &name, const std::string &extraInfo, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) SetAccountExtraInfo() argument 129 CheckAppAccountSyncEnable(const std::string &name, bool &syncEnable, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) CheckAppAccountSyncEnable() argument 135 SetAppAccountSyncEnable(const std::string &name, const bool &syncEnable, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) SetAppAccountSyncEnable() argument 187 DeleteAccountCredential(const std::string &name, const std::string &credentialType, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) DeleteAccountCredential() argument 295 GetAllAccounts(const std::string &owner, std::vector<AppAccountInfo> &appAccounts, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) GetAllAccounts() argument 301 GetAllAccessibleAccounts(std::vector<AppAccountInfo> &appAccounts, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) GetAllAccessibleAccounts() argument 307 SelectAccountsByOptions( const SelectAccountsOptions &options, const sptr<IAppAccountAuthenticatorCallback> &callback, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) SelectAccountsByOptions() argument 330 SubscribeAppAccount(const AppAccountSubscribeInfo &subscribeInfo, const sptr<IRemoteObject> &eventListener, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) SubscribeAppAccount() argument 342 OnPackageRemoved( const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) OnPackageRemoved() argument [all...] |
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/ |
H A D | visit_record_json_manager.cpp | 29 const std::string BUNDLENAME = "bundleName";
50 int32_t VisitRecordJsonManager::AddVisitRecord(const std::string& bundleName, const int32_t& userId,
in AddVisitRecord() argument 59 if (iter->bundleName == bundleName && iter->userId == userId && iter->docUri == docUri) {
in AddVisitRecord() 65 info.bundleName = bundleName;
in AddVisitRecord() 74 int32_t VisitRecordJsonManager::AddVisitRecord(const std::string& bundleName, const int32_t& userId,
in AddVisitRecord() argument 80 AccessTokenID originalTokenId = AccessToken::AccessTokenKit::GetHapTokenID(userId, bundleName, 0);
in AddVisitRecord() 85 return AddVisitRecord(bundleName, userId, docUri, time, originalTokenId);
in AddVisitRecord() 88 int32_t VisitRecordJsonManager::GetVisitRecordList(const std::string& bundleName, cons argument 134 std::string bundleName = ""; VisitRecordInfoFromJson() local [all...] |
H A D | sandbox_json_manager.cpp | 36 const std::string BUNDLENAME = "bundleName";
63 bool SandboxJsonManager::HasRetentionSandboxInfo(const std::string& bundleName)
in HasRetentionSandboxInfo() argument 71 if (iter->bundleName == bundleName && iter->userId == userId) {
in HasRetentionSandboxInfo() 80 if (retentionInfo.bundleName.empty() || retentionInfo.appIndex < 0 || retentionInfo.userId < 0 ||
in AddSandboxInfo() 82 DLP_LOG_ERROR(LABEL, "Param is invalid, bundleName.empty=%{public}d, appIndex=%{public}d, userId=%{public}d"
in AddSandboxInfo() 83 ", userId=%{public}d.", retentionInfo.bundleName.empty(), retentionInfo.appIndex, retentionInfo.userId,
in AddSandboxInfo() 137 if (info.bundleName.empty() && info.tokenId == 0) {
in UpdateRetentionState() 138 DLP_LOG_ERROR(LABEL, "tokenId==0 and bundleName empty");
in UpdateRetentionState() 155 return info1.bundleName in CompareByBundleName() 220 RemoveRetentionState(const std::string& bundleName, const int32_t& appIndex) RemoveRetentionState() argument 250 GetRetentionSandboxList(const std::string& bundleName, std::vector<RetentionSandBoxInfo>& retentionSandBoxInfoVec, bool isRetention) GetRetentionSandboxList() argument [all...] |
/base/inputmethod/imf/services/include/ |
H A D | input_type_manager.h | 32 std::string bundleName; member 36 return (bundleName == ime.bundleName && subName == ime.subName); in operator ==() 40 return bundleName == ime.bundleName ? (subName < ime.subName) : (bundleName < ime.bundleName); in operator <()
|
/base/notification/distributed_notification_service/services/distributed/src/ |
H A D | distributed_preferences_info.cpp | 38 void DistributedPreferencesInfo::SetDistributedBundleEnable(const std::string &bundleName, int32_t uid, bool enable) in SetDistributedBundleEnable() argument 40 bundleEnable_[std::make_pair(bundleName, uid)] = enable; in SetDistributedBundleEnable() 43 bool DistributedPreferencesInfo::GetDistributedBundleEnable(const std::string &bundleName, int32_t uid) in GetDistributedBundleEnable() argument 45 auto iter = bundleEnable_.find(std::make_pair(bundleName, uid)); in GetDistributedBundleEnable() 47 ANS_LOGW("bundle %{public}s(%{public}d) not found.", bundleName.c_str(), uid); in GetDistributedBundleEnable() 54 void DistributedPreferencesInfo::DeleteDistributedBundleInfo(const std::string &bundleName, int32_t uid) in DeleteDistributedBundleInfo() argument 56 bundleEnable_.erase(std::make_pair(bundleName, uid)); in DeleteDistributedBundleInfo()
|
/base/inputmethod/imf/test/fuzztest/securitymodeparser_fuzzer/ |
H A D | securitymodeparser_fuzzer.cpp | 29 void FuzzGetSecurityMode(const std::string &bundleName, const int32_t userId) in FuzzGetSecurityMode() argument 31 SecurityModeParser::GetInstance()->GetSecurityMode(bundleName, userId); in FuzzGetSecurityMode() 39 void FuzzParseSecurityMode(const std::string &bundleName, const int32_t userId) in FuzzParseSecurityMode() argument 41 SecurityModeParser::GetInstance()->ParseSecurityMode(bundleName, userId); in FuzzParseSecurityMode() 44 void FuzzIsFullMode(const std::string &bundleName) in FuzzIsFullMode() argument 46 SecurityModeParser::GetInstance()->IsFullMode(bundleName); in FuzzIsFullMode()
|
/base/customization/enterprise_device_management/tools/edm/src/ |
H A D | edm_command.cpp | 81 std::string bundleName; in RunAsEnableCommand() local 83 ErrCode result = ParseEnableAdminCommandOption(bundleName, abilityName); in RunAsEnableCommand() 84 if (result == ERR_EDM_TOOLS_COMMAND_HELP && bundleName.empty() && abilityName.empty()) { in RunAsEnableCommand() 90 if (bundleName.empty()) { in RunAsEnableCommand() 97 elementName.SetElementBundleName(&elementName, bundleName.c_str()); in RunAsEnableCommand() 106 std::string bundleName; in RunAsDisableAdminCommand() local 108 ErrCode result = ParseEnableAdminCommandOption(bundleName, abilityName); in RunAsDisableAdminCommand() 109 if (result == ERR_EDM_TOOLS_COMMAND_HELP && bundleName.empty()) { in RunAsDisableAdminCommand() 115 if (bundleName.empty()) { in RunAsDisableAdminCommand() 118 result = enterpriseDeviceMgrProxy_->DisableSuperAdmin(bundleName); in RunAsDisableAdminCommand() 122 ParseEnableAdminCommandOption(std::string &bundleName, std::string &abilityName) ParseEnableAdminCommandOption() argument 156 RunAsEnableCommandParseOptionArgument(int option, std::string &bundleName, std::string &abilityName) RunAsEnableCommandParseOptionArgument() argument [all...] |
/base/global/resource_management/frameworks/resmgr/src/ |
H A D | resource_manager.cpp | 53 const std::string &bundleName, const std::string &moduleName, in CreateResourceManagerDef() 57 if (bundleName.empty()) { in CreateResourceManagerDef() 58 RESMGR_HILOGE(RESMGR_TAG, "bundleName or hapPath is empty when CreateResourceManagerDef"); in CreateResourceManagerDef() 63 RESMGR_HILOGE(RESMGR_TAG, "CreateResourceManagerDef failed bundleName = %{public}s moduleName = %{public}s", in CreateResourceManagerDef() 64 bundleName.c_str(), moduleName.c_str()); in CreateResourceManagerDef() 67 resourceManagerImpl->bundleInfo.first = bundleName; in CreateResourceManagerDef() 75 themePackManager->LoadThemeRes(bundleName, moduleName, userId); in CreateResourceManagerDef() 81 std::shared_ptr<ResourceManager> CreateResourceManagerExt(const std::string &bundleName, const int32_t appType) in CreateResourceManagerExt() argument 83 if (bundleName.empty()) { in CreateResourceManagerExt() 84 RESMGR_HILOGE(RESMGR_TAG, "bundleName i in CreateResourceManagerExt() 52 CreateResourceManagerDef( const std::string &bundleName, const std::string &moduleName, const std::string &hapPath, const std::vector<std::string> &overlayPath, ResConfig &resConfig, int32_t userId) CreateResourceManagerDef() argument 97 CreateResourceManager(const std::string &bundleName, const std::string &moduleName, const std::string &hapPath, const std::vector<std::string> &overlayPath, ResConfig &resConfig, int32_t appType, int32_t userId) CreateResourceManager() argument [all...] |
/base/notification/common_event_service/services/include/ |
H A D | static_subscriber_manager.h | 50 const sptr<IRemoteObject> &service, const std::string &bundleName); 72 std::string bundleName; member 78 return (name == that.name) && (bundleName == that.bundleName) && (userId == that.userId) && in operator ==() 94 void AddSubscriberWithBundleName(const std::string &bundleName, const int32_t &userId); 95 void RemoveSubscriberWithBundleName(const std::string &bundleName, const int32_t &userId); 96 bool VerifySubscriberPermission(const std::string &bundleName, const int32_t &userId, 102 bool IsDisableEvent(const std::string &bundleName, const std::string &event); 103 int32_t UpdateDisableEvents(const std::string &bundleName, const std::vector<std::string> &events, bool enable); 105 const int32_t &userId, const std::string &bundleName, cons [all...] |
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/ |
H A D | mock_bundle_mgr_proxy.cpp | 42 const std::string &bundleName, const BundleFlag flag, BundleInfo &bundleInfo, int32_t userId) in GetBundleInfo() 48 std::string BundleMgrProxy::GetAppIdByBundleName(const std::string &bundleName, const int userId) in GetAppIdByBundleName() argument 53 bool BundleMgrProxy::GetBundleNameForUid(const int uid, std::string &bundleName) in GetBundleNameForUid() argument 55 bundleName = "bundleName"; in GetBundleNameForUid() 59 std::string BundleMgrProxy::GetAppType(const std::string &bundleName) in GetAppType() argument 41 GetBundleInfo( const std::string &bundleName, const BundleFlag flag, BundleInfo &bundleInfo, int32_t userId) GetBundleInfo() argument
|
/base/customization/enterprise_device_management/framework/extension/src/ |
H A D | enterprise_admin_stub_impl.cpp | 41 void EnterpriseAdminStubImpl::OnBundleAdded(const std::string &bundleName, int32_t accountId) in OnBundleAdded() argument 46 extension->OnBundleAdded(bundleName, accountId); in OnBundleAdded() 51 void EnterpriseAdminStubImpl::OnBundleRemoved(const std::string &bundleName, int32_t accountId) in OnBundleRemoved() argument 56 extension->OnBundleRemoved(bundleName, accountId); in OnBundleRemoved() 61 void EnterpriseAdminStubImpl::OnAppStart(const std::string &bundleName) in OnAppStart() argument 66 extension->OnAppStart(bundleName); in OnAppStart() 71 void EnterpriseAdminStubImpl::OnAppStop(const std::string &bundleName) in OnAppStop() argument 76 extension->OnAppStop(bundleName); in OnAppStop()
|
/base/customization/enterprise_device_management/services/edm/src/connection/ |
H A D | enterprise_admin_proxy.cpp | 43 void EnterpriseAdminProxy::OnBundleAdded(const std::string &bundleName, int32_t accountId) in OnBundleAdded() argument 50 data.WriteString(bundleName); in OnBundleAdded() 56 void EnterpriseAdminProxy::OnBundleRemoved(const std::string &bundleName, int32_t accountId) in OnBundleRemoved() argument 63 data.WriteString(bundleName); in OnBundleRemoved() 69 void EnterpriseAdminProxy::OnAppStart(const std::string &bundleName) in OnAppStart() argument 76 data.WriteString(bundleName); in OnAppStart() 81 void EnterpriseAdminProxy::OnAppStop(const std::string &bundleName) in OnAppStop() argument 88 data.WriteString(bundleName); in OnAppStop()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_dialog_test/ |
H A D | notification_dialog_test.cpp | 50 std::string bundleName = "BundleName";
in HWTEST_F() local 51 int32_t result2 = NotificationDialog::GetUidByBundleName(bundleName);
in HWTEST_F() 65 std::string bundleName = "BundleName";
in HWTEST_F() local 66 int32_t result2 = NotificationDialog::GetUidByBundleName(bundleName);
in HWTEST_F() 76 bundleName,
in HWTEST_F() 90 std::string bundleName = "BundleName";
in HWTEST_F() local 91 int32_t result2 = NotificationDialog::GetUidByBundleName(bundleName);
in HWTEST_F() 101 bundleName,
in HWTEST_F()
|
/base/customization/enterprise_device_management/services/edm_plugin/src/ |
H A D | manage_auto_start_apps_plugin.cpp | 76 std::string bundleName; in OnSetPolicy() local 78 if (!ParseAutoStartAppWant(str, bundleName, abilityName)) { in OnSetPolicy() 81 if (!CheckBundleAndAbilityExited(bundleName, abilityName)) { in OnSetPolicy() 82 EDMLOGW("CheckBundleAndAbilityExited failed bundleName: %{public}s, abilityName: %{public}s", in OnSetPolicy() 83 bundleName.c_str(), abilityName.c_str()); in OnSetPolicy() 87 autoStartupInfo.bundleName = bundleName; in OnSetPolicy() 91 EDMLOGW("OnSetPolicy SetApplicationAutoStartupByEDM err res: %{public}d bundleName: %{public}s " in OnSetPolicy() 92 "abilityName: %{public}s", res, bundleName.c_str(), abilityName.c_str()); in OnSetPolicy() 121 std::string appInfo = Info.bundleName in OnGetPolicy() 151 std::string bundleName; OnRemovePolicy() local 208 ParseAutoStartAppWant(std::string appWant, std::string &bundleName, std::string &abilityName) ParseAutoStartAppWant() argument 222 CheckBundleAndAbilityExited(const std::string &bundleName, const std::string &abilityName) CheckBundleAndAbilityExited() argument [all...] |
/base/notification/distributed_notification_service/services/distributed/test/unittest/ |
H A D | distributed_notification_manager_test.cpp | 34 const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request) {}; in OnPublish() 36 const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request) {}; in OnUpdate() 38 const std::string &deviceId, const std::string &bundleName, const std::string &label, int32_t id) {}; in OnDelete() 66 std::string bundleName = "<bundleName>"; in HWTEST_F() local 70 EXPECT_EQ(distributedManager_->Publish(bundleName, label, id, request), ERR_ANS_DISTRIBUTED_OPERATION_FAILED); in HWTEST_F() 83 std::string bundleName = "<bundleName>"; in HWTEST_F() local 87 EXPECT_EQ(distributedManager_->Publish(bundleName, label, id, request), ERR_ANS_DISTRIBUTED_OPERATION_FAILED); in HWTEST_F() 100 std::string bundleName in HWTEST_F() local 33 OnPublish( const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request) OnPublish() argument 35 OnUpdate( const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request) OnUpdate() argument 37 OnDelete( const std::string &deviceId, const std::string &bundleName, const std::string &label, int32_t id) OnDelete() argument 117 std::string bundleName = "<bundleName>"; HWTEST_F() local 134 std::string bundleName = "<bundleName>"; HWTEST_F() local 152 std::string bundleName = "<bundleName>"; HWTEST_F() local 170 std::string bundleName = "<bundleName>"; HWTEST_F() local 339 const std::string bundleName = "<bundleName>"; HWTEST_F() local 352 std::string bundleName = "<bundleName>"; HWTEST_F() local 368 std::string bundleName = "<bundleName>"; HWTEST_F() local [all...] |
/base/notification/distributed_notification_service/services/distributed/include/ |
H A D | distributed_notification_manager.h | 41 const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request)> 44 const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request)> 47 const std::string &deviceId, const std::string &bundleName, const std::string &label, int32_t id)> 54 * @param bundleName Indicates the bundle name of the application whose notifications are to be publish. 61 const std::string &bundleName, const std::string &label, int32_t id, const sptr<NotificationRequest> &request); 66 * @param bundleName Indicates the bundle name of the application whose notifications are to be update. 73 const std::string &bundleName, const std::string &label, int32_t id, const sptr<NotificationRequest> &request); 78 * @param bundleName Indicates the bundle name of the application whose notifications are to be remove. 83 ErrCode Delete(const std::string &bundleName, const std::string &label, int32_t id); 89 * @param bundleName Indicate 148 std::string bundleName; global() member [all...] |
/base/telephony/core_service/utils/common/src/ |
H A D | telephony_common_utils.cpp | 33 std::string bundleName = ""; in GetBundleName() local 34 TelephonyPermission::GetBundleNameByUid(uid, bundleName); in GetBundleName() 35 if (bundleName.empty()) { in GetBundleName() 36 bundleName.append(std::to_string(uid)); in GetBundleName() 37 bundleName.append(std::to_string(IPCSkeleton::GetCallingPid())); in GetBundleName() 39 return bundleName; in GetBundleName()
|
/base/inputmethod/imf/services/adapter/settings_data_provider/src/ |
H A D | security_mode_parser.cpp | 93 SecurityMode SecurityModeParser::GetSecurityMode(const std::string &bundleName, int32_t userId) in GetSecurityMode() argument 95 if (bundleName == SYSTEM_SPECIAL_IME) { in GetSecurityMode() 105 if (IsFullMode(bundleName)) { in GetSecurityMode() 112 bool SecurityModeParser::IsFullMode(std::string bundleName) in IsFullMode() argument 116 [&bundleName](const std::string &bundle) { return bundle == bundleName; }); in IsFullMode() 120 bool SecurityModeParser::IsDefaultFullMode(const std::string &bundleName, int32_t userId) in IsDefaultFullMode() argument 123 if (defaultIme != nullptr && bundleName == defaultIme->name) { in IsDefaultFullMode() 128 if (!ImeInfoInquirer::GetInstance().GetImeAppId(userId, bundleName, appId) in IsDefaultFullMode() 129 || !ImeInfoInquirer::GetInstance().GetImeVersionCode(userId, bundleName, versionCod in IsDefaultFullMode() [all...] |
/base/account/os_account/services/accountmgr/test/mock/common/ |
H A D | bundle_manager_adapter.cpp | 62 ErrCode BundleManagerAdapter::GetNameForUid(const int uid, std::string &bundleName) in GetNameForUid() argument 65 bundleName = STRING_OWNER; in GetNameForUid() 66 ACCOUNT_LOGI("mock bundleName = %{public}s", bundleName.c_str()); in GetNameForUid() 70 bool BundleManagerAdapter::GetBundleInfo(const std::string &bundleName, const AppExecFwk::BundleFlag flag, in GetBundleInfo() argument 73 ACCOUNT_LOGI("mock enter, bundleName = %{public}s", bundleName.c_str()); in GetBundleInfo() 74 if (bundleName == STRING_BUNDLE_NAME_NOT_INSTALLED) { in GetBundleInfo() 77 if (bundleName == STRING_NORMAL_BUNDLENAME) { in GetBundleInfo() 84 if (bundleName in GetBundleInfo() 143 GetUidByBundleName(const std::string &bundleName, const int userId) GetUidByBundleName() argument [all...] |