当前位置: 首页>>代码示例>>C++>>正文


C++ MMI_TRACE函数代码示例

本文整理汇总了C++中MMI_TRACE函数的典型用法代码示例。如果您正苦于以下问题:C++ MMI_TRACE函数的具体用法?C++ MMI_TRACE怎么用?C++ MMI_TRACE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了MMI_TRACE函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: vm_preload_cancel

VMINT vm_preload_cancel(VMINT hdl)
{
    vm_preload_ctx_t * ctx_p = NULL;
    VMINT bufSize = 0;
    MMI_TRACE(MMI_MRE_TRC_MOD_VMSOCK, TRC_MRE_VMSOCK_3068 );

    if (vm_res_get_data(VM_RES_TYPE_PRELOAD, 
        hdl, (void**)&ctx_p, &bufSize) == 0 && ctx_p != NULL)
    {
        vm_common_t common = {E_PRELOAD_ABORT, NULL};
        common.user_data = ctx_p->user_data;
        MMI_TRACE(MMI_MRE_TRC_MOD_VMSOCK, TRC_MRE_VMSOCK_PRELOAD_S, 2, __LINE__);            
        PRELOAD_PMNG_WRAP_CALLBACK(ctx_p->p_hdl, 
        ctx_p->cb, ctx_p->res_id, (void*)&common);
        //_vm_preload_clean(ctx_p);
        MMI_TRACE(MMI_MRE_TRC_MOD_VMSOCK, TRC_MRE_VMSOCK_PRELOAD_E, 2, __LINE__);            
        _vm_preload_free_ctx(ctx_p);
    }
    
    if (NULL == ctx_p)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMSOCK, TRC_MRE_VMSOCK_3075 );
        return -2;
    }
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMSOCK, TRC_MRE_VMSOCK_3081 );
    return 0;
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:28,代码来源:vmpreload.c

示例2: vm_btspp_bind

/* SPP SERVER USING START*/
VMINT vm_btspp_bind(VMINT res_hd, VMUINT16 uuid)
{
    vm_btspp_context_t * ctx_p = NULL;
    VMINT buf_size = 0;
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_628 );

    // TODO:
    /*
    if (0 == uuid)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_634 );
        return VM_BT_SPP_ERR_BAD_PARAM;
    }
    */
    
    if ((0 != vm_res_get_data(VM_RES_TYPE_BTSPP, 
        res_hd, (void**)&ctx_p, &buf_size)) || NULL == ctx_p)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_642 );
        return VM_BT_SPP_ERR_BAD_PARAM;
    }

    srv_spp_bind((SppHandle)ctx_p->srv_hd, (U32)uuid);
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_648 );

    return VM_BT_SPP_ERR_SUCCESS;
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:30,代码来源:vmbtspp.c

示例3: vm_preload_free_resource

static void vm_preload_free_resource(VM_P_HANDLE process_handle)
{
    VMINT resHandle = 0, bufSize = 0;
    vm_preload_ctx_t * ctx_p = NULL;
    
    while ((resHandle = vm_res_findfirst(process_handle, VM_RES_TYPE_PRELOAD)) 
        != VM_RES_NOT_FIND)
    {
        if (vm_res_get_data(VM_RES_TYPE_PRELOAD, 
            resHandle, (void**)&ctx_p, &bufSize) == 0 && ctx_p != NULL)
        {
            if (ctx_p)
            {
                //_vm_preload_clean(ctx_p);
                vm_common_t common = {E_PRELOAD_ABORT, NULL};
                common.user_data = ctx_p->user_data;
                MMI_TRACE(MMI_MRE_TRC_MOD_VMSOCK, TRC_MRE_VMSOCK_PRELOAD_S, 1, __LINE__);            
                PRELOAD_PMNG_WRAP_CALLBACK(ctx_p->p_hdl, 
                ctx_p->cb, ctx_p->res_id, (void*)&common);
                MMI_TRACE(MMI_MRE_TRC_MOD_VMSOCK, TRC_MRE_VMSOCK_PRELOAD_E, 1, __LINE__);            
                _vm_preload_free_ctx(ctx_p);
            }
        }
        else
        {
        }
        vm_res_release_data(VM_RES_TYPE_PRELOAD, resHandle);
        vm_res_findclose(VM_RES_TYPE_PRELOAD); 
    }
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:30,代码来源:vmpreload.c

示例4: vm_btspp_set_security_level

VMINT vm_btspp_set_security_level(VMINT res_hd, VMINT level)
{
    vm_btspp_context_t * ctx_p = NULL;
    VMINT buf_size = 0;
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_571 );

    // TODO:
/*
    if (0 == level)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_577 );
        return VM_BT_SPP_ERR_BAD_PARAM;
    }
*/
    if ((0 != vm_res_get_data(VM_RES_TYPE_BTSPP, 
        res_hd, (void**)&ctx_p, &buf_size)) || NULL == ctx_p)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_584 );
        return VM_BT_SPP_ERR_BAD_PARAM;
    }
    
    srv_spp_set_security_level((SppHandle)ctx_p->srv_hd, (SppSecurityLevel)level);
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_590 );

    return VM_BT_SPP_ERR_SUCCESS;
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:28,代码来源:vmbtspp.c

示例5: vm_btspp_accept

VMINT vm_btspp_accept(VMINT conn_id,
						void * buf, 
						VMUINT tx_size,
						VMUINT rx_size
						)
{
    vm_btspp_context_t * ctx_p = NULL;
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_661 );

    if (NULL == buf || 0 == tx_size || 0 == rx_size)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_665 );
        return VM_BT_SPP_ERR_BAD_PARAM;
    }

    ctx_p = vm_btspp_get_ctx(conn_id, 1);
    if (NULL == ctx_p)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_672 );
        return VM_BT_SPP_ERR_BAD_PARAM;
    }

    srv_spp_accept((S32)conn_id, buf, (U32)tx_size, (U32)rx_size);
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_678 );

    return VM_BT_SPP_ERR_SUCCESS;
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:29,代码来源:vmbtspp.c

示例6: md5_append

void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes)
{
	VMUINT8 data_out[16];
	STCHE   *md5_ctx_p=NULL;
	VMINT res_id;
	
	md5_ctx_p=vm_get_cheinfo_from_processid(vm_pmng_get_current_handle(),&res_id);	

	if (md5_ctx_p)
	{
		if (pms && data && (nbytes>=0))
		{
			che_process(md5_ctx_p, CHE_MD5, CHE_MODE_NULL, CHE_HASH, (VMUINT8*)data, data_out, nbytes,KAL_FALSE);
		} 
		else
		{	
			MMI_TRACE(MMI_MRE_TRC_ERROR, TRC_MRE_VMMD5_247 );
		}
	} 
	else
	{
		MMI_TRACE(MMI_MRE_TRC_ERROR, TRC_MRE_VMMD5_250 );
	}
	
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:25,代码来源:vmmd5.c

示例7: vm_btspp_get_dev_addr

VMINT vm_btspp_get_dev_addr(VMINT conn_id, vm_srv_bt_cm_bt_addr * bt_addr)
{
    vm_btspp_context_t * ctx_p = NULL;
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_544 );

    if (NULL == bt_addr)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_548 );
        return VM_BT_SPP_ERR_BAD_PARAM;
    }

    ctx_p = vm_btspp_get_ctx(conn_id, 1);
    if (NULL == ctx_p)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_555 );
        return VM_BT_SPP_ERR_BAD_PARAM;
    }

    srv_spp_get_dev_addr((U32)conn_id, (srv_bt_cm_bt_addr *)bt_addr);
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_561 );

    return VM_BT_SPP_ERR_SUCCESS;
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:25,代码来源:vmbtspp.c

示例8: vm_btspp_connect_ex

VMINT vm_btspp_connect_ex(VMINT res_hd, 
						const vm_srv_bt_cm_bt_addr * bt_addr,
						void * buf,
						VMUINT tx_size,
						VMUINT rx_size,
						vm_srv_spp_connect_type conn_type, 
						VMUINT16 uuid)
{
    vm_btspp_context_t * ctx_p = NULL;
    VMINT buf_size = 0;
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_753 );

    if (NULL == bt_addr || 
        NULL == buf ||
        (SRV_SPP_MIN_BUFF_SIZE / 2) < tx_size ||
        (SRV_SPP_MIN_BUFF_SIZE / 2) < rx_size)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_760 );
        return VM_BT_SPP_ERR_BAD_PARAM;
    }

    if ((0 != vm_res_get_data(VM_RES_TYPE_BTSPP, 
        res_hd, (void**)&ctx_p, &buf_size)) || NULL == ctx_p)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_767 );
        return VM_BT_SPP_ERR_BAD_PARAM;
    }

    srv_spp_connect_ex((SppHandle)ctx_p->srv_hd, (U32)uuid, (srv_bt_cm_bt_addr *)bt_addr, buf, (U32)tx_size, (U32)rx_size, (srv_spp_connect_type)conn_type);
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_773 );
    return VM_BT_SPP_ERR_SUCCESS;
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:34,代码来源:vmbtspp.c

示例9: vm_tls_shutdown

VMINT vm_tls_shutdown(VMINT res_id)
{
    kal_int32 ret;
    vm_tls_context_t * ctx_p = NULL;

    MMI_TRACE(TRACE_GROUP_8, TRC_MRE_SSL_S, 5, __LINE__);
    
    ctx_p = vm_tls_get_ctx_by_res(res_id);
    if (NULL == ctx_p)
    {
        MMI_TRACE(TRACE_GROUP_8, TRC_MRE_SSL_E1, 5, __LINE__);
        return VM_TLS_RET_BASE -2;
    }

    ret = tls_shutdown(ctx_p->soc_id);
    if (TLS_ERR_NONE != ret)
    {
        MMI_TRACE(TRACE_GROUP_8, TRC_MRE_SSL_E2, 5, ret);
        return ret;
    }

    MMI_TRACE(TRACE_GROUP_8, TRC_MRE_SSL_S, 5, ret);
    
    return ret;
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:25,代码来源:vmtls.c

示例10: vm_btspp_read

VMINT vm_btspp_read(VMUINT conn_id, void * buf, VMUINT size)
{
    vm_btspp_context_t * ctx_p = NULL;
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_520 );

    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_LOG, 
    conn_id,
    size, 
    4, __LINE__ );
    
    if (NULL == buf || 0 == size)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_524 );
        return VM_BT_SPP_ERR_BAD_PARAM;
    }

    ctx_p = vm_btspp_get_ctx(conn_id, 1);
    if (NULL == ctx_p)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_531 );
        return VM_BT_SPP_ERR_BAD_PARAM;
    }

    return (VMINT)srv_spp_read((U32)conn_id, buf, (U32)size);
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_537 );
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:28,代码来源:vmbtspp.c

示例11: vm_tls_delete_ctx

VMINT vm_tls_delete_ctx(VMINT res_id)
{
    kal_int32 ret;
    vm_tls_context_t * ctx_p = NULL;

    MMI_TRACE(TRACE_GROUP_8, TRC_MRE_SSL_S, 21, __LINE__);
    ctx_p = vm_tls_get_ctx_by_res(res_id);
    if (NULL == ctx_p)
    {
        MMI_TRACE(TRACE_GROUP_8, TRC_MRE_SSL_E1, 21, __LINE__);
        return VM_TLS_RET_BASE -2;
    }

    ret = tls_delete_ctx(ctx_p->tls_ctx);
    vm_tls_free_ctx(ctx_p);

    
    if (0 == --g_ref_count)
    {
        mmi_frm_clear_protocol_event_handler(MSG_ID_APP_SOC_NOTIFY_IND, (PsIntFuncPtr)vm_tls_notify_cb);
        mmi_frm_clear_protocol_event_handler(MSG_ID_APP_TLS_NOTIFY_IND, (PsIntFuncPtr)vm_tls_notify_ind);
        mmi_frm_clear_protocol_event_handler(MSG_ID_APP_TLS_ALERT_IND, (PsIntFuncPtr)vm_tls_alert_ind);
        mmi_frm_clear_protocol_event_handler(MSG_ID_APP_TLS_INVALID_CERT_IND, (PsIntFuncPtr)vm_tls_invalid_cert_ind);
        mmi_frm_clear_protocol_event_handler(MSG_ID_APP_TLS_CLIENT_AUTH_IND, (PsIntFuncPtr)vm_tls_client_auth_ind);
        MMI_TRACE(TRACE_GROUP_8, TRC_MRE_SSL_E2, 21, __LINE__);
    }

    MMI_TRACE(TRACE_GROUP_8, TRC_MRE_SSL_E, 21, ret);
    return ret;
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:30,代码来源:vmtls.c

示例12: md5_finish

void md5_finish(md5_state_t *pms, md5_byte_t digest[16])
{
	STCHE   *md5_ctx_p=NULL;
	VMINT res_id;
	
	md5_ctx_p=vm_get_cheinfo_from_processid(vm_pmng_get_current_handle(),&res_id);
	
	if (md5_ctx_p)
	{
		if (pms && digest )
		{
			che_process(md5_ctx_p, CHE_MD5, CHE_MODE_NULL, CHE_HASH, NULL, digest, 0, KAL_TRUE);
			che_deinit(md5_ctx_p);
		} 
		else
		{
			MMI_TRACE(MMI_MRE_TRC_ERROR, TRC_MRE_VMMD5_274 );
		}
		
		vm_free(md5_ctx_p);
		md5_ctx_p=NULL;

		vm_res_release_data(VM_RES_TYPE_MD5,res_id);
	}
	else
	{
		MMI_TRACE(MMI_MRE_TRC_ERROR, TRC_MRE_VMMD5_282 );	
	}
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:29,代码来源:vmmd5.c

示例13: vm_common_ui_cancel

VMINT vm_common_ui_cancel(VMINT common_ui_id)
{
    VMINT res_node_size = 0;
    vm_common_ui_res_struct *res_p = NULL;
    VM_P_HANDLE phandle = -1;
    VM_P_HANDLE curr_phandle = vm_pmng_get_app_handle();	
	VMINT grp_id;

    if ((phandle = vm_res_get_process_handle(VM_RES_TYPE_COMMON_UI, common_ui_id)) < 0)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_COMMONUI, TRC_MRE_COMMON_UI_CANCEL_GET_PRO_FAIL, common_ui_id); 
        return VM_COMMON_UI_ERROR_INVALID_ID;
    }
	
    if (curr_phandle > 0)   /* app, not engine */
    {
        if (phandle != curr_phandle)    /* application A can not cancel alarm belongs to application B */
		{
            MMI_TRACE(MMI_MRE_TRC_MOD_COMMONUI, TRC_MRE_COMMON_UI_CANCEL_FROM_OTHER_PROCESS, phandle, curr_phandle); 
            return VM_COMMON_UI_ERROR_OF_PROCESS;
        }
    }

    if (vm_res_get_data(VM_RES_TYPE_COMMON_UI, common_ui_id, (void **)&res_p, &res_node_size) < VM_RES_OK)
	{
		MMI_TRACE(MMI_MRE_TRC_MOD_COMMONUI, TRC_MRE_COMMON_UI_CANCEL_GET_RES_FAIL, common_ui_id); 
		return VM_COMMON_UI_ERROR;
	}

	grp_id = res_p->grp_id;

    vm_nmgr_confirm_popup_cancel(grp_id);

    return VM_COMMON_UI_OK;	
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:35,代码来源:vmsalui.c

示例14: vm_btspp_set_service_name

VMINT vm_btspp_set_service_name(VMINT res_hd, VMWCHAR * name)
{
    vm_btspp_context_t * ctx_p = NULL;
    VMINT buf_size = 0;
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_600 );

    if (NULL == name)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_604 );
        return VM_BT_SPP_ERR_BAD_PARAM;
    }

    if ((0 != vm_res_get_data(VM_RES_TYPE_BTSPP, 
        res_hd, (void**)&ctx_p, &buf_size)) || NULL == ctx_p)
    {
        MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_611 );
        return VM_BT_SPP_ERR_BAD_PARAM;
    }

    srv_spp_set_service_name((SppHandle)ctx_p->srv_hd, (WCHAR *)name);
    
    MMI_TRACE(MMI_MRE_TRC_MOD_VMBTSPP, TRC_MRE_VMBTSPP_617 );

    return VM_BT_SPP_ERR_SUCCESS;
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:26,代码来源:vmbtspp.c

示例15: vm_tls_notify_cb

static MMI_BOOL vm_tls_notify_cb(void *msg)
{
    app_soc_notify_ind_struct* ind = (app_soc_notify_ind_struct*)msg;
    vm_tls_context_t * ctx_p = NULL;

    vm_tls_soc_notify_ind_struct cb_data = {0};
    
    MMI_TRACE(TRACE_GROUP_8, TRC_MRE_SSL_S, 26, __LINE__);
    if (NULL == ind)
    {
        MMI_TRACE(TRACE_GROUP_8, TRC_MRE_SSL_E1, 26, __LINE__);
        return MMI_FALSE;
    }

    ctx_p = vm_tls_get_ctx_by_soc(ind->socket_id);
    if (NULL == ctx_p)
    {
        MMI_TRACE(TRACE_GROUP_8, TRC_MRE_SSL_E2, 26, __LINE__);
        return MMI_FALSE;
    }

    
    cb_data.msg = VM_MSG_ID_APP_SOC_NOTIFY_IND;
    cb_data.res_id = ctx_p->res_id;
    cb_data.soc_id = ctx_p->soc_id;
    cb_data.event_type = (VMINT)ind->event_type;
    cb_data.result = (VMINT)ind->result;
    cb_data.error_cause = (VMINT)ind->error_cause;
    cb_data.detail_cause = (VMINT)ind->detail_cause;
    
    MMI_TRACE(TRACE_GROUP_8, TRC_MRE_DLS_LOG, 
        cb_data.res_id,
        cb_data.soc_id,
        cb_data.event_type,
        cb_data.result,
        cb_data.error_cause,
        cb_data.detail_cause,
        26, __LINE__);
    
    PMNG_WRAP_CALLBACK(ctx_p->p_hdl, 
        (ctx_p->cb)((vm_tls_event_struct*)&cb_data));
    
    switch (ind->event_type)
    {
    case SOC_WRITE:
        {}break;
    case SOC_READ:
        {}break;
    case SOC_CONNECT:
        {
            //tls_handshake(ind->socket_id);
        }break;
    case SOC_CLOSE:
        {}break;

    }
    MMI_TRACE(TRACE_GROUP_8, TRC_MRE_SSL_E, 26, __LINE__);
    return MMI_TRUE;
}
开发者ID:WayWingsDev,项目名称:testmywatch,代码行数:59,代码来源:vmtls.c


注:本文中的MMI_TRACE函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。