Home
last modified time | relevance | path

Searched refs:OsAccountType (Results 1 – 25 of 63) sorted by relevance

123

/base/account/os_account/interfaces/innerkits/osaccount/native/include/
Dos_account_info.h29 } OsAccountType; typedef
47 … OsAccountInfo(int localId, const std::string localName, OsAccountType type, int64_t serialNumber);
57 OsAccountType GetType() const;
59 void SetType(OsAccountType type);
122 OsAccountType type_;
Dos_account_manager.h58 …static ErrCode CreateOsAccount(const std::string &name, const OsAccountType &type, OsAccountInfo &…
68 …static ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domain…
217 static ErrCode GetOsAccountTypeFromProcess(OsAccountType &type);
/base/account/os_account/test/fuzztest/osaccount/createosaccount_fuzzer/
Dcreateosaccount_fuzzer.cpp35 OsAccountType testType = static_cast<OsAccountType>(size % CONSTANTS_NUMBER_FIVE); in CreateOsAccountFuzzTest()
/base/account/os_account/test/fuzztest/osaccount/createosaccountfordomain_fuzzer/
Dcreateosaccountfordomain_fuzzer.cpp37 OsAccountType testType = static_cast<OsAccountType>(size % CONSTANTS_NUMBER_FIVE); in CreateOsAccountForDomainFuzzTest()
/base/account/os_account/services/accountmgr/test/unittest/os_account/
Dos_account_data_storage_test.cpp40 const OsAccountType INT_TYPE = OsAccountType::ADMIN;
Dos_account_domain_account_callback_test.cpp62 …auto callbackPtr = std::make_shared<CheckAndCreateDomainAccountCallback>(OsAccountType::NORMAL, in…
/base/account/os_account/services/accountmgr/include/osaccount/
Dos_account_domain_account_callback.h29 …CheckAndCreateDomainAccountCallback(const OsAccountType &type, const DomainAccountInfo &domainAcco…
34 OsAccountType type_;
Diinner_os_account_manager.h35 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) override;
36 ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo,
49 ErrCode GetOsAccountType(const int id, OsAccountType &type) override;
90 ErrCode BindDomainAccount(const OsAccountType &type, const DomainAccountInfo &domainAccountInfo,
108 ErrCode PrepareOsAccountInfo(const std::string &name, const OsAccountType &type,
Diinner_os_account.h32 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) = 0;
33 …virtual ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domai…
46 virtual ErrCode GetOsAccountType(const int id, OsAccountType &type) = 0;
Dos_account_manager_service.h33 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) override;
34 ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo,
60 ErrCode GetOsAccountTypeFromProcess(OsAccountType &type) override;
/base/account/os_account/frameworks/osaccount/native/test/moduletest/
Dos_account_manager_module_test.cpp298 …ASSERT_EQ(OsAccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::GUEST, osAccountInfoO…
302 EXPECT_EQ(osAccountInfoOne.GetType(), OsAccountType::GUEST);
315 …EXPECT_NE(OsAccountManager::CreateOsAccount(STRING_NAME_OUT_OF_RANGE, OsAccountType::GUEST, osAcco…
328 …EXPECT_NE(OsAccountManager::CreateOsAccount(STRING_EMPTY, OsAccountType::GUEST, osAccountInfoOne),…
340 …ASSERT_EQ(OsAccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::ADMIN, osAccountInfoO…
344 EXPECT_EQ(osAccountInfoOne.GetType(), OsAccountType::ADMIN);
357 …ASSERT_EQ(OsAccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::NORMAL, osAccountInfo…
361 EXPECT_EQ(osAccountInfoOne.GetType(), OsAccountType::NORMAL);
382 …ErrCode errCode = OsAccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::GUEST, osAcco…
406 …EXPECT_NE(OsAccountManager::CreateOsAccount(STRING_EMPTY, OsAccountType::GUEST, osAccountInfoOne),…
[all …]
/base/account/os_account/test/fuzztest/osaccount_stub/createosaccountfordomainstub_fuzzer/
Dcreateosaccountfordomainstub_fuzzer.cpp40 OsAccountType testType = static_cast<OsAccountType>(size % CONSTANTS_NUMBER_FIVE); in CreateOsAccountForDomainStubFuzzTest()
/base/account/os_account/tools/acm/src/
Daccount_command.cpp95 OsAccountType osAccountType = static_cast<OsAccountType>(-1); in RunAsCreateCommand()
119 if (name.size() == 0 || osAccountType == static_cast<OsAccountType>(-1)) { in RunAsCreateCommand()
126 if (osAccountType == static_cast<OsAccountType>(-1)) { in RunAsCreateCommand()
399 const int &option, std::string &name, OsAccountType &type) in RunAsCreateCommandExistentOptionArgument()
592 ErrCode AccountCommand::AnalyzeTypeArgument(OsAccountType &type) in AnalyzeTypeArgument()
598 type = OsAccountType::ADMIN; in AnalyzeTypeArgument()
600 type = OsAccountType::NORMAL; in AnalyzeTypeArgument()
602 type = OsAccountType::GUEST; in AnalyzeTypeArgument()
/base/account/os_account/services/accountmgr/src/osaccount/
Dos_account_manager_service.cpp28 const std::map<OsAccountType, std::string> DUMP_TYPE_MAP = {
29 {OsAccountType::ADMIN, "admin"},
30 {OsAccountType::NORMAL, "normal"},
31 {OsAccountType::GUEST, "guest"},
83 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) in CreateOsAccount()
108 if ((type < OsAccountType::ADMIN) || (type >= OsAccountType::END)) { in CreateOsAccount()
119 if (!isAllowedCreateAdmin && type == OsAccountType::ADMIN) { in CreateOsAccount()
126 ErrCode OsAccountManagerService::CreateOsAccountForDomain(const OsAccountType &type, in CreateOsAccountForDomain()
143 if ((type < OsAccountType::ADMIN) || (type >= OsAccountType::END)) { in CreateOsAccountForDomain()
160 if (!isAllowedCreateAdmin && type == OsAccountType::ADMIN) { in CreateOsAccountForDomain()
[all …]
/base/account/os_account/test/fuzztest/osaccount/getosaccounttypefromprocess_fuzzer/
Dgetosaccounttypefromprocess_fuzzer.cpp32 OsAccountType testOsAccountType; in QueryOsAccountByIdFuzzTest()
/base/account/os_account/services/accountmgr/test/moduletest/os_account/
Dos_account_manager_service_create_os_account_test.cpp93 …errCode = g_osAccountManagerService->CreateOsAccount(STRING_TEST_NAME, OsAccountType::ADMIN, osAcc…
99 …errCode = g_osAccountManagerService->CreateOsAccount(STRING_TEST_NAME, OsAccountType::ADMIN, osAcc…
Dos_account_manager_service_module_test.cpp42 const OsAccountType INT_TEST_TYPE = OsAccountType::GUEST;
270 …ErrCode errCode = osAccountManagerService_->CreateOsAccount(STRING_TEST_NAME, OsAccountType::ADMIN,
273 errCode = osAccountManagerService_->CreateOsAccount(STRING_TEST_NAME, OsAccountType::END,
698 OsAccountType type;
1068 OsAccountType type = NORMAL;
1104 OsAccountType type = NORMAL;
1151 OsAccountType type = NORMAL;
1169 …EXPECT_EQ(osAccountManagerService_->CreateOsAccountForDomain(OsAccountType::END, domainInfo, osAcc…
1183 OsAccountType type = NORMAL;
1205 OsAccountType type = NORMAL;
[all …]
/base/account/os_account/frameworks/osaccount/core/test/unittest/
Dos_account_test.cpp192 …ErrCode errCode = g_osAccount->CreateOsAccount(STRING_NAME_OUT_OF_RANGE, OsAccountType::GUEST, osA…
205 … ErrCode errCode = g_osAccount->CreateOsAccount(STRING_EMPTY, OsAccountType::GUEST, osAccountInfo);
341 OsAccountType type = NORMAL;
356 OsAccountType type = NORMAL;
375 OsAccountType type = NORMAL;
/base/account/os_account/frameworks/osaccount/core/include/
Dos_account.h29 …ErrCode CreateOsAccount(const std::string &name, const OsAccountType &type, OsAccountInfo &osAccou…
30 ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo,
47 ErrCode GetOsAccountTypeFromProcess(OsAccountType &type);
Dios_account.h36 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) = 0;
37 …virtual ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domai…
56 virtual ErrCode GetOsAccountTypeFromProcess(OsAccountType &type) = 0;
Dos_account_proxy.h30 const std::string &name, const OsAccountType &type, OsAccountInfo &osAccountInfo) override;
31 ErrCode CreateOsAccountForDomain(const OsAccountType &type, const DomainAccountInfo &domainInfo,
50 ErrCode GetOsAccountTypeFromProcess(OsAccountType &type) override;
/base/account/os_account/tools/acm/include/
Daccount_command.h115 …unAsCreateCommandExistentOptionArgument(const int &option, std::string &name, OsAccountType &type);
127 ErrCode AnalyzeTypeArgument(OsAccountType &type);
/base/account/os_account/frameworks/osaccount/native/src/
Dos_account_info.cpp48 type_ = OsAccountType::ADMIN; in OsAccountInfo()
62 OsAccountInfo::OsAccountInfo(int localId, const std::string localName, OsAccountType type, int64_t … in OsAccountInfo()
97 OsAccountType OsAccountInfo::GetType() const in GetType()
102 void OsAccountInfo::SetType(OsAccountType type) in SetType()
256 OHOS::AccountSA::GetDataByType<OsAccountType>( in FromJson()
/base/account/os_account/test/fuzztest/osaccount_stub/proccreateosaccountstub_fuzzer/
Dproccreateosaccountstub_fuzzer.cpp43 if (!datas.WriteInt32(OsAccountType::GUEST)) { in ProcCreateOsAccountStubFuzzTest()
/base/account/os_account/test/systemtest/common/resource/fuzzTest/src/
Dgetparam.cpp405 OHOS::AccountSA::OsAccountType GetParamOsAccountType() in GetParamOsAccountType()
409 return OHOS::AccountSA::OsAccountType::ADMIN; in GetParamOsAccountType()
412 return OHOS::AccountSA::OsAccountType::NORMAL; in GetParamOsAccountType()
415 return OHOS::AccountSA::OsAccountType::GUEST; in GetParamOsAccountType()
418 return OHOS::AccountSA::OsAccountType::NORMAL; in GetParamOsAccountType()

123