Home
last modified time | relevance | path

Searched refs:AdminType (Results 1 – 25 of 46) sorted by relevance

12

/ohos5.0/base/customization/enterprise_device_management/test/unittest/services/edm/src/
H A Dadmin_test.cpp41 …std::shared_ptr<Admin> admin = std::make_shared<Admin>(abilityInfo, AdminType::ENT, entInfo, permi…
57 …std::shared_ptr<Admin> admin = std::make_shared<Admin>(abilityInfo, AdminType::ENT, entInfo, permi…
73 …std::shared_ptr<Admin> admin = std::make_shared<Admin>(abilityInfo, AdminType::ENT, entInfo, permi…
88 …std::shared_ptr<Admin> admin = std::make_shared<Admin>(abilityInfo, AdminType::ENT, entInfo, permi…
89 AdminType adminType = admin->GetAdminType();
90 ASSERT_TRUE(adminType == AdminType::ENT);
104 AdminType adminType = admin->GetAdminType();
105 ASSERT_TRUE(adminType == AdminType::NORMAL);
119 AdminType adminType = admin->GetAdminType();
120 ASSERT_TRUE(adminType == AdminType::UNKNOWN);
[all …]
H A Dadmin_manager_test.cpp77 Admin admin(abilityInfo, AdminType::NORMAL, entInfo, permissions, false);
83 admin.adminInfo_.adminType_ = AdminType::ENT;
110 Admin edmAdmin(abilityInfo, AdminType::NORMAL, entInfo, permissions, false);
114 edmAdmin.adminInfo_.adminType_ = AdminType::ENT;
153 edmAdmin.adminInfo_.adminType_ = AdminType::ENT;
219 edmAdmin.adminInfo_.adminType_ = AdminType::ENT;
317 Admin edmAdmin(abilityInfo, AdminType::ENT, entInfo, permissions, false);
338 Admin edmAdmin(abilityInfo, AdminType::ENT, entInfo, permissions, false);
340 edmAdmin.adminInfo_.adminType_ = AdminType::NORMAL;
453 Admin edmAdmin(abilityInfo, AdminType::ENT, entInfo, permissions, false);
[all …]
H A Denterprise_device_mgr_ability_test.cpp2208 data.WriteInt32(static_cast<int>(AdminType::NORMAL));
2233 data.WriteInt32(static_cast<int>(AdminType::NORMAL));
2259 data.WriteInt32(static_cast<int>(AdminType::NORMAL));
2307 data.WriteInt32(static_cast<int>(AdminType::ENT));
2333 data.WriteInt32(static_cast<int>(AdminType::NORMAL));
2362 data.WriteInt32(static_cast<int>(AdminType::ENT));
2392 data.WriteInt32(static_cast<int>(AdminType::ENT));
2431 data.WriteInt32(static_cast<int>(AdminType::ENT));
2462 data.WriteInt32(static_cast<int>(AdminType::ENT));
2485 data.WriteInt32(static_cast<int>(AdminType::NORMAL));
[all …]
H A Dpermission_manager_test.cpp69 …PermissionManager::GetInstance()->GetAdminGrantedPermission(permission, AdminType::NORMAL, reqPerm…
85 …PermissionManager::GetInstance()->GetAdminGrantedPermission(permission, AdminType::NORMAL, reqPerm…
87 …PermissionManager::GetInstance()->GetAdminGrantedPermission(permission, AdminType::ENT, reqPermiss…
/ohos5.0/base/customization/enterprise_device_management/services/edm/src/
H A Dadmin_manager.cpp159 …if (getAdmin->GetAdminType() == AdminType::NORMAL && adminItem.GetAdminType() != AdminType::NORMAL… in UpdateAdmin()
160 adminItem.GetAdminType() != AdminType::ENT) { in UpdateAdmin()
195 if (admin->adminInfo_.adminType_ == AdminType::ENT) { in IsSuperAdmin()
214 return superAdmin->adminInfo_.adminType_ == AdminType::ENT || in IsSuperOrSubSuperAdmin()
215 superAdmin->adminInfo_.adminType_ == AdminType::SUB_SUPER_ADMIN; in IsSuperOrSubSuperAdmin()
232 if (static_cast<int32_t>(role) >= static_cast<int32_t>(AdminType::UNKNOWN) || in GetEnabledAdmin()
233 static_cast<int32_t>(role) < static_cast<int32_t>(AdminType::NORMAL)) { in GetEnabledAdmin()
256 …admin->GetAdminType() == AdminType::SUB_SUPER_ADMIN || admin->GetAdminType() == AdminType::VIRTUAL… in GetSubOrSuperAdminByPkgName()
277 if ((admin->GetAdminType() == AdminType::SUB_SUPER_ADMIN || in GetSubSuperAdminsByParentName()
278 admin->GetAdminType() == AdminType::VIRTUAL_ADMIN) && in GetSubSuperAdminsByParentName()
[all …]
H A Dpermission_manager.cpp41 permissions_.insert(std::make_pair(permission, static_cast<AdminType>(permissionType))); in AddPermission()
44 } else if (entry->second != static_cast<AdminType>(permissionType)) { in AddPermission()
54 …anager::GetAdminGrantedPermission(const std::vector<std::string> &permissions, AdminType adminType, in GetAdminGrantedPermission()
63 if (adminType == AdminType::NORMAL && entry->second == AdminType::ENT) { in GetAdminGrantedPermission()
H A Denterprise_device_mgr_ability.cpp221 …if ((subAdmin->GetAdminType() == AdminType::SUB_SUPER_ADMIN || subAdmin->GetAdminType() == AdminTy… in OnCommonEventUserRemoved()
222 subAdmin->GetAdminType() == AdminType::VIRTUAL_ADMIN) && in OnCommonEventUserRemoved()
254 if (admin->adminInfo_.adminType_ == AdminType::NORMAL) { in OnCommonEventPackageRemoved()
339 GetEnabledAdmin(AdminType::NORMAL, enabledAdminList); in Dump()
706 if (type == AdminType::ENT && userId != DEFAULT_USER_ID) { in VerifyEnableAdminCondition()
723 …if (existAdmin->GetAdminType() == AdminType::ENT && (type != AdminType::ENT || userId != DEFAULT_U… in VerifyEnableAdminCondition()
932 AdminType adminType = isSDA ? AdminType::ENT : AdminType::NORMAL; in DisableAdmin()
1246 case AdminType::NORMAL: in GetEnabledAdmin()
1250 case AdminType::ENT: in GetEnabledAdmin()
1253 case AdminType::UNKNOWN: in GetEnabledAdmin()
[all …]
H A Dadmin.cpp24 Admin::Admin(const AppExecFwk::ExtensionAbilityInfo &abilityInfo, AdminType type, const EntInfo &en… in Admin()
35 Admin::Admin(const std::string &bundleName, AdminType type, const std::vector<std::string> &permiss… in Admin()
59 AdminType Admin::GetAdminType() const in GetAdminType()
H A Denterprise_device_mgr_stub.cpp170 AdminType adminType = AdminType::UNKNOWN; in EnableAdminInner()
171 …if (type != static_cast<int32_t>(AdminType::NORMAL) && type != static_cast<int32_t>(AdminType::ENT… in EnableAdminInner()
176 adminType = static_cast<AdminType>(type); in EnableAdminInner()
229 int32_t type = static_cast<int32_t>(AdminType::UNKNOWN); in GetEnabledAdminInner()
236 ErrCode res = GetEnabledAdmin((AdminType)type, enabledAdminList); in GetEnabledAdminInner()
/ohos5.0/base/customization/enterprise_device_management/services/edm/include/
H A Dadmin.h39 AdminType adminType_ = AdminType::UNKNOWN;
46 … Admin(const AppExecFwk::ExtensionAbilityInfo &abilityInfo, AdminType type, const EntInfo &entInfo,
48 … Admin(const std::string &bundleName, AdminType type, const std::vector<std::string> &permissions);
52 virtual AdminType GetAdminType() const;
H A Dpermission_manager.h34 void GetAdminGrantedPermission(const std::vector<std::string> &permissions, AdminType adminType,
38 std::map<std::string, AdminType> permissions_;
H A Denterprise_device_mgr_ability.h46 …ErrCode EnableAdmin(AppExecFwk::ElementName &admin, EntInfo &entInfo, AdminType type, int32_t user…
52 ErrCode GetEnabledAdmin(AdminType type, std::vector<std::string> &enabledAdminList) override;
97 …ErrCode GetAllPermissionsByAdmin(const std::string &bundleInfoName, AdminType adminType, int32_t u…
102 …ErrCode VerifyEnableAdminCondition(AppExecFwk::ElementName &admin, AdminType type, int32_t userId,…
144 ErrCode DoDisableAdmin(const std::string &bundleName, int32_t userId, AdminType adminType);
/ohos5.0/base/customization/enterprise_device_management/test/unittest/common/
H A Dedm_permission_test.cpp45 permission1.setAdminType(AdminType::NORMAL);
47 permission2.setAdminType(AdminType::NORMAL);
61 EdmPermission permission1("ohos.permission.EDM_TEST_PERMISSION", AdminType::NORMAL);
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta2/
H A Djs-apidiff-global.md14AdminType, callback: AsyncCallback\<boolean>): void;<br>enableAdmin(admin: Want, enterpriseInfo: E…
32 …nfo, type: AdminType, callback: AsyncCallback\<boolean>): void;<br>activateAdmin(admin: Want, ente…
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta2/
H A Djs-apidiff-global.md14AdminType, callback: AsyncCallback\<boolean>): void;<br>enableAdmin(admin: Want, enterpriseInfo: E…
32 …nfo, type: AdminType, callback: AsyncCallback\<boolean>): void;<br>activateAdmin(admin: Want, ente…
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.3/
H A Dchangelogs-enterprise_device_management.md101 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: Async…
102 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number,…
103 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number…
123 | @ohos.enterprise.adminManager | adminManager | **enum** AdminType | systemapi |
140 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: Async…
141 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number,…
142 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number…
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta1/
H A Djs-apidiff-global.md17 …nfo, type: AdminType, callback: AsyncCallback\<boolean>): void;<br>activateAdmin(admin: Want, ente…
18 | ohos.enterpriseDeviceManager | AdminType | ADMIN_TYPE_SUPER = 0x01 | 新增 |
19 | ohos.enterpriseDeviceManager | AdminType | ADMIN_TYPE_NORMAL = 0x00 | 新增 |
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta1/
H A Djs-apidiff-global.md17 …nfo, type: AdminType, callback: AsyncCallback\<boolean>): void;<br>activateAdmin(admin: Want, ente…
18 | ohos.enterpriseDeviceManager | AdminType | ADMIN_TYPE_SUPER = 0x01 | Added|
19 | ohos.enterpriseDeviceManager | AdminType | ADMIN_TYPE_NORMAL = 0x00 | Added|
/ohos5.0/base/customization/enterprise_device_management/interfaces/inner_api/common/include/
H A Denterprise_device_mgr_proxy.h43 …ErrCode EnableAdmin(AppExecFwk::ElementName &admin, EntInfo &entInfo, AdminType type, int32_t user…
46 ErrCode GetEnabledAdmin(AdminType type, std::vector<std::string> &enabledAdminList);
81 void GetEnabledAdmins(AdminType type, std::vector<std::string> &enabledAdminList);
H A Dienterprise_device_mgr.h35 …virtual ErrCode EnableAdmin(AppExecFwk::ElementName &admin, EntInfo &entInfo, AdminType type, int3…
41 virtual ErrCode GetEnabledAdmin(AdminType type, std::vector<std::string> &enabledAdminList) = 0;
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-Release/
H A Djs-apidiff-customization.md3 …function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: Async…
4 …function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number,…
5 …function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number…
26 |新增|NA|类名:AdminType;<br>方法or属性:ADMIN_TYPE_NORMAL = 0x00|@ohos.enterprise.adminManager.d.ts|
27 |新增|NA|类名:AdminType;<br>方法or属性:ADMIN_TYPE_SUPER = 0x01|@ohos.enterprise.adminManager.d.ts|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.8.3/
H A Dchangelogs-enterprise_device_management.md101 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: Async…
102 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number,…
103 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number…
123 | @ohos.enterprise.adminManager | adminManager | **enum** AdminType | Changed to a sy…
140 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: Async…
141 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number,…
142 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number…
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta4/
H A Djs-apidiff-customization.md7 |新增|NA|模块名: ohos.enterprise.adminManager<br>类名: AdminType|@ohos.enterprise.adminManager.d.ts|
8 |新增|NA|模块名: ohos.enterprise.adminManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_NORMAL|@ohos.en…
9 |新增|NA|模块名: ohos.enterprise.adminManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_SUPER|@ohos.ent…
49 |删除|模块名: ohos.enterpriseDeviceManager<br>类名: AdminType|NA|@ohos.enterpriseDeviceManager.d.ts|
50 |删除|模块名: ohos.enterpriseDeviceManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_NORMAL|NA|@ohos.en…
51 |删除|模块名: ohos.enterpriseDeviceManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_SUPER|NA|@ohos.ent…
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202211/
H A Djs-apidiff-customization.md7 |新增|NA|模块名: ohos.enterprise.adminManager<br>类名: AdminType|@ohos.enterprise.adminManager.d.ts|
8 |新增|NA|模块名: ohos.enterprise.adminManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_NORMAL|@ohos.en…
9 |新增|NA|模块名: ohos.enterprise.adminManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_SUPER|@ohos.ent…
51 |删除|模块名: ohos.enterpriseDeviceManager<br>类名: AdminType|NA|@ohos.enterpriseDeviceManager.d.ts|
52 |删除|模块名: ohos.enterpriseDeviceManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_NORMAL|NA|@ohos.en…
53 |删除|模块名: ohos.enterpriseDeviceManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_SUPER|NA|@ohos.ent…
/ohos5.0/docs/en/release-notes/api-diff/v3.2-Release/
H A Djs-apidiff-customization.md3 …function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: Async…
4 …function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number,…
5 …function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number…
26 |Added|NA|Class name: AdminType;<br>Method or attribute name: ADMIN_TYPE_NORMAL = 0x00|@ohos.enterp…
27 |Added|NA|Class name: AdminType;<br>Method or attribute name: ADMIN_TYPE_SUPER = 0x01|@ohos.enterpr…

12