|
@@ -24,6 +24,7 @@ import com.artncore.wallpadapi.RealTimeMeterAPI;
|
|
|
import com.artncore.wallpadapi.SdbAPI;
|
|
|
import com.artncore.wallpadapi.WallPadAPI;
|
|
|
import com.artncore.wallpadapi.WallPadDevAPI;
|
|
|
+import com.util.LogUtil;
|
|
|
|
|
|
import kr.co.icontrols.wallpadenergyctrl.MainActivity;
|
|
|
import kr.co.icontrols.wallpadenergyctrl.R;
|
|
@@ -169,9 +170,13 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
ViewRegistration(getLayout(), TXT_MeasuredValue_Elec, Common.ImgPosion.GetX(nX + 2), Common.ImgPosion.GetY(nY + 62));
|
|
|
}
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] SubDeviceView(int nX, int nY, int nIndex, String strSubDeviceName)");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -232,9 +237,14 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
TXT_MeasuredValue_Elec.setText(strValue);
|
|
|
|
|
|
return true;
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] drawMeasuredValue_Elec(double dValue)");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
@@ -251,20 +261,26 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
this.bDeviceOnOff = true;
|
|
|
|
|
|
TXT_TITLE.setTextColor(Color.rgb(0xff, 0x7d, 0x00)); // 주황색
|
|
|
- TXT_MeasuredValue_Elec.setTextColor(Color.rgb(0xff, 0x7d, 0x00));
|
|
|
+ if(TXT_MeasuredValue_Elec!=null)
|
|
|
+ TXT_MeasuredValue_Elec.setTextColor(Color.rgb(0xff, 0x7d, 0x00));
|
|
|
IMG_BACKGROUND.setButtonRearImage(); // 켜짐
|
|
|
}
|
|
|
else {
|
|
|
this.bDeviceOnOff = false;
|
|
|
|
|
|
TXT_TITLE.setTextColor(Color.rgb(0xff, 0xff, 0xff)); // 흰색
|
|
|
- TXT_MeasuredValue_Elec.setTextColor(Color.rgb(0xff, 0xff, 0xff));
|
|
|
+ if(TXT_MeasuredValue_Elec!=null)
|
|
|
+ TXT_MeasuredValue_Elec.setTextColor(Color.rgb(0xff, 0xff, 0xff));
|
|
|
IMG_BACKGROUND.setButtonFrontImage(); // 꺼짐
|
|
|
}
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] drawSubDeviceStatus(boolean bOnOff)");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -439,9 +455,13 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
registerDeviceBR(true, DEV_KIND.SMART_DISTRIBUTION);
|
|
|
registerDeviceBR(true, DEV_KIND.REALTIMEMETER);
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] SmartDistributionScreen(Context context, RelativeLayout layout, WallPadAPI wpapi, int operationMode)");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -456,9 +476,13 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
dRealtimeMeterElecAcc_Total = mWallpadStatusData.Get_RealTimeMeter_ElecAcc(); // 전월 전력누적사용량 읽기
|
|
|
mWallpadStatusData.closeDB(); // DB 닫기
|
|
|
Log.i(TAG, "[getRealTimeMeter_ElecAcc] dRealtimeMeterElecAcc_Total [" + dRealtimeMeterElecAcc_Total + "]");
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] getRealTimeMeter_ElecAcc()");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -472,9 +496,13 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
if (mRealTimeMeterAPI != null) registerDeviceBR(false, DEV_KIND.REALTIMEMETER);
|
|
|
|
|
|
Log.i(TAG, "[END - Screen] ********************************************");
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] onClose()");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -623,9 +651,13 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
BTN_DIAGRAM_CURRENT.setButtonFrontImage();
|
|
|
BTN_DIAGRAM_MONTH.setButtonRearImage();
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] drawSelectedDisplayInfoType()");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -651,9 +683,13 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
else if (nDeviceType == DEV_KIND.REALTIMEMETER) drawDeviceStatus_RealTimeMeter();
|
|
|
else Log.w(TAG, "[drawDeviceStatus] nDeviceType is not supported!!! -> " + nDeviceType);
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] drawDeviceStatus(int nDeviceType)");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -663,10 +699,12 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
// 스마트분전반 화면에서는 사용 안됨
|
|
|
} catch (CustomDrawException cde) {
|
|
|
Log.e(TAG, "[CustomDrawException] drawDeviceStatus_EnergyController()");
|
|
|
- cde.printStackTrace();
|
|
|
+ //cde.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, cde);
|
|
|
} catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] drawDeviceStatus_EnergyController()");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -751,10 +789,12 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
}
|
|
|
} catch (CustomDrawException cde) {
|
|
|
Log.e(TAG, "[CustomDrawException] drawDeviceStatus_EnergyMeter()");
|
|
|
- cde.printStackTrace();
|
|
|
+ //cde.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, cde);
|
|
|
} catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] drawDeviceStatus_EnergyMeter()");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -808,10 +848,12 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
}
|
|
|
} catch (CustomDrawException cde) {
|
|
|
Log.e(TAG, "[CustomDrawException] drawDeviceStatus_IntegratedPowerController()");
|
|
|
- cde.printStackTrace();
|
|
|
+ //cde.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, cde);
|
|
|
} catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] drawDeviceStatus_IntegratedPowerController()");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -821,10 +863,12 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
// 스마트분전반 화면에서는 사용 안됨
|
|
|
} catch (CustomDrawException cde) {
|
|
|
Log.e(TAG, "[CustomDrawException] drawDeviceStatus_DCAPU()");
|
|
|
- cde.printStackTrace();
|
|
|
+ //cde.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, cde);
|
|
|
} catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] drawDeviceStatus_DCAPU()");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -964,10 +1008,12 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
}
|
|
|
} catch (CustomDrawException cde) {
|
|
|
Log.e(TAG, "[CustomDrawException] drawDeviceStatus_RealTimeMeter()");
|
|
|
- cde.printStackTrace();
|
|
|
+ //cde.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, cde);
|
|
|
} catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] drawDeviceStatus_RealTimeMeter()");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1001,9 +1047,14 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
DebugLogOutput("[loadDeviceAPI] - Step1 : SMART_DISTRIBUTION API Load...");
|
|
|
try {
|
|
|
mSdbAPI = wallpadAPI.Get_SdbController();
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ return -100;
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] wallpadAPI.Get_SdbController");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
return -100;
|
|
|
}
|
|
|
|
|
@@ -1019,9 +1070,14 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
DebugLogOutput("[loadDeviceAPI] - Step1 : REALTIMEMETER API Load...");
|
|
|
try {
|
|
|
mRealTimeMeterAPI = wallpadAPI.Get_RealTimeMeterController();
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ return -100;
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] wallpadAPI.Get_RealTimeMeterController");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
return -100;
|
|
|
}
|
|
|
|
|
@@ -1032,9 +1088,14 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ return -100;
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] loadDeviceAPI(WallPadAPI wallpadAPI, int nDeviceType)");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
return -100;
|
|
|
}
|
|
|
}
|
|
@@ -1080,9 +1141,14 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
if (bOnOff) {
|
|
|
try {
|
|
|
mWallPadDevAPI.regChangedBR(BR_NAME);
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ return -101;
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] mWallPadDevAPI.regChangedBR (nDeviceType:" + nDeviceType + ")");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
return -101;
|
|
|
}
|
|
|
super.addBrActionFilter(BR_NAME);
|
|
@@ -1090,18 +1156,28 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
else {
|
|
|
try {
|
|
|
mWallPadDevAPI.unregChangedBR(BR_NAME);
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ return -102;
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] mWallPadDevAPI.unregChangedBR (nDeviceType:" + nDeviceType + ")");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
return -102;
|
|
|
}
|
|
|
super.removeBrActionFilter(BR_NAME);
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ return -100;
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] registerDeviceBR(boolean bOnOff, int nDeviceType)");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
return -100;
|
|
|
}
|
|
|
}
|
|
@@ -1163,9 +1239,14 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
}
|
|
|
|
|
|
return -1;
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ return -100;
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] updateDevice(boolean bReal, int nDeviceType, byte hIndex)");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
return -100;
|
|
|
}
|
|
|
}
|
|
@@ -1206,9 +1287,14 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
else {
|
|
|
Log.i(TAG, "[updateDevice_SmartDistribution] mSdbAPI.Refresh SUCCESS !!!");
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ return -102;
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] - [Exception Error] mSdbAPI.Refresh (index:" + hIndex );
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
return -102;
|
|
|
}
|
|
|
|
|
@@ -1232,8 +1318,12 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
for (int i = 0; i < mData.hRoomEMCnt; i++) {
|
|
|
mData.RoomEM[i] = mSdbAPI.data.BadRoom_EnergyMeter[i];
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
|
|
|
mData.IntPowerController = mSdbAPI.data.IntPowerController;
|
|
@@ -1258,8 +1348,12 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
else {
|
|
|
mData.RoomEM = mSdbAPI.data.BadRoom_EnergyMeter;
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1283,9 +1377,14 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
DebugLogOutput("[updateDevice_SmartDistribution] - OK");
|
|
|
|
|
|
return 0;
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ return -100;
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] updateDevice_SmartDistribution(byte hIndex, byte hDeviceType)");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
return -100;
|
|
|
}
|
|
|
}
|
|
@@ -1313,9 +1412,14 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
Log.e(TAG, "[updateDevice_RealTimeMeter] - mRealTimeMeterAPI.Refresh - ret (" + ret + ")" + mRealTimeMeterAPI.ErrorCode.ErrStr());
|
|
|
return -2;
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ return -102;
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] mRealTimeMeterAPI.Refresh (bReal:" + bReal + ")");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
return -102;
|
|
|
}
|
|
|
|
|
@@ -1335,9 +1439,14 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
DebugLogOutput("[updateDevice_RealTimeMeter] - OK");
|
|
|
|
|
|
return 0;
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ return -100;
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] updateDevice_RealTimeMeter(boolean bReal)");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
return -100;
|
|
|
}
|
|
|
}
|
|
@@ -1457,7 +1566,8 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
if (TargetId == ID.SmartDistributionMain.image.PART_BACKGROUND_3) {
|
|
|
// 전열
|
|
|
if (OPERATION_MODE == Common.MODE_NOMAL) {
|
|
|
- ret = mSdbAPI.SetCircuitOnOff(SdbAPI.CIRCUIT_KIND.ELEC_HEAT, true);
|
|
|
+ if(mSdbAPI!=null)
|
|
|
+ ret = mSdbAPI.SetCircuitOnOff(SdbAPI.CIRCUIT_KIND.ELEC_HEAT, true);
|
|
|
if (ret >= 0) {
|
|
|
// 제어 성공
|
|
|
DebugLogOutput("[TOUCH] - ELEC_HEAT ON : SUCCESS");
|
|
@@ -1478,10 +1588,12 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
else if (TargetId == ID.SmartDistributionMain.image.PART_BACKGROUND_4) {
|
|
|
// 에어컨
|
|
|
if (OPERATION_MODE == Common.MODE_NOMAL) {
|
|
|
- ret = mSdbAPI.SetCircuitOnOff(SdbAPI.CIRCUIT_KIND.AIRCON_IN, true); // 에어컨-실내기 제어
|
|
|
+ if(mSdbAPI!=null)
|
|
|
+ ret = mSdbAPI.SetCircuitOnOff(SdbAPI.CIRCUIT_KIND.AIRCON_IN, true); // 에어컨-실내기 제어
|
|
|
if (ret >= 0) {
|
|
|
DebugLogOutput("[TOUCH] - AIRCON_IN ON : SUCCESS");
|
|
|
- ret = mSdbAPI.SetCircuitOnOff(SdbAPI.CIRCUIT_KIND.AIRCON_OUT, true); // 에어컨-실외기 제어
|
|
|
+ if(mSdbAPI!=null)
|
|
|
+ ret = mSdbAPI.SetCircuitOnOff(SdbAPI.CIRCUIT_KIND.AIRCON_OUT, true); // 에어컨-실외기 제어
|
|
|
if (ret >= 0) {
|
|
|
DebugLogOutput("[TOUCH] - AIRCON_OUT ON : SUCCESS");
|
|
|
Sound().Play(WpadSound.SND.effect.TOUCH_LATCHED);
|
|
@@ -1506,7 +1618,8 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
else if (TargetId == ID.SmartDistributionMain.image.PART_BACKGROUND_5) {
|
|
|
// 욕실&세탁기
|
|
|
if (OPERATION_MODE == Common.MODE_NOMAL) {
|
|
|
- ret = mSdbAPI.SetCircuitOnOff(SdbAPI.CIRCUIT_KIND.BATH_WASHER, true);
|
|
|
+ if(mSdbAPI!=null)
|
|
|
+ ret = mSdbAPI.SetCircuitOnOff(SdbAPI.CIRCUIT_KIND.BATH_WASHER, true);
|
|
|
if (ret >= 0) {
|
|
|
// 제어 성공
|
|
|
DebugLogOutput("[TOUCH] - BATH_WASHER ON : SUCCESS");
|
|
@@ -1533,9 +1646,13 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] onTouchEvent(View v, MotionEvent event)");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1594,9 +1711,13 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
try {
|
|
|
Size = 1182;
|
|
|
mBranchPaint = new Paint[straSubDeviceList.length];
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] CurrentBar(Context context)");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1652,9 +1773,13 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
|
|
|
canvas.drawRect(0, 0, (float) WpadScale.getWidth(12), (float) WpadScale.getHeight(25), mBranchPaint[i]);
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] onDraw(Canvas canvas)");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1662,9 +1787,13 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
try {
|
|
|
Log.i(TAG, "[ReDraw] start");
|
|
|
invalidate();
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] ReDraw()");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1735,9 +1864,13 @@ public class SmartDisPanelScreen_02 extends WpadScreen {
|
|
|
Log.i(TAG, "[SampleData] circuit acc" + i + " = " + mData.IntPowerController.Data.Circuit[i].AccPw);
|
|
|
Log.i(TAG, "[SampleData] circuit now" + i + " = " + mData.IntPowerController.Data.Circuit[i].NowPw);
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
+ } catch (RuntimeException re) {
|
|
|
+ LogUtil.errorLogInfo("", TAG, re);
|
|
|
+ }
|
|
|
+ catch (Exception e) {
|
|
|
Log.e(TAG, "[Exception] Sample_DataDefaultSetting()");
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
|
|
|
}
|