Home
last modified time | relevance | path

Searched refs:adminType (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/base/customization/enterprise_device_management/test/unittest/services/edm/src/
H A Dadmin_test.cpp89 AdminType adminType = admin->GetAdminType(); variable
90 ASSERT_TRUE(adminType == AdminType::ENT);
104 AdminType adminType = admin->GetAdminType(); variable
105 ASSERT_TRUE(adminType == AdminType::NORMAL);
119 AdminType adminType = admin->GetAdminType(); variable
120 ASSERT_TRUE(adminType == AdminType::UNKNOWN);
H A Denterprise_device_mgr_ability_test.cpp158 …viceMgrAbilityTest::EnableAdminSuc(AppExecFwk::ElementName &admin, AdminType adminType, int userId, in EnableAdminSuc() argument
168 EXPECT_TRUE(SUCCEEDED(edmMgr_->EnableAdmin(admin, entInfo, adminType, userId))); in EnableAdminSuc()
/ohos5.0/base/customization/enterprise_device_management/services/edm/src/
H A Dpermission_manager.cpp54 …anager::GetAdminGrantedPermission(const std::vector<std::string> &permissions, AdminType adminType, in GetAdminGrantedPermission() argument
63 if (adminType == AdminType::NORMAL && entry->second == AdminType::ENT) { in GetAdminGrantedPermission()
H A Dadmin_policies_storage_rdb.cpp232 int32_t adminType = 0; in SetAdminItems() local
233 resultSet->GetInt(EdmRdbFiledConst::FILED_COLUMN_INDEX_TWO, adminType); in SetAdminItems()
234 item->adminInfo_.adminType_ = static_cast<AdminType>(adminType); in SetAdminItems()
H A Denterprise_device_mgr_stub.cpp170 AdminType adminType = AdminType::UNKNOWN; in EnableAdminInner() local
176 adminType = static_cast<AdminType>(type); in EnableAdminInner()
177 ErrCode retCode = EnableAdmin(*admin, entInfo, adminType, userId); in EnableAdminInner()
H A Denterprise_device_mgr_ability.cpp630 …eDeviceMgrAbility::GetAllPermissionsByAdmin(const std::string &bundleInfoName, AdminType adminType, in GetAllPermissionsByAdmin() argument
643 …er::GetInstance()->GetAdminGrantedPermission(bundleInfo.reqPermissions, adminType, permissionList); in GetAllPermissionsByAdmin()
932 AdminType adminType = isSDA ? AdminType::ENT : AdminType::NORMAL; in DisableAdmin() local
933 return DoDisableAdmin(admin.GetBundleName(), userId, adminType); in DisableAdmin()
958 …eviceMgrAbility::DoDisableAdmin(const std::string &bundleName, int32_t userId, AdminType adminType) in DoDisableAdmin() argument
975 if (admin->adminInfo_.adminType_ != adminType) { in DoDisableAdmin()
979 if (adminType == AdminType::ENT && FAILED(RemoveSuperAdminAndAdminPolicy(bundleName))) { in DoDisableAdmin()
982 …} else if (adminType == AdminType::NORMAL && FAILED(RemoveAdminAndAdminPolicy(bundleName, userId))… in DoDisableAdmin()
/ohos5.0/base/customization/enterprise_device_management/services/edm/include/
H A Dpermission_manager.h34 void GetAdminGrantedPermission(const std::vector<std::string> &permissions, AdminType adminType,
H A Denterprise_device_mgr_ability.h97 …ErrCode GetAllPermissionsByAdmin(const std::string &bundleInfoName, AdminType adminType, int32_t u…
144 ErrCode DoDisableAdmin(const std::string &bundleName, int32_t userId, AdminType adminType);
/ohos5.0/base/customization/enterprise_device_management/test/unittest/services/edm/include/
H A Denterprise_device_mgr_ability_test.h40 …void EnableAdminSuc(AppExecFwk::ElementName& admin, AdminType adminType, int userId, bool isDebug …
/ohos5.0/base/customization/enterprise_device_management/interfaces/kits/admin_manager/include/
H A Dadmin_manager_addon.h39 int32_t adminType = 0; member
/ohos5.0/base/customization/enterprise_device_management/interfaces/kits/admin_manager/src/
H A Dadmin_manager_addon.cpp52 …ASSERT_AND_THROW_PARAM_ERROR(env, ParseInt(env, asyncCallbackInfo->adminType, argv[ARR_INDEX_TWO]), in EnableAdmin()
58 asyncCallbackInfo->adminType); in EnableAdmin()
95 ParseAdminType(asyncCallbackInfo->adminType), asyncCallbackInfo->userId); in NativeEnableAdmin()