Home
last modified time | relevance | path

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

/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account.cpp424 auto getOACount = std::make_unique<GetOACountAsyncContext>(); in GetCreatedOsAccountsCountInner() local
425 getOACount->env = env; in GetCreatedOsAccountsCountInner()
426 getOACount->throwErr = throwErr; in GetCreatedOsAccountsCountInner()
428 if (!ParseParaGetOACount(env, cbInfo, getOACount.get()) && throwErr) { in GetCreatedOsAccountsCountInner()
433 if (getOACount->callbackRef == nullptr) { in GetCreatedOsAccountsCountInner()
434 napi_create_promise(env, &getOACount->deferred, &result); in GetCreatedOsAccountsCountInner()
447 reinterpret_cast<void *>(getOACount.get()), in GetCreatedOsAccountsCountInner()
448 &getOACount->work); in GetCreatedOsAccountsCountInner()
450 napi_queue_async_work_with_qos(env, getOACount->work, napi_qos_default); in GetCreatedOsAccountsCountInner()
451 getOACount.release(); in GetCreatedOsAccountsCountInner()