Home
last modified time | relevance | path

Searched refs:duk_context (Results 1 – 25 of 67) sorted by relevance

123

/AliOS-Things-master/components/amp/engine/duktape_engine/duktape/
A Dduktape.h240 typedef duk_ret_t (*duk_c_function)(duk_context *ctx);
668 DUK_EXTERNAL_DECL void duk_dup_top(duk_context *ctx);
674 DUK_EXTERNAL_DECL void duk_xcopymove_raw(duk_context *to_ctx, duk_context *from_ctx, duk_idx_t coun…
725 DUK_EXTERNAL_DECL void duk_push_thread_stash(duk_context *ctx, duk_context *target_ctx);
796 DUK_EXTERNAL_DECL void duk_pop(duk_context *ctx);
798 DUK_EXTERNAL_DECL void duk_pop_2(duk_context *ctx);
799 DUK_EXTERNAL_DECL void duk_pop_3(duk_context *ctx);
900 DUK_EXTERNAL_DECL duk_context *duk_get_context(duk_context *ctx, duk_idx_t idx);
918 DUK_EXTERNAL_DECL duk_context *duk_get_context_default(duk_context *ctx, duk_idx_t idx, duk_context
937 DUK_EXTERNAL_DECL duk_context *duk_opt_context(duk_context *ctx, duk_idx_t idx, duk_context *def_va…
[all …]
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/utils/pm/
A Dmodule_pm.c29 duk_context *ctx; in __pm_pwrkey_state_notify()
43 duk_context *ctx; in __pm_pwrkey_state_cb()
47 static duk_ret_t native_pm_autosleep_mode_get(duk_context *ctx) in native_pm_autosleep_mode_get()
53 static duk_ret_t native_pm_autosleep_mode_set(duk_context *ctx) in native_pm_autosleep_mode_set()
77 static duk_ret_t native_pm_sleep(duk_context *ctx) in native_pm_sleep()
92 static duk_ret_t native_pm_wakelock_lock(duk_context *ctx) in native_pm_wakelock_lock()
140 static duk_ret_t native_pm_wakelock_unlock(duk_context *ctx) in native_pm_wakelock_unlock()
160 static duk_ret_t native_pm_pwrkey_on(duk_context *ctx) in native_pm_pwrkey_on()
183 static duk_ret_t native_pm_power_down(duk_context *ctx) in native_pm_power_down()
190 static duk_ret_t native_pm_power_reset(duk_context *ctx) in native_pm_power_reset()
[all …]
A Dmodule_charger.c18 static duk_ret_t native_charger_conn_state_get(duk_context *ctx) in native_charger_conn_state_get()
34 static duk_ret_t native_charger_state_get(duk_context *ctx) in native_charger_state_get()
50 static duk_ret_t native_charger_current_get(duk_context *ctx) in native_charger_current_get()
66 static duk_ret_t native_charger_switch_set(duk_context *ctx) in native_charger_switch_set()
93 static duk_ret_t native_charger_connect_on(duk_context *ctx) in native_charger_connect_on()
111 duk_context *ctx = be_get_context(); in module_charger_register()
A Dmodule_battery.c16 static duk_ret_t native_battery_conn_state_get(duk_context *ctx) in native_battery_conn_state_get()
32 static duk_ret_t native_battery_voltage_get(duk_context *ctx) in native_battery_voltage_get()
48 static duk_ret_t native_battery_level_get(duk_context *ctx) in native_battery_level_get()
64 static duk_ret_t native_battery_temperature_get(duk_context *ctx) in native_battery_temperature_get()
82 duk_context *ctx = be_get_context(); in module_battery_register()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/utils/system/
A Dmodule_system.c19 static duk_ret_t native_module_versions(duk_context *ctx) in native_module_versions()
29 static duk_ret_t native_system_version(duk_context *ctx) in native_system_version()
38 static duk_ret_t native_system_app_version(duk_context *ctx) in native_system_app_version()
47 static duk_ret_t native_system_platform(duk_context *ctx) in native_system_platform()
53 static duk_ret_t native_system_uptime(duk_context *ctx) in native_system_uptime()
59 static duk_ret_t native_system_memory(duk_context *ctx) in native_system_memory()
89 static duk_ret_t native_system_gc(duk_context *ctx) in native_system_gc()
102 duk_context *ctx = be_get_context(); in module_system_register()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/advanced/audio/
A Dmodule_audioplayer_fibo.c32 duk_context *ctx; in __audioplayer_complete_cb()
42 static duk_ret_t native_audioplayer_play(duk_context *ctx) in native_audioplayer_play()
94 static duk_ret_t native_audioplayer_stop(duk_context *ctx) in native_audioplayer_stop()
109 static duk_ret_t native_audioplayer_pause(duk_context *ctx) in native_audioplayer_pause()
124 static duk_ret_t native_audioplayer_resume(duk_context *ctx) in native_audioplayer_resume()
139 static duk_ret_t native_audioplayer_state_get(duk_context *ctx) in native_audioplayer_state_get()
151 static duk_ret_t native_audioplayer_state_on(duk_context *ctx) in native_audioplayer_state_on()
170 static duk_ret_t native_audioplayer_seekto(duk_context *ctx) in native_audioplayer_seekto()
217 static duk_ret_t native_audioplayer_volume_set(duk_context *ctx) in native_audioplayer_volume_set()
260 static duk_ret_t native_audioplayer_play_list(duk_context *ctx) in native_audioplayer_play_list()
[all …]
A Dmodule_tts.c22 duk_context *ctx; in native_tts_event_callback()
36 static duk_ret_t native_tts_play(duk_context *ctx) in native_tts_play()
75 static duk_ret_t native_tts_stop(duk_context *ctx) in native_tts_stop()
90 static duk_ret_t native_tts_state_get(duk_context *ctx) in native_tts_state_get()
98 static duk_ret_t native_tts_volume_set(duk_context *ctx) in native_tts_volume_set()
125 static duk_ret_t native_tts_volume_get(duk_context *ctx) in native_tts_volume_get()
133 static duk_ret_t native_tts_pitch_set(duk_context *ctx) in native_tts_pitch_set()
160 static duk_ret_t native_tts_speed_set(duk_context *ctx) in native_tts_speed_set()
187 static duk_ret_t native_tts_speed_get(duk_context *ctx) in native_tts_speed_get()
195 static duk_ret_t native_tts_event_on(duk_context *ctx) in native_tts_event_on()
[all …]
A Dmodule_audioplayer.c54 duk_context *ctx; in audioplayer_state_notify()
67 duk_context *ctx; in audioplayer_state_cb()
122 duk_context *ctx; in audioplayer_play_cplt_notify()
161 static duk_ret_t native_audioplayer_play(duk_context *ctx) in native_audioplayer_play()
236 static duk_ret_t native_audioplayer_stop(duk_context *ctx) in native_audioplayer_stop()
259 static duk_ret_t native_audioplayer_pause(duk_context *ctx) in native_audioplayer_pause()
280 static duk_ret_t native_audioplayer_resume(duk_context *ctx) in native_audioplayer_resume()
300 static duk_ret_t native_audioplayer_seekto(duk_context *ctx) in native_audioplayer_seekto()
379 static duk_ret_t native_audioplayer_state_get(duk_context *ctx) in native_audioplayer_state_get()
430 static duk_ret_t native_audioplayer_state_on(duk_context *ctx) in native_audioplayer_state_on()
[all …]
/AliOS-Things-master/components/amp/engine/duktape_engine/
A Dbe_inl.h18 duk_context *be_get_context();
23 void be_ref_setup(duk_context *ctx);
30 int be_ref(duk_context *ctx);
35 void be_push_ref(duk_context *ctx, int ref);
40 void be_unref(duk_context *ctx, int ref);
45 void be_module_node_init(duk_context *ctx);
50 void be_module_node_set_entry(duk_context *ctx, const char *entry);
A Dbe_module_node.c9 static void duk__push_module_object(duk_context *ctx, const char *id);
11 static duk_bool_t duk__get_cached_module(duk_context *ctx, const char *id) in duk__get_cached_module()
31 static void duk__put_cached_module(duk_context *ctx) in duk__put_cached_module()
50 static void duk__del_cached_module(duk_context *ctx, const char *id) in duk__del_cached_module()
60 static duk_int_t duk__eval_module_source(duk_context *ctx, void *udata) in duk__eval_module_source()
122 static duk_ret_t duk__handle_require(duk_context *ctx) in duk__handle_require()
217 static void duk__push_require_function(duk_context *ctx, const char *id) in duk__push_require_function()
237 static void duk__push_module_object(duk_context *ctx, const char *id) in duk__push_module_object()
263 void be_module_node_set_entry(duk_context *ctx, const char *entry) in be_module_node_set_entry()
274 void be_module_node_init(duk_context *ctx) in be_module_node_init()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/utils/log/
A Dmodule_log.c45 static duk_ret_t native_set_stdlog_level(duk_context *ctx) in native_set_stdlog_level()
72 static duk_ret_t native_set_popcloud_log_level(duk_context *ctx) in native_set_popcloud_log_level()
99 static duk_ret_t native_set_popfs_log_level(duk_context *ctx) in native_set_popfs_log_level()
126 static duk_ret_t native_set_log_file_path(duk_context *ctx) in native_set_log_file_path()
148 static duk_ret_t native_set_log_file_size(duk_context *ctx) in native_set_log_file_size()
197 static duk_ret_t native_debug_log_out(duk_context *ctx) in native_debug_log_out()
211 static duk_ret_t native_info_log_out(duk_context *ctx) in native_info_log_out()
225 static duk_ret_t native_warn_log_out(duk_context *ctx) in native_warn_log_out()
239 static duk_ret_t native_error_log_out(duk_context *ctx) in native_error_log_out()
253 static duk_ret_t native_fatal_log_out(duk_context *ctx) in native_fatal_log_out()
[all …]
/AliOS-Things-master/components/py_engine/modules/network/cellular/
A Dmodule_cellular.c31 static duk_ret_t native_cellular_get_simInfo(duk_context *ctx) in native_cellular_get_simInfo()
110 duk_context *ctx = be_get_context(); in cellInfo_receive_callback()
155 static duk_ret_t native_cellular_getStatus(duk_context *ctx) in native_cellular_getStatus()
174 duk_context *ctx = be_get_context(); in network_status_notify()
193 duk_context *ctx = be_get_context(); in network_status_callback()
204 static duk_ret_t native_cellular_onconnect(duk_context *ctx) in native_cellular_onconnect()
219 duk_context *ctx = be_get_context(); in native_cellular_onconnect()
229 static duk_ret_t native_get_netshare_mode(duk_context *ctx) in native_get_netshare_mode()
240 static duk_ret_t native_set_netshare_mode(duk_context *ctx) in native_set_netshare_mode()
262 static duk_ret_t native_get_netshare_config(duk_context *ctx) in native_get_netshare_config()
[all …]
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/network/cellular/
A Dmodule_cellular.c32 static duk_ret_t native_cellular_get_simInfo(duk_context *ctx) in native_cellular_get_simInfo()
111 duk_context *ctx = be_get_context(); in cellInfo_receive_callback()
156 static duk_ret_t native_cellular_getStatus(duk_context *ctx) in native_cellular_getStatus()
175 duk_context *ctx = be_get_context(); in network_status_notify()
193 duk_context *ctx = be_get_context(); in network_status_callback()
204 static duk_ret_t native_cellular_onconnect(duk_context *ctx) in native_cellular_onconnect()
219 duk_context *ctx = be_get_context(); in native_cellular_onconnect()
229 static duk_ret_t native_get_netshare_mode(duk_context *ctx) in native_get_netshare_mode()
240 static duk_ret_t native_set_netshare_mode(duk_context *ctx) in native_set_netshare_mode()
262 static duk_ret_t native_get_netshare_config(duk_context *ctx) in native_get_netshare_config()
[all …]
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/network/netmgr/
A Dmodule_netmgr.c55 duk_context *ctx = be_get_context(); in js_cb_conn_status()
105 static duk_ret_t native_netmgr_service_init(duk_context *ctx) in native_netmgr_service_init()
143 static duk_ret_t native_netmgr_add_dev(duk_context *ctx) in native_netmgr_add_dev()
165 static duk_ret_t native_netmgr_get_dev(duk_context *ctx) in native_netmgr_get_dev()
213 static duk_ret_t native_netmgr_connect(duk_context *ctx) in native_netmgr_connect()
284 static duk_ret_t native_netmgr_disconnect(duk_context *ctx) in native_netmgr_disconnect()
312 static duk_ret_t native_netmgr_get_state(duk_context *ctx) in native_netmgr_get_state()
349 static duk_ret_t native_netmgr_get_config(duk_context *ctx) in native_netmgr_get_config()
358 static duk_ret_t native_netmgr_del_config(duk_context *ctx) in native_netmgr_del_config()
476 duk_context *ctx = be_get_context(); in set_msg_cb()
[all …]
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/utils/systimer/
A Dmodule_systimer.c45 duk_context *ctx = be_get_context(); in timer_action()
109 duk_context *ctx = be_get_context(); in clear_timer()
115 static duk_ret_t native_setTimeout(duk_context *ctx) in native_setTimeout()
131 static duk_ret_t native_clearTimeout(duk_context *ctx) in native_clearTimeout()
138 static duk_ret_t native_setInterval(duk_context *ctx) in native_setInterval()
155 static duk_ret_t native_clearInterval(duk_context *ctx) in native_clearInterval()
162 static duk_ret_t native_sleepMs(duk_context *ctx) in native_sleepMs()
203 duk_context *ctx = be_get_context(); in module_systimer_register()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/network/wifi/
A Dmodule_wifi.c32 duk_context *ctx = be_get_context(); in js_cb_wifi_conn_status()
71 static duk_ret_t native_wifi_connect(duk_context *ctx) in native_wifi_connect()
111 static duk_ret_t native_wifi_set_ifconfig(duk_context *ctx) in native_wifi_set_ifconfig()
154 static duk_ret_t native_wifi_get_ifconfig(duk_context *ctx) in native_wifi_get_ifconfig()
198 static duk_ret_t native_wifi_disconnect(duk_context *ctx) in native_wifi_disconnect()
221 static duk_ret_t native_wifi_get_type(duk_context *ctx) in native_wifi_get_type()
239 static duk_ret_t native_wifi_get_state(duk_context *ctx) in native_wifi_get_state()
257 duk_context *ctx = be_get_context(); in module_wifi_register()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/advanced/bleconfig_wifi/
A Dmodule_blecfgnet.c15 static duk_ret_t native_blecfgnet_start(duk_context *ctx) in native_blecfgnet_start()
28 static duk_ret_t native_blecfgnet_recovery_wifi(duk_context *ctx) in native_blecfgnet_recovery_wifi()
41 static duk_ret_t native_blecfgnet_recovery_devinfo(duk_context *ctx) in native_blecfgnet_recovery_devinfo()
56 duk_context *ctx = be_get_context(); in module_blecfgnet_register()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/advanced/keypad/
A Dmodule_keypad.c27 duk_context *ctx; in keypad_notify_callback()
55 static duk_ret_t native_keypad_on(duk_context *ctx) in native_keypad_on()
79 static duk_ret_t native_keypad_open(duk_context *ctx) in native_keypad_open()
86 static duk_ret_t native_keypad_close(duk_context *ctx) in native_keypad_close()
96 duk_context *ctx = be_get_context(); in module_keypad_register()
/AliOS-Things-master/components/py_engine/modules/network/tcp/
A Dmodule_tcp.c58 duk_context *ctx = be_get_context(); in tcp_create_notify()
75 duk_context *ctx = be_get_context(); in tcp_create_routine()
166 duk_context *ctx = be_get_context(); in tcp_send_notify()
189 duk_context *ctx = be_get_context(); in tcp_send_routine()
224 static duk_ret_t native_tcp_send(duk_context *ctx) in native_tcp_send()
291 duk_context *ctx = be_get_context(); in tcp_recv_notify()
327 duk_context *ctx = be_get_context(); in tcp_recv_routine()
347 duk_context *ctx = be_get_context(); in tcp_recv_routine()
376 static duk_ret_t native_tcp_receive(duk_context *ctx) in native_tcp_receive()
428 static duk_ret_t native_tcp_close(duk_context *ctx) in native_tcp_close()
[all …]
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/network/tcp/
A Dmodule_tcp.c58 duk_context *ctx = be_get_context(); in tcp_create_notify()
75 duk_context *ctx = be_get_context(); in tcp_create_routine()
168 duk_context *ctx = be_get_context(); in tcp_send_notify()
191 duk_context *ctx = be_get_context(); in tcp_send_routine()
226 static duk_ret_t native_tcp_send(duk_context *ctx) in native_tcp_send()
293 duk_context *ctx = be_get_context(); in tcp_recv_notify()
329 duk_context *ctx = be_get_context(); in tcp_recv_routine()
348 duk_context *ctx = be_get_context(); in tcp_recv_routine()
377 static duk_ret_t native_tcp_receive(duk_context *ctx) in native_tcp_receive()
427 static duk_ret_t native_tcp_close(duk_context *ctx) in native_tcp_close()
[all …]
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/utils/fs/
A Dmodule_fs.c52 static duk_ret_t native_fs_is_support(duk_context *ctx) in native_fs_is_support()
68 static duk_ret_t native_fs_read(duk_context *ctx) in native_fs_read()
125 static duk_ret_t native_fs_write(duk_context *ctx) in native_fs_write()
218 static duk_ret_t native_fs_delete(duk_context *ctx) in native_fs_delete()
243 static duk_ret_t native_fs_totalsize(duk_context *ctx) in native_fs_totalsize()
269 static duk_ret_t native_fs_usedsize(duk_context *ctx) in native_fs_usedsize()
295 static duk_ret_t native_fs_freesize(duk_context *ctx) in native_fs_freesize()
316 duk_context *ctx = be_get_context(); in module_fs_register()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/utils/at/
A Dmodule_at.c26 static duk_ret_t native_atRead(duk_context *ctx) in native_atRead()
76 static duk_ret_t native_atReadLine(duk_context *ctx) in native_atReadLine()
128 static duk_ret_t native_atSendNoReply(duk_context *ctx) in native_atSendNoReply()
155 duk_context *ctx = be_get_context(); in at_notify()
194 static duk_ret_t native_atRegisterCmdCallback(duk_context *ctx) in native_atRegisterCmdCallback()
221 static duk_ret_t native_atInit(duk_context *ctx) in native_atInit()
247 static duk_ret_t native_atDeInit(duk_context *ctx) in native_atDeInit()
255 static duk_ret_t native_atSetEcho(duk_context *ctx) in native_atSetEcho()
280 duk_context *ctx = be_get_context(); in module_at_register()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/advanced/smartcard/
A Dmodule_smartcard.c19 static duk_ret_t native_smartcard_init(duk_context *ctx) in native_smartcard_init()
35 static duk_ret_t native_smartcard_deinit(duk_context *ctx) in native_smartcard_deinit()
42 static duk_ret_t native_smartcard_select(duk_context *ctx) in native_smartcard_select()
89 duk_context *ctx = be_get_context(); in module_smartcard_register()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/advanced/und/
A Dmodule_und.c19 static duk_ret_t native_und_start(duk_context *ctx) in native_und_start()
42 static duk_ret_t native_und_update(duk_context *ctx) in native_und_update()
75 static duk_ret_t native_und_stop(duk_context *ctx) in native_und_stop()
92 duk_context *ctx = be_get_context(); in module_und_register()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/hardware/wdg/
A Dmodule_wdg.c17 static duk_ret_t native_wdg_start(duk_context *ctx) in native_wdg_start()
42 static duk_ret_t native_wdg_feed(duk_context *ctx) in native_wdg_feed()
49 static duk_ret_t native_wdg_stop(duk_context *ctx) in native_wdg_stop()
59 duk_context *ctx = be_get_context(); in module_wdg_register()

Completed in 56 milliseconds

123