/AliOS-Things-master/components/amp/engine/duktape_engine/ |
A D | be_module_node.c | 22 duk_pop_3(ctx); in duk__get_cached_module() 39 duk_dup(ctx, -3); in duk__put_cached_module() 44 duk_dup(ctx, -2); in duk__put_cached_module() 57 duk_pop_2(ctx); in duk__del_cached_module() 82 ctx, in duk__eval_module_source() 115 duk_pop_2(ctx); in duk__eval_module_source() 213 duk_gc(ctx, 0); in duk__handle_require() 234 duk_pop(ctx); in duk__push_require_function() 292 duk_pop(ctx); in be_module_node_init() 308 duk_pop(ctx); in be_module_node_init() [all …]
|
A D | be_refs.c | 8 duk_push_heap_stash(ctx); in be_ref_setup() 11 duk_push_array(ctx); in be_ref_setup() 12 duk_push_int(ctx, 0); in be_ref_setup() 17 duk_pop(ctx); in be_ref_setup() 24 duk_pop(ctx); in be_ref() 30 duk_remove(ctx, -2); in be_ref() 35 duk_pop(ctx); in be_ref() 50 duk_insert(ctx, -2); in be_ref() 56 duk_pop(ctx); in be_ref() 70 duk_remove(ctx, -2); in be_push_ref() [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/startup/ |
A D | app_entry.c | 35 duk_dup(ctx, -1); in native_app_entry() 43 duk_pop(ctx); in native_app_entry() 48 duk_dup(ctx, -1); in native_app_entry() 50 duk_pop(ctx); in native_app_entry() 58 duk_pop(ctx); in native_app_entry() 63 duk_dup(ctx, -1); in native_app_entry() 65 duk_pop(ctx); in native_app_entry() 80 duk_pop(ctx); in native_app_entry() 95 duk_pop(ctx); in native_app_entry() 115 duk_pop(ctx); in app_entry() [all …]
|
/AliOS-Things-master/components/mbedtls/library/ |
A D | md_wrap.c | 94 if( ctx != NULL ) in md2_ctx_alloc() 97 return( ctx ); in md2_ctx_alloc() 158 if( ctx != NULL ) in md4_ctx_alloc() 161 return( ctx ); in md4_ctx_alloc() 220 if( ctx != NULL ) in md5_ctx_alloc() 223 return( ctx ); in md5_ctx_alloc() 284 if( ctx != NULL ) in ripemd160_ctx_alloc() 287 return( ctx ); in ripemd160_ctx_alloc() 351 return( ctx ); in sha1_ctx_alloc() 425 return( ctx ); in sha224_ctx_alloc() [all …]
|
A D | ecdh.c | 212 ecdh_init_internal( &ctx->ctx.mbed_ecdh ); in mbedtls_ecdh_setup() 260 ecdh_free_internal( &ctx->ctx.mbed_ecdh ); in mbedtls_ecdh_free() 299 if( ( ret = ecdh_gen_public_restartable( &ctx->grp, &ctx->d, &ctx->Q, in ecdh_make_params_internal() 303 if( ( ret = mbedtls_ecdh_gen_public( &ctx->grp, &ctx->d, &ctx->Q, in ecdh_make_params_internal() 368 return( mbedtls_ecp_tls_read_point( &ctx->grp, &ctx->Qp, buf, in ecdh_read_params_internal() 487 if( ( ret = ecdh_gen_public_restartable( &ctx->grp, &ctx->d, &ctx->Q, in ecdh_make_public_internal() 491 if( ( ret = mbedtls_ecdh_gen_public( &ctx->grp, &ctx->d, &ctx->Q, in ecdh_make_public_internal() 588 if( ctx == NULL || ctx->grp.pbits == 0 ) in ecdh_calc_secret_internal() 599 if( ( ret = ecdh_compute_shared_restartable( &ctx->grp, &ctx->z, &ctx->Qp, in ecdh_calc_secret_internal() 606 if( ( ret = mbedtls_ecdh_compute_shared( &ctx->grp, &ctx->z, &ctx->Qp, in ecdh_calc_secret_internal() [all …]
|
A D | md.c | 184 if( ctx == NULL || ctx->md_info == NULL ) in mbedtls_md_free() 188 ctx->md_info->ctx_free_func( ctx->md_ctx ); in mbedtls_md_free() 247 if( ctx == NULL || ctx->md_info == NULL ) in mbedtls_md_starts() 250 return( ctx->md_info->starts_func( ctx->md_ctx ) ); in mbedtls_md_starts() 255 if( ctx == NULL || ctx->md_info == NULL ) in mbedtls_md_update() 263 if( ctx == NULL || ctx->md_info == NULL ) in mbedtls_md_finish() 326 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_starts() 368 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_update() 380 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_finish() 403 if( ctx == NULL || ctx->md_info == NULL || ctx->hmac_ctx == NULL ) in mbedtls_md_hmac_reset() [all …]
|
A D | dhm.c | 153 ctx->len = mbedtls_mpi_size( &ctx->P ); in mbedtls_dhm_read_params() 195 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &ctx->GX, &ctx->G, &ctx->X, in mbedtls_dhm_make_params() 253 ctx->len = mbedtls_mpi_size( &ctx->P ); in mbedtls_dhm_set_group() 310 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &ctx->GX, &ctx->G, &ctx->X, in mbedtls_dhm_make_public() 356 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &ctx->Vi, &ctx->Vi, &ctx->Vi ) ); in dhm_update_blinding() 357 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &ctx->Vi, &ctx->Vi, &ctx->P ) ); in dhm_update_blinding() 360 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &ctx->Vf, &ctx->Vf, &ctx->P ) ); in dhm_update_blinding() 384 MBEDTLS_MPI_CHK( mbedtls_mpi_inv_mod( &ctx->Vf, &ctx->Vi, &ctx->P ) ); in dhm_update_blinding() 385 MBEDTLS_MPI_CHK( mbedtls_mpi_exp_mod( &ctx->Vf, &ctx->Vf, &ctx->X, &ctx->P, &ctx->RP ) ); in dhm_update_blinding() 430 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &ctx->K, &ctx->K, &ctx->Vf ) ); in mbedtls_dhm_calc_secret() [all …]
|
A D | cipher.c | 164 if( ctx == NULL ) in mbedtls_cipher_free() 168 if( ctx->cmac_ctx ) in mbedtls_cipher_free() 177 ctx->cipher_info->base->ctx_free_func( ctx->cipher_ctx ); in mbedtls_cipher_free() 443 ctx->operation, block_size, ctx->iv, in mbedtls_cipher_update() 492 ctx->operation, ilen, ctx->iv, input, output ) ) ) in mbedtls_cipher_update() 508 ctx->operation, ilen, &ctx->unprocessed_len, ctx->iv, in mbedtls_cipher_update() 539 ilen, &ctx->unprocessed_len, ctx->iv, in mbedtls_cipher_update() 559 ret = ctx->cipher_info->base->xts_func( ctx->cipher_ctx, in mbedtls_cipher_update() 560 ctx->operation, ilen, ctx->iv, input, output ); in mbedtls_cipher_update() 813 ctx->add_padding( ctx->unprocessed_data, mbedtls_cipher_get_iv_size( ctx ), in mbedtls_cipher_finish() [all …]
|
A D | md2.c | 89 if( ctx == NULL ) in mbedtls_md2_free() 109 ctx->left = 0; in mbedtls_md2_starts_ret() 129 ctx->state[i + 16] = ctx->buffer[i]; in mbedtls_internal_md2_process() 131 (unsigned char)( ctx->buffer[i] ^ ctx->state[i]); in mbedtls_internal_md2_process() 146 t = ctx->cksum[15]; in mbedtls_internal_md2_process() 151 ( ctx->cksum[i] ^ PI_SUBST[ctx->buffer[i] ^ t] ); in mbedtls_internal_md2_process() 152 t = ctx->cksum[i]; in mbedtls_internal_md2_process() 183 memcpy( ctx->buffer + ctx->left, input, fill ); in mbedtls_md2_update_ret() 185 ctx->left += fill; in mbedtls_md2_update_ret() 191 ctx->left = 0; in mbedtls_md2_update_ret() [all …]
|
A D | chachapoly.c | 103 ctx->aad_len = 0U; in mbedtls_chachapoly_init() 104 ctx->ciphertext_len = 0U; in mbedtls_chachapoly_init() 111 if( ctx == NULL ) in mbedtls_chachapoly_free() 116 ctx->aad_len = 0U; in mbedtls_chachapoly_free() 117 ctx->ciphertext_len = 0U; in mbedtls_chachapoly_free() 163 ctx->aad_len = 0U; in mbedtls_chachapoly_starts() 164 ctx->ciphertext_len = 0U; in mbedtls_chachapoly_starts() 166 ctx->mode = mode; in mbedtls_chachapoly_starts() 184 ctx->aad_len += aad_len; in mbedtls_chachapoly_update_aad() 214 ctx->ciphertext_len += len; in mbedtls_chachapoly_update() [all …]
|
A D | hmac_drbg.c | 105 if( ( ret = mbedtls_md_hmac_finish( &ctx->md_ctx, ctx->V ) ) != 0 ) in mbedtls_hmac_drbg_update_ret() 140 if( ( ret = mbedtls_md_hmac_starts( &ctx->md_ctx, ctx->V, in mbedtls_hmac_drbg_seed_buf() 171 if( ( ret = ctx->f_entropy( ctx->p_entropy, in mbedtls_hmac_drbg_reseed() 175 seedlen = ctx->entropy_len; in mbedtls_hmac_drbg_reseed() 189 ctx->reseed_counter = 1; in mbedtls_hmac_drbg_reseed() 220 if( ( ret = mbedtls_md_hmac_starts( &ctx->md_ctx, ctx->V, md_size ) ) != 0 ) in mbedtls_hmac_drbg_seed() 268 ctx->entropy_len = len; in mbedtls_hmac_drbg_set_entropy_len() 304 ctx->reseed_counter > ctx->reseed_interval ) ) in mbedtls_hmac_drbg_random_with_add() 330 if( ( ret = mbedtls_md_hmac_finish( &ctx->md_ctx, ctx->V ) ) != 0 ) in mbedtls_hmac_drbg_random_with_add() 345 ctx->reseed_counter++; in mbedtls_hmac_drbg_random_with_add() [all …]
|
A D | pk.c | 73 ctx->pk_info->ctx_free_func( ctx->pk_ctx ); in mbedtls_pk_free() 94 if( ctx == NULL || ctx->pk_info == NULL || in mbedtls_pk_restart_free() 100 ctx->pk_info->rs_free_func( ctx->rs_ctx ); in mbedtls_pk_restart_free() 190 if( ctx == NULL || ctx->pk_info == NULL ) in mbedtls_pk_can_do() 221 if( ctx == NULL || ctx->pk_info != NULL ) in pk_restart_setup() 266 ret = ctx->pk_info->verify_rs_func( ctx->pk_ctx, in mbedtls_pk_verify_restartable() 502 if( ctx == NULL || ctx->pk_info == NULL ) in mbedtls_pk_get_bitlen() 505 return( ctx->pk_info->get_bitlen( ctx->pk_ctx ) ); in mbedtls_pk_get_bitlen() 520 ctx->pk_info->debug_func( ctx->pk_ctx, items ); in mbedtls_pk_debug() 529 if( ctx == NULL || ctx->pk_info == NULL ) in mbedtls_pk_get_name() [all …]
|
/AliOS-Things-master/components/py_engine/engine/lib/crypto-algorithms/ |
A D | sha256.c | 130 sha256_transform(ctx, ctx->data); in sha256_final() 135 ctx->bitlen += ctx->datalen * 8; in sha256_final() 136 ctx->data[63] = ctx->bitlen; in sha256_final() 137 ctx->data[62] = ctx->bitlen >> 8; in sha256_final() 138 ctx->data[61] = ctx->bitlen >> 16; in sha256_final() 139 ctx->data[60] = ctx->bitlen >> 24; in sha256_final() 140 ctx->data[59] = ctx->bitlen >> 32; in sha256_final() 141 ctx->data[58] = ctx->bitlen >> 40; in sha256_final() 142 ctx->data[57] = ctx->bitlen >> 48; in sha256_final() 143 ctx->data[56] = ctx->bitlen >> 56; in sha256_final() [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/network/netmgr/ |
A D | module_netmgr.c | 66 duk_pop(ctx); in js_cb_conn_status() 68 duk_gc(ctx, 0); in js_cb_conn_status() 193 if (!duk_is_number(ctx, 0) || !duk_is_number(ctx, 1)) { in native_netmgr_set_auto_reconnect() 224 if (!duk_is_number(ctx, 0) || !duk_is_object(ctx, 1) in native_netmgr_connect() 236 if(!duk_is_string(ctx, -4) || !duk_is_string(ctx, -3) in native_netmgr_connect() 237 || !duk_is_string(ctx, -2) || !duk_is_number(ctx, -1)) { in native_netmgr_connect() 259 duk_dup(ctx, 2); in native_netmgr_connect() 380 if (!duk_is_number(ctx, 0) || !duk_is_object(ctx, 0)) { in native_netmgr_set_ifconfig() 426 if (!duk_is_number(ctx, 0) || !duk_is_object(ctx, 1)) { in native_netmgr_get_ifconfig() 516 if (!duk_is_number(ctx, 0) || !duk_is_function(ctx, 1)) { in native_netmgr_set_msg_cb() [all …]
|
/AliOS-Things-master/components/mbedtls/platform/yoc/ |
A D | rsa_alt.c | 99 if( ctx->len != mbedtls_mpi_size( &ctx->N ) || in rsa_check_context() 218 if( mbedtls_rsa_validate_params( &ctx->N, &ctx->P, &ctx->Q, in mbedtls_rsa_check_privkey() 225 else if( mbedtls_rsa_validate_crt( &ctx->P, &ctx->Q, &ctx->D, in mbedtls_rsa_check_privkey() 226 &ctx->DP, &ctx->DQ, &ctx->QP ) != 0 ) in mbedtls_rsa_check_privkey() 268 if (ctx->len != 128 && ctx->len != 256) { in mbedtls_rsa_pkcs1_encrypt() 294 ctx->sc_ctx.key_bits = ctx->len * 8; in mbedtls_rsa_pkcs1_encrypt() 334 if (ctx->len != 128 && ctx->len != 256) { in mbedtls_rsa_pkcs1_decrypt() 397 if (ctx->len != 128 && ctx->len != 256) { in mbedtls_rsa_pkcs1_sign() 486 if (ctx->len != 128 && ctx->len != 256) { in mbedtls_rsa_pkcs1_verify() 590 ctx->len = mbedtls_mpi_size( &ctx->N ); in mbedtls_rsa_import() [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/utils/system/ |
A D | module_system.c | 24 JSValue t = JS_NewObject(ctx); in native_module_versions() 27 JS_SetPropertyStr(ctx, t, "module", JS_NewStringLen(ctx, version, strlen(version))); in native_module_versions() 50 JSValue t = JS_NewObject(ctx); in native_get_system_info() 97 JS_SetPropertyStr(ctx, t, "heapTotal", JS_NewInt32(ctx, heap_info.heap_total)); in native_system_memory() 98 JS_SetPropertyStr(ctx, t, "heapUsed", JS_NewInt32(ctx, heap_info.heap_used)); in native_system_memory() 99 JS_SetPropertyStr(ctx, t, "heapFree", JS_NewInt32(ctx, heap_info.heap_free)); in native_system_memory() 111 return JS_NewInt32(ctx, 1); in native_system_gc() 119 return JS_NewInt32(ctx, 1); in native_system_reboot() 133 proto = JS_NewObject(ctx); in js_system_init() 147 js_system_init(ctx); in module_system_register() [all …]
|
/AliOS-Things-master/components/ota/ota_agent/ |
A D | ota_service.c | 38 ctx->report_func.report_status_cb, ctx->report_func.param); in ota_download_to_fs_service() 52 if ((ctx != NULL) && (ctx->report_func.report_status_cb != NULL)) { in ota_download_to_fs_service() 53 ctx->report_func.report_status_cb(ctx->report_func.param, ret); in ota_download_to_fs_service() 56 if ((ctx != NULL) && (ctx->feedback_func.on_user_event_cb != NULL)) { in ota_download_to_fs_service() 67 if (ctx == NULL) { in ota_report_module_version() 75 ret = ota_transport_inform(ctx->mqtt_client, ctx->pk, ctx->dn, module_name, version); in ota_report_module_version() 415 memset(ctx->pk, 0, sizeof(ctx->pk)); in ota_service_param_reset() 416 memset(ctx->dn, 0, sizeof(ctx->dn)); in ota_service_param_reset() 417 memset(ctx->ds, 0, sizeof(ctx->ds)); in ota_service_param_reset() 418 memset(ctx->ps, 0, sizeof(ctx->ps)); in ota_service_param_reset() [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/duktape/ |
A D | duktape.h | 534 #define duk_throw(ctx) \ argument 712 #define duk_push_literal(ctx,cstring) duk_push_string((ctx), (cstring)) argument 736 #define duk_push_thread(ctx) \ argument 837 duk_is_function((ctx), (idx)) 1069 #define duk_get_prop_literal(ctx,obj_idx,key) duk_get_prop_string((ctx), (obj_idx), (key)) argument 1080 #define duk_put_prop_literal(ctx,obj_idx,key) duk_put_prop_string((ctx), (obj_idx), (key)) argument 1091 #define duk_del_prop_literal(ctx,obj_idx,key) duk_del_prop_string((ctx), (obj_idx), (key)) argument 1116 #define duk_get_global_literal(ctx,key) duk_get_global_string((ctx), (key)) argument 1125 #define duk_put_global_literal(ctx,key) duk_put_global_string((ctx), (key)) argument 1241 #define duk_eval(ctx) \ argument [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/network/wifi/ |
A D | module_wifi.c | 42 duk_pop(ctx); in js_cb_wifi_conn_status() 43 be_unref(ctx, js_cb_ref); in js_cb_wifi_conn_status() 44 duk_gc(ctx, 0); in js_cb_wifi_conn_status() 76 if (!duk_is_string(ctx, 0) || !duk_is_string(ctx, 1) || in native_wifi_connect() 89 duk_dup(ctx, 2); in native_wifi_connect() 99 duk_push_int(ctx, ret); in native_wifi_connect() 130 memcpy(info.mask, duk_get_string(ctx, -4), strlen(duk_get_string(ctx, -4))); in native_wifi_set_ifconfig() 131 memcpy(info.gw, duk_get_string(ctx, -3), strlen(duk_get_string(ctx, -3))); in native_wifi_set_ifconfig() 133 memcpy(info.mac, duk_get_string(ctx, -1), strlen(duk_get_string(ctx, -1))); in native_wifi_set_ifconfig() 170 duk_push_object(ctx); in native_wifi_get_ifconfig() [all …]
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testgl2.c | 40 static GL_Context ctx; variable 110 ctx.glBegin(GL_QUADS); in Render() 113 ctx.glColor3fv(color[0]); in Render() 114 ctx.glVertex3fv(cube[0]); in Render() 115 ctx.glColor3fv(color[1]); in Render() 116 ctx.glVertex3fv(cube[1]); in Render() 117 ctx.glColor3fv(color[2]); in Render() 118 ctx.glVertex3fv(cube[2]); in Render() 204 ctx.glEnd(); in Render() 372 ctx.glLoadIdentity(); in main() [all …]
|
/AliOS-Things-master/components/py_engine/modules/mqtt/ |
A D | module_mqtt.c | 25 be_push_ref(ctx, in mqtt_handle_notify() 32 duk_pop(ctx); in mqtt_handle_notify() 41 duk_gc(ctx, 0); in mqtt_handle_notify() 90 if (!duk_is_object(ctx, 0) || !duk_is_function(ctx, 1)) { in native_mqtt_start() 104 if (!duk_is_string(ctx, -6) || !duk_is_number(ctx, -5) || in native_mqtt_start() 105 !duk_is_string(ctx, -4) || !duk_is_string(ctx, -3) || in native_mqtt_start() 106 !duk_is_string(ctx, -2) || !duk_is_number(ctx, -1)) { in native_mqtt_start() 163 if (!duk_is_pointer(ctx, 0) || !duk_is_object(ctx, 1) || in native_mqtt_subscribe() 178 if (!duk_is_number(ctx, -1) || !duk_is_string(ctx, -2)) { in native_mqtt_subscribe() 211 if (!duk_is_pointer(ctx, 0) || !duk_is_string(ctx, 1) || in native_mqtt_unsubscribe() [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/network/mqtt/ |
A D | module_mqtt.c | 30 duk_pop(ctx); in mqtt_handle_notify() 38 duk_gc(ctx, 0); in mqtt_handle_notify() 86 if (!duk_is_object(ctx, 0) || !duk_is_function(ctx, 1)) in native_mqtt_start() 101 if (!duk_is_string(ctx, -6) || !duk_is_number(ctx, -5) || in native_mqtt_start() 102 !duk_is_string(ctx, -4) || !duk_is_string(ctx, -3) || in native_mqtt_start() 103 !duk_is_string(ctx, -2) || !duk_is_number(ctx, -1)) in native_mqtt_start() 158 if (!duk_is_pointer(ctx, 0) || !duk_is_object(ctx, 1) || !duk_is_function(ctx, 2)) { in native_mqtt_subscribe() 172 if (!duk_is_number(ctx, -1) || !duk_is_string(ctx, -2)) in native_mqtt_subscribe() 206 if (!duk_is_pointer(ctx, 0) || !duk_is_string(ctx, 1) || !duk_is_function(ctx, 2)) { in native_mqtt_unsubscribe() 247 if (!duk_is_pointer(ctx, 0) || !duk_is_object(ctx, 1) || !duk_is_function(ctx, 2)) { in native_mqtt_publish() [all …]
|
/AliOS-Things-master/components/SDL2/src/render/opengl/ |
A D | SDL_shaders_gl.c | 393 ctx->glGetError(); in CompileShaderProgram() 452 GL_ShaderContext *ctx; in GL_CreateShaderContext() local 456 ctx = (GL_ShaderContext *)SDL_calloc(1, sizeof(*ctx)); in GL_CreateShaderContext() 457 if (!ctx) { in GL_CreateShaderContext() 487 if (ctx->glGetError && in GL_CreateShaderContext() 506 SDL_free(ctx); in GL_CreateShaderContext() 512 if (!CompileShaderProgram(ctx, i, &ctx->shaders[i])) { in GL_CreateShaderContext() 519 return ctx; in GL_CreateShaderContext() 525 ctx->glUseProgramObjectARB(ctx->shaders[shader].program); in GL_SelectShader() 534 DestroyShaderProgram(ctx, &ctx->shaders[i]); in GL_DestroyShaderContext() [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/cellular/ |
A D | module_cellular.c | 49 JS_SetPropertyStr(ctx, obj, "imsi", JS_NewString(ctx, sim_info.imsi)); in native_cellular_get_simInfo() 50 JS_SetPropertyStr(ctx, obj, "imei", JS_NewString(ctx, sim_info.imei)); in native_cellular_get_simInfo() 51 JS_SetPropertyStr(ctx, obj, "iccid", JS_NewString(ctx, sim_info.iccid)); in native_cellular_get_simInfo() 80 JS_SetPropertyStr(ctx, obj, "cellid", JS_NewInt32(ctx, locator_info.cellid)); in native_cellular_get_locatorInfo() 81 JS_SetPropertyStr(ctx, obj, "lac", JS_NewInt32(ctx, locator_info.lac)); in native_cellular_get_locatorInfo() 82 JS_SetPropertyStr(ctx, obj, "mcc", JS_NewString(ctx, locator_info.mcc)); in native_cellular_get_locatorInfo() 83 JS_SetPropertyStr(ctx, obj, "mnc", JS_NewString(ctx, locator_info.mnc)); in native_cellular_get_locatorInfo() 84 JS_SetPropertyStr(ctx, obj, "signal", JS_NewInt32(ctx, locator_info.signal)); in native_cellular_get_locatorInfo() 110 JS_SetPropertyStr(ctx, obj, "lac", JS_NewInt32(ctx, locator_info[i].lac)); in cellInfo_receive_callback() 111 JS_SetPropertyStr(ctx, obj, "mcc", JS_NewString(ctx, locator_info[i].mcc)); in cellInfo_receive_callback() [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/advanced/paybox/ |
A D | module_paybox.c | 120 duk_pop(ctx); in native_paybox_event_notify() 122 duk_gc(ctx, 0); in native_paybox_event_notify() 155 duk_pop(ctx); in native_paybox_event_init_notify() 157 duk_gc(ctx, 0); in native_paybox_event_init_notify() 189 duk_pop(ctx); in native_paybox_event_login_notify() 191 duk_gc(ctx, 0); in native_paybox_event_login_notify() 240 duk_pop(ctx); in native_paybox_event_trade_notify() 242 duk_gc(ctx, 0); in native_paybox_event_trade_notify() 376 if (!duk_is_string(ctx, -3) || !duk_is_string(ctx, -2) || in native_paybox_open() 397 if (!duk_is_string(ctx, -2) || !duk_is_string(ctx, -1)) in native_paybox_open() [all …]
|