コード例 #1
0
 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());
   }
 }
コード例 #2
0
 public HashMap<String, ArrayList<GraphPoint>> getGraphData() {
   return getGraphData(DeviceUtil.getNetworkInfo(context));
 }
コード例 #3
0
 public DatabaseOutput getOutput() {
   return getOutput(DeviceUtil.getNetworkInfo(context));
 }