Home
last modified time | relevance | path

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

/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account.cpp278 auto setOAConsCB = std::make_unique<SetOAConsAsyncContext>(); in SetOsAccountConstraints() local
279 setOAConsCB->env = env; in SetOsAccountConstraints()
280 setOAConsCB->throwErr = true; in SetOsAccountConstraints()
282 if (!ParseParaSetOAConstraints(env, cbInfo, setOAConsCB.get())) { in SetOsAccountConstraints()
287 if (setOAConsCB->callbackRef == nullptr) { in SetOsAccountConstraints()
288 napi_create_promise(env, &setOAConsCB->deferred, &result); in SetOsAccountConstraints()
301 reinterpret_cast<void *>(setOAConsCB.get()), in SetOsAccountConstraints()
302 &setOAConsCB->work); in SetOsAccountConstraints()
304 napi_queue_async_work_with_qos(env, setOAConsCB->work, napi_qos_default); in SetOsAccountConstraints()
305 setOAConsCB.release(); in SetOsAccountConstraints()