DBC_ASSERT 示例代码

2022-03-03

以下示例是关于cpp中包含DBC_ASSERT用法的示例代码,想了解DBC_ASSERT的具体用法?DBC_ASSERT怎么用?DBC_ASSERT使用的例子?那么可以参考以下10个相关示例代码来学习它的具体使用方法。

示例1:
isp_state_controlling.cpp开发语言: C++项目名称: AndroidOpenSourceSnda代码行数: 889
126	    default:
127	        DBC_ASSERT(0);
128	        break;
139	       OstTraceFiltStatic0(TRACE_ERROR, "ControlingISPState-ISP_POLLING_TIMEOUT_ERROR;", (&mENSComponent));
140	       DBC_ASSERT(0);
141	   }
144	       OstTraceFiltStatic0(TRACE_ERROR, "ControlingISPState-ISP_DOES_NOT_RESPOND_ERROR;", (&mENSComponent));
145	       DBC_ASSERT(0);
146	   }
150	       OstTraceFiltStatic0(TRACE_ERROR, "ControlingISP-ISP_DOES_NOT_RESPOND_ERROR;", (&mENSComponent));
151	       DBC_ASSERT(0);
152	   }*/
236				default:
237				DBC_ASSERT(0);
238				break;
示例2:
sw3A_component_manager.cpp开发语言: C++项目名称: AndroidOpenSourceSnda代码行数: 1207
443        OstTraceFiltStatic0(TRACE_ERROR, "Error: invalid flash driver handle.", (mTraceObject));
444        DBC_ASSERT(0);
445        return OMX_ErrorBadParameter;
637        default: // Unknown event. Do nothing.
638            DBC_ASSERT(0);
639            err = OMX_ErrorNotReady;
702    if (pBuf != NULL) {
703        DBC_ASSERT(pBuf->size == sizeof(IFM_DAMPERS_DATA));
704        pRet = (IFM_DAMPERS_DATA *) pBuf->pData;
719    if (pBuf != NULL) {
720        DBC_ASSERT(pBuf->size == sizeof(OMX_SYMBIAN_CAPTUREPARAMETERSTYPE));
721        pRet = (OMX_SYMBIAN_CAPTUREPARAMETERSTYPE *) pBuf->pData;
736    if (pBuf != NULL) {
737        DBC_ASSERT(pBuf->size == sizeof(OMX_STE_CAPTUREPARAMETERSTYPE));
738        pRet = (OMX_STE_CAPTUREPARAMETERSTYPE *) pBuf->pData;
示例3:
ENS_Component_Fsm.cpp开发语言: C++项目名称: AndroidOpenSourceSnda代码行数: 1962
248            default:
249                DBC_ASSERT(0);
250                break;
371                        ENS_Port_Fsm *portfsm = getPortFsm(data2);
372                        DBC_ASSERT(portfsm);
373                        portfsm->dispatch(&evtPort);
393                        ENS_Port_Fsm *portfsm = getPortFsm(data2);
394                        DBC_ASSERT(portfsm);
395                        portfsm->dispatch(&evt);
414                        ENS_Port_Fsm *portfsm = getPortFsm(data2);
415                        DBC_ASSERT(portfsm);
416                        portfsm->dispatch(&evt);
487            OstTraceFiltInst0(TRACE_ERROR, "ENS_PROXY: ENS_Component_Fsm: setTransientState from Idle state assert");
488            DBC_ASSERT(0);
489        }
示例4:
boot_statemachine.cpp开发语言: C++项目名称: AndroidOpenSourceSnda代码行数: 1722
77		{
78			DBC_ASSERT(0); // TBD : not yet managed !
79			/* in that particular case it could not occur */
163				OstTraceFiltStatic0(TRACE_ERROR, "CAM_SM::PreBooting - ERROR: could not get primary GPIO", (&mENSComponent));
164				DBC_ASSERT(e_ret);
165			}
170				OstTraceFiltStatic0(TRACE_ERROR, "CAM_SM::PreBooting - ERROR: could not get secondary GPIO", (&mENSComponent));
171				DBC_ASSERT(e_ret);
172			}
264                // Sanity check
265                DBC_ASSERT(iSensorModesSize);                                           // Must exist
266                DBC_ASSERT(iSensorModesSize < CAM_SHARED_MEM_CHUNK_SENSOR_MODES_SIZE);  // Must not exceed max allocated size
304                OstTraceFiltStatic1(TRACE_ERROR, "SensorModes: Failed to invalidate shared memory chunk, err=%d", (&mENSComponent), shmErr);
305                DBC_ASSERT(0);
306                return 0; // Fixme: should return to an error state (break)
示例5:
ENS_Component.cpp开发语言: C++项目名称: AndroidOpenSourceSnda代码行数: 1662
271                    ENS_Port_Fsm * portFsm = getPort(i)->getPortFsm();
272                    DBC_ASSERT(portFsm);
273                    error = portFsm->dispatch(&evt);
281                    ENS_Port_Fsm * portFsm = getPort(nParam)->getPortFsm();
282                    DBC_ASSERT(portFsm);
283                    return portFsm->dispatch(&evt);
298                    ENS_Port_Fsm * portFsm = getPort(i)->getPortFsm();
299                    DBC_ASSERT(portFsm);
300                    error = portFsm->dispatch(&evt);
308                    ENS_Port_Fsm * portFsm = getPort(nParam)->getPortFsm();
309                    DBC_ASSERT(portFsm);
310                    return portFsm->dispatch(&evt);
325                    ENS_Port_Fsm * portFsm = getPort(i)->getPortFsm();
326                    DBC_ASSERT(portFsm);
327                    error = portFsm->dispatch(&evt);
示例6:
ENS_Port.cpp开发语言: C++项目名称: AndroidOpenSourceSnda代码行数: 1342
455
456		DBC_ASSERT((mBufHdrTablePtr[i].mBufHdrStatus & ENS_PORT_BUFFER_ALLOCATED) 
457				   && (mBufHdrTablePtr[i].mBufHdrStatus & ENS_PORT_BUFFER_ATCOMPONENT));
709
710			DBC_ASSERT((mBufHdrTablePtr[i].mBufHdrStatus & ENS_PORT_BUFFER_ALLOCATED)
711						&& (mBufHdrTablePtr[i].mBufHdrStatus & ENS_PORT_BUFFER_ATNEIGHBOR));
742		                error = MMHwBuffer::Close(mSharedChunk);
743		                DBC_ASSERT(error == OMX_ErrorNone);
744		            }
873	OstTraceFiltInst1(TRACE_DEBUG, "ENS_PROXY: ENS_Port:bufferSentToProcessingComp  0x%x", (unsigned int)pBuffer);
874	DBC_ASSERT(OMX_ErrorNone == getBufferHdrTableIndex(pBuffer,i));
875	DBC_ASSERT((mBufHdrTablePtr[i].mBufHdrStatus & ENS_PORT_BUFFER_ALLOCATED)
884	OstTraceFiltInst1(TRACE_DEBUG, "ENS_PROXY: ENS_Port:bufferReturnedFromProcessingComp  0x%x", (unsigned int)pBuffer);
885	DBC_ASSERT(OMX_ErrorNone == getBufferHdrTableIndex(pBuffer,i));
886	DBC_ASSERT((mBufHdrTablePtr[i].mBufHdrStatus & ENS_PORT_BUFFER_ALLOCATED)
示例7:
MixerNmfMpc.cpp开发语言: C++项目名称: AndroidOpenSourceSnda代码行数: 1243
97t_cm_instance_handle MixerNmfMpc::getNmfHandle(OMX_U32 portIdx) const {
98    DBC_ASSERT(portIdx < mENSComponent.getPortCount());
99    return (t_cm_instance_handle) mNmfMain;
102const char * MixerNmfMpc::getNmfSuffix(OMX_U32 portIdx) const {
103    DBC_ASSERT(portIdx < mENSComponent.getPortCount());
104    return suffixItf[portIdx];
341            OstTraceFiltInst2(TRACE_ERROR,"MixerNmfMpc:: an error (0x%x) has occured in fillPortConfigToBeCommitted portId=%d", err, port->getPortIndex());
342            DBC_ASSERT(0);
343        }
397                OstTraceFiltInst2(TRACE_ERROR,"MixerNmfMpc:: an error (0x%x) has occured in fillPortConfig when configuring SRC (AFM_IndexParamSrcMode) on portId=%d", err, nPortIndex);
398                DBC_ASSERT(0);
399            }
405            OstTraceFiltInst2(TRACE_ERROR,"MixerNmfMpc:: an error (0x%x) has occured in fillPortConfig when configuring volctrl (OMX_IndexConfigAudioVolume) on portId=%d", err, nPortIndex);
406            DBC_ASSERT(0);
407        }
示例8:
hsmcam.cpp开发语言: C++项目名称: AndroidOpenSourceSnda代码行数: 456
211                            DBGT_PTRACE("Error from Camera_CtrlLib_GetSizeConfig: Id not found");
212                            DBC_ASSERT(0);
213                            break;
237                        DBGT_PTRACE("Error from Camera_CtrlLib_SetViewfindSize");
238                        DBC_ASSERT(0);
239                    }
243                        DBGT_PTRACE("Error from Camera_CtrlLib_SetProperty CAMCTRL_FRAMERATE");
244                        DBC_ASSERT(0);
245                    }
252                        DBGT_PTRACE("Error from Camera_CtrlLib_StartViewFind");
253                        DBC_ASSERT(0);
254                    }
277                    DBGT_PTRACE("ProcessPendingEvents-WHITE_BALANCE_SIG;");
278                    DBC_ASSERT(0);
279                    break;
示例9:
camera.cpp开发语言: C++项目名称: AndroidOpenSourceSnda代码行数: 4435
132			default :
133				DBC_ASSERT(0);
134
174        {
175            DBC_ASSERT(0);
176        }
301            {
302                DBC_ASSERT(0);
303            }
310                {
311                    DBC_ASSERT(0);
312                }
319                {
320                    DBC_ASSERT(0);
321                }
示例10:
VFM_ParamAndConfig.cpp开发语言: C++项目名称: AndroidOpenSourceSnda代码行数: 1302
592			             errorCode = OMX_ErrorBadParameter;
593						 DBC_ASSERT(0==1);
594					}
632					errorCode = OMX_ErrorBadParameter;
633					DBC_ASSERT(0==1);
634				}
1030        mLast = (mLast + 1) % mMaxTsBuffers;
1031        DBC_ASSERT(mLast != mFirst);
1032
1044    if (mEnable && pBuffer->nFilledLen!=0) {
1045        DBC_ASSERT(mLast != mFirst);
1046        OMX_TICKS ts = mTimestamp[mFirst];
1155        for (OMX_U32 i=0; i<mMaxiOMXBuffers; i++) {
1156            DBC_ASSERT(mBufferiOMX[nPort][i] == 0);
1157            DBC_ASSERT(mBufferApplication[nPort][i] == 0);

本文地址:https://www.itbaoku.cn/snippets/415941.html