|
@@ -115,7 +115,8 @@ void CSelfCheckerFSM::s0_on_entry()
|
|
|
CSmartPointer<IEntityFunctionPrivilege> pFuncPrivilege = pFunc.ConvertCase<IEntityFunctionPrivilege>();
|
|
|
CEntityRunInfo runInfo;
|
|
|
eErr = pFunc->GetEntityRunInfo(tmpNames[i], runInfo);
|
|
|
- if (runInfo.eState != EntityState_NoStart)
|
|
|
+ if (runInfo.eState != EntityState_NoStart
|
|
|
+ || tmpNames[i] == "Download" || tmpNames[i] == "UpgradeRun" || tmpNames[i] == "UpgradeManager")
|
|
|
{
|
|
|
Dbg("Add entity %s",(const char*)tmpNames[i]);
|
|
|
m_allEntity.push_back(tmpNames[i]);
|
|
@@ -729,7 +730,9 @@ void CSelfCheckerFSM::DoOnClosed(const char *pszEntityName,EntityCloseCauseEnum
|
|
|
if(!strncmp(pszEntityName,*it,it->GetLength()))
|
|
|
{
|
|
|
Dbg("onclosed %s",pszEntityName);
|
|
|
- m_activeEntity.erase(it);
|
|
|
+ //oilyang@20210425 as almost all entity's start configure have been set to 0(can be ignored)
|
|
|
+ //no need to erase the m_activeEntity any more
|
|
|
+ //m_activeEntity.erase(it);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -771,20 +774,14 @@ void CSelfCheckerFSM::OnAnswer(CSmartPointer<IAsynWaitSp> pAsynWaitSp)
|
|
|
ErrorCodeEnum eErr;
|
|
|
CSmartPointer<IEntityFunction> pFunc = GetEntityBase()->GetFunction();
|
|
|
CSmartPointer<IEntityFunctionPrivilege> pFuncPrivilege = pFunc.ConvertCase<IEntityFunctionPrivilege>();
|
|
|
- //TODO(Gifur@20210507) Linux Platform has no IEBrowser!!
|
|
|
- CEntityRunInfo ieInfo;
|
|
|
- eErr = pFunc->GetEntityRunInfo("IEBrowser",ieInfo);
|
|
|
- const bool bIEStarted = (eErr == Error_Succeed && ieInfo.eState != EntityState_NoStart);
|
|
|
-
|
|
|
if (_strnicmp("MediaController", (const char*)new_entry->EntityName, strlen("MediaController")) == 0
|
|
|
- && !bIEStarted)
|
|
|
+ && !m_bEverInMainPage)
|
|
|
{
|
|
|
Dbg("On loading stage,don't process MediaController exception.");
|
|
|
}
|
|
|
- else {
|
|
|
- //ExceptionErrorProcess(new_entry->EntityName,new_entry->ErrorResult);
|
|
|
- Proc((const char*)new_entry->EntityName, ProcType_Shake, new_entry->ErrorResult);
|
|
|
- }
|
|
|
+ else
|
|
|
+ //ExceptionErrorProcess(new_entry->EntityName,new_entry->ErrorResult);
|
|
|
+ Proc((const char*)new_entry->EntityName,ProcType_Shake,new_entry->ErrorResult);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -1490,9 +1487,11 @@ ErrorCodeEnum CSelfCheckerFSM::ExceptionErrorProcessXml(ProcType eType, const ch
|
|
|
}
|
|
|
//oilyang@20200403
|
|
|
//for fwb test,PinPad&CardSwiper can't be stop immediately
|
|
|
+ //huchen@20210220,SIPPhone can't be stop immediately
|
|
|
if (_strnicmp("PinPad", pszEntityName, strlen("PinPad")) == 0
|
|
|
|| _strnicmp("CardSwiper", pszEntityName, strlen("CardSwiper")) == 0
|
|
|
- || _strnicmp("Sensors", pszEntityName, strlen("Sensors")) == 0
|
|
|
+ //oilyang@20210220 for huchen add SIPPhone
|
|
|
+ || _strnicmp("SIPPhone", pszEntityName, strlen("SIPPhone")) == 0
|
|
|
|| _strnicmp("IDCertificate", pszEntityName, strlen("IDCertificate")) == 0
|
|
|
|| _strnicmp("FingerPrint", pszEntityName, strlen("FingerPrint")) == 0
|
|
|
|| _strnicmp("DeviceControl", pszEntityName, strlen("DeviceControl")) == 0)
|