/base/customization/enterprise_device_management/test/unittest/src/ |
D | admin_manager_test.cpp | 28 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 …]
|
D | enterprise_admin_connection_test.cpp | 32 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);
|
D | enterprise_bundle_connection_test.cpp | 32 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");
|
D | enterprise_device_mgr_ability_test.cpp | 38 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/ |
D | enterprise_device_mgr_ability_test.cpp | 42 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/ |
D | account_event_provider_test.cpp | 35 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/ |
D | edm_command.cpp | 32 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/ |
D | ans_const_define.h | 39 constexpr int32_t DEFAULT_USER_ID = 100; variable
|
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/ |
D | app_usage_event_factory.cpp | 34 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/ |
D | enterprise_device_mgr_ability.cpp | 48 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()
|
D | admin_manager.cpp | 32 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/ |
D | system_event_observer.cpp | 89 if (userId <= DEFAULT_USER_ID) { in OnReceiveEvent()
|
/base/account/os_account/frameworks/domain_account/test/moduletest/src/ |
D | domain_account_client_module_test.cpp | 41 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/ |
D | account_iam_callback_test.cpp | 31 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/ |
D | advanced_notification_service_test.cpp | 1662 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);
|