Home
last modified time | relevance | path

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

/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account.cpp1288 auto isMain = std::make_unique<IsMainOAInfo>(); in IsMainOsAccount() local
1289 isMain->env = env; in IsMainOsAccount()
1290 isMain->throwErr = true; in IsMainOsAccount()
1292 if (!ParseParaIsMainOA(env, cbInfo, isMain.get())) { in IsMainOsAccount()
1297 if (isMain->callbackRef == nullptr) { in IsMainOsAccount()
1298 napi_create_promise(env, &isMain->deferred, &result); in IsMainOsAccount()
1310 IsMainOAInfo *isMain = reinterpret_cast<IsMainOAInfo *>(data); in IsMainOsAccount() local
1311 isMain->errCode = OsAccountManager::IsMainOsAccount(isMain->isMainOsAccount); in IsMainOsAccount()
1312 ACCOUNT_LOGD("error code is %{public}d", isMain->errCode); in IsMainOsAccount()
1313 isMain->status = (isMain->errCode == 0) ? napi_ok : napi_generic_failure; in IsMainOsAccount()
[all …]