Home
last modified time | relevance | path

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

/base/account/os_account/tools/acm/src/
Daccount_command.cpp95 OsAccountType osAccountType = static_cast<OsAccountType>(-1); in RunAsCreateCommand() local
115 result = RunAsCreateCommandExistentOptionArgument(option, name, osAccountType); in RunAsCreateCommand()
119 if (name.size() == 0 || osAccountType == static_cast<OsAccountType>(-1)) { in RunAsCreateCommand()
126 if (osAccountType == static_cast<OsAccountType>(-1)) { in RunAsCreateCommand()
143 result = OsAccount::GetInstance().CreateOsAccount(name, osAccountType, osAccountInfo); in RunAsCreateCommand()
151 …("result = %{public}d, name = %{public}s, type = %{public}d", result, name.c_str(), osAccountType); in RunAsCreateCommand()
/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account.cpp103 napi_value osAccountType = nullptr; in OsAccountInit() local
104 napi_create_object(env, &osAccountType); in OsAccountInit()
106 SetEnumProperty(env, osAccountType, OS_ACCOUNT_TYPE_ADMIN, "ADMIN"); in OsAccountInit()
107 SetEnumProperty(env, osAccountType, OS_ACCOUNT_TYPE_NORMAL, "NORMAL"); in OsAccountInit()
108 SetEnumProperty(env, osAccountType, OS_ACCOUNT_TYPE_GUEST, "GUEST"); in OsAccountInit()
118 DECLARE_NAPI_PROPERTY("OsAccountType", osAccountType), in OsAccountInit()