/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/ |
D | app_state_observer.cpp | 41 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 …]
|
D | app_state_observer.h | 40 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/ |
D | app_state_observer_test.cpp | 85 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/ |
D | screenlock_appinfo.cpp | 23 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/ |
D | devicestatus_dumper.cpp | 160 for (const auto &appInfo : item.second) { in DumpDeviceStatusSubscriber() local 162 … appInfo->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 …]
|
D | devicestatus_service.cpp | 265 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/ |
D | hisysevent_adapter_impl.cpp | 74 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/ |
D | mock_bundle_manager.cpp | 60 …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/ |
D | mock_bundle_mgr.cpp | 65 …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/ |
D | mock_bundle_manager.cpp | 77 …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/ |
D | appspawn_service.c | 119 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/ |
D | bundle_manager_helper.cpp | 174 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/ |
D | devicestatus_dumper.h | 60 void SaveAppInfo(std::shared_ptr<AppInfo> appInfo); 61 void RemoveAppInfo(std::shared_ptr<AppInfo> appInfo);
|
/base/theme/screenlock_mgr/utils/include/ |
D | screenlock_appinfo.h | 32 static bool GetAppInfoByToken(std::uint32_t tokenId, AppInfo &appInfo);
|
/base/notification/distributed_notification_service/services/test/moduletest/mock/include/ |
D | mock_bundle_manager.h | 38 …:string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) override;
|
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/include/ |
D | mock_bundle_mgr.h | 35 …:string &appName, const ApplicationFlag flag, const int userId, ApplicationInfo &appInfo) override;
|
/base/usb/usb_manager/services/native/src/ |
D | usb_mass_storage_notification.cpp | 126 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()
|
D | usb_right_manager.cpp | 310 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/ |
D | PedometerJsunit.test.js | 42 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)
|
D | PedometerDetectionJsunit.test.js | 42 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/ |
D | manage_auto_start_apps_plugin.cpp | 111 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/ |
D | static_subscriber_manager.cpp | 59 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/ |
D | mock_app_mgr_service.h | 30 … const std::shared_ptr<AbilityInfo> &abilityInfo, const std::shared_ptr<ApplicationInfo> &appInfo,
|
/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
D | webview_controller.cpp | 543 std::shared_ptr<AppExecFwk::ApplicationInfo> appInfo = context->GetApplicationInfo(); in GetRawFileUrl() local 544 std::string entryDir = appInfo->entryDir; in GetRawFileUrl()
|