-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds CSV file logging for LTE, and a foreground service change for An…
…droid 14 - Also refactors the cellular specific stuff out of the main service as that was growing way too big. I will refactor the other protocols out of the main service as I add CSV logging for them - Still need to add CSV logging for all the other protocols
- Loading branch information
1 parent
35da23d
commit 09dfc0e
Showing
29 changed files
with
943 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...worksurvey/constants/CdrCsvConstants.java → ...survey/constants/csv/CdrCsvConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...orksurvey/src/main/java/com/craxiom/networksurvey/constants/csv/CellularCsvConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.craxiom.networksurvey.constants.csv; | ||
|
||
/** | ||
* The common constants associated with survey CSV records. | ||
* <p> | ||
* The constants in this class are intended to match the constants defined in the | ||
* <a href="https://messaging.networksurvey.app/">Network Survey Messaging API</a>. | ||
*/ | ||
public abstract class CellularCsvConstants extends SurveyCsvConstants | ||
{ | ||
public static final String GROUP_NUMBER = "groupNumber"; | ||
public static final String SERVING_CELL = "servingCell"; | ||
public static final String PROVIDER = "provider"; | ||
} |
2 changes: 1 addition & 1 deletion
2
...networksurvey/constants/CsvConstants.java → ...orksurvey/constants/csv/CsvConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
networksurvey/src/main/java/com/craxiom/networksurvey/constants/csv/LteCsvConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.craxiom.networksurvey.constants.csv; | ||
|
||
/** | ||
* The constants associated with the LTE CSV file headers. | ||
* <p> | ||
* The constants in this class are intended to match the constants defined in the | ||
* <a href="https://messaging.networksurvey.app/">Network Survey Messaging API</a>. | ||
* | ||
* @since 1.13 | ||
*/ | ||
public class LteCsvConstants extends CellularCsvConstants | ||
{ | ||
private LteCsvConstants() | ||
{ | ||
} | ||
|
||
public static final String MCC = "mcc"; | ||
public static final String MNC = "mnc"; | ||
public static final String TAC = "tac"; | ||
public static final String ECI = "eci"; | ||
public static final String EARFCN = "earfcn"; | ||
public static final String PCI = "pci"; | ||
public static final String RSRP = "rsrp"; | ||
public static final String RSRQ = "rsrq"; | ||
public static final String TA = "ta"; | ||
public static final String SIGNAL_STRENGTH = "signalStrength"; | ||
public static final String LTE_BANDWIDTH = "lteBandwidth"; | ||
} |
14 changes: 14 additions & 0 deletions
14
networksurvey/src/main/java/com/craxiom/networksurvey/constants/csv/SurveyCsvConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.craxiom.networksurvey.constants.csv; | ||
|
||
/** | ||
* The common constants associated with survey CSV records. | ||
* <p> | ||
* The constants in this class are intended to match the constants defined in the | ||
* <a href="https://messaging.networksurvey.app/">Network Survey Messaging API</a>. | ||
*/ | ||
public abstract class SurveyCsvConstants extends CsvConstants | ||
{ | ||
public static final String DEVICE_TIME = "deviceTime"; | ||
public static final String MISSION_ID = "missionId"; | ||
public static final String RECORD_NUMBER = "recordNumber"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.