Home
last modified time | relevance | path

Searched refs:DEFAULT_USER_ID (Results 1 – 15 of 15) sorted by relevance

/base/customization/enterprise_device_management/test/unittest/src/
Dadmin_manager_test.cpp28 constexpr int32_t DEFAULT_USER_ID = 100; variable
44 adminMgr_->GetAdminByUserId(DEFAULT_USER_ID, userAdmin); in TearDown()
46 adminMgr_->DeleteAdmin(admin->adminInfo_.packageName_, DEFAULT_USER_ID); in TearDown()
146 … = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::NORMAL, permissions, DEFAULT_USER_ID);
148 adminMgr_->GetAdminByUserId(DEFAULT_USER_ID, userAdmin);
155 …res = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::ENT, permissions, DEFAULT_USER_ID);
158 adminMgr_->GetAdminByUserId(DEFAULT_USER_ID, userAdmin);
181 … = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::NORMAL, permissions, DEFAULT_USER_ID);
192 …res = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::ENT, permissions, DEFAULT_USER_ID);
196 admin = adminMgr_->GetAdminByPkgName("com.edm.test.demo", DEFAULT_USER_ID);
[all …]
Denterprise_admin_connection_test.cpp32 constexpr int32_t DEFAULT_USER_ID = 100; variable
63 IEnterpriseAdmin::COMMAND_ON_ADMIN_ENABLED, DEFAULT_USER_ID);
88 IEnterpriseAdmin::COMMAND_ON_ADMIN_DISABLED, DEFAULT_USER_ID);
113 COMMAND_ON_ADMIN_CODE, DEFAULT_USER_ID);
Denterprise_bundle_connection_test.cpp32 constexpr int32_t DEFAULT_USER_ID = 100; variable
63 static_cast<uint32_t>(ManagedEvent::BUNDLE_ADDED), DEFAULT_USER_ID, "com.edm.test.add");
87 … static_cast<uint32_t>(ManagedEvent::BUNDLE_REMOVED), DEFAULT_USER_ID, "com.edm.test.remove");
111 COMMAND_ON_ADMIN_CODE, DEFAULT_USER_ID, "com.edm.test.err");
Denterprise_device_mgr_ability_test.cpp38 constexpr int32_t DEFAULT_USER_ID = 100; variable
98 insert(std::pair<int32_t, std::vector<std::shared_ptr<Admin>>>(DEFAULT_USER_ID, adminVec)); in PrepareBeforeHandleDevicePolicy()
173 insert(std::pair<int32_t, std::vector<std::shared_ptr<Admin>>>(DEFAULT_USER_ID, adminVec));
198 insert(std::pair<int32_t, std::vector<std::shared_ptr<Admin>>>(DEFAULT_USER_ID, adminVec));
/base/customization/enterprise_device_management/test/unittest/enterprise_device_mgr_ability/enterprise_device_mgr_ability_test/
Denterprise_device_mgr_ability_test.cpp42 constexpr int32_t DEFAULT_USER_ID = 100; variable
147 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID);
165 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::NORMAL, DEFAULT_USER_ID);
168 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID);
171 res = edmMgr_->DisableAdmin(admin, DEFAULT_USER_ID);
177 res = edmMgr_->DisableAdmin(admin1, DEFAULT_USER_ID);
195 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::NORMAL, DEFAULT_USER_ID);
198 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID);
201 res = edmMgr_->DisableAdmin(admin, DEFAULT_USER_ID);
219 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::NORMAL, DEFAULT_USER_ID);
[all …]
/base/account/os_account/services/accountmgr/test/unittest/account_event_provider_test/
Daccount_event_provider_test.cpp35 constexpr int32_t DEFAULT_USER_ID = 100; variable
65 EventFwk::CommonEventSupport::COMMON_EVENT_HWID_LOGOFF, DEFAULT_USER_ID);
/base/customization/enterprise_device_management/tools/edm/src/
Dedm_command.cpp32 constexpr int32_t DEFAULT_USER_ID = 100; variable
129 … ErrCode result = enterpriseDeviceMgrProxy_->EnableAdmin(elementName, info, type, DEFAULT_USER_ID); in RunAsEnableCommand()
173 ErrCode result = enterpriseDeviceMgrProxy_->DisableAdmin(elementName, DEFAULT_USER_ID); in RunDisableNormalAdminCommand()
/base/notification/distributed_notification_service/frameworks/core/common/include/
Dans_const_define.h39 constexpr int32_t DEFAULT_USER_ID = 100; variable
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/
Dapp_usage_event_factory.cpp34 constexpr int32_t DEFAULT_USER_ID = 100; variable
85 ids.push_back(DEFAULT_USER_ID); in GetAllCreatedOsAccountIds()
/base/customization/enterprise_device_management/services/edm/src/
Denterprise_device_mgr_ability.cpp48 constexpr int32_t DEFAULT_USER_ID = 100; variable
315 if (type != AdminType::ENT || userId != DEFAULT_USER_ID) { in VerifyEnableAdminCondition()
329 if (type == AdminType::ENT && userId != DEFAULT_USER_ID) { in VerifyEnableAdminCondition()
533 std::shared_ptr<Admin> admin = adminMgr_->GetAdminByPkgName(bundleName, DEFAULT_USER_ID); in DisableSuperAdmin()
541 if (FAILED(RemoveAdmin(bundleName, DEFAULT_USER_ID))) { in DisableSuperAdmin()
549 IEnterpriseAdmin::COMMAND_ON_ADMIN_DISABLED, DEFAULT_USER_ID); in DisableSuperAdmin()
557 std::shared_ptr<Admin> admin = adminMgr_->GetAdminByPkgName(bundleName, DEFAULT_USER_ID); in IsSuperAdmin()
675 adminMgr_->GetEnabledAdmin(AdminType::ENT, superList, DEFAULT_USER_ID); in GetEnabledAdmin()
678 adminMgr_->GetEnabledAdmin(AdminType::ENT, superList, DEFAULT_USER_ID); in GetEnabledAdmin()
Dadmin_manager.cpp32 constexpr int32_t DEFAULT_USER_ID = 100; variable
235 bool ret = GetAdminByUserId(DEFAULT_USER_ID, userAdmin); in IsSuperAdminExist()
247 superAdmin = GetAdminByPkgName(bundleName, DEFAULT_USER_ID); in IsSuperAdmin()
448 if ((std::stoi(user)) < DEFAULT_USER_ID) { in RestoreAdminFromFile()
/base/notification/distributed_notification_service/services/ans/src/
Dsystem_event_observer.cpp89 if (userId <= DEFAULT_USER_ID) { in OnReceiveEvent()
/base/account/os_account/frameworks/domain_account/test/moduletest/src/
Ddomain_account_client_module_test.cpp41 const int32_t DEFAULT_USER_ID = 100; variable
330 EXPECT_EQ(DomainAccountClient::GetInstance().AuthUser(DEFAULT_USER_ID, VALID_PASSWORD, nullptr),
/base/account/os_account/services/accountmgr/test/unittest/account_iam_callback_test/
Daccount_iam_callback_test.cpp31 const int32_t DEFAULT_USER_ID = 100; variable
82 AccessTokenID tokenId = AccessTokenKit::GetHapTokenID(DEFAULT_USER_ID, "com.ohos.settings", 0); in SetUpTestCase()
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dadvanced_notification_service_test.cpp1662 req->SetCreatorUserId(DEFAULT_USER_ID);
1669 data.SetCode(DEFAULT_USER_ID);
2047 req->SetCreatorUserId(DEFAULT_USER_ID);
2084 req->SetCreatorUserId(DEFAULT_USER_ID);
2188 req->SetCreatorUserId(DEFAULT_USER_ID);