/base/account/os_account/interfaces/innerkits/osaccount/native/include/ |
D | os_account_info.h | 29 } 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_;
|
D | os_account_manager.h | 58 …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/ |
D | createosaccount_fuzzer.cpp | 35 OsAccountType testType = static_cast<OsAccountType>(size % CONSTANTS_NUMBER_FIVE); in CreateOsAccountFuzzTest()
|
/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/services/accountmgr/test/unittest/os_account/ |
D | os_account_data_storage_test.cpp | 40 const OsAccountType INT_TYPE = OsAccountType::ADMIN;
|
D | os_account_domain_account_callback_test.cpp | 62 …auto callbackPtr = std::make_shared<CheckAndCreateDomainAccountCallback>(OsAccountType::NORMAL, in…
|
/base/account/os_account/services/accountmgr/include/osaccount/ |
D | os_account_domain_account_callback.h | 29 …CheckAndCreateDomainAccountCallback(const OsAccountType &type, const DomainAccountInfo &domainAcco… 34 OsAccountType type_;
|
D | iinner_os_account_manager.h | 35 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,
|
D | iinner_os_account.h | 32 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;
|
D | os_account_manager_service.h | 33 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/ |
D | os_account_manager_module_test.cpp | 298 …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/ |
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 | 95 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/ |
D | os_account_manager_service.cpp | 28 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/ |
D | getosaccounttypefromprocess_fuzzer.cpp | 32 OsAccountType testOsAccountType; in QueryOsAccountByIdFuzzTest()
|
/base/account/os_account/services/accountmgr/test/moduletest/os_account/ |
D | os_account_manager_service_create_os_account_test.cpp | 93 …errCode = g_osAccountManagerService->CreateOsAccount(STRING_TEST_NAME, OsAccountType::ADMIN, osAcc… 99 …errCode = g_osAccountManagerService->CreateOsAccount(STRING_TEST_NAME, OsAccountType::ADMIN, osAcc…
|
D | os_account_manager_service_module_test.cpp | 42 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/ |
D | os_account_test.cpp | 192 …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/ |
D | os_account.h | 29 …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);
|
D | ios_account.h | 36 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;
|
D | os_account_proxy.h | 30 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/ |
D | account_command.h | 115 …unAsCreateCommandExistentOptionArgument(const int &option, std::string &name, OsAccountType &type); 127 ErrCode AnalyzeTypeArgument(OsAccountType &type);
|
/base/account/os_account/frameworks/osaccount/native/src/ |
D | os_account_info.cpp | 48 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/ |
D | proccreateosaccountstub_fuzzer.cpp | 43 if (!datas.WriteInt32(OsAccountType::GUEST)) { in ProcCreateOsAccountStubFuzzTest()
|
/base/account/os_account/test/systemtest/common/resource/fuzzTest/src/ |
D | getparam.cpp | 405 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()
|