/base/customization/enterprise_device_management/test/unittest/src/ |
D | admin_manager_test.cpp | 123 EntInfo entInfo; variable 124 entInfo.enterpriseName = "company"; 125 entInfo.description = "technology company in wuhan"; 127 …res = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::NORMAL, permissions, DEFAULT_USER_… 134 …res = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::ENT, permissions, DEFAULT_USER_ID); 154 EntInfo entInfo; variable 155 entInfo.enterpriseName = "company"; 156 entInfo.description = "technology company in wuhan"; 158 …res = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::NORMAL, permissions, DEFAULT_USER_… 163 entInfo.enterpriseName = "company"; [all …]
|
D | enterprise_device_mgr_proxy_test.cpp | 58 EntInfo entInfo("test", "this is test"); variable 60 …ErrCode errVal = enterpriseDeviceMgrProxyTest->EnableAdmin(admin, entInfo, AdminType::NORMAL, DEFA… 63 errVal = enterpriseDeviceMgrProxyTest->SetEnterpriseInfo(admin, entInfo); 105 EntInfo entInfo("test", "this is test"); variable 107 …ErrCode errVal = enterpriseDeviceMgrProxyTest->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT…
|
D | enterprise_device_mgr_ability_test.cpp | 548 EntInfo entInfo("test", "this is test"); variable 549 …EXPECT_TRUE(SUCCEEDED(edmMgr_->EnableAdmin(superAdmin, entInfo, AdminType::ENT, DEFAULT_USER_ID))); 604 EntInfo entInfo("test", "this is test"); variable 605 … EXPECT_TRUE(SUCCEEDED(edmMgr_->EnableAdmin(admin, entInfo, AdminType::NORMAL, DEFAULT_USER_ID))); 606 EXPECT_TRUE(SUCCEEDED(edmMgr_->EnableAdmin(admin, entInfo, AdminType::NORMAL, TEST_USER_ID))); 640 EntInfo entInfo("test", "this is test"); variable 641 …EXPECT_TRUE(SUCCEEDED(edmMgr_->EnableAdmin(superAdmin, entInfo, AdminType::ENT, DEFAULT_USER_ID))); 701 EntInfo entInfo("test", "this is test"); variable 702 …EXPECT_TRUE(SUCCEEDED(edmMgr_->EnableAdmin(superAdmin, entInfo, AdminType::ENT, DEFAULT_USER_ID))); 778 EntInfo entInfo("test", "this is test"); variable [all …]
|
/base/customization/enterprise_device_management/test/unittest/enterprise_device_mgr_ability/enterprise_device_mgr_ability_test/ |
D | enterprise_device_mgr_ability_test.cpp | 123 EntInfo entInfo("test", "this is test"); variable 125 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::NORMAL, 0); 139 EntInfo entInfo("test", "this is test"); variable 141 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::NORMAL, 1); 162 EntInfo entInfo("test", "this is test"); variable 164 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::NORMAL, DEFAULT_USER_ID); 194 EntInfo entInfo("test", "this is test"); variable 196 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::NORMAL, DEFAULT_USER_ID); 220 EntInfo entInfo("test", "this is test"); variable 222 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::NORMAL, DEFAULT_USER_ID); [all …]
|
/base/customization/enterprise_device_management/services/edm/include/ |
D | admin_policies_storage_rdb.h | 31 …tAdmin(int32_t userId, const AppExecFwk::ExtensionAbilityInfo &abilityInfo, const EntInfo &entInfo, 33 …eAdmin(int32_t userId, const AppExecFwk::ExtensionAbilityInfo &abilityInfo, const EntInfo &entInfo, 38 bool UpdateEntInfo(int32_t userId, const std::string &packageName, const EntInfo &entInfo); 49 const EntInfo &entInfo, AdminType role, const std::vector<std::string> &permissions);
|
D | admin_manager.h | 49 …ErrCode SetAdminValue(AppExecFwk::ExtensionAbilityInfo &abilityInfo, EntInfo &entInfo, AdminType r… 51 ErrCode GetEntInfo(const std::string &packageName, EntInfo &entInfo, int32_t userId); 52 ErrCode SetEntInfo(const std::string &packageName, EntInfo &entInfo, int32_t userId);
|
D | enterprise_device_mgr_ability.h | 47 …ErrCode EnableAdmin(AppExecFwk::ElementName &admin, EntInfo &entInfo, AdminType type, int32_t user… 55 ErrCode SetEnterpriseInfo(AppExecFwk::ElementName &admin, EntInfo &entInfo) override;
|
/base/customization/enterprise_device_management/test/fuzztest/entinfo_fuzzer/ |
D | entinfo_fuzzer.cpp | 28 EntInfo entInfo; in fuzzEntInfo() local 30 entInfo.enterpriseName = entName; in fuzzEntInfo()
|
/base/customization/enterprise_device_management/test/fuzztest/setenterpriseinfo_fuzzer/ |
D | setenterpriseinfo_fuzzer.cpp | 40 EntInfo entInfo(name, name); in FuzzSetEnterpriseInfo() local 41 enterpriseDeviceManager->SetEnterpriseInfo(admin, entInfo); in FuzzSetEnterpriseInfo()
|
/base/customization/enterprise_device_management/interfaces/kits/admin_manager/include/ |
D | admin_manager_addon.h | 38 EntInfo entInfo; member 54 EntInfo entInfo; member 59 EntInfo entInfo; member 108 static void ConvertEnterpriseInfo(napi_env env, napi_value objEntInfo, EntInfo &entInfo);
|
/base/customization/enterprise_device_management/services/edm/src/ |
D | admin_policies_storage_rdb.cpp | 62 const EntInfo &entInfo, AdminType role, const std::vector<std::string> &permissions) in InsertAdmin() argument 73 CreateValuesBucket(userId, abilityInfo, entInfo, role, permissions)); in InsertAdmin() 77 const EntInfo &entInfo, AdminType role, const std::vector<std::string> &permissions) in UpdateAdmin() argument 90 …return edmRdbDataManager->Update(CreateValuesBucket(userId, abilityInfo, entInfo, role, permission… in UpdateAdmin() 94 const AppExecFwk::ExtensionAbilityInfo &abilityInfo, const EntInfo &entInfo, AdminType role, in CreateValuesBucket() argument 102 valuesBucket.PutString(EdmRdbFiledConst::FILED_ENT_NAME, entInfo.enterpriseName); in CreateValuesBucket() 103 valuesBucket.PutString(EdmRdbFiledConst::FILED_ENT_DESC, entInfo.description); in CreateValuesBucket() 160 …esStorageRdb::UpdateEntInfo(int32_t userId, const std::string &packageName, const EntInfo &entInfo) in UpdateEntInfo() argument 170 valuesBucket.PutString(EdmRdbFiledConst::FILED_ENT_NAME, entInfo.enterpriseName); in UpdateEntInfo() 171 valuesBucket.PutString(EdmRdbFiledConst::FILED_ENT_DESC, entInfo.description); in UpdateEntInfo()
|
D | enterprise_device_mgr_stub.cpp | 115 std::unique_ptr<EntInfo> entInfo(data.ReadParcelable<EntInfo>()); in EnableAdminInner() local 116 if (!entInfo) { in EnableAdminInner() 127 ErrCode retCode = EnableAdmin(*admin, *entInfo, adminType, userId); in EnableAdminInner() 244 std::unique_ptr<EntInfo> entInfo(data.ReadParcelable<EntInfo>()); in SetEnterpriseInfoInner() local 245 if (!entInfo) { in SetEnterpriseInfoInner() 249 ErrCode ret = SetEnterpriseInfo(*admin, *entInfo); in SetEnterpriseInfoInner()
|
D | admin_manager.cpp | 93 ErrCode AdminManager::SetAdminValue(AppExecFwk::ExtensionAbilityInfo &abilityInfo, EntInfo &entInfo… in SetAdminValue() argument 116 …if (!adminItem && !adminPoliciesStorageRdb->InsertAdmin(userId, abilityInfo, entInfo, role, permis… in SetAdminValue() 119 …} else if (adminItem && !adminPoliciesStorageRdb->UpdateAdmin(userId, abilityInfo, entInfo, role, … in SetAdminValue() 137 adminItem->adminInfo_.entInfo_ = entInfo; in SetAdminValue() 342 ErrCode AdminManager::GetEntInfo(const std::string &packageName, EntInfo &entInfo, int32_t userId) in GetEntInfo() argument 352 entInfo = item->adminInfo_.entInfo_; in GetEntInfo() 359 ErrCode AdminManager::SetEntInfo(const std::string &packageName, EntInfo &entInfo, int32_t userId) in SetEntInfo() argument 374 adminPoliciesStorageRdb->UpdateEntInfo(userId, packageName, entInfo)) { in SetEntInfo() 375 item->adminInfo_.entInfo_ = entInfo; in SetEntInfo()
|
D | enterprise_device_mgr_ability.cpp | 483 ErrCode EnterpriseDeviceMgrAbility::EnableAdmin(AppExecFwk::ElementName &admin, EntInfo &entInfo, A… in EnableAdmin() argument 523 … if (FAILED(adminMgr_->SetAdminValue(abilityInfo.at(0), entInfo, type, permissionList, userId))) { in EnableAdmin() 970 EntInfo entInfo; in GetEnterpriseInfo() local 972 ErrCode code = adminMgr_->GetEntInfo(admin.GetBundleName(), entInfo, userId); in GetEnterpriseInfo() 978 reply.WriteParcelable(&entInfo); in GetEnterpriseInfo() 982 entInfo.enterpriseName.c_str(), entInfo.description.c_str()); in GetEnterpriseInfo() 986 …ode EnterpriseDeviceMgrAbility::SetEnterpriseInfo(AppExecFwk::ElementName &admin, EntInfo &entInfo) in SetEnterpriseInfo() argument 1003 ErrCode code = adminMgr_->SetEntInfo(admin.GetBundleName(), entInfo, userId); in SetEnterpriseInfo()
|
/base/customization/enterprise_device_management/interfaces/inner_api/common/include/ |
D | enterprise_device_mgr_proxy.h | 42 …ErrCode EnableAdmin(AppExecFwk::ElementName &admin, EntInfo &entInfo, AdminType type, int32_t user… 46 ErrCode GetEnterpriseInfo(AppExecFwk::ElementName &admin, EntInfo &entInfo); 47 ErrCode SetEnterpriseInfo(AppExecFwk::ElementName &admin, EntInfo &entInfo);
|
D | ienterprise_device_mgr.h | 35 …virtual ErrCode EnableAdmin(AppExecFwk::ElementName &admin, EntInfo &entInfo, AdminType type, int3… 43 virtual ErrCode SetEnterpriseInfo(AppExecFwk::ElementName &admin, EntInfo &entInfo) = 0;
|
/base/customization/enterprise_device_management/test/unittest/enterprise_device_mgr_proxy/enterprise_device_mgr_proxy_test/ |
D | enterprise_device_mgr_stub_mock.cpp | 26 EntInfo entInfo; in InvokeSendRequestGetEnterpriseInfo() local 29 reply.WriteParcelable(&entInfo); in InvokeSendRequestGetEnterpriseInfo()
|
D | enterprise_device_mgr_stub_mock.h | 87 …ErrCode EnableAdmin(AppExecFwk::ElementName &admin, EntInfo &entInfo, AdminType type, int32_t user… in EnableAdmin() argument 111 … ErrCode SetEnterpriseInfo(AppExecFwk::ElementName &admin, EntInfo &entInfo) override { return 0; } in SetEnterpriseInfo() argument
|
D | enterprise_device_mgr_proxy_test.cpp | 86 EntInfo entInfo("test", "this is test"); variable 90 …ErrCode errVal = enterpriseDeviceMgrProxyTest->EnableAdmin(admin, entInfo, AdminType::NORMAL, DEFA… 104 EntInfo entInfo("test", "this is test"); variable 108 …ErrCode errVal = enterpriseDeviceMgrProxyTest->EnableAdmin(admin, entInfo, AdminType::NORMAL, DEFA… 122 EntInfo entInfo("test", "this is test"); variable 126 ErrCode errVal = enterpriseDeviceMgrProxyTest->SetEnterpriseInfo(admin, entInfo); 140 EntInfo entInfo("test", "this is test"); variable 144 ErrCode errVal = enterpriseDeviceMgrProxyTest->SetEnterpriseInfo(admin, entInfo);
|
/base/customization/enterprise_device_management/interfaces/kits/admin_manager/src/ |
D | admin_manager_addon.cpp | 48 …ASSERT_AND_THROW_PARAM_ERROR(env, ParseEnterpriseInfo(env, asyncCallbackInfo->entInfo, argv[ARR_IN… in EnableAdmin() 97 …cCallbackInfo->ret = proxy->EnableAdmin(asyncCallbackInfo->elementName, asyncCallbackInfo->entInfo, in NativeEnableAdmin() 301 …ckInfo->ret = proxy->GetEnterpriseInfo(asyncCallbackInfo->elementName, asyncCallbackInfo->entInfo); in NativeGetEnterpriseInfo() 316 ConvertEnterpriseInfo(env, result[ARR_INDEX_ONE], asyncCallbackInfo->entInfo); in NativeGetEnterpriseInfoComplete() 320 …asyncCallbackInfo->entInfo.enterpriseName.c_str(), asyncCallbackInfo->entInfo.description.c_str()); in NativeGetEnterpriseInfoComplete() 366 ret = ParseEnterpriseInfo(env, asyncCallbackInfo->entInfo, argv[ARR_INDEX_ONE]); in SetEnterpriseInfo() 396 …ckInfo->ret = proxy->SetEnterpriseInfo(asyncCallbackInfo->elementName, asyncCallbackInfo->entInfo); in NativeSetEnterpriseInfo() 592 void AdminManager::ConvertEnterpriseInfo(napi_env env, napi_value objEntInfo, EntInfo &entInfo) in ConvertEnterpriseInfo() argument 594 std::string enterpriseName = entInfo.enterpriseName; in ConvertEnterpriseInfo() 595 std::string description = entInfo.description; in ConvertEnterpriseInfo()
|
/base/customization/enterprise_device_management/interfaces/inner_api/common/src/ |
D | enterprise_device_mgr_proxy.cpp | 65 ErrCode EnterpriseDeviceMgrProxy::EnableAdmin(AppExecFwk::ElementName &admin, EntInfo &entInfo, Adm… in EnableAdmin() argument 78 data.WriteParcelable(&entInfo); in EnableAdmin() 180 …rCode EnterpriseDeviceMgrProxy::GetEnterpriseInfo(AppExecFwk::ElementName &admin, EntInfo &entInfo) in GetEnterpriseInfo() argument 210 entInfo = *info; in GetEnterpriseInfo() 214 …rCode EnterpriseDeviceMgrProxy::SetEnterpriseInfo(AppExecFwk::ElementName &admin, EntInfo &entInfo) in SetEnterpriseInfo() argument 229 data.WriteParcelable(&entInfo); in SetEnterpriseInfo()
|