Home
last modified time | relevance | path

Searched refs:osAccountType (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/account/os_account/tools/acm/src/
H A Daccount_command.cpp134 std::string &shortName, OsAccountType &osAccountType, std::vector<std::string> &disallowedList) in ParseCreateCommandOpt() argument
156 …result = RunAsCreateCommandExistentOptionArgument(option, name, shortName, osAccountType, disallow… in ParseCreateCommandOpt()
167 OsAccountType osAccountType = END; in RunAsCreateCommand() local
169 result = ParseCreateCommandOpt(name, shortName, osAccountType, options.disallowedHapList); in RunAsCreateCommand()
171 if (name.size() == 0 || osAccountType == END) { in RunAsCreateCommand()
178 if (osAccountType == END) { in RunAsCreateCommand()
197 …result = OsAccount::GetInstance().CreateOsAccount(name, shortName, osAccountType, osAccountInfo, o… in RunAsCreateCommand()
210 …("result = %{public}d, name = %{public}s, type = %{public}d", result, name.c_str(), osAccountType); in RunAsCreateCommand()
/ohos5.0/base/useriam/user_auth_framework/services/core/src/
H A Dipc_common.cpp124 …atic HdiUserType MapOsAccountTypeToUserType(int32_t userId, AccountSA::OsAccountType osAccountType) in MapOsAccountTypeToUserType() argument
126 if (osAccountType == AccountSA::OsAccountType::PRIVATE) { in MapOsAccountTypeToUserType()
138 AccountSA::OsAccountType osAccountType; in GetUserTypeByUserId() local
139 ErrCode ret = AccountSA::OsAccountManager::GetOsAccountType(userId, osAccountType); in GetUserTypeByUserId()
144 userType = MapOsAccountTypeToUserType(userId, osAccountType); in GetUserTypeByUserId()
/ohos5.0/base/account/os_account/interfaces/kits/napi/osaccount/src/
H A Dnapi_os_account.cpp116 napi_value osAccountType = nullptr; in OsAccountInit() local
117 napi_create_object(env, &osAccountType); in OsAccountInit()
119 SetEnumProperty(env, osAccountType, OS_ACCOUNT_TYPE_ADMIN, "ADMIN"); in OsAccountInit()
120 SetEnumProperty(env, osAccountType, OS_ACCOUNT_TYPE_NORMAL, "NORMAL"); in OsAccountInit()
121 SetEnumProperty(env, osAccountType, OS_ACCOUNT_TYPE_GUEST, "GUEST"); in OsAccountInit()
122 SetEnumProperty(env, osAccountType, OS_ACCOUNT_TYPE_PRIVATE, "PRIVATE"); in OsAccountInit()
138 DECLARE_NAPI_PROPERTY("OsAccountType", osAccountType), in OsAccountInit()
/ohos5.0/base/account/os_account/tools/acm/include/
H A Daccount_command.h141 … std::string &shortName, OsAccountType &osAccountType, std::vector<std::string> &disallowedList);
/ohos5.0/base/account/os_account/services/accountmgr/src/osaccount/
H A Dos_account_stub.cpp625 OsAccountType osAccountType = static_cast<OsAccountType>(type); in ProcCreateOsAccountWithShortName() local
632 ErrCode result = CreateOsAccount(localName, shortName, osAccountType, osAccountInfo, *options); in ProcCreateOsAccountWithShortName()