Searched refs:isMain (Results 1 – 1 of 1) sorted by relevance
1288 auto isMain = std::make_unique<IsMainOAInfo>(); in IsMainOsAccount() local1289 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() local1311 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 …]