Home
last modified time | relevance | path

Searched refs:entInfo (Results 1 – 21 of 21) sorted by relevance

/base/customization/enterprise_device_management/test/unittest/src/
Dadmin_manager_test.cpp123 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 …]
Denterprise_device_mgr_proxy_test.cpp58 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…
Denterprise_device_mgr_ability_test.cpp548 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/
Denterprise_device_mgr_ability_test.cpp123 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/
Dadmin_policies_storage_rdb.h31 …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);
Dadmin_manager.h49 …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);
Denterprise_device_mgr_ability.h47 …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/
Dentinfo_fuzzer.cpp28 EntInfo entInfo; in fuzzEntInfo() local
30 entInfo.enterpriseName = entName; in fuzzEntInfo()
/base/customization/enterprise_device_management/test/fuzztest/setenterpriseinfo_fuzzer/
Dsetenterpriseinfo_fuzzer.cpp40 EntInfo entInfo(name, name); in FuzzSetEnterpriseInfo() local
41 enterpriseDeviceManager->SetEnterpriseInfo(admin, entInfo); in FuzzSetEnterpriseInfo()
/base/customization/enterprise_device_management/interfaces/kits/admin_manager/include/
Dadmin_manager_addon.h38 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/
Dadmin_policies_storage_rdb.cpp62 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()
Denterprise_device_mgr_stub.cpp115 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()
Dadmin_manager.cpp93 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()
Denterprise_device_mgr_ability.cpp483 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/
Denterprise_device_mgr_proxy.h42 …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);
Dienterprise_device_mgr.h35 …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/
Denterprise_device_mgr_stub_mock.cpp26 EntInfo entInfo; in InvokeSendRequestGetEnterpriseInfo() local
29 reply.WriteParcelable(&entInfo); in InvokeSendRequestGetEnterpriseInfo()
Denterprise_device_mgr_stub_mock.h87 …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
Denterprise_device_mgr_proxy_test.cpp86 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/
Dadmin_manager_addon.cpp48 …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/
Denterprise_device_mgr_proxy.cpp65 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()