Home
last modified time | relevance | path

Searched refs:funcValue (Results 1 – 25 of 43) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dlist_component.cpp88 bool ListComponent::RegisterPrivateEventListener(uint16_t eventTypeId, JSValue funcValue, bool isSt… in RegisterPrivateEventListener() argument
97 listEventListener_->SetBindScrollStartFuncName(funcValue); in RegisterPrivateEventListener()
101 listEventListener_->SetBindScrollItemSelectedFuncName(funcValue); in RegisterPrivateEventListener()
106 listEventListener_.SetBindScrollEndFuncName(funcValue); in RegisterPrivateEventListener()
109 listEventListener_.SetBindScrollTopFuncName(funcValue); in RegisterPrivateEventListener()
112 listEventListener_.SetBindScrollBottomFuncName(funcValue); in RegisterPrivateEventListener()
H A Dvideo_component.cpp264 bool VideoComponent::RegisterPrivateEventListener(uint16_t eventTypeId, jerry_value_t funcValue, bo… in RegisterPrivateEventListener() argument
272 videoEventListener_->SetOnErrorFuncName(funcValue); in RegisterPrivateEventListener()
276 videoView_->SetPrepareSyncCBFunc(funcValue); in RegisterPrivateEventListener()
280 videoView_->SetStartSyncCBFunc(funcValue); in RegisterPrivateEventListener()
284 videoView_->SetPauseSyncCBFunc(funcValue); in RegisterPrivateEventListener()
288 videoEventListener_->SetOnPlayCompleteFuncName(funcValue); in RegisterPrivateEventListener()
292 videoSliderListener_->SetOnPlaySeekingFuncName(funcValue); in RegisterPrivateEventListener()
296 videoEventListener_->SetOnPlaySeekedFuncName(funcValue); in RegisterPrivateEventListener()
300 videoView_->SetTimeUpdateSyncCBFunc(funcValue); in RegisterPrivateEventListener()
H A Dinput_checkbox_component.cpp60 jerry_value_t funcValue, in RegisterPrivateEventListener() argument
64 changeListener_ = new StateChangeListener(funcValue); in RegisterPrivateEventListener()
72 clickListener_ = new ViewOnClickListener(GetViewModel(), funcValue, isStopPropagation); in RegisterPrivateEventListener()
H A Dswitch_component.cpp90 jerry_value_t funcValue, in RegisterPrivateEventListener() argument
94 changeListener_ = new StateChangeListener(funcValue); in RegisterPrivateEventListener()
102 clickListener_ = new ViewOnClickListener(GetViewModel(), funcValue, isStopPropagation); in RegisterPrivateEventListener()
H A Dinput_radio_component.cpp73 jerry_value_t funcValue, in RegisterPrivateEventListener() argument
77 changeListener_ = new StateChangeListener(funcValue); in RegisterPrivateEventListener()
85 clickListener_ = new ViewOnClickListener(GetViewModel(), funcValue, isStopPropagation); in RegisterPrivateEventListener()
H A Dpicker_view_component.cpp468 jerry_value_t funcValue, in RegisterPrivateEventListener() argument
474 SetPickerListener(funcValue); in RegisterPrivateEventListener()
556 void PickerViewComponent::SetPickerListener(jerry_value_t funcValue) const in SetPickerListener()
562 textPickerListener_->SetTextCallback(funcValue); in SetPickerListener()
570 timePickerListener_->SetTimeCallback(funcValue); in SetPickerListener()
579 datePickerListener_->SetDateCallback(funcValue); in SetPickerListener()
H A Dinput_edittext_component.cpp106 jerry_value_t funcValue, in RegisterPrivateEventListener() argument
114 onValueChangeListener_ = new ValueChangeListener(funcValue); in RegisterPrivateEventListener()
H A Dcomponent.cpp1252 if (!KeyParser::IsKeyValid(eventTypeId) || IS_UNDEFINED(funcValue)) { in RegisterEventListener()
1268 return RegisterCommonEventListener(*uiView, eventTypeId, funcValue, isStopPropagation); in RegisterEventListener()
1273 const jerry_value_t funcValue, in RegisterCommonEventListener() argument
1278 SetClickEventListener(view, funcValue, isStopPropagation); in RegisterCommonEventListener()
1282 SetLongPressEventListener(view, funcValue, isStopPropagation); in RegisterCommonEventListener()
1286 SetSwipeEventListener(view, funcValue, isStopPropagation); in RegisterCommonEventListener()
1290 SetTouchStartEventListener(view, funcValue, isStopPropagation); in RegisterCommonEventListener()
1294 SetTouchMoveEventListener(view, funcValue, isStopPropagation); in RegisterCommonEventListener()
1298 SetTouchEndEventListener(view, funcValue, isStopPropagation); in RegisterCommonEventListener()
1304 SetKeyBoardEventListener(funcValue, eventTypeId); in RegisterCommonEventListener()
[all …]
H A Dpicker_view_component.h137 …bool RegisterPrivateEventListener(uint16_t eventTypeId, jerry_value_t funcValue, bool isStopPropag…
165 void SetPickerListener(jerry_value_t funcValue) const;
H A Dswiper_component.cpp130 jerry_value_t funcValue, in RegisterPrivateEventListener() argument
134 changeListener_ = new ChangeListener(funcValue); in RegisterPrivateEventListener()
H A Dslider_component.cpp66 jerry_value_t funcValue, in RegisterPrivateEventListener() argument
72 eventListener_.SetBindChangeFuncName(funcValue); in RegisterPrivateEventListener()
H A Dtabs_component.cpp145 bool TabsComponent::RegisterPrivateEventListener(uint16_t eventTypeId, jerry_value_t funcValue) in RegisterPrivateEventListener() argument
147 if (!KeyParser::IsKeyValid(eventTypeId) || IS_UNDEFINED(funcValue)) { in RegisterPrivateEventListener()
152 changeListener_ = new ChangeListener(funcValue); in RegisterPrivateEventListener()
H A Dcomponent.h330 …virtual bool RegisterEventListener(uint16_t eventTypeId, jerry_value_t funcValue, bool isStopPropa…
338 const jerry_value_t funcValue,
345 …virtual bool RegisterPrivateEventListener(uint16_t eventTypeId, jerry_value_t funcValue, bool isSt… in RegisterPrivateEventListener() argument
H A Dswitch_component.h35 …bool RegisterPrivateEventListener(uint16_t eventTypeId, jerry_value_t funcValue, bool isStopPropag…
H A Dlist_component.h37 …bool RegisterPrivateEventListener(uint16_t eventTypeId, JSValue funcValue, bool isStopPropagation)…
H A Dinput_checkbox_component.h39 …bool RegisterPrivateEventListener(uint16_t eventTypeId, jerry_value_t funcValue, bool isStopPropag…
H A Dinput_radio_component.h40 …bool RegisterPrivateEventListener(uint16_t eventTypeId, jerry_value_t funcValue, bool isStopPropag…
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/test/
H A Dtest_concurrent.cpp178 napi_value funcValue = nullptr; variable
180 ASSERT_NE(funcValue, nullptr);
247 napi_value funcValue = nullptr; variable
249 ASSERT_NE(funcValue, nullptr);
289 napi_value funcValue = nullptr; variable
291 ASSERT_NE(funcValue, nullptr);
309 napi_value funcValue = nullptr; variable
311 ASSERT_NE(funcValue, nullptr);
764 napi_value funcValue = nullptr; variable
772 nullptr, &funcValue);
[all …]
/ohos5.0/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/
H A Dark_interop_engine.cpp264 auto funcValue = ARKTS_GetProperty(env, global, funcName); in ARKTS_Require() local
266 return ARKTS_Call(env, funcValue, ARKTS_CreateUndefined(), 1, &targetValue); in ARKTS_Require()
269 auto funcValue = ARKTS_GetProperty(env, global, funcName); in ARKTS_Require() local
270 ARKTS_ASSERT_P(ARKTS_IsCallable(env, funcValue), "global func requireNapi is undefined"); in ARKTS_Require()
275 …return ARKTS_Call(env, funcValue, ARKTS_CreateUndefined(), sizeof(args) / sizeof(ARKTS_Value), arg… in ARKTS_Require()
278 …return ARKTS_Call(env, funcValue, ARKTS_CreateUndefined(), sizeof(args) / sizeof(ARKTS_Value), arg… in ARKTS_Require()
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/drag_controller/
H A Ddrag_preview.h157 napi_value funcValue = nullptr; in NapiSerializer() local
158 … napi_create_function(env, funName, NAPI_AUTO_LENGTH, SetForegroundColor, nullptr, &funcValue); in NapiSerializer()
159 napi_set_named_property(env, result, funName, funcValue); in NapiSerializer()
162 napi_create_function(env, funName, NAPI_AUTO_LENGTH, Animate, nullptr, &funcValue); in NapiSerializer()
163 napi_set_named_property(env, result, funName, funcValue); in NapiSerializer()
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/inspector/
H A Djs_inspector.cpp156 napi_value funcValue = nullptr; in FunctionOn() local
185 napi_create_function(env, funName, NAPI_AUTO_LENGTH, On, nullptr, &funcValue); in FunctionOn()
186 napi_set_named_property(env, result, funName, funcValue); in FunctionOn()
191 napi_value funcValue = nullptr; in FunctionOff() local
214 napi_create_function(env, funName, NAPI_AUTO_LENGTH, Off, nullptr, &funcValue); in FunctionOff()
215 napi_set_named_property(env, result, funName, funcValue); in FunctionOff()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/color_manager/color_space_object_convertor/
H A Djs_color_space_utils.cpp37 napi_value funcValue = nullptr; in BindNativeFunction() local
39 … status = napi_create_function(env, fullName.c_str(), fullName.size(), func, nullptr, &funcValue); in BindNativeFunction()
43 status = napi_set_named_property(env, object, fullName.c_str(), funcValue); in BindNativeFunction()
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/mediaquery/
H A Djs_media_query.cpp269 napi_value funcValue = nullptr; in NapiSerializer() local
270 napi_create_function(env, funName, NAPI_AUTO_LENGTH, On, nullptr, &funcValue); in NapiSerializer()
271 napi_set_named_property(env, result, funName, funcValue); in NapiSerializer()
274 napi_create_function(env, funName, NAPI_AUTO_LENGTH, Off, nullptr, &funcValue); in NapiSerializer()
275 napi_set_named_property(env, result, funName, funcValue); in NapiSerializer()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/
H A Djs_drawing_utils.cpp42 napi_value funcValue = nullptr; in BindNativeFunction() local
43 napi_create_function(env, fullName.c_str(), fullName.size(), func, nullptr, &funcValue); in BindNativeFunction()
44 napi_set_named_property(env, object, fullName.c_str(), funcValue); in BindNativeFunction()
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/worker/test/
H A Dtest_worker.cpp475 napi_value funcValue = nullptr; variable
477 argv[1] = funcValue;
525 napi_value funcValue = nullptr; variable
527 argv[1] = funcValue;
560 napi_value funcValue = nullptr; variable
562 argv1[1] = funcValue;
608 napi_value funcValue = nullptr; variable
610 argv[1] = funcValue;
611 ASSERT_TRUE(funcValue != nullptr);
722 napi_value funcValue = nullptr; variable
[all …]

12