Home
last modified time | relevance | path

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

/base/account/os_account/frameworks/osaccount/native/test/unittest/
Dos_account_info_test.cpp286 bool isActived = BOOL_IS_ACTIVED; variable
288 osAccountInfo.isActivated_ = isActived;
289 EXPECT_EQ(isActived, osAccountInfo.GetIsActived());
/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account.cpp965 auto isActived = std::make_unique<IsActivedAsyncContext>(); in InnerIsOsAccountActived() local
966 isActived->env = env; in InnerIsOsAccountActived()
967 isActived->throwErr = throwErr; in InnerIsOsAccountActived()
969 if (!ParseParaIsActived(env, cbInfo, isActived.get()) && throwErr) { in InnerIsOsAccountActived()
974 if (isActived->callbackRef == nullptr) { in InnerIsOsAccountActived()
975 napi_create_promise(env, &isActived->deferred, &result); in InnerIsOsAccountActived()
984 reinterpret_cast<void *>(isActived.get()), &isActived->work); in InnerIsOsAccountActived()
986 napi_queue_async_work_with_qos(env, isActived->work, napi_qos_default); in InnerIsOsAccountActived()
987 isActived.release(); in InnerIsOsAccountActived()