Home
last modified time | relevance | path

Searched refs:BaseContext (Results 1 - 25 of 240) sorted by relevance

12345678910

/foundation/communication/netstack/utils/napi_utils/src/
H A Dbase_context.cpp25 BaseContext::BaseContext(napi_env env, EventManager *manager) in BaseContext() function in OHOS::NetStack::BaseContext
43 BaseContext::BaseContext(napi_env env, const std::shared_ptr<EventManager> &sharedManager) in BaseContext() function in OHOS::NetStack::BaseContext
62 BaseContext::~BaseContext() in ~BaseContext()
69 void BaseContext::SetParseOK(bool parseOK) in SetParseOK()
74 void BaseContext::SetExecOK(bool requestOK) in SetExecOK()
79 void BaseContext::SetErrorCode(int32_t errorCode) in SetErrorCode()
84 void BaseContext
[all...]
/foundation/communication/netmanager_base/utils/napi_utils/src/
H A Dbase_context.cpp25 BaseContext::BaseContext(napi_env env, EventManager *manager) in BaseContext() function in OHOS::NetManagerStandard::BaseContext
39 BaseContext::~BaseContext() in ~BaseContext()
45 void BaseContext::SetParseOK(bool parseOK) in SetParseOK()
50 void BaseContext::SetErrorCode(int32_t errorCode) in SetErrorCode()
56 void BaseContext::SetExecOK(bool requestOK) in SetExecOK()
61 void BaseContext::SetError(int32_t errorCode, const std::string &errorMessage) in SetError()
67 napi_status BaseContext::SetCallback(napi_value callback) in SetCallback()
75 void BaseContext
[all...]
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/include/
H A Dnapi_async_call.h38 class BaseContext { class
42 virtual ~BaseContext();
59 std::shared_ptr<BaseContext> keep_;
64 static napi_value Call(napi_env env, std::shared_ptr<BaseContext> context, const std::string &name);
73 static napi_value Async(napi_env env, std::shared_ptr<BaseContext> context, const std::string &name);
74 static napi_value Sync(napi_env env, std::shared_ptr<BaseContext> context);
/foundation/communication/netstack/frameworks/js/napi/socket/async_context/src/
H A Dtcp_server_common_context.cpp25 TcpServerCommonContext::TcpServerCommonContext(napi_env env, EventManager *manager) : BaseContext(env, manager) {} in TcpServerCommonContext()
72 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
76 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
85 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
89 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dmulticast_get_loopback_context.cpp26 : BaseContext(env, manager) in MulticastGetLoopbackContext()
78 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
83 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
95 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
99 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dmulticast_get_ttl_context.cpp25 MulticastGetTTLContext::MulticastGetTTLContext(napi_env env, EventManager *manager) : BaseContext(env, manager) {} in MulticastGetTTLContext()
75 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
80 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
92 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
96 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dcommon_context.cpp24 CommonContext::CommonContext(napi_env env, EventManager *manager) : BaseContext(env, manager) {} in CommonContext()
72 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
76 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
88 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
92 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dmulticast_set_loopback_context.cpp26 : BaseContext(env, manager) in MulticastSetLoopbackContext()
89 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
94 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
106 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
110 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dmulticast_set_ttl_context.cpp25 MulticastSetTTLContext::MulticastSetTTLContext(napi_env env, EventManager *manager) : BaseContext(env, manager) {} in MulticastSetTTLContext()
86 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
91 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
103 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
107 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dtcp_server_send_context.cpp25 TcpServerSendContext::TcpServerSendContext(napi_env env, EventManager *manager) : BaseContext(env, manager) {} in TcpServerSendContext()
122 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
126 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
135 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
139 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dudp_extra_context.cpp25 UdpSetExtraOptionsContext::UdpSetExtraOptionsContext(napi_env env, EventManager *manager) : BaseContext(env, manager) {} in UdpSetExtraOptionsContext()
103 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
107 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
119 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
123 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dtcp_server_listen_context.cpp25 TcpServerListenContext::TcpServerListenContext(napi_env env, EventManager *manager) : BaseContext(env, manager) {} in TcpServerListenContext()
107 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
111 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
120 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
124 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dconnect_context.cpp27 ConnectContext::ConnectContext(napi_env env, EventManager *manager) : BaseContext(env, manager) {} in ConnectContext()
111 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
115 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
127 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
131 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dbind_context.cpp25 BindContext::BindContext(napi_env env, EventManager *manager) : BaseContext(env, manager) {} in BindContext()
97 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
101 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
113 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
117 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dtcp_send_context.cpp25 TcpSendContext::TcpSendContext(napi_env env, EventManager *manager) : BaseContext(env, manager) {} in TcpSendContext()
110 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
114 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
126 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
130 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dmulticast_membership_context.cpp25 MulticastMembershipContext::MulticastMembershipContext(napi_env env, EventManager *manager) : BaseContext(env, manager) in MulticastMembershipContext()
94 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
99 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
111 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
115 auto errCode = BaseContext::GetErrorCode(); in GetErrorMessage()
/foundation/communication/netmanager_base/utils/napi_utils/include/
H A Dbase_context.h35 class BaseContext { class
37 DISALLOW_COPY_AND_MOVE(BaseContext);
39 BaseContext() = delete;
40 explicit BaseContext(napi_env env, EventManager *manager);
41 virtual ~BaseContext();
H A Dbase_async_work.h41 static_assert(std::is_base_of<BaseContext, Context>::value); in ExecAsyncWork()
57 static_assert(std::is_base_of<BaseContext, Context>::value); in AsyncWorkCallback()
62 if (reinterpret_cast<BaseContext *>(data)->magic_ != BASE_CONTEXT_MAGIC_NUMBER) { in AsyncWorkCallback()
66 auto baseContext = reinterpret_cast<BaseContext *>(data); in AsyncWorkCallback()
118 static_assert(std::is_base_of<BaseContext, Context>::value); in AsyncWorkCallbackForSystem()
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/
H A Dnapi_async_call.cpp25 void BaseContext::SetAction( in SetAction()
62 void BaseContext::SetError(std::shared_ptr<JSError> err) in SetError()
67 BaseContext::~BaseContext() in ~BaseContext()
99 napi_value AsyncCall::Call(napi_env env, std::shared_ptr<BaseContext> context, const std::string &name) in Call()
104 napi_value AsyncCall::Async(napi_env env, std::shared_ptr<BaseContext> context, const std::string &name) in Async()
132 napi_value AsyncCall::Sync(napi_env env, std::shared_ptr<BaseContext> context) in Sync()
141 BaseContext *context = reinterpret_cast<BaseContext *>(data); in OnExecute()
150 BaseContext *contex in OnComplete()
[all...]
/foundation/communication/netstack/frameworks/js/napi/http/async_work/src/
H A Dhttp_async_work.cpp35 BaseAsyncWork::ExecAsyncWork<BaseContext, HttpResponseCacheExec::ExecFlush>(env, data); in ExecFlush()
40 BaseAsyncWork::AsyncWorkCallback<BaseContext, HttpResponseCacheExec::FlushCallback>(env, status, data); in FlushCallback()
45 BaseAsyncWork::ExecAsyncWork<BaseContext, HttpResponseCacheExec::ExecDelete>(env, data); in ExecDelete()
50 BaseAsyncWork::AsyncWorkCallback<BaseContext, HttpResponseCacheExec::DeleteCallback>(env, status, data); in DeleteCallback()
/foundation/communication/netstack/frameworks/js/napi/websocket/async_context/src/
H A Dclose_context.cpp25 : BaseContext(env, manager), code(CLOSE_REASON_NORMAL_CLOSE), reason("CLOSE_NORMAL") in CloseContext()
30 : BaseContext(env, sharedManager), code(CLOSE_REASON_NORMAL_CLOSE), reason("CLOSE_NORMAL") in CloseContext()
102 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
106 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
118 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
122 auto err = BaseContext::GetErrorCode(); in GetErrorMessage()
H A Dsend_context.cpp27 : BaseContext(env, manager), data(nullptr), length(0), protocol(LWS_WRITE_TEXT) in SendContext()
32 : BaseContext(env, sharedManager), data(nullptr), length(0), protocol(LWS_WRITE_TEXT) in SendContext()
149 if (BaseContext::IsPermissionDenied()) { in GetErrorCode()
153 auto err = BaseContext::GetErrorCode(); in GetErrorCode()
165 if (BaseContext::IsPermissionDenied()) { in GetErrorMessage()
169 auto err = BaseContext::GetErrorCode(); in GetErrorMessage()
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/src/
H A Dnapi_async_call.cpp25 void BaseContext::SetAction( in SetAction()
51 void BaseContext::SetError(std::shared_ptr<Error> err) in SetError()
56 BaseContext::~BaseContext() in ~BaseContext()
91 napi_value AsyncCall::Call(napi_env env, std::shared_ptr<BaseContext> context) in Call()
116 BaseContext *context = reinterpret_cast<BaseContext *>(data); in OnExecute()
126 BaseContext *context = reinterpret_cast<BaseContext *>(data); in OnComplete()
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/include/
H A Dnapi_async_call.h34 class BaseContext { class
38 virtual ~BaseContext();
53 std::shared_ptr<BaseContext> keep_;
58 static napi_value Call(napi_env env, std::shared_ptr<BaseContext> context);
/foundation/communication/netstack/utils/napi_utils/include/
H A Dbase_context.h39 class BaseContext { class
41 BaseContext() = delete;
43 BaseContext(napi_env env, EventManager *manager);
45 BaseContext(napi_env env, const std::shared_ptr<EventManager> &sharedManager);
47 virtual ~BaseContext();

Completed in 8 milliseconds

12345678910