| /foundation/communication/netstack/frameworks/native/tls_socket/src/ |
| H A D | tls_context.cpp | 59 if (SSL_CTX_set_cipher_list(tlsContext->ctx_, configuration.GetCipherSuite().c_str()) <= 0) { in SetCipherList() 73 STACK_OF(SSL_CIPHER) *sk = SSL_CTX_get_ciphers(tlsContext->ctx_); in GetCiphers() 98 if (!SSL_CTX_set1_sigalgs_list(tlsContext->ctx_, configuration.GetSignatureAlgorithms().c_str())) { in SetSignatureAlgorithms() 112 SSL_CTX_set_options(tlsContext->ctx_, SSL_OP_CIPHER_SERVER_PREFERENCE); in UseRemoteCipher() 115 static_cast<uint64_t>(SSL_CTX_get_options(tlsContext->ctx_))); in UseRemoteCipher() 154 if (minVersion != anyVersion && !SSL_CTX_set_min_proto_version(tlsContext->ctx_, minVersion)) { in SetMinAndMaxProtocol() 159 if (maxVersion != anyVersion && !SSL_CTX_set_max_proto_version(tlsContext->ctx_, maxVersion)) { in SetMinAndMaxProtocol() 165 SSL_CTX_get_min_proto_version(tlsContext->ctx_), SSL_CTX_get_max_proto_version(tlsContext->ctx_)); in SetMinAndMaxProtocol() 180 if (!X509_STORE_load_path(SSL_CTX_get_cert_store(tlsContext->ctx_), pat in SetDefaultCa() [all...] |
| H A D | tls_context_server.cpp | 58 if (SSL_CTX_set_cipher_list(tlsContext->ctx_, configuration.GetCipherSuite().c_str()) <= 0) { in SetCipherList() 72 STACK_OF(SSL_CIPHER) *sk = SSL_CTX_get_ciphers(tlsContext->ctx_); in GetCiphers() 97 if (!SSL_CTX_set1_sigalgs_list(tlsContext->ctx_, configuration.GetSignatureAlgorithms().c_str())) { in SetSignatureAlgorithms() 111 SSL_CTX_set_options(tlsContext->ctx_, SSL_OP_CIPHER_SERVER_PREFERENCE); in UseRemoteCipher() 114 static_cast<uint64_t>(SSL_CTX_get_options(tlsContext->ctx_))); in UseRemoteCipher() 153 if (minVersion != anyVersion && !SSL_CTX_set_min_proto_version(tlsContext->ctx_, minVersion)) { in SetMinAndMaxProtocol() 158 if (maxVersion != anyVersion && !SSL_CTX_set_max_proto_version(tlsContext->ctx_, maxVersion)) { in SetMinAndMaxProtocol() 164 SSL_CTX_get_min_proto_version(tlsContext->ctx_), SSL_CTX_get_max_proto_version(tlsContext->ctx_)); in SetMinAndMaxProtocol() 179 if (!X509_STORE_load_path(SSL_CTX_get_cert_store(tlsContext->ctx_), pat in SetDefaultCa() [all...] |
| /foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/common/ |
| H A D | napi_async_work_promise.cpp | 27 ctx_ = new NAsyncContextPromise(thisPtr); in NapiAsyncWorkPromise() 32 if (ctx_ != nullptr) { in ~NapiAsyncWorkPromise() 33 delete ctx_; in ~NapiAsyncWorkPromise() 34 ctx_ = nullptr; in ~NapiAsyncWorkPromise() 76 ctx_->cbExec_ = move(cbExec); in Schedule() 77 ctx_->cbComplete_ = move(cbComplete); in Schedule() 80 napi_status status = napi_create_promise(env_, &ctx_->deferred_, &result); in Schedule() 87 status = napi_create_async_work(env_, nullptr, resource, PromiseOnExec, PromiseOnComplete, ctx_, &ctx_->awork_); in Schedule() 93 status = napi_queue_async_work(env_, ctx_ in Schedule() [all...] |
| H A D | napi_async_work_callback.cpp | 27 ctx_ = new NAsyncContextCallback(thisPtr, cb); in NapiAsyncWorkCallback() 32 if (ctx_ != nullptr) { in ~NapiAsyncWorkCallback() 33 delete ctx_; in ~NapiAsyncWorkCallback() 34 ctx_ = nullptr; in ~NapiAsyncWorkCallback() 84 if (!ctx_->cb_ || !ctx_->cb_.Deref(env_).TypeIs(napi_function)) { in Schedule() 90 ctx_->cbExec_ = move(cbExec); in Schedule() 91 ctx_->cbComplete_ = move(cbComplete); in Schedule() 94 napi_create_async_work(env_, nullptr, resource, CallbackExecute, CallbackComplete, ctx_, &ctx_ in Schedule() [all...] |
| /foundation/filemanagement/file_api/utils/filemgmt_libn/src/n_async/ |
| H A D | n_async_work_callback.cpp | 32 ctx_ = new(std::nothrow) NAsyncContextCallback(thisPtr, cb); in NAsyncWorkCallback() 37 if (!ctx_) { in ~NAsyncWorkCallback() 41 unique_ptr<NAsyncContextCallback> ptr(ctx_); in ~NAsyncWorkCallback() 55 work->data = static_cast<void *>(ctx_); in ~NAsyncWorkCallback() 70 ctx_ = nullptr; in ~NAsyncWorkCallback() 75 return bool(ctx_->cb_); in operator bool() 125 if (!ctx_ || !ctx_->cb_ || !ctx_->cb_.Deref(env_).TypeIs(napi_function)) { in Schedule() 131 ctx_ in Schedule() [all...] |
| H A D | n_async_work_promise.cpp | 26 ctx_ = new(std::nothrow) NAsyncContextPromise(thisPtr); in NAsyncWorkPromise() 64 if (ctx_ == nullptr) { in Schedule() 68 ctx_->cbExec_ = move(cbExec); in Schedule() 69 ctx_->cbComplete_ = move(cbComplete); in Schedule() 73 status = napi_create_promise(env_, &ctx_->deferred_, &result); in Schedule() 80 status = napi_create_async_work(env_, nullptr, resource, PromiseOnExec, PromiseOnComplete, ctx_, &ctx_->awork_); in Schedule() 86 status = napi_queue_async_work(env_, ctx_->awork_); in Schedule() 92 ctx_ = nullptr; // The ownership of ctx_ ha in Schedule() [all...] |
| /foundation/filemanagement/file_api/interfaces/kits/js/src/common/napi/n_async/ |
| H A D | n_async_work_callback.cpp | 25 ctx_ = new(std::nothrow) NAsyncContextCallback(thisPtr, cb); in NAsyncWorkCallback() 29 if (!ctx_) { in ~NAsyncWorkCallback() 32 delete ctx_; in ~NAsyncWorkCallback() 81 if (!ctx_ || !ctx_->cb_ || !ctx_->cb_.Deref(env_).TypeIs(napi_function)) { in Schedule() 87 ctx_->cbExec_ = move(cbExec); in Schedule() 88 ctx_->cbComplete_ = move(cbComplete); in Schedule() 91 napi_create_async_work(env_, nullptr, resource, CallbackExecute, CallbackComplete, ctx_, &ctx_ in Schedule() [all...] |
| H A D | n_async_work_promise.cpp | 25 ctx_ = new(std::nothrow) NAsyncContextPromise(thisPtr); in NAsyncWorkPromise() 66 if (ctx_ == nullptr) { in Schedule() 70 ctx_->cbExec_ = move(cbExec); in Schedule() 71 ctx_->cbComplete_ = move(cbComplete); in Schedule() 75 status = napi_create_promise(env_, &ctx_->deferred_, &result); in Schedule() 82 status = napi_create_async_work(env_, nullptr, resource, PromiseOnExec, PromiseOnComplete, ctx_, &ctx_->awork_); in Schedule() 88 status = napi_queue_async_work(env_, ctx_->awork_); in Schedule() 94 ctx_ = nullptr; // The ownership of ctx_ ha in Schedule() [all...] |
| /third_party/skia/third_party/externals/spirv-tools/source/opt/ |
| H A D | propagator.cpp | 24 if (dest_bb == ctx_->cfg()->pseudo_exit_block()) { in AddControlEdge() 50 if (!BlockHasBeenSimulated(ctx_->get_instr_block(use_instr))) { in AddSSAEdges() 61 BasicBlock* phi_bb = ctx_->get_instr_block(phi); in IsPhiArgExecutable() 65 BasicBlock* in_bb = ctx_->get_instr_block(in_label_instr); in IsPhiArgExecutable() 110 BasicBlock* block = ctx_->get_instr_block(instr); in Simulate() 126 AddControlEdge(Edge(ctx_->get_instr_block(instr), dest_bb)); in Simulate() 176 if (block == ctx_->cfg()->pseudo_exit_block()) { in Simulate() 213 bb_succs_[ctx_->cfg()->pseudo_entry_block()].push_back( in Initialize() 214 Edge(ctx_->cfg()->pseudo_entry_block(), fn->entry().get())); in Initialize() 220 ctx_ in Initialize() [all...] |
| H A D | propagator.h | 190 : ctx_(context), visit_fn_(visit_fn) {} in SSAPropagator() 258 // Returns a pointer to the def-use manager for |ctx_|. 260 return ctx_->get_def_use_mgr(); in get_def_use_mgr() 272 IRContext* ctx_; member in spvtools::opt::SSAPropagator
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
| H A D | propagator.cpp | 24 if (dest_bb == ctx_->cfg()->pseudo_exit_block()) { in AddControlEdge() 50 if (!BlockHasBeenSimulated(ctx_->get_instr_block(use_instr))) { in AddSSAEdges() 61 BasicBlock* phi_bb = ctx_->get_instr_block(phi); in IsPhiArgExecutable() 65 BasicBlock* in_bb = ctx_->get_instr_block(in_label_instr); in IsPhiArgExecutable() 110 BasicBlock* block = ctx_->get_instr_block(instr); in Simulate() 126 AddControlEdge(Edge(ctx_->get_instr_block(instr), dest_bb)); in Simulate() 176 if (block == ctx_->cfg()->pseudo_exit_block()) { in Simulate() 213 bb_succs_[ctx_->cfg()->pseudo_entry_block()].push_back( in Initialize() 214 Edge(ctx_->cfg()->pseudo_entry_block(), fn->entry().get())); in Initialize() 220 ctx_ in Initialize() [all...] |
| /third_party/spirv-tools/source/opt/ |
| H A D | propagator.cpp | 24 if (dest_bb == ctx_->cfg()->pseudo_exit_block()) { in AddControlEdge() 50 if (!BlockHasBeenSimulated(ctx_->get_instr_block(use_instr))) { in AddSSAEdges() 61 BasicBlock* phi_bb = ctx_->get_instr_block(phi); in IsPhiArgExecutable() 65 BasicBlock* in_bb = ctx_->get_instr_block(in_label_instr); in IsPhiArgExecutable() 110 BasicBlock* block = ctx_->get_instr_block(instr); in Simulate() 126 AddControlEdge(Edge(ctx_->get_instr_block(instr), dest_bb)); in Simulate() 176 if (block == ctx_->cfg()->pseudo_exit_block()) { in Simulate() 213 bb_succs_[ctx_->cfg()->pseudo_entry_block()].push_back( in Initialize() 214 Edge(ctx_->cfg()->pseudo_entry_block(), fn->entry().get())); in Initialize() 220 ctx_ in Initialize() [all...] |
| /foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
| H A D | js_animatable_arithmetic.h | 33 : jsObject_(jsObject), ctx_(ctx) in JSAnimatableArithmetic() 59 JAVASCRIPT_EXECUTION_SCOPE(ctx_); variable 66 return MakeRefPtr<JSAnimatableArithmetic>(JSRef<JSObject>::Cast(retVal), ctx_); 75 JAVASCRIPT_EXECUTION_SCOPE(ctx_); variable 82 return MakeRefPtr<JSAnimatableArithmetic>(JSRef<JSObject>::Cast(retVal), ctx_); 87 JAVASCRIPT_EXECUTION_SCOPE(ctx_); variable 94 return MakeRefPtr<JSAnimatableArithmetic>(JSRef<JSObject>::Cast(retVal), ctx_); 104 JAVASCRIPT_EXECUTION_SCOPE(ctx_); variable 121 JSExecutionContext ctx_; member in OHOS::Ace::Framework::JSAnimatableArithmetic
|
| /third_party/skia/third_party/externals/spirv-tools/test/opt/ |
| H A D | propagator_test.cpp | 37 ctx_.reset(nullptr); in TearDown() 43 ctx_ = BuildModule(SPV_ENV_UNIVERSAL_1_1, nullptr, input); in Assemble() 44 ASSERT_NE(nullptr, ctx_) << "Assembling failed for shader:\n" in Assemble() 49 SSAPropagator propagator(ctx_.get(), visit_fn); in Propagate() 51 for (auto& fn : *ctx_->module()) { in Propagate() 65 std::unique_ptr<IRContext> ctx_; member in spvtools::opt::__anon22185::PropagatorTest 113 Instruction* rhs_def = ctx_->get_def_use_mgr()->GetDef(rhs_id); in TEST_F() 180 Instruction* rhs_def = ctx_->get_def_use_mgr()->GetDef(rhs_id); in TEST_F()
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
| H A D | propagator_test.cpp | 37 ctx_.reset(nullptr); in TearDown() 43 ctx_ = BuildModule(SPV_ENV_UNIVERSAL_1_1, nullptr, input); in Assemble() 44 ASSERT_NE(nullptr, ctx_) << "Assembling failed for shader:\n" in Assemble() 49 SSAPropagator propagator(ctx_.get(), visit_fn); in Propagate() 51 for (auto& fn : *ctx_->module()) { in Propagate() 65 std::unique_ptr<IRContext> ctx_; member in spvtools::opt::__anon23442::PropagatorTest 113 Instruction* rhs_def = ctx_->get_def_use_mgr()->GetDef(rhs_id); in TEST_F() 180 Instruction* rhs_def = ctx_->get_def_use_mgr()->GetDef(rhs_id); in TEST_F()
|
| /third_party/node/src/crypto/ |
| H A D | crypto_cipher.cc | 263 ctx_(nullptr), in CipherBase() 272 tracker->TrackFieldWithSize("context", ctx_ ? kSizeOf_EVP_CIPHER_CTX : 0); in MemoryInfo() 374 CHECK(!ctx_); in CommonInit() 375 ctx_.reset(EVP_CIPHER_CTX_new()); in CommonInit() 379 EVP_CIPHER_CTX_set_flags(ctx_.get(), EVP_CIPHER_CTX_FLAG_WRAP_ALLOW); in CommonInit() 382 if (1 != EVP_CipherInit_ex(ctx_.get(), cipher, nullptr, in CommonInit() 394 if (!EVP_CIPHER_CTX_set_key_length(ctx_.get(), key_len)) { in CommonInit() 395 ctx_.reset(); in CommonInit() 399 if (1 != EVP_CipherInit_ex(ctx_.get(), nullptr, nullptr, key, iv, encrypt)) { in CommonInit() 566 if (!EVP_CIPHER_CTX_ctrl(ctx_ in Init() [all...] |
| H A D | crypto_hmac.cc | 33 ctx_(nullptr) { in Hmac() 38 tracker->TrackFieldWithSize("context", ctx_ ? kSizeOf_HMAC_CTX : 0); in MemoryInfo() 81 ctx_.reset(HMAC_CTX_new()); in HmacInit() 82 if (!ctx_ || !HMAC_Init_ex(ctx_.get(), key, key_len, md, nullptr)) { in HmacInit() 83 ctx_.reset(); in HmacInit() 99 return ctx_ && HMAC_Update(ctx_.get(), in HmacUpdate() 129 if (hmac->ctx_) { in HmacDigest() 130 bool ok = HMAC_Final(hmac->ctx_ in HmacDigest() [all...] |
| H A D | crypto_context.cc | 407 if (ctx_ != nullptr) { in Reset() 410 ctx_.reset(); in Reset() 516 sc->ctx_.reset(SSL_CTX_new(method)); in Init() 517 if (!sc->ctx_) { in Init() 520 SSL_CTX_set_app_data(sc->ctx_.get(), sc); in Init() 526 SSL_CTX_set_options(sc->ctx_.get(), SSL_OP_NO_SSLv2); in Init() 527 SSL_CTX_set_options(sc->ctx_.get(), SSL_OP_NO_SSLv3); in Init() 529 SSL_CTX_set_options(sc->ctx_.get(), SSL_OP_ALLOW_CLIENT_RENEGOTIATION); in Init() 535 SSL_CTX_clear_mode(sc->ctx_.get(), SSL_MODE_NO_AUTO_CHAIN); in Init() 538 SSL_CTX_set_session_cache_mode(sc->ctx_ in Init() [all...] |
| /third_party/spirv-tools/test/opt/ |
| H A D | propagator_test.cpp | 36 ctx_.reset(nullptr); in TearDown() 42 ctx_ = BuildModule(SPV_ENV_UNIVERSAL_1_1, nullptr, input); in Assemble() 43 ASSERT_NE(nullptr, ctx_) << "Assembling failed for shader:\n" in Assemble() 48 SSAPropagator propagator(ctx_.get(), visit_fn); in Propagate() 50 for (auto& fn : *ctx_->module()) { in Propagate() 64 std::unique_ptr<IRContext> ctx_; member in spvtools::opt::__anon27013::PropagatorTest 112 Instruction* rhs_def = ctx_->get_def_use_mgr()->GetDef(rhs_id); in TEST_F() 179 Instruction* rhs_def = ctx_->get_def_use_mgr()->GetDef(rhs_id); in TEST_F()
|
| /foundation/filemanagement/app_file_service/interfaces/kits/js/backup/ |
| H A D | general_callbacks.cpp | 27 ctx_ = new LibN::NAsyncContextCallback(thisPtr, cb); in BackupRestoreCallback() 32 if (!ctx_) { in ~BackupRestoreCallback() 36 unique_ptr<LibN::NAsyncContextCallback> ptr(ctx_); in ~BackupRestoreCallback() 50 work->data = static_cast<void *>(ctx_); in ~BackupRestoreCallback() 65 ctx_ = nullptr; in ~BackupRestoreCallback() 70 return bool(ctx_->cb_); in operator bool() 139 DoCallJsMethod(workArgs->ptr->env_, workArgs->ptr->ctx_, workArgs->argParser); in CallJsMethod()
|
| /third_party/python/Python/ |
| H A D | ast_opt.c | 628 static int astfold_mod(mod_ty node_, PyArena *ctx_, _PyASTOptimizeState *state); 629 static int astfold_stmt(stmt_ty node_, PyArena *ctx_, _PyASTOptimizeState *state); 630 static int astfold_expr(expr_ty node_, PyArena *ctx_, _PyASTOptimizeState *state); 631 static int astfold_arguments(arguments_ty node_, PyArena *ctx_, _PyASTOptimizeState *state); 632 static int astfold_comprehension(comprehension_ty node_, PyArena *ctx_, _PyASTOptimizeState *state); 633 static int astfold_keyword(keyword_ty node_, PyArena *ctx_, _PyASTOptimizeState *state); 634 static int astfold_arg(arg_ty node_, PyArena *ctx_, _PyASTOptimizeState *state); 635 static int astfold_withitem(withitem_ty node_, PyArena *ctx_, _PyASTOptimizeState *state); 636 static int astfold_excepthandler(excepthandler_ty node_, PyArena *ctx_, _PyASTOptimizeState *state); 637 static int astfold_match_case(match_case_ty node_, PyArena *ctx_, _PyASTOptimizeStat 660 astfold_body(asdl_stmt_seq *stmts, PyArena *ctx_, _PyASTOptimizeState *state) astfold_body() argument 683 astfold_mod(mod_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) astfold_mod() argument 705 astfold_expr(expr_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) astfold_expr() argument 828 astfold_keyword(keyword_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) astfold_keyword() argument 835 astfold_comprehension(comprehension_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) astfold_comprehension() argument 846 astfold_arguments(arguments_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) astfold_arguments() argument 859 astfold_arg(arg_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) astfold_arg() argument 868 astfold_stmt(stmt_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) astfold_stmt() argument 995 astfold_excepthandler(excepthandler_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) astfold_excepthandler() argument 1009 astfold_withitem(withitem_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) astfold_withitem() argument 1017 astfold_pattern(pattern_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) astfold_pattern() argument 1063 astfold_match_case(match_case_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) astfold_match_case() argument [all...] |
| /foundation/communication/netstack/test/unittest/tls_test/core/ |
| H A D | tls_context_server.test.cpp | 45 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F() 96 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F() 112 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F() 120 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F() 138 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F() 162 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F()
|
| H A D | tls_context.test.cpp | 46 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F() 78 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F() 95 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F()
|
| /foundation/communication/netstack/test/unittest/tlssocket/core/ |
| H A D | tls_context_server.test.cpp | 45 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F() 96 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F() 112 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F() 120 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F() 138 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F() 162 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F()
|
| H A D | tls_context.test.cpp | 46 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F() 78 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F() 95 context.ctx_ = SSL_CTX_new(TLS_client_method()); in HWTEST_F()
|