Home
last modified time | relevance | path

Searched refs:appName (Results 1 - 25 of 37) sorted by relevance

12

/base/startup/appspawn/modules/common/
H A Dappspawn_silk.c60 const char *appName = cJSON_GetStringValue(cJSON_GetArrayItem(silkJson, i)); in ParseSilkConfig() local
61 APPSPAWN_CHECK(appName != NULL, break, "appName is NULL"); in ParseSilkConfig()
62 APPSPAWN_LOGI("Enable silk appName %{public}s", appName); in ParseSilkConfig()
64 int len = strlen(appName) + 1; in ParseSilkConfig()
66 "appName %{public}s is larger than the maximum limit", appName); in ParseSilkConfig()
74 "Memset config item %{public}s failed", appName); in ParseSilkConfig()
76 ret = strncpy_s(*item, len, appName, le in ParseSilkConfig()
121 char **appName = NULL; LoadSilkLibrary() local
[all...]
H A Dappspawn_adapter.cpp164 const char *appName = APP_NAME; in SetSeccompFilter() local
188 appName = APP_PRIVILEGE; in SetSeccompFilter()
194 appName = IMF_EXTENTOIN_NAME; in SetSeccompFilter()
197 if (!SetSeccompPolicyWithName(type, appName)) { in SetSeccompFilter()
198 APPSPAWN_LOGE("Failed to set %{public}s seccomp filter and exit %{public}d", appName, errno); in SetSeccompFilter()
/base/security/security_guard/services/security_collector/src/
H A Dsecurity_collector_subscriber_manager.cpp59 int32_t SecurityCollectorSubscriberManager::GetAppSubscribeCount(const std::string &appName) in GetAppSubscribeCount() argument
64 count = std::count_if(subscribers.begin(), subscribers.end(), [appName] (const auto &subscriber) { in GetAppSubscribeCount()
65 return subscriber->GetAppName() == appName; in GetAppSubscribeCount()
68 LOGI("subcirbipt count, appName=%{public}s, count=%{public}d", appName.c_str(), count); in GetAppSubscribeCount()
72 int32_t SecurityCollectorSubscriberManager::GetAppSubscribeCount(const std::string &appName, int64_t eventId) in GetAppSubscribeCount() argument
75 if (std::any_of(subscribers.begin(), subscribers.end(), [appName] (const auto &subscriber) { in GetAppSubscribeCount()
76 return subscriber->GetAppName() == appName; in GetAppSubscribeCount()
78 LOGI("subcirbipt count 1, appName=%{public}s, eventId:%{public}" PRId64, appName in GetAppSubscribeCount()
123 std::string appName = subscriber->GetAppName(); SubscribeCollector() local
[all...]
H A Dsecurity_collector_run_manager.cpp51 std::string appName = subscriber->GetAppName(); in StartCollector() local
53 LOGI("appName:%{public}s, eventId:%{public}" PRId64, appName.c_str(), eventId); in StartCollector()
76 std::string appName = subscriber->GetAppName(); in StopCollector() local
78 LOGI("appName:%{public}s, eventId:%{public}" PRId64, appName.c_str(), eventId); in StopCollector()
84 if (collectorRunManager_[eventId]->GetAppName() != appName) { in StopCollector()
86 collectorRunManager_[eventId]->GetAppName().c_str(), appName.c_str()); in StopCollector()
H A Dsecurity_collector_manager_service.cpp117 std::string appName = (subscribeInfo.IsNotify() ? NOTIFY_APP_NAME : GetAppName()); in Subscribe() local
118 if (appName.empty()) { in Subscribe()
121 if (appName != NOTIFY_APP_NAME && !SetDeathRecipient(callback)) { in Subscribe()
124 auto eventHandler = [this] (const std::string &appName, const sptr<IRemoteObject> &remote, const Event &event) { in Subscribe()
125 if (appName == NOTIFY_APP_NAME) { in Subscribe()
136 auto subscriber = std::make_shared<SecurityCollectorSubscriber>(appName, subscribeInfo, callback, eventHandler); in Subscribe()
195 std::string appName = GetAppName(); in CollectorStart() local
196 LOGI("in subscribe, appname:%{public}s", appName.c_str()); in CollectorStart()
197 if (appName.empty()) { in CollectorStart()
200 auto eventHandler = [this] (const std::string &appName, cons in CollectorStart()
230 std::string appName = GetAppName(); CollectorStop() local
[all...]
/base/security/security_guard/test/unittest/security_collector/include/
H A Dsecurity_collector_subscriber.h26 using EventHandler = std::function<void(const std::string &appName,
29 SecurityCollectorSubscriber(const std::string &appName, in SecurityCollectorSubscriber() argument
32 : appName_(appName), subseciberInfo_(subseciberInfo), remote_(remote), eventHandler_(eventHandler) {} in SecurityCollectorSubscriber()
/base/security/security_guard/services/security_collector/include/
H A Dsecurity_collector_subscriber.h26 using EventHandler = std::function<void(const std::string &appName,
29 SecurityCollectorSubscriber(const std::string &appName, in SecurityCollectorSubscriber() argument
32 : appName_(appName), subseciberInfo_(subseciberInfo), remote_(remote), eventHandler_(eventHandler) {} in SecurityCollectorSubscriber()
H A Dsecurity_collector_subscriber_manager.h43 int32_t GetAppSubscribeCount(const std::string &appName);
44 int32_t GetAppSubscribeCount(const std::string &appName, int64_t eventId);
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_subscribe_info_test.cpp44 std::string appName = "AppName"; in HWTEST_F() local
47 rrc->AddAppName(appName); in HWTEST_F()
159 std::string appName = "AppName"; in HWTEST_F() local
164 rrc->AddAppName(appName); in HWTEST_F()
167 "appNames = [" + appName + ", ]" + in HWTEST_F()
/base/security/security_guard/test/unittest/mock/data_collect/
H A Dapp_info_rdb_helper.h29 virtual int QueryAppInfosByName(const std::string &appName, std::vector<AppInfo> &infos) = 0;
30 virtual int DeleteAppInfoByNameAndGlobbalFlag(const std::string &appName, int isGlobalApp) = 0;
/base/powermgr/power_manager/utils/appmgr/src/
H A Dapp_manager_utils.cpp65 bool AppManagerUtils::IsForegroundApplication(const std::string& appName) in IsForegroundApplication() argument
67 if (appName.empty()) { in IsForegroundApplication()
76 if (curApp.bundleName == appName) { in IsForegroundApplication()
/base/powermgr/power_manager/utils/ability/
H A Dpower_ability.cpp66 bool PowerIsForegroundApplication(const std::string& appName) in PowerIsForegroundApplication() argument
68 return AppManagerUtils::IsForegroundApplication(appName); in PowerIsForegroundApplication()
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_subscribe_info.cpp40 void NotificationSubscribeInfo::AddAppName(const std::string appName) in AddAppName() argument
42 appNames_.push_back(appName); in AddAppName()
/base/powermgr/power_manager/utils/appmgr/include/
H A Dapp_manager_utils.h30 static bool IsForegroundApplication(const std::string& appName);
/base/powermgr/power_manager/utils/native/include/
H A Dpower_utils.h31 static bool IsForegroundApplication(const std::string& appName);
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/include/
H A Dmock_bundle_mgr.h35 const std::string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) override;
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
H A Dmock_bundle_mgr.cpp65 const std::string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) in GetApplicationInfo()
64 GetApplicationInfo( const std::string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) GetApplicationInfo() argument
/base/notification/distributed_notification_service/services/test/moduletest/mock/include/
H A Dmock_bundle_manager.h38 const std::string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) override;
/base/notification/distributed_notification_service/services/test/moduletest/mock/
H A Dmock_bundle_manager.cpp60 const std::string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) in GetApplicationInfo()
59 GetApplicationInfo( const std::string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) GetApplicationInfo() argument
/base/security/dlp_permission_service/services/dlp_permission/sa/sa_common/
H A Dbundle_manager_adapter.cpp84 bool BundleManagerAdapter::GetApplicationInfo(const std::string &appName, const int32_t flag, const int32_t userId, in GetApplicationInfo() argument
93 return proxy_->GetApplicationInfo(appName, flag, userId, applicationInfo); in GetApplicationInfo()
H A Dbundle_manager_adapter.h36 bool GetApplicationInfo(const std::string &appName, const int32_t flag, const int32_t userId,
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
H A Dmock_bundle_manager.cpp77 const std::string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) in GetApplicationInfo()
76 GetApplicationInfo( const std::string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) GetApplicationInfo() argument
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_subscribe_info.h41 * @param appName Indicates the application name.
43 void AddAppName(const std::string appName);
/base/powermgr/power_manager/utils/native/src/
H A Dpower_utils.cpp198 bool PowerUtils::IsForegroundApplication(const std::string& appName) in IsForegroundApplication() argument
216 bool isForeground = powerIsForegroundApplicationFunc(appName); in IsForegroundApplication()
/base/hiviewdfx/hidumper/frameworks/native/
H A Ddump_utils.cpp456 std::string appName = bundleName.substr(0, strlen(bundleName.c_str())); in CheckAppDebugVersion() local
470 bool ret = proxy->GetApplicationInfo(appName, AppExecFwk::GET_APPLICATION_INFO_WITH_DISABLE, in CheckAppDebugVersion()
473 DUMPER_HILOGE(MODULE_COMMON, "Pid %{public}d %{public}s Get App info failed!", pid, appName.c_str()); in CheckAppDebugVersion()
478 pid, appName.c_str(), isDebugApp); in CheckAppDebugVersion()
481 DUMPER_HILOGD(MODULE_COMMON, "debug|pid %{public}d %{public}s DebugVersion false", pid, appName.c_str()); in CheckAppDebugVersion()

Completed in 8 milliseconds

12