ad upgrade
ad upgrade code update
This commit is contained in:
@@ -230,39 +230,21 @@ public class OnAdasListenerAdapter implements OnAdasListener {
|
||||
*/
|
||||
@Override
|
||||
public void onUpgradeStateInfo(IPCUpgradeStateInfo info) {
|
||||
// if(info!=null){
|
||||
// Logger.d(TAG,"onUpgradeStateInfo : "+info.getUpgradeStatus());
|
||||
// boolean upgradeStatus=false;//工控机升级状态,true代表升级成功 false代表升级失败,默认为false
|
||||
// if(info.getUpgradeStatus() == IPCUpgradeStateInfo.Status.SUCCESSFUL.code){
|
||||
// upgradeStatus=true;//升级成功
|
||||
// //升级结束确认
|
||||
// AdasManager.getInstance().sendBaseInfo(IPCUpgradeInfo.upgradeFinishAffirm());
|
||||
// }else if(info.getUpgradeStatus() == IPCUpgradeStateInfo.Status.FAILED.code){
|
||||
// upgradeStatus=false;//升级失败
|
||||
// }
|
||||
// Logger.d(TAG,"onUpgradeStateInfo : "+(upgradeStatus ? "升级成功" :"升级失败"));
|
||||
// CallerHmiManager.INSTANCE.showAdUpgradeStatus(upgradeStatus);
|
||||
// }else{
|
||||
// Logger.d(TAG,"onUpgradeStateInfo : upgrade status info is null");
|
||||
// }
|
||||
if(info != null){
|
||||
Logger.d(TAG,"onUpgradeStateInfo "+
|
||||
" upgrade mode="+info.getUpgradeMode()+
|
||||
" download status="+info.getDownloadStatus()+
|
||||
" download progress current="+info.getProgress().getCurrent()+
|
||||
" download progress total="+info.getProgress().getTotal()+
|
||||
" download version="+info.getImages()+
|
||||
" upgrade status="+info.getUpgradeStatus());
|
||||
CallerHmiManager.INSTANCE.showAdUpgradeStatus(info.getUpgradeMode(),info.getDownloadStatus(),info.getProgress().getCurrent(),
|
||||
info.getProgress().getTotal(),info.getImages(),info.getUpgradeStatus());
|
||||
}else{
|
||||
Logger.d(TAG,"onUpgradeStateInfo : upgrade state info is null");
|
||||
}
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 工控机下载状态
|
||||
// * @param info 工控机升级包下载进度
|
||||
// */
|
||||
// @Override
|
||||
// public void onUpgradePatchDownloadStatus(IPCUpgradePatchDownloadStatusInfo info) {
|
||||
// if(info!=null){
|
||||
// Logger.d(TAG,"onUpgradePatchDownloadStatus : status="+info.getDownloadStatus() +
|
||||
// " version="+info.getDownloadVersion()+ " progress="+info.getDownloadProgress());
|
||||
// CallerHmiManager.INSTANCE.showAdDownloadStatus(info.getDownloadVersion(),info.getDownloadStatus(),info.getDownloadProgress());
|
||||
// }else{
|
||||
// Logger.d(TAG,"onUpgradePatchDownloadStatus : download status info is null");
|
||||
// }
|
||||
//
|
||||
// }
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user