| /base/customization/enterprise_device_management/services/edm_plugin/src/ |
| D | add_os_account_plugin.cpp | 54 OHOS::AccountSA::OsAccountType accountType = ParseOsAccountType(type); in OnSetPolicy() 55 if (accountType == OHOS::AccountSA::OsAccountType::END) { in OnSetPolicy() 88 OHOS::AccountSA::OsAccountType AddOsAccountPlugin::ParseOsAccountType(int32_t type) in ParseOsAccountType() 90 if (type >= static_cast<int32_t>(OHOS::AccountSA::OsAccountType::ADMIN) in ParseOsAccountType() 91 && type < static_cast<int32_t>(OHOS::AccountSA::OsAccountType::END)) { in ParseOsAccountType() 92 return static_cast<OHOS::AccountSA::OsAccountType>(type); in ParseOsAccountType() 94 return OHOS::AccountSA::OsAccountType::END; in ParseOsAccountType()
|
| /base/account/os_account/interfaces/innerkits/osaccount/native/include/ |
| D | os_account_info.h | 29 } OsAccountType; typedef 54 … OsAccountInfo(int localId, const std::string localName, OsAccountType type, int64_t serialNumber); 56 …ountInfo(int localId, const std::string localName, const std::string shortName, OsAccountType type, 71 OsAccountType GetType() const; 73 void SetType(OsAccountType type); 139 OsAccountType type_ = OsAccountType::ADMIN;
|
| D | os_account_manager.h | 58 …static ErrCode CreateOsAccount(const std::string &name, const OsAccountType &type, OsAccountInfo &… 70 const OsAccountType& type, OsAccountInfo& osAccountInfo); 84 … const OsAccountType& type, const CreateOsAccountOptions& options, OsAccountInfo& osAccountInfo); 110 …static ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domain… 259 static ErrCode GetOsAccountTypeFromProcess(OsAccountType &type);
|
| /base/account/os_account/frameworks/osaccount/native/test/unittest/ |
| D | os_account_info_test.cpp | 31 const OsAccountType INT_TYPE = OsAccountType::ADMIN; 194 OsAccountType type = INT_TYPE; 533 osAccountInfo.SetType(OsAccountType::NORMAL); 554 osAccountInfo.SetType(OsAccountType::GUEST); 580 osAccountInfo.SetType(OsAccountType::GUEST); 608 …OsAccountManager::CreateOsAccount(STRING_NAME, "shortName", OsAccountType::NORMAL, osAccountInfoOn… 610 …OsAccountManager::CreateOsAccount(STRING_NAME, STRING_NAME, OsAccountType::NORMAL, osAccountInfoTw… 628 …OsAccountManager::CreateOsAccount(STRING_NAME, "shortName", OsAccountType::NORMAL, options, osAcco… 631 …OsAccountManager::CreateOsAccount(STRING_NAME, STRING_NAME, OsAccountType::NORMAL, osAccountInfoTw… 664 OsAccountManager::CreateOsAccount("..", OsAccountType::NORMAL, osAccountInfoOne)); [all …]
|
| /base/account/os_account/test/fuzztest/osaccount/createosaccount_fuzzer/ |
| D | createosaccount_fuzzer.cpp | 35 OsAccountType testType = static_cast<OsAccountType>(size % CONSTANTS_NUMBER_FIVE); in CreateOsAccountFuzzTest()
|
| /base/account/os_account/services/accountmgr/include/osaccount/ |
| D | iinner_os_account_manager.h | 35 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) override; 37 …const OsAccountType &type, OsAccountInfo &osAccountInfo, const CreateOsAccountOptions &options = {… 40 ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo, 54 ErrCode GetOsAccountType(const int id, OsAccountType &type) override; 97 ErrCode BindDomainAccount(const OsAccountType &type, const DomainAccountInfo &domainAccountInfo, 117 ErrCode PrepareOsAccountInfo(const std::string &name, const OsAccountType &type, 119 …sAccountInfo(const std::string &localName, const std::string &shortName, const OsAccountType &type, 121 …sAccountInfo(const std::string &localName, const std::string &shortName, const OsAccountType &type,
|
| D | os_account_domain_account_callback.h | 30 …CheckAndCreateDomainAccountCallback(const OsAccountType &type, const DomainAccountInfo &domainAcco… 35 OsAccountType type_;
|
| D | iinner_os_account.h | 32 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) = 0; 34 …const OsAccountType &type, OsAccountInfo &osAccountInfo, const CreateOsAccountOptions &options = {… 37 …virtual ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domai… 51 virtual ErrCode GetOsAccountType(const int id, OsAccountType &type) = 0;
|
| D | os_account_manager_service.h | 35 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) override; 37 …const OsAccountType &type, OsAccountInfo &osAccountInfo, const CreateOsAccountOptions &options = {… 38 ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo, 68 ErrCode GetOsAccountTypeFromProcess(OsAccountType &type) override;
|
| /base/account/os_account/test/fuzztest/osaccount/createosaccountfordomain_fuzzer/ |
| D | createosaccountfordomain_fuzzer.cpp | 37 OsAccountType testType = static_cast<OsAccountType>(size % CONSTANTS_NUMBER_FIVE); in CreateOsAccountForDomainFuzzTest()
|
| /base/account/os_account/frameworks/osaccount/native/test/moduletest/ |
| D | os_account_manager_module_test.cpp | 346 …ASSERT_EQ(OsAccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::GUEST, osAccountInfoO… 354 EXPECT_EQ(osAccountInfoOne.GetType(), OsAccountType::GUEST); 367 …EXPECT_NE(OsAccountManager::CreateOsAccount(STRING_NAME_OUT_OF_RANGE, OsAccountType::GUEST, osAcco… 380 …EXPECT_NE(OsAccountManager::CreateOsAccount(STRING_EMPTY, OsAccountType::GUEST, osAccountInfoOne),… 392 …ASSERT_EQ(OsAccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::ADMIN, osAccountInfoO… 400 EXPECT_EQ(osAccountInfoOne.GetType(), OsAccountType::ADMIN); 413 …ASSERT_EQ(OsAccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::NORMAL, osAccountInfo… 421 EXPECT_EQ(osAccountInfoOne.GetType(), OsAccountType::NORMAL); 434 …EXPECT_NE(OsAccountManager::CreateOsAccount(STRING_EMPTY, OsAccountType::GUEST, osAccountInfoOne),… 513 …ASSERT_EQ(OsAccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::GUEST, osAccountInfoO… [all …]
|
| /base/account/os_account/frameworks/osaccount/native/src/ |
| D | os_account_info.cpp | 49 OsAccountInfo::OsAccountInfo(int localId, const std::string localName, OsAccountType type, int64_t … in OsAccountInfo() 53 …ountInfo(int localId, const std::string localName, const std::string shortName, OsAccountType type, in OsAccountInfo() 88 OsAccountType OsAccountInfo::GetType() const in GetType() 93 void OsAccountInfo::SetType(OsAccountType type) in SetType() 247 OHOS::AccountSA::GetDataByType<OsAccountType>( in FromJson() 350 if ((type_ < OsAccountType::ADMIN) || (type_ >= OsAccountType::END) || in ParamCheck() 351 (localId_ == Constants::START_USER_ID && type_ != OsAccountType::ADMIN)) { in ParamCheck()
|
| D | os_account_manager.cpp | 25 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) in CreateOsAccount() 31 …const std::string &localName, const std::string &shortName, const OsAccountType &type, OsAccountIn… in CreateOsAccount() 37 const OsAccountType& type, const CreateOsAccountOptions& options, OsAccountInfo& osAccountInfo) in CreateOsAccount() 52 ErrCode OsAccountManager::CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountIn… in CreateOsAccountForDomain() 160 ErrCode OsAccountManager::GetOsAccountTypeFromProcess(OsAccountType &type) in GetOsAccountTypeFromProcess()
|
| /base/account/os_account/services/accountmgr/test/unittest/os_account/ |
| D | os_account_data_storage_test.cpp | 41 const OsAccountType INT_TYPE = OsAccountType::ADMIN;
|
| D | os_account_file_manager_multiple_thread_test.cpp | 34 const OsAccountType OS_ACCOUNT_TYPE = OsAccountType::ADMIN;
|
| /base/account/os_account/test/fuzztest/osaccount_stub/createosaccountfordomainstub_fuzzer/ |
| D | createosaccountfordomainstub_fuzzer.cpp | 40 OsAccountType testType = static_cast<OsAccountType>(size % CONSTANTS_NUMBER_FIVE); in CreateOsAccountForDomainStubFuzzTest()
|
| /base/account/os_account/tools/acm/src/ |
| D | account_command.cpp | 97 std::string &shortName, OsAccountType &osAccountType, std::vector<std::string> &disallowedList) in ParseCreateCommandOpt() 130 OsAccountType osAccountType = static_cast<OsAccountType>(-1); in RunAsCreateCommand() 134 if (name.size() == 0 || osAccountType == static_cast<OsAccountType>(-1)) { in RunAsCreateCommand() 141 if (osAccountType == static_cast<OsAccountType>(-1)) { in RunAsCreateCommand() 447 std::string &shortName, OsAccountType &type, std::vector<std::string> &disallowedList) in RunAsCreateCommandExistentOptionArgument() 652 ErrCode AccountCommand::AnalyzeTypeArgument(OsAccountType &type) in AnalyzeTypeArgument() 658 type = OsAccountType::ADMIN; in AnalyzeTypeArgument() 660 type = OsAccountType::NORMAL; in AnalyzeTypeArgument() 662 type = OsAccountType::GUEST; in AnalyzeTypeArgument()
|
| /base/account/os_account/frameworks/osaccount/core/include/ |
| D | os_account.h | 29 …ErrCode CreateOsAccount(const std::string &name, const OsAccountType &type, OsAccountInfo &osAccou… 30 …ateOsAccount(const std::string &localName, const std::string &shortName, const OsAccountType &type, 34 ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo, 51 ErrCode GetOsAccountTypeFromProcess(OsAccountType &type);
|
| D | ios_account.h | 36 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) = 0; 38 …const OsAccountType &type, OsAccountInfo &osAccountInfo, const CreateOsAccountOptions &options = {… 41 …virtual ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domai… 60 virtual ErrCode GetOsAccountTypeFromProcess(OsAccountType &type) = 0;
|
| D | os_account_proxy.h | 30 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) override; 31 …ateOsAccount(const std::string &localName, const std::string &shortName, const OsAccountType &type, 35 ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo, 54 ErrCode GetOsAccountTypeFromProcess(OsAccountType &type) override;
|
| /base/account/os_account/tools/acm/include/ |
| D | account_command.h | 128 std::string &shortName, OsAccountType &type, std::vector<std::string> &disallowedList); 140 … std::string &shortName, OsAccountType &osAccountType, std::vector<std::string> &disallowedList); 142 ErrCode AnalyzeTypeArgument(OsAccountType &type);
|
| /base/account/os_account/services/accountmgr/src/osaccount/ |
| D | os_account_manager_service.cpp | 29 const std::map<OsAccountType, std::string> DUMP_TYPE_MAP = { 30 {OsAccountType::ADMIN, "admin"}, 31 {OsAccountType::NORMAL, "normal"}, 32 {OsAccountType::GUEST, "guest"}, 87 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) in CreateOsAccount() 99 const OsAccountType &type, OsAccountInfo &osAccountInfo, const CreateOsAccountOptions &options) in CreateOsAccount() 133 if (!isAllowedCreateAdmin && (osAccountInfo.GetType() == OsAccountType::ADMIN)) { in CreateOsAccountWithFullInfo() 154 if (!isAllowedCreateAdmin && osAccountInfo.GetType() == OsAccountType::ADMIN) { in UpdateOsAccountWithFullInfo() 162 ErrCode OsAccountManagerService::CreateOsAccountForDomain(const OsAccountType &type, in CreateOsAccountForDomain() 173 if ((type < OsAccountType::ADMIN) || (type >= OsAccountType::END)) { in CreateOsAccountForDomain() [all …]
|
| /base/account/os_account/test/fuzztest/osaccount/createosaccountwithshortname_fuzzer/ |
| D | createosaccountwithshortname_fuzzer.cpp | 56 OsAccountType testType = static_cast<OsAccountType>(size % CONSTANTS_NUMBER_FIVE); in CreateOsAccountWithShortNameFuzzTest()
|
| /base/account/os_account/frameworks/osaccount/core/test/unittest/ |
| D | os_account_test.cpp | 122 …ErrCode errCode = g_osAccount->CreateOsAccount(STRING_NAME_OUT_OF_RANGE, OsAccountType::GUEST, osA… 136 … ErrCode errCode = g_osAccount->CreateOsAccount(STRING_EMPTY, OsAccountType::GUEST, osAccountInfo); 272 OsAccountType type = NORMAL; 287 OsAccountType type = NORMAL; 306 OsAccountType type = NORMAL;
|
| /base/account/os_account/test/fuzztest/osaccount/getosaccounttypefromprocess_fuzzer/ |
| D | getosaccounttypefromprocess_fuzzer.cpp | 32 OsAccountType testOsAccountType; in QueryOsAccountByIdFuzzTest()
|