Removed Gson.
Changed logged throughput to long instead of double. Fixed 3g cellid in logs
This commit is contained in:
parent
bd82634b6b
commit
79e336c1cc
8 changed files with 20 additions and 7 deletions
|
|
@ -67,6 +67,7 @@
|
|||
<orderEntry type="library" exported="" name="support-v4-19.1.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="jaxen-1.1.6" level="project" />
|
||||
<orderEntry type="library" exported="" name="log4j-1.2.17" level="project" />
|
||||
<orderEntry type="library" exported="" name="gson-2.3" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
<li>GraphView (<a href="http://android-graphview.org/">http://android-graphview.org/</a>)</li>
|
||||
<li>SweetiePlus Icons (<a href="http://sublink.ca/">http://sublink.ca/</a>)</li>
|
||||
<li>DynamicListView (<a href="https://android.googlesource.com">https://android.googlesource.com</a>)</li>
|
||||
<li>Icons8 <a href="http://icons8.com/android-icons">http://Icons8.com</a></li>
|
||||
<li>Android-logging-log4j (<a href="https://code.google.com/p/android-logging-log4j/">https://code.google.com/p/android-logging-log4j/</a>)</li>
|
||||
<li>Log4j (<a href="http://logging.apache.org/log4j">http://logging.apache.org/log4j</a>)</li>
|
||||
<li>dom4J (<a href="http://dom4j.sourceforge.net/">http://dom4j.sourceforge.net/</a>)</li>
|
||||
|
|
|
|||
|
|
@ -9,10 +9,14 @@ import org.apache.log4j.Logger;
|
|||
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.FileReader;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.ObjectOutput;
|
||||
import java.io.ObjectOutputStream;
|
||||
import java.io.Writer;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -22,7 +26,7 @@ import java.util.List;
|
|||
public class UeControlExecutor implements Runnable, UeBehaviour.DataHandledListener {
|
||||
private static final Logger log = Logger.getLogger(UeControlExecutor.class);
|
||||
|
||||
private List<UeBehaviour> behaviours;
|
||||
private ArrayList<UeBehaviour> behaviours;
|
||||
private UeBehaviour currentlyActive;
|
||||
private boolean terminate;
|
||||
private Thread thread;
|
||||
|
|
|
|||
|
|
@ -71,8 +71,8 @@ public class CSVWriter {
|
|||
StringBuilder line = new StringBuilder();
|
||||
line.append(getTime()).append(DELIMITER);
|
||||
line.append(behaviour).append(DELIMITER);
|
||||
line.append(down).append(DELIMITER);
|
||||
line.append(up).append(DELIMITER);
|
||||
line.append((long)down).append(DELIMITER);
|
||||
line.append((long)up).append(DELIMITER);
|
||||
line.append(getRat()).append(DELIMITER);
|
||||
line.append(getCellIds()).append(DELIMITER);
|
||||
line.append(getSSID()).append(DELIMITER);
|
||||
|
|
@ -135,9 +135,18 @@ public class CSVWriter {
|
|||
StringBuilder data = new StringBuilder();
|
||||
|
||||
GsmCellLocation location = (GsmCellLocation) telMan.getCellLocation();
|
||||
if(location != null)
|
||||
if(location != null) {
|
||||
switch(telMan.getNetworkType()){
|
||||
case TelephonyManager.NETWORK_TYPE_UMTS:
|
||||
case TelephonyManager.NETWORK_TYPE_HSPA:
|
||||
case TelephonyManager.NETWORK_TYPE_HSDPA:
|
||||
case TelephonyManager.NETWORK_TYPE_HSUPA:
|
||||
case TelephonyManager.NETWORK_TYPE_HSPAP:
|
||||
return ""+(location.getCid() & 0xFFFF);
|
||||
default:
|
||||
return ""+location.getCid();
|
||||
|
||||
}
|
||||
}
|
||||
/*List<NeighboringCellInfo> cellList = telMan.getNeighboringCellInfo();
|
||||
if(cellList != null) {
|
||||
for (int i = 0; i < cellList.size(); i++) {
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 536 B |
Binary file not shown.
|
Before Width: | Height: | Size: 351 B |
Binary file not shown.
|
Before Width: | Height: | Size: 660 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1,004 B |
Loading…
Add table
Add a link
Reference in a new issue