Skip to content

Commit

Permalink
Apply formatting to some files
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrowlands committed Sep 26, 2024
1 parent 7bc1734 commit 11e30ce
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ the [Network Survey Messaging](https://github.com/christianrowlands/network-surv
library can be used to stand up a gRPC server. From there it is up to the implementation to handle
the incoming survey messages.

If you want to see how to use the generated Go code to create a gRPC server, check out the code at
If you want to see how to use the generated Go code to create a gRPC server, check out the code at
https://github.com/christianrowlands/ns-messaging-go-grpc-server

The server does not do anything useful, but serves as an example of how one might be created in GoLang.
The server does not do anything useful, but serves as an example of how one might be created in
GoLang.

## MQTT Broker Survey Record Streaming

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

import androidx.fragment.app.Fragment;

import com.craxiom.networksurvey.util.CalculationUtils;
import com.craxiom.networksurvey.R;
import com.craxiom.networksurvey.util.CalculationUtils;
import com.craxiom.networksurvey.util.CellularUtils;

import timber.log.Timber;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import com.craxiom.networksurvey.constants.csv.PhoneStateCsvConstants;
import com.craxiom.networksurvey.listeners.IDeviceStatusListener;
import com.craxiom.networksurvey.services.NetworkSurveyService;
import com.craxiom.networksurvey.util.NsUtils;
import com.craxiom.networksurvey.util.MathUtils;
import com.craxiom.networksurvey.util.NsUtils;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Strings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@
import com.craxiom.networksurvey.model.NrRecordWrapper;
import com.craxiom.networksurvey.model.WifiRecordWrapper;
import com.craxiom.networksurvey.services.controller.CellularController;
import com.craxiom.networksurvey.util.NsUtils;
import com.craxiom.networksurvey.util.LocationUtils;
import com.craxiom.networksurvey.util.MathUtils;
import com.craxiom.networksurvey.util.NsUtils;
import com.craxiom.networksurvey.util.ParserUtils;
import com.craxiom.networksurvey.util.PreferenceUtils;
import com.craxiom.networksurvey.util.WifiUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import androidx.core.app.ActivityCompat;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;

import com.craxiom.networksurvey.util.CalculationUtils;
import com.craxiom.networksurvey.SimChangeReceiver;
import com.craxiom.networksurvey.constants.NetworkSurveyConstants;
import com.craxiom.networksurvey.listeners.CdrSmsObserver;
Expand All @@ -45,6 +44,7 @@
import com.craxiom.networksurvey.model.LogTypeState;
import com.craxiom.networksurvey.services.NetworkSurveyService;
import com.craxiom.networksurvey.services.SurveyRecordProcessor;
import com.craxiom.networksurvey.util.CalculationUtils;
import com.craxiom.networksurvey.util.NsUtils;
import com.craxiom.networksurvey.util.PreferenceUtils;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.craxiom.networksurvey.util;

import static com.craxiom.networksurvey.util.NsUtils.getEpochFromRfc3339;

import com.craxiom.messaging.CdmaRecord;
import com.craxiom.messaging.CdmaRecordData;
import com.craxiom.messaging.DeviceStatus;
Expand All @@ -13,8 +15,6 @@
import com.craxiom.networksurvey.messaging.Error;
import com.craxiom.networksurvey.messaging.LteBandwidth;

import static com.craxiom.networksurvey.util.NsUtils.getEpochFromRfc3339;

/**
* Utility methods to help with converting the newer survey record protobuf objects to the old format. This class should
* only exist for a short amount of time while usages of the old protobuf records are removed from other code bases.
Expand Down Expand Up @@ -45,7 +45,10 @@ public static com.craxiom.networksurvey.messaging.DeviceStatus convertDeviceStat
builder.setAltitude(data.getAltitude());
builder.setDeviceName((data.getDeviceName()));

if (data.hasBatteryLevelPercent()) builder.setBatteryLevelPercent(data.getBatteryLevelPercent().getValue());
if (data.hasBatteryLevelPercent())
{
builder.setBatteryLevelPercent(data.getBatteryLevelPercent().getValue());
}
if (data.hasError())
{
builder.setError(Error.newBuilder().setErrorMessage(data.getError().getErrorMessage()).build());
Expand Down

0 comments on commit 11e30ce

Please sign in to comment.