protected void insertModel(Model model) { try { String currentConnectionType = DeviceUtil.getNetworkInfo(context); addRow(((Throughput) model).getDownLink(), "downlink", currentConnectionType); addRow(((Throughput) model).getUpLink(), "uplink", currentConnectionType); } catch (Exception e) { GAnalytics.log(GAnalytics.DATABASE, "Insert Fail " + dbHelper.getDBName(), e.getMessage()); } }
public HashMap<String, ArrayList<GraphPoint>> getGraphData() { return getGraphData(DeviceUtil.getNetworkInfo(context)); }
public DatabaseOutput getOutput() { return getOutput(DeviceUtil.getNetworkInfo(context)); }