Home
last modified time | relevance | path

Searched refs:appInfo (Results 1 – 24 of 24) sorted by relevance

/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/
Dapp_state_observer.cpp41 void AppStateObserver::UninstallDlpSandbox(DlpSandboxInfo& appInfo) in UninstallDlpSandbox() argument
43 if (appInfo.appIndex <= 0) { // never uninstall original hap in UninstallDlpSandbox()
46 auto sandboxBundleName = appInfo.bundleName + std::to_string(appInfo.appIndex); in UninstallDlpSandbox()
47 …ABEL, "uninstall dlp sandbox %{public}s, uid: %{public}d", sandboxBundleName.c_str(), appInfo.uid); in UninstallDlpSandbox()
49 bundleMgrClient.UninstallSandboxApp(appInfo.bundleName, appInfo.appIndex, appInfo.userId); in UninstallDlpSandbox()
50 RetentionFileManager::GetInstance().DelSandboxInfo(appInfo.tokenId); in UninstallDlpSandbox()
58 auto& appInfo = iter->second; in UninstallAllDlpSandboxForUser() local
59 if (appInfo.userId != userId) { in UninstallAllDlpSandboxForUser()
63 if (RetentionFileManager::GetInstance().CanUninstall(appInfo.tokenId)) { in UninstallAllDlpSandboxForUser()
64 UninstallDlpSandbox(appInfo); in UninstallAllDlpSandboxForUser()
[all …]
Dapp_state_observer.h40 void AddDlpSandboxInfo(const DlpSandboxInfo& appInfo);
51 void UninstallDlpSandbox(DlpSandboxInfo& appInfo);
58 void AddSandboxInfo(const DlpSandboxInfo& appInfo);
59 bool GetSandboxInfo(int32_t uid, DlpSandboxInfo& appInfo);
/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/
Dapp_state_observer_test.cpp85 DlpSandboxInfo appInfo; variable
86 appInfo.bundleName = "com.ohos.dlpmanager";
87 appInfo.uid = 1;
88 appInfo.appIndex = 0;
89 appInfo.tokenId = 1;
90 appInfo.userId = 1;
92 observer.AddDlpSandboxInfo(appInfo);
93 bool ret = observer.CheckSandboxInfo(appInfo.bundleName, appInfo.appIndex, appInfo.uid);
96 ret = observer.CheckSandboxInfo(appInfo.bundleName, appInfo.appIndex + 1, appInfo.uid);
128 DlpSandboxInfo appInfo; variable
[all …]
/base/theme/screenlock_mgr/utils/src/
Dscreenlock_appinfo.cpp23 bool ScreenLockAppInfo::GetAppInfoByToken(std::uint32_t tokenId, AppInfo &appInfo) in GetAppInfoByToken() argument
33 appInfo.bundleName = hapInfo.bundleName; in GetAppInfoByToken()
34 appInfo.appId = hapInfo.appID; in GetAppInfoByToken()
44 appInfo.bundleName = tokenInfo.processName; in GetAppInfoByToken()
45 appInfo.appId = tokenInfo.processName; in GetAppInfoByToken()
/base/msdp/device_status/services/native/src/
Ddevicestatus_dumper.cpp160 for (const auto &appInfo : item.second) { in DumpDeviceStatusSubscriber() local
162appInfo->startTime.c_str(), appInfo->uid, appInfo->pid, GetStatusType(appInfo->type).c_str(), in DumpDeviceStatusSubscriber()
163 appInfo->packageName.c_str()); in DumpDeviceStatusSubscriber()
276 void DeviceStatusDumper::SaveAppInfo(std::shared_ptr<AppInfo> appInfo) in SaveAppInfo() argument
279 CHKPV(appInfo); in SaveAppInfo()
280 GetTimeStamp(appInfo->startTime); in SaveAppInfo()
283 auto iter = appInfos_.find(appInfo->type); in SaveAppInfo()
285 if (appInfos.insert(appInfo).second) { in SaveAppInfo()
286 auto [_, ret] = appInfos_.insert(std::make_pair(appInfo->type, appInfos)); in SaveAppInfo()
292 if (!appInfos_[iter->first].insert(appInfo).second) { in SaveAppInfo()
[all …]
Ddevicestatus_service.cpp265 auto appInfo = std::make_shared<AppInfo>(); in OnStart() local
266 appInfo->uid = GetCallingUid(); in OnStart()
267 appInfo->pid = GetCallingPid(); in OnStart()
268 appInfo->tokenId = GetCallingTokenID(); in OnStart()
269 devicestatusManager_->GetPackageName(appInfo->tokenId, appInfo->packageName); in OnStart()
270 appInfo->type = type; in OnStart()
271 appInfo->callback = callback; in OnStart()
272 DS_DUMPER->SaveAppInfo(appInfo); in OnStart()
277 WriteSubscribeHiSysEvent(appInfo->uid, appInfo->packageName, type); in OnStart()
284 auto appInfo = std::make_shared<AppInfo>(); in OnStart() local
[all …]
/base/web/webview/ohos_adapter/hiviewdfx_adapter/src/
Dhisysevent_adapter_impl.cpp74 auto appInfo = AbilityRuntime::ApplicationContext::GetInstance()->GetApplicationInfo(); in Write() local
79 "VERSION_CODE", appInfo->versionCode, in Write()
80 "VERSION_NAME", appInfo->versionName.c_str(), in Write()
81 "BUNDLE_NAME", appInfo->bundleName.c_str(), in Write()
/base/notification/distributed_notification_service/services/test/moduletest/mock/
Dmock_bundle_manager.cpp60 …const std::string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) in GetApplicationInfo() argument
62 appInfo.distributedNotificationEnabled = true; in GetApplicationInfo()
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
Dmock_bundle_mgr.cpp65 …const std::string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) in GetApplicationInfo() argument
67 appInfo.distributedNotificationEnabled = Notification::g_isEnable; in GetApplicationInfo()
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dmock_bundle_manager.cpp77 …const std::string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) in GetApplicationInfo() argument
79 appInfo.distributedNotificationEnabled = true; in GetApplicationInfo()
/base/startup/appspawn/standard/
Dappspawn_service.c119 AppInfo *appInfo = GetAppInfo(pid); in RemoveAppInfo() local
120 APPSPAWN_CHECK(appInfo != NULL, return, "Can not find app info for %{public}d", pid); in RemoveAppInfo()
122 free(appInfo); in RemoveAppInfo()
172 static void KillProcessesByCGroup(uid_t uid, const AppInfo *appInfo) in KillProcessesByCGroup() argument
174 if (appInfo == NULL) { in KillProcessesByCGroup()
181 …snprintf_s(buf, sizeof(buf), sizeof(buf) - 1, "/dev/memcg/%d/%s/cgroup.procs", userId, appInfo->na… in KillProcessesByCGroup()
187 if (pid == appInfo->pid) { in KillProcessesByCGroup()
313 AppInfo *appInfo = GetAppInfo(pid); in HandleDiedPid() local
314 KillProcessesByCGroup(uid, appInfo); in HandleDiedPid()
315 APPSPAWN_CHECK(appInfo != NULL, return, "Can not find app info for %{public}d", pid); in HandleDiedPid()
[all …]
/base/notification/distributed_notification_service/services/ans/src/
Dbundle_manager_helper.cpp174 AppExecFwk::ApplicationInfo appInfo; in GetDistributedNotificationEnabled() local
176 bundleName, AppExecFwk::ApplicationFlag::GET_BASIC_APPLICATION_INFO, userId, appInfo)) { in GetDistributedNotificationEnabled()
177 …ANS_LOGD("APPLICATION_INFO distributed enabled %{public}d", appInfo.distributedNotificationEnabled… in GetDistributedNotificationEnabled()
178 return appInfo.distributedNotificationEnabled; in GetDistributedNotificationEnabled()
/base/msdp/device_status/services/native/include/
Ddevicestatus_dumper.h60 void SaveAppInfo(std::shared_ptr<AppInfo> appInfo);
61 void RemoveAppInfo(std::shared_ptr<AppInfo> appInfo);
/base/theme/screenlock_mgr/utils/include/
Dscreenlock_appinfo.h32 static bool GetAppInfoByToken(std::uint32_t tokenId, AppInfo &appInfo);
/base/notification/distributed_notification_service/services/test/moduletest/mock/include/
Dmock_bundle_manager.h38 …:string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) override;
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/include/
Dmock_bundle_mgr.h35 …:string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) override;
/base/usb/usb_manager/services/native/src/
Dusb_mass_storage_notification.cpp126 for (auto const &appInfo : appInfos) { in GetFilemanagerBundleName() local
127 if (appInfo.bundleName.find(FILEMANAGER_BUNDLE_NAME_KEY) != std::string::npos) { in GetFilemanagerBundleName()
128 filemanagerBundleName = appInfo.bundleName; in GetFilemanagerBundleName()
Dusb_right_manager.cpp310 ApplicationInfo appInfo; in IsAppInstalled() local
311 if (!bundleMgr->GetApplicationInfo(bundleName, GET_BASIC_APPLICATION_INFO, uid, appInfo)) { in IsAppInstalled()
/base/sensors/sensor/test/unittest/interfaces/js/sensor/
DPedometerJsunit.test.js42 let appInfo = await bundle.getApplicationInfo('com.example.myapplication', 0, userId);
43 CommonConstants.tokenID = appInfo.accessTokenId;
44 … console.log('AccessTokenId accessTokenId:' + appInfo.accessTokenId + ', name:' + appInfo.name +
45 ' ,bundleName:' + appInfo.bundleName)
DPedometerDetectionJsunit.test.js42 let appInfo = await bundle.getApplicationInfo('com.example.myapplication', 0, userId);
43 CommonConstants.tokenID = appInfo.accessTokenId;
44 … console.log('AccessTokenId accessTokenId:' + appInfo.accessTokenId + ', name:' + appInfo.name +
45 ' ,bundleName:' + appInfo.bundleName)
/base/customization/enterprise_device_management/services/edm_plugin/src/
Dmanage_auto_start_apps_plugin.cpp111 std::string appInfo = Info.bundleName + SPERATOR + Info.abilityName; in OnGetPolicy() local
112 autoStartAppsInfo.push_back(appInfo); in OnGetPolicy()
/base/notification/common_event_service/services/src/
Dstatic_subscriber_manager.cpp59 for (auto const &appInfo : appInfos) { in InitAllowList() local
60 std::vector<std::string> allowCommonEvents = appInfo.allowCommonEvent; in InitAllowList()
61 std::string bundleName = appInfo.bundleName; in InitAllowList()
/base/security/access_token/services/test/mock/aafwk/
Dmock_app_mgr_service.h30 … const std::shared_ptr<AbilityInfo> &abilityInfo, const std::shared_ptr<ApplicationInfo> &appInfo,
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_controller.cpp543 std::shared_ptr<AppExecFwk::ApplicationInfo> appInfo = context->GetApplicationInfo(); in GetRawFileUrl() local
544 std::string entryDir = appInfo->entryDir; in GetRawFileUrl()