Home
last modified time | relevance | path

Searched refs:policyMgr_ (Results 1 – 5 of 5) sorted by relevance

/base/customization/enterprise_device_management/test/unittest/src/
Dpolicy_manager_test.cpp42 if (!policyMgr_) { in SetUp()
43 policyMgr_.reset(new (std::nothrow) PolicyManager(DEFAULT_USER_ID)); in SetUp()
45 IPolicyManager::policyManagerInstance_ = policyMgr_.get(); in SetUp()
46 policyMgr_->Init(); in SetUp()
51 policyMgr_.reset(); in TearDown()
54 std::shared_ptr<PolicyManager> policyMgr_; member in OHOS::EDM::TEST::PolicyManagerTest
67 res = policyMgr_->SetPolicy(TEST_ADMIN_NAME, TEST_BOOL_POLICY_NAME, "false", "true");
71 res = policyMgr_->GetPolicy(TEST_ADMIN_NAME, TEST_BOOL_POLICY_NAME, policyValue);
74 res = policyMgr_->GetPolicy("", TEST_BOOL_POLICY_NAME, policyValue);
78 res = policyMgr_->SetPolicy(TEST_ADMIN_NAME1, TEST_BOOL_POLICY_NAME, "true", "true");
[all …]
Denterprise_device_mgr_ability_test.cpp62 edmMgr_->policyMgr_.reset(new (std::nothrow) PolicyManager(DEFAULT_USER_ID)); in SetUp()
69 edmMgr_->policyMgr_.reset(); in TearDown()
281 res = edmMgr_->policyMgr_->SetPolicy(ADMIN_PACKAGENAME, plugin_->GetPolicyName(), "", "");
318 edmMgr_->policyMgr_->policyAdmins_.insert(
328 res = edmMgr_->policyMgr_->SetPolicy(ADMIN_PACKAGENAME, plugin_->GetPolicyName(), "", "");
507 edmMgr_->policyMgr_ = edmMgr_->GetAndSwitchPolicyManagerByUserId(DEFAULT_USER_ID);
508 ASSERT_TRUE(edmMgr_->policyMgr_.get() == IPolicyManager::policyManagerInstance_);
523 … std::pair<std::uint32_t, std::shared_ptr<PolicyManager>>(DEFAULT_USER_ID, edmMgr_->policyMgr_));
524 PolicyManager* defaultPolcyMgr = edmMgr_->policyMgr_.get();
529 edmMgr_->policyMgr_ = edmMgr_->GetAndSwitchPolicyManagerByUserId(TEST_USER_ID);
[all …]
/base/customization/enterprise_device_management/services/edm/src/
Denterprise_device_mgr_ability.cpp118 policyMgr_ = GetAndSwitchPolicyManagerByUserId(userIdToRemove); in OnCommonEventUserRemoved()
133 policyMgr_ = GetAndSwitchPolicyManagerByUserId(DEFAULT_USER_ID); in OnCommonEventUserRemoved()
223 if (policyMgr_) { in ~EnterpriseDeviceMgrAbility()
224 policyMgr_.reset(); in ~EnterpriseDeviceMgrAbility()
301 policyMgr_ = GetAndSwitchPolicyManagerByUserId(DEFAULT_USER_ID); in InitAllPolices()
561 ret = policyMgr_->GetAdminByPolicyName(policyName, adminListMap); in RemoveAdminItem()
563 setRet = policyMgr_->SetPolicy("", policyName, "", ""); in RemoveAdminItem()
565 setRet = policyMgr_->SetPolicy(adminName, policyName, "", mergedPolicyData); in RemoveAdminItem()
582 policyMgr_->GetAllPolicyByAdmin(adminName, policyItems); in RemoveAdmin()
612 policyMgr_ = GetAndSwitchPolicyManagerByUserId(it->first); in RemovePolicyAndAdmin()
[all …]
/base/customization/enterprise_device_management/services/edm/include/
Denterprise_device_mgr_ability.h110 std::shared_ptr<PolicyManager> policyMgr_; variable
/base/customization/enterprise_device_management/test/unittest/enterprise_device_mgr_ability/enterprise_device_mgr_ability_test/
Denterprise_device_mgr_ability_test.cpp89 edmMgr_->policyMgr_.reset(new (std::nothrow) PolicyManager(DEFAULT_USER_ID)); in SetUp()
103 edmMgr_->policyMgr_.reset(); in TearDown()