| | |
| | | public static final int DEV_NOT_LOGIN = 5; |
| | | public static final int DEV_LOGIN = 6; |
| | | |
| | | private int trainingMode = 0;//即不是训练模式也是考试模式 |
| | | private int trainingMode = 0;//即不是训练模式也不是考试模式 |
| | | public static final int EXAMING_MODE =1; |
| | | public static final int TRAINING_MODE =2; |
| | | |
| | | |
| | | //主要是为了控制既不是考试模式也不是训练模式下 0206消息的发送,10s一次发送 |
| | | private boolean timeArrive_10s = false; |
| | | |
| | | private static HashMap<Integer,String> examPlatformStrs = new HashMap<>(); |
| | | private List<Integer> sns =new ArrayList<>();//保存所有失败项目的sn |
| | |
| | | return simulate_light_tips; |
| | | } |
| | | |
| | | public List<Integer> getSns() { |
| | | // if (sns.size()<=0){ |
| | | // String snsstr = (String) SPUtils.get(app.getAppContext(),SPUtils.FAIL_PROJ_SNS,""); |
| | | // if (!TextUtils.isEmpty(snsstr)){ |
| | | // String[] strings=snsstr.split("#"); |
| | | // for (int i = 0; i < strings.length; i++) { |
| | | // Log.i(TAG, String.format("strings[%d]=%s",i,strings[i])); |
| | | // if (!TextUtils.isEmpty(strings[i])) |
| | | // sns.add(Integer.parseInt(strings[i])); |
| | | // } |
| | | // } |
| | | // } |
| | | return sns; |
| | | |
| | | public boolean isTimeArrive_10s() { |
| | | return timeArrive_10s; |
| | | } |
| | | |
| | | public void addSn(int sn) { |
| | | // stringBuffer.append("#"+String.valueOf(sn)); |
| | | // SPUtils.put(app.getAppContext(),SPUtils.FAIL_PROJ_SNS,stringBuffer.toString()); |
| | | this.sns.add(sn); |
| | | } |
| | | |
| | | public void clearSns() { |
| | | // SPUtils.clear(app.getAppContext()); |
| | | sns.clear(); |
| | | public void setTimeArrive_10s(boolean timeArrive_10s) { |
| | | this.timeArrive_10s = timeArrive_10s; |
| | | } |
| | | |
| | | public void setRTKPort(int port) { |