Home
last modified time | relevance | path

Searched refs:ctxt (Results 51 - 75 of 155) sorted by relevance

1234567

/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/src/
H A Djs_client.cpp40 auto ctxt = std::make_shared<CloudStrategyContext>(); in SetCloudStrategy() local
41 ctxt->GetCbInfo(env, info, [env, ctxt](size_t argc, napi_value *argv) { in SetCloudStrategy()
43 ASSERT_BUSINESS_ERR(ctxt, argc >= 1, Status::INVALID_ARGUMENT, "The number of parameters is incorrect."); in SetCloudStrategy()
46 ASSERT_BUSINESS_ERR(ctxt, status == JSUtils::OK && strategy >= 0 && in SetCloudStrategy()
49 ctxt->strategy = static_cast<Strategy>(strategy); in SetCloudStrategy()
51 ctxt->SetDefault(); in SetCloudStrategy()
54 status = JSUtils::Convert2Value(env, argv[1], ctxt->param); in SetCloudStrategy()
55 ASSERT_BUSINESS_ERR(ctxt, status == JSUtils::OK, Status::INVALID_ARGUMENT, in SetCloudStrategy()
57 auto res = ctxt in SetCloudStrategy()
[all...]
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
H A Djs_input_method.cpp47 std::shared_ptr<SwitchInputMethodContext> ctxt) in GetInputMethodProperty()
58 status = JsUtils::GetValue(env, result, ctxt->packageName); in GetInputMethodProperty()
62 status = JsUtils::GetValue(env, result, ctxt->methodId); in GetInputMethodProperty()
64 if (ctxt->packageName.empty() || ctxt->methodId.empty()) { in GetInputMethodProperty()
67 status = JsUtils::GetValue(env, result, ctxt->packageName); in GetInputMethodProperty()
72 status = JsUtils::GetValue(env, result, ctxt->methodId); in GetInputMethodProperty()
75 PARAM_CHECK_RETURN(env, (!ctxt->packageName.empty() && !ctxt->methodId.empty()), in GetInputMethodProperty()
77 IMSA_HILOGD("methodId: %{public}s, packageName: %{public}s.", ctxt in GetInputMethodProperty()
46 GetInputMethodProperty(napi_env env, napi_value argv, std::shared_ptr<SwitchInputMethodContext> ctxt) GetInputMethodProperty() argument
81 GetInputMethodSubProperty(napi_env env, napi_value argv, std::shared_ptr<SwitchInputMethodContext> ctxt) GetInputMethodSubProperty() argument
236 auto ctxt = std::make_shared<SwitchInputMethodContext>(); SwitchInputMethod() local
335 auto ctxt = std::make_shared<SwitchInputMethodContext>(); SwitchCurrentInputMethodSubtype() local
371 auto ctxt = std::make_shared<SwitchInputMethodContext>(); SwitchCurrentInputMethodAndSubtype() local
[all...]
H A Djs_get_input_method_setting.cpp163 std::shared_ptr<ListInputContext> ctxt) in GetInputMethodProperty()
171 JsUtils::GetValue(env, result, ctxt->property.name); in GetInputMethodProperty()
175 JsUtils::GetValue(env, result, ctxt->property.id); in GetInputMethodProperty()
177 if (ctxt->property.name.empty() || ctxt->property.id.empty()) { in GetInputMethodProperty()
180 JsUtils::GetValue(env, result, ctxt->property.name); in GetInputMethodProperty()
184 JsUtils::GetValue(env, result, ctxt->property.id); in GetInputMethodProperty()
186 PARAM_CHECK_RETURN(env, (!ctxt->property.name.empty() && !ctxt->property.id.empty()), in GetInputMethodProperty()
188 IMSA_HILOGD("methodId: %{public}s, packageName: %{public}s.", ctxt in GetInputMethodProperty()
162 GetInputMethodProperty(napi_env env, napi_value argv, std::shared_ptr<ListInputContext> ctxt) GetInputMethodProperty() argument
196 auto ctxt = std::make_shared<ListInputContext>(); ListInputMethod() local
224 auto ctxt = std::make_shared<ListInputContext>(); GetInputMethods() local
280 auto ctxt = std::make_shared<ListInputContext>(); GetAllInputMethods() local
319 auto ctxt = std::make_shared<DisplayOptionalInputMethodContext>(); DisplayOptionalInputMethod() local
341 auto ctxt = std::make_shared<DisplayOptionalInputMethodContext>(); ShowOptionalInputMethods() local
371 auto ctxt = std::make_shared<ListInputContext>(); ListInputMethodSubtype() local
405 auto ctxt = std::make_shared<ListInputContext>(); ListCurrentInputMethodSubtype() local
[all...]
H A Djs_get_input_method_controller.cpp443 auto ctxt = std::make_shared<HandleContext>(); in HandleSoftKeyboard() local
444 auto input = [ctxt](napi_env env, size_t argc, napi_value *argv, napi_value self) -> napi_status { in HandleSoftKeyboard()
447 auto output = [ctxt, isOutput](napi_env env, napi_value *result) -> napi_status { in HandleSoftKeyboard()
451 napi_status status = napi_get_boolean(env, ctxt->isHandle, result); in HandleSoftKeyboard()
455 auto exec = [ctxt, callback, needThrowException](AsyncCall::Context *ctx) { in HandleSoftKeyboard()
459 ctxt->status = napi_ok; in HandleSoftKeyboard()
460 ctxt->isHandle = true; in HandleSoftKeyboard()
461 ctxt->SetState(ctxt->status); in HandleSoftKeyboard()
465 ctxt in HandleSoftKeyboard()
537 auto ctxt = std::make_shared<AttachContext>(); Attach() local
[all...]
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/
H A Djs_keyboard_controller_engine.cpp89 auto ctxt = std::make_shared<HideContext>(); in Hide() local
90 auto input = [ctxt](napi_env env, size_t argc, napi_value *argv, napi_value self) -> napi_status { in Hide()
93 auto exec = [ctxt](AsyncCall::Context *ctx) { in Hide()
96 ctxt->status = napi_ok; in Hide()
97 ctxt->SetState(ctxt->status); in Hide()
99 ctxt->SetErrorCode(code); in Hide()
102 ctxt->SetAction(std::move(input)); in Hide()
104 AsyncCall asyncCall(env, info, ctxt, 1); in Hide()
110 auto ctxt in HideKeyboard() local
126 auto ctxt = std::make_shared<ExitContext>(); ExitCurrentInputType() local
[all...]
/third_party/libabigail/src/
H A Dabg-reporter-priv.cc35 /// @param ctxt the current diff context.
39 emit_num_value(uint64_t value, const diff_context& ctxt, ostream& out) in emit_num_value() argument
41 if (ctxt.show_hex_values()) in emit_num_value()
53 /// @param ctxt the current diff context to consider.
58 maybe_convert_bits_to_bytes(uint64_t bits, const diff_context& ctxt) in maybe_convert_bits_to_bytes() argument
60 if (ctxt.show_offsets_sizes_in_bits()) in maybe_convert_bits_to_bytes()
88 /// @param ctxt the current diff context to consider.
99 const diff_context& ctxt, in show_numerical_change()
105 ? maybe_convert_bits_to_bytes(old_bits, ctxt) in show_numerical_change()
108 ? maybe_convert_bits_to_bytes(new_bits, ctxt) in show_numerical_change()
96 show_numerical_change(const string& what, uint64_t old_bits, uint64_t new_bits, const diff_context& ctxt, ostream& out, bool show_bits_or_byte) show_numerical_change() argument
139 show_offset_or_size(const string& what, uint64_t value, const diff_context& ctxt, ostream& out) show_offset_or_size() argument
169 show_offset_or_size(uint64_t value, const diff_context& ctxt, ostream& out) show_offset_or_size() argument
182 represent(const diff_context& ctxt, method_decl_sptr mem_fn, ostream& out) represent() argument
206 ctxt, out); represent() local
232 represent_data_member(var_decl_sptr d, const diff_context_sptr& ctxt, ostream& out, const string& indent) represent_data_member() argument
279 maybe_show_relative_offset_change(const var_diff_sptr &diff, diff_context& ctxt, ostream& out) maybe_show_relative_offset_change() argument
338 maybe_show_relative_size_change(const var_diff_sptr &diff, diff_context& ctxt, ostream& out) maybe_show_relative_size_change() argument
391 represent(const var_diff_sptr &diff, diff_context_sptr ctxt, ostream& out, const string& indent, bool local_only) represent() argument
727 report_size_and_alignment_changes(type_or_decl_base_sptr first, type_or_decl_base_sptr second, diff_context_sptr ctxt, ostream& out, const string& indent) report_size_and_alignment_changes() argument
845 report_loc_info(const type_or_decl_base_sptr& tod, const diff_context& ctxt, ostream &out) report_loc_info() argument
888 report_name_size_and_alignment_changes(decl_base_sptr first, decl_base_sptr second, diff_context_sptr ctxt, ostream& out, const string& indent) report_name_size_and_alignment_changes() argument
1032 maybe_report_diff_for_member(const decl_base_sptr& decl1, const decl_base_sptr& decl2, const diff_context_sptr& ctxt, ostream& out, const string& indent) maybe_report_diff_for_member() argument
1085 maybe_report_diff_for_symbol(const elf_symbol_sptr& symbol1, const elf_symbol_sptr& symbol2, const diff_context_sptr& ctxt, ostream& out, const string& indent) maybe_report_diff_for_symbol() argument
1236 const diff_context_sptr& ctxt = d.context(); maybe_report_unreachable_type_changes() local
1347 const diff_context_sptr &ctxt = d->context(); maybe_report_interfaces_impacted_by_diff() local
1420 const diff_context_sptr& ctxt = d.context(); maybe_report_data_members_replaced_by_anon_dm() local
[all...]
H A Dabg-reporter-priv.h25 if (diff_context_sptr ctxt = d.context()) \
26 if (diff_sptr _diff_ = ctxt->get_canonical_diff_for(S1, S2)) \
107 maybe_convert_bits_to_bytes(uint64_t bits, const diff_context& ctxt);
110 emit_num_value(uint64_t value, const diff_context& ctxt, ostream& out);
115 const diff_context& ctxt,
120 const diff_context& ctxt,
127 const diff_context& ctxt,
132 represent(const diff_context& ctxt,
138 const diff_context_sptr& ctxt,
144 diff_context& ctxt,
[all...]
H A Dabg-leaf-reporter.cc484 const diff_context_sptr& ctxt = d.context(); in report() local
487 if (ctxt->get_allowed_category() & TYPE_DECL_ONLY_DEF_CHANGE_CATEGORY) in report()
511 d.get_priv()->count_filtered_deleted_mem_fns(ctxt); in report()
520 if (!(ctxt->get_allowed_category() in report()
527 represent(*ctxt, mem_fun, out); in report()
532 num_filtered = d.get_priv()->count_filtered_inserted_mem_fns(ctxt); in report()
541 if (!(ctxt->get_allowed_category() in report()
548 represent(*ctxt, mem_fun, out); in report()
560 if (!(ctxt->get_allowed_category() in report()
602 represent_data_member(data_mem, ctxt, ou in report()
689 const diff_context_sptr& ctxt = d.context(); report() local
781 diff_context_sptr ctxt = d.context(); report() local
1001 const diff_context_sptr& ctxt = d.context(); report() local
[all...]
H A Dabg-comparison.cc1849 /// @param ctxt the context of the diff. Note that this context
1854 diff_context_sptr ctxt) in diff()
1856 ctxt, NO_CHANGE_CATEGORY, in diff()
2455 diff_context_sptr ctxt) in type_diff_base()
2456 : diff(first_subject, second_subject, ctxt), in type_diff_base()
2472 /// @param ctxt the context of the diff. This object must stay alive
2477 diff_context_sptr ctxt) in decl_diff_base()
2478 : diff(first_subject, second_subject, ctxt), in decl_diff_base()
2535 /// @param ctxt the context of the diff. Note that this context
2541 diff_context_sptr ctxt) in distinct_diff()
1852 diff(type_or_decl_base_sptr first_subject, type_or_decl_base_sptr second_subject, diff_context_sptr ctxt) diff() argument
2453 type_diff_base(type_base_sptr first_subject, type_base_sptr second_subject, diff_context_sptr ctxt) type_diff_base() argument
2475 decl_diff_base(decl_base_sptr first_subject, decl_base_sptr second_subject, diff_context_sptr ctxt) decl_diff_base() argument
2539 distinct_diff(type_or_decl_base_sptr first, type_or_decl_base_sptr second, diff_context_sptr ctxt) distinct_diff() argument
2656 compute_diff_for_distinct_kinds(const type_or_decl_base_sptr first, const type_or_decl_base_sptr second, diff_context_sptr ctxt) compute_diff_for_distinct_kinds() argument
2692 try_to_diff(const type_or_decl_base_sptr first, const type_or_decl_base_sptr second, diff_context_sptr ctxt) try_to_diff() argument
2721 try_to_diff(const type_or_decl_base_sptr first, const type_or_decl_base_sptr second, diff_context_sptr ctxt) try_to_diff() argument
2762 try_to_diff_distinct_kinds(const type_or_decl_base_sptr first, const type_or_decl_base_sptr second, diff_context_sptr ctxt) try_to_diff_distinct_kinds() argument
2785 compute_diff_for_types(const type_or_decl_base_sptr& first, const type_or_decl_base_sptr& second, const diff_context_sptr& ctxt) compute_diff_for_types() argument
3098 compute_diff_for_decls(const decl_base_sptr first, const decl_base_sptr second, diff_context_sptr ctxt) compute_diff_for_decls() argument
3129 compute_diff(const decl_base_sptr first, const decl_base_sptr second, diff_context_sptr ctxt) compute_diff() argument
3159 compute_diff(const type_base_sptr first, const type_base_sptr second, diff_context_sptr ctxt) compute_diff() argument
3225 var_diff(var_decl_sptr first, var_decl_sptr second, diff_sptr type_diff, diff_context_sptr ctxt) var_diff() argument
3311 compute_diff(const var_decl_sptr first, const var_decl_sptr second, diff_context_sptr ctxt) compute_diff() argument
3341 pointer_diff(pointer_type_def_sptr first, pointer_type_def_sptr second, diff_sptr underlying, diff_context_sptr ctxt) pointer_diff() argument
3442 compute_diff(pointer_type_def_sptr first, pointer_type_def_sptr second, diff_context_sptr ctxt) compute_diff() argument
3478 array_diff(const array_type_def_sptr first, const array_type_def_sptr second, diff_sptr element_type_diff, diff_context_sptr ctxt) array_diff() argument
3595 compute_diff(array_type_def_sptr first, array_type_def_sptr second, diff_context_sptr ctxt) compute_diff() argument
3626 reference_diff(const reference_type_def_sptr first, const reference_type_def_sptr second, diff_sptr underlying, diff_context_sptr ctxt) reference_diff() argument
3727 compute_diff(reference_type_def_sptr first, reference_type_def_sptr second, diff_context_sptr ctxt) compute_diff() argument
3758 qualified_type_diff(qualified_type_def_sptr first, qualified_type_def_sptr second, diff_sptr under, diff_context_sptr ctxt) qualified_type_diff() argument
3874 compute_diff(const qualified_type_def_sptr first, const qualified_type_def_sptr second, diff_context_sptr ctxt) compute_diff() argument
3988 enum_diff(const enum_type_decl_sptr first, const enum_type_decl_sptr second, const diff_sptr underlying_type_diff, const diff_context_sptr ctxt) enum_diff() argument
4089 compute_diff(const enum_type_decl_sptr first, const enum_type_decl_sptr second, diff_context_sptr ctxt) compute_diff() argument
4314 count_filtered_changed_mem_fns(const diff_context_sptr& ctxt) count_filtered_changed_mem_fns() argument
4353 count_filtered_inserted_mem_fns(const diff_context_sptr& ctxt) count_filtered_inserted_mem_fns() argument
4386 count_filtered_deleted_mem_fns(const diff_context_sptr& ctxt) count_filtered_deleted_mem_fns() argument
4838 class_or_union_diff(class_or_union_sptr first_scope, class_or_union_sptr second_scope, diff_context_sptr ctxt) class_or_union_diff() argument
5503 class_diff(class_decl_sptr first_scope, class_decl_sptr second_scope, diff_context_sptr ctxt) class_diff() argument
5662 compute_diff(const class_decl_sptr first, const class_decl_sptr second, diff_context_sptr ctxt) compute_diff() argument
5782 base_diff(class_decl::base_spec_sptr first, class_decl::base_spec_sptr second, class_diff_sptr underlying, diff_context_sptr ctxt) base_diff() argument
5884 compute_diff(const class_decl::base_spec_sptr first, const class_decl::base_spec_sptr second, diff_context_sptr ctxt) compute_diff() argument
5939 union_diff(union_decl_sptr first_union, union_decl_sptr second_union, diff_context_sptr ctxt) union_diff() argument
5999 compute_diff(const union_decl_sptr first, const union_decl_sptr second, diff_context_sptr ctxt) compute_diff() argument
6274 scope_diff(scope_decl_sptr first_scope, scope_decl_sptr second_scope, diff_context_sptr ctxt) scope_diff() argument
6497 compute_diff(const scope_decl_sptr first, const scope_decl_sptr second, scope_diff_sptr d, diff_context_sptr ctxt) compute_diff() argument
6530 compute_diff(const scope_decl_sptr first_scope, const scope_decl_sptr second_scope, diff_context_sptr ctxt) compute_diff() argument
6554 fn_parm_diff(const function_decl::parameter_sptr first, const function_decl::parameter_sptr second, diff_context_sptr ctxt) fn_parm_diff() argument
6673 compute_diff(const function_decl::parameter_sptr first, const function_decl::parameter_sptr second, diff_context_sptr ctxt) compute_diff() argument
6819 function_type_diff(const function_type_sptr first, const function_type_sptr second, diff_context_sptr ctxt) function_type_diff() argument
6966 compute_diff(const function_type_sptr first, const function_type_sptr second, diff_context_sptr ctxt) compute_diff() argument
7022 function_decl_diff(const function_decl_sptr first, const function_decl_sptr second, diff_context_sptr ctxt) function_decl_diff() argument
7106 compute_diff(const function_decl_sptr first, const function_decl_sptr second, diff_context_sptr ctxt) compute_diff() argument
7145 type_decl_diff(const type_decl_sptr first, const type_decl_sptr second, diff_context_sptr ctxt) type_decl_diff() argument
7234 compute_diff(const type_decl_sptr first, const type_decl_sptr second, diff_context_sptr ctxt) compute_diff() argument
7279 typedef_diff(const typedef_decl_sptr first, const typedef_decl_sptr second, const diff_sptr underlying, diff_context_sptr ctxt) typedef_diff() argument
7384 compute_diff(const typedef_decl_sptr first, const typedef_decl_sptr second, diff_context_sptr ctxt) compute_diff() argument
7441 translation_unit_diff(translation_unit_sptr first, translation_unit_sptr second, diff_context_sptr ctxt) translation_unit_diff() argument
7500 compute_diff(const translation_unit_sptr first, const translation_unit_sptr second, diff_context_sptr ctxt) compute_diff() argument
7817 diff_stats(diff_context_sptr ctxt) diff_stats() argument
9194 function_is_suppressed(const function_decl* fn, const suppression_sptr suppr, function_suppression::change_kind k, const diff_context_sptr ctxt) function_is_suppressed() argument
9221 variable_is_suppressed(const var_decl* var, const suppression_sptr suppr, variable_suppression::change_kind k, const diff_context_sptr ctxt) variable_is_suppressed() argument
9238 diff_context_sptr ctxt = get_context(); apply_supprs_to_added_removed_fns_vars_unreachable_types() local
9744 diff_context_sptr ctxt = get_context(); apply_filters_and_compute_diff_stats() local
9919 diff_context_sptr ctxt = get_context(); emit_diff_stats() local
10156 diff_context_sptr ctxt = get_context(); categorize_redundant_changed_sub_nodes() local
10217 diff_context_sptr ctxt = get_context(); maybe_dump_diff_tree() local
10289 corpus_diff(corpus_sptr first, corpus_sptr second, diff_context_sptr ctxt) corpus_diff() argument
10777 diff_context_sptr ctxt = d->context(); visit_begin() local
10874 const diff_context_sptr &ctxt = context(); traverse() local
10896 const diff_context_sptr &ctxt = context(); traverse() local
10922 const diff_context_sptr &ctxt = context(); traverse() local
10951 compute_diff(const corpus_sptr f, const corpus_sptr s, diff_context_sptr ctxt) compute_diff() argument
11039 compute_diff(const corpus_group_sptr& f, const corpus_group_sptr& s, diff_context_sptr ctxt) compute_diff() argument
[all...]
/foundation/distributeddatamgr/udmf/framework/jskitsimpl/data/
H A Dunified_record_napi.cpp47 auto ctxt = std::make_shared<ContextBase>(); in New() local
50 auto input = [env, ctxt, &type, &value](size_t argc, napi_value *argv) { in New()
51 ASSERT_BUSINESS_ERR(ctxt, argc == 0 || argc >= 2, in New()
54 ctxt->status = NapiDataUtils::GetValue(env, argv[0], type); in New()
55 ASSERT_BUSINESS_ERR(ctxt, ctxt->status == napi_ok && !type.empty(), in New()
60 ctxt->GetCbInfoSync(env, info, input); in New()
61 ASSERT_ERR(ctxt->env, ctxt->status == napi_ok, Status::E_ERROR, ctxt in New()
179 GetUnifiedRecord( napi_env env, napi_callback_info info, std::shared_ptr<ContextBase> ctxt) GetUnifiedRecord() argument
191 auto ctxt = std::make_shared<ContextBase>(); GetType() local
203 auto ctxt = std::make_shared<ContextBase>(); GetValue() local
[all...]
/third_party/curl/lib/vauth/
H A Ddigest.c343 struct MD5_context *ctxt; in Curl_auth_create_digest_md5_message() local
390 ctxt = Curl_MD5_init(Curl_DIGEST_MD5); in Curl_auth_create_digest_md5_message()
391 if(!ctxt) in Curl_auth_create_digest_md5_message()
394 Curl_MD5_update(ctxt, (const unsigned char *) userp, in Curl_auth_create_digest_md5_message()
396 Curl_MD5_update(ctxt, (const unsigned char *) ":", 1); in Curl_auth_create_digest_md5_message()
397 Curl_MD5_update(ctxt, (const unsigned char *) realm, in Curl_auth_create_digest_md5_message()
399 Curl_MD5_update(ctxt, (const unsigned char *) ":", 1); in Curl_auth_create_digest_md5_message()
400 Curl_MD5_update(ctxt, (const unsigned char *) passwdp, in Curl_auth_create_digest_md5_message()
402 Curl_MD5_final(ctxt, digest); in Curl_auth_create_digest_md5_message()
404 ctxt in Curl_auth_create_digest_md5_message()
[all...]
H A Dcram.c65 struct HMAC_context *ctxt; in Curl_auth_create_cram_md5_message() local
70 ctxt = Curl_HMAC_init(Curl_HMAC_MD5, in Curl_auth_create_cram_md5_message()
73 if(!ctxt) in Curl_auth_create_cram_md5_message()
78 Curl_HMAC_update(ctxt, Curl_bufref_ptr(chlg), in Curl_auth_create_cram_md5_message()
82 Curl_HMAC_final(ctxt, digest); in Curl_auth_create_cram_md5_message()
/foundation/distributeddatamgr/udmf/interfaces/jskits/common/
H A Dnapi_queue.h68 #define ASSERT_ARGS(ctxt, condition, message) \
71 (ctxt)->status = napi_invalid_arg; \
72 (ctxt)->error = std::string(message); \
78 #define ASSERT_STATUS(ctxt, message) \
80 if ((ctxt)->status != napi_ok) { \
81 (ctxt)->error = std::string(message); \
82 LOG_ERROR(UDMF_KITS_NAPI, "test (ctxt->status == napi_ok) failed: " message); \
159 #define ASSERT_WITH_ERRCODE(ctxt, condition, errcode, message) \
162 (ctxt)->status = napi_generic_failure; \
163 GenerateNapiError(errcode, (ctxt)
183 std::shared_ptr<ContextBase> ctxt; global() member
[all...]
H A Dnapi_error_utils.h67 #define ASSERT_BUSINESS_ERR(ctxt, assertion, errorcode, message) \
70 (ctxt)->isThrowError = true; \
71 ThrowNapiError((ctxt)->env, errorcode, message); \
76 #define ASSERT_BUSINESS_ERR_VOID(ctxt, assertion, errorCode, message) \
79 (ctxt)->isThrowError = true; \
80 ThrowNapiError((ctxt)->env, errorCode, message, false); \
/third_party/pulseaudio/src/tests/
H A Dgtk-test.c30 pa_context *ctxt; variable
38 ctxt = pa_context_new(pa_glib_mainloop_get_api(m), NULL); in connect()
39 g_assert(ctxt); in connect()
41 r = pa_context_connect(ctxt, NULL, PA_CONTEXT_NOAUTOSPAWN|PA_CONTEXT_NOFAIL, NULL); in connect()
44 pa_context_set_state_callback(ctxt, context_state_callback, NULL); in connect()
50 pa_context_unref(ctxt); in context_state_callback()
51 ctxt = NULL; in context_state_callback()
79 pa_context_unref(ctxt); in main()
/base/inputmethod/imf/frameworks/js/napi/keyboardpanelmanager/
H A Djs_keyboard_panel_manager.cpp77 auto ctxt = std::make_shared<PanelManagerContext>(); in ConnectSystemCmd() local
79 auto exec = [ctxt, env, manager](AsyncCall::Context *ctx) { in ConnectSystemCmd()
81 ctxt->SetErrorCode(ret); in ConnectSystemCmd()
83 ctxt->SetState(napi_ok); in ConnectSystemCmd()
86 AsyncCall asyncCall(env, info, ctxt, 0); in ConnectSystemCmd()
191 auto ctxt = std::make_shared<SmartMenuContext>(); in GetSmartMenuCfg() local
192 auto output = [ctxt](napi_env env, napi_value *result) -> napi_status { in GetSmartMenuCfg()
193 *result = JsUtil::GetValue(env, ctxt->smartMenu); in GetSmartMenuCfg()
196 auto exec = [ctxt](AsyncCall::Context *ctx) { in GetSmartMenuCfg()
197 ctxt in GetSmartMenuCfg()
208 auto ctxt = std::make_shared<SendPrivateCommandContext>(); SendPrivateCommand() local
[all...]
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/include/
H A Dnapi_queue.h64 #define ASSERT_VALUE(ctxt, condition, errCode, message) \
67 (ctxt)->status = errCode; \
68 (ctxt)->error = std::string(message); \
74 #define ASSERT_ARGS(ctxt, condition, message) \
75 ASSERT_VALUE(ctxt, condition, napi_invalid_arg, message)
77 #define ASSERT_STATUS(ctxt, message) \
79 if ((ctxt)->status != napi_ok) { \
80 (ctxt)->error = std::string(message); \
81 LOG_ERROR("test (ctxt->status == napi_ok) failed: " message); \
116 static napi_value AsyncWork(napi_env env, std::shared_ptr<ContextBase> ctxt, cons
[all...]
H A Djs_error_utils.h49 #define ASSERT_BUSINESS_ERR(ctxt, assertion, errorCode, message) \
52 (ctxt)->isThrowError = true; \
53 ThrowNapiError((ctxt)->env, errorCode, message); \
58 #define ASSERT_PERMISSION_ERR(ctxt, assertion, errorCode, message) \
61 (ctxt)->isThrowError = true; \
62 ThrowNapiError((ctxt)->env, errorCode, message); \
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/include/
H A Djs_error_utils.h48 #define ASSERT_BUSINESS_ERR(ctxt, assertion, errorCode, message) \
51 (ctxt)->isThrowError = true; \
52 ThrowNapiError((ctxt)->env, errorCode, message); \
57 #define ASSERT_PERMISSION_ERR(ctxt, assertion, errorCode, message) \
60 (ctxt)->isThrowError = true; \
61 ThrowNapiError((ctxt)->env, errorCode, message, false); \
H A Dnapi_queue.h60 #define ASSERT_ARGS(ctxt, condition, message) \
63 (ctxt)->status = napi_invalid_arg; \
64 (ctxt)->error = std::string(message); \
70 #define ASSERT_STATUS(ctxt, message) \
72 if ((ctxt)->status != napi_ok) { \
73 (ctxt)->error = std::string(message); \
74 ZLOGE("test (ctxt->status == napi_ok) failed: " message); \
109 static napi_value AsyncWork(napi_env env, std::shared_ptr<ContextBase> ctxt, const std::string& name,
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/include/common/
H A Dnapi_queue.h69 #define INVALID_ARGS_RETURN_ERROR(ctxt, condition, message, err) \
72 (ctxt)->status = napi_invalid_arg; \
73 (ctxt)->error = err; \
79 #define INVALID_STATUS_RETURN_ERROR(ctxt, error) \
81 if ((ctxt)->status != napi_ok) { \
82 (ctxt)->message = error; \
83 LOG_ERROR("test (ctxt->status == napi_ok) failed: " error); \
90 static napi_value AsyncWork(napi_env env, std::shared_ptr<ContextBase> ctxt, const std::string &name,
101 static void GenerateOutput(ContextBase *ctxt);
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/include/adaptor/
H A Djs_common.h56 ctxt->SetError(apiError); \
57 ctxt->status = napi_generic_failure; \
66 ctxt->SetError(innerError); \
67 ctxt->status = napi_generic_failure; \
68 ctxt->message = msg; \
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/include/
H A Dnapi_queue.h58 #define CHECK_ARGS_RETURN_VOID(ctxt, condition, message) \
61 (ctxt)->status = napi_invalid_arg; \
62 (ctxt)->error = std::string(message); \
68 #define CHECK_STATUS_RETURN_VOID(ctxt, message) \
70 if ((ctxt)->status != napi_ok) { \
71 (ctxt)->error = std::string(message); \
72 ZLOGE("test (ctxt->status == napi_ok) failed: " message); \
105 static napi_value AsyncWork(napi_env env, std::shared_ptr<ContextBase> ctxt, const std::string& name,
/third_party/libabigail/include/
H A Dabg-comparison.h887 diff_context_sptr ctxt);
951 diff_context_sptr ctxt);
1099 diff_context_sptr ctxt);
1104 diff_context_sptr ctxt);
1117 diff_context_sptr ctxt);
1136 diff_context_sptr ctxt);
1164 diff_context_sptr ctxt = diff_context_sptr());
1199 diff_context_sptr ctxt);
1205 diff_context_sptr ctxt);
1217 diff_context_sptr ctxt
[all...]
/third_party/libabigail/tools/
H A Dabidiff.cc726 /// @param ctxt the diff context to update.
730 set_diff_context_from_opts(diff_context_sptr ctxt, in set_diff_context_from_opts() argument
733 ctxt->default_output_stream(&cout); in set_diff_context_from_opts()
734 ctxt->error_output_stream(&cerr); in set_diff_context_from_opts()
735 ctxt->show_leaf_changes_only(opts.leaf_changes_only); in set_diff_context_from_opts()
736 ctxt->show_hex_values(opts.show_hexadecimal_values); in set_diff_context_from_opts()
737 ctxt->show_offsets_sizes_in_bits(opts.show_offsets_sizes_in_bits); in set_diff_context_from_opts()
738 ctxt->show_relative_offset_changes(opts.show_relative_offset_changes); in set_diff_context_from_opts()
739 ctxt->show_stats_only(opts.show_stats_only); in set_diff_context_from_opts()
740 ctxt in set_diff_context_from_opts()
963 adjust_diff_context_for_kmidiff(diff_context &ctxt) adjust_diff_context_for_kmidiff() argument
[all...]

Completed in 22 milliseconds

1234567