diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 65fa31a..323a030 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -27,7 +27,7 @@
diff --git a/app/src/main/java/com/example/lezh1k/sensordatacollector/Loggers/AccelerationLogger.java b/app/src/main/java/com/example/lezh1k/sensordatacollector/Loggers/AccelerationLogger.java
index 180b721..458a4d6 100644
--- a/app/src/main/java/com/example/lezh1k/sensordatacollector/Loggers/AccelerationLogger.java
+++ b/app/src/main/java/com/example/lezh1k/sensordatacollector/Loggers/AccelerationLogger.java
@@ -8,7 +8,7 @@
import android.util.Log;
import com.elvishew.xlog.XLog;
-import com.example.gpsacckalmanfusion.Lib.Commons.Utils;
+import mad.location.manager.lib.Commons.Utils;
import java.util.ArrayList;
import java.util.List;
diff --git a/app/src/main/java/com/example/lezh1k/sensordatacollector/Loggers/GPSDataLogger.java b/app/src/main/java/com/example/lezh1k/sensordatacollector/Loggers/GPSDataLogger.java
index f8ef7fe..b8e3a46 100644
--- a/app/src/main/java/com/example/lezh1k/sensordatacollector/Loggers/GPSDataLogger.java
+++ b/app/src/main/java/com/example/lezh1k/sensordatacollector/Loggers/GPSDataLogger.java
@@ -11,7 +11,7 @@
import android.support.v4.app.ActivityCompat;
import com.elvishew.xlog.XLog;
-import com.example.gpsacckalmanfusion.Lib.Commons.Utils;
+import mad.location.manager.lib.Commons.Utils;
/**
* Created by lezh1k on 12/25/17.
diff --git a/app/src/main/java/com/example/lezh1k/sensordatacollector/MainActivity.java b/app/src/main/java/com/example/lezh1k/sensordatacollector/MainActivity.java
index 0932eb3..f2cdcb3 100644
--- a/app/src/main/java/com/example/lezh1k/sensordatacollector/MainActivity.java
+++ b/app/src/main/java/com/example/lezh1k/sensordatacollector/MainActivity.java
@@ -29,13 +29,13 @@
import com.elvishew.xlog.printer.file.FilePrinter;
import com.elvishew.xlog.printer.file.backup.FileSizeBackupStrategy;
import com.elvishew.xlog.printer.file.naming.FileNameGenerator;
-import com.example.gpsacckalmanfusion.Lib.Commons.Utils;
-import com.example.gpsacckalmanfusion.Lib.Interfaces.ILogger;
-import com.example.gpsacckalmanfusion.Lib.Interfaces.LocationServiceInterface;
-import com.example.gpsacckalmanfusion.Lib.Loggers.GeohashRTFilter;
-import com.example.gpsacckalmanfusion.Lib.SensorAux.SensorCalibrator;
-import com.example.gpsacckalmanfusion.Lib.Services.KalmanLocationService;
-import com.example.gpsacckalmanfusion.Lib.Services.ServicesHelper;
+import mad.location.manager.lib.Commons.Utils;
+import mad.location.manager.lib.Interfaces.ILogger;
+import mad.location.manager.lib.Interfaces.LocationServiceInterface;
+import mad.location.manager.lib.Loggers.GeohashRTFilter;
+import mad.location.manager.lib.SensorAux.SensorCalibrator;
+import mad.location.manager.lib.Services.KalmanLocationService;
+import mad.location.manager.lib.Services.ServicesHelper;
import com.example.lezh1k.sensordatacollector.Interfaces.MapInterface;
import com.example.lezh1k.sensordatacollector.Presenters.MapPresenter;
import com.mapbox.mapboxsdk.Mapbox;
diff --git a/app/src/main/java/com/example/lezh1k/sensordatacollector/Presenters/MapPresenter.java b/app/src/main/java/com/example/lezh1k/sensordatacollector/Presenters/MapPresenter.java
index 2b90bd7..9c6e80f 100644
--- a/app/src/main/java/com/example/lezh1k/sensordatacollector/Presenters/MapPresenter.java
+++ b/app/src/main/java/com/example/lezh1k/sensordatacollector/Presenters/MapPresenter.java
@@ -9,10 +9,9 @@
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
-import com.example.gpsacckalmanfusion.Lib.Commons.Utils;
-import com.example.gpsacckalmanfusion.Lib.Loggers.GeohashRTFilter;
-import com.example.gpsacckalmanfusion.Lib.Services.KalmanLocationService;
-import com.example.gpsacckalmanfusion.Lib.Services.ServicesHelper;
+import mad.location.manager.lib.Commons.Utils;
+import mad.location.manager.lib.Loggers.GeohashRTFilter;
+
import com.example.lezh1k.sensordatacollector.Interfaces.MapInterface;
import com.example.lezh1k.sensordatacollector.MainActivity;
import com.mapbox.mapboxsdk.camera.CameraPosition;
diff --git a/app/src/test/java/com/example/lezh1k/sensordatacollector/CoordinatesUnitTest.java b/app/src/test/java/com/example/lezh1k/sensordatacollector/CoordinatesUnitTest.java
deleted file mode 100644
index 6b64754..0000000
--- a/app/src/test/java/com/example/lezh1k/sensordatacollector/CoordinatesUnitTest.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package com.example.lezh1k.sensordatacollector;
-
-import com.example.lezh1k.sensordatacollector.CommonClasses.Coordinates;
-import com.example.lezh1k.sensordatacollector.CommonClasses.GeoPoint;
-
-import org.junit.Test;
-
-import static junit.framework.Assert.assertTrue;
-
-/**
- * Created by lezh1k on 12/12/17.
- */
-
-public class CoordinatesUnitTest {
-
- //http://www.onlineconversion.com/map_greatcircle_distance.htm
- @Test
- public void LongitudeToMetersTest() throws Exception {
- final double eps = 1e-08;
- assertTrue(Math.abs(1373039.2908091505 - Math.abs(Coordinates.longitudeToMeters(12.348039))) < eps);
- assertTrue(Math.abs(13703046.250524132 - Math.abs(Coordinates.longitudeToMeters(123.2344556))) < eps);
- assertTrue(Math.abs(13602958.57731845 - Math.abs(Coordinates.longitudeToMeters(-122.33434553))) < eps);
- }
-
- @Test
- public void LatitudeToMetersTest() throws Exception {
- final double eps = 1e-08;
- assertTrue(Math.abs(4038993.6993554747 - Math.abs(Coordinates.latitudeToMeters(36.323543))) < eps);
- assertTrue(Math.abs(13974509.760789291 - Math.abs(Coordinates.latitudeToMeters(234.3242144))) < eps);
- assertTrue(Math.abs(14159832.607369563 - Math.abs(Coordinates.latitudeToMeters(-127.342434))) < eps);
- }
-
- @Test
- public void MetersToGeoPointTest() throws Exception {
- final double eps = 1e-06;
- GeoPoint t = Coordinates.metersToGeoPoint(1373039.2908091505, 4038993.6993554747);
- assertTrue(Math.abs(t.Latitude - 36.323543) < eps);
- assertTrue(Math.abs(t.Longitude - 12.348039) < eps);
- }
-
- @Test
- public void MetersBetween2PointsTest() throws Exception {
- double distance = Coordinates.geoDistanceMeters(42.312000, 74.819000, 42.312001, 74.819000);
- assertTrue(distance < 0.1);
- }
-}
diff --git a/app/src/test/java/com/example/lezh1k/sensordatacollector/DeviationsCalculatorTest.java b/app/src/test/java/com/example/lezh1k/sensordatacollector/DeviationsCalculatorTest.java
deleted file mode 100644
index 41a08e8..0000000
--- a/app/src/test/java/com/example/lezh1k/sensordatacollector/DeviationsCalculatorTest.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package com.example.lezh1k.sensordatacollector;
-
-import com.example.lezh1k.sensordatacollector.SensorsAux.DeviationCalculator;
-
-import org.junit.Test;
-
-import java.util.Random;
-
-import static junit.framework.Assert.assertTrue;
-
-/**
- * Created by lezh1k on 12/19/17.
- */
-
-public class DeviationsCalculatorTest {
-
- @Test
- public void SigmasTest() throws Exception {
- final int measurementCount = 1000000;
- final double eps = 1.0 / measurementCount;
- final int valuesCount = 1;
- Random rnd = new Random();
- DeviationCalculator c = new DeviationCalculator(measurementCount, valuesCount);
-
- for (int j = 0; j < valuesCount; ++j) {
- double sigma = rnd.nextDouble();
- double sigma2 = sigma*sigma;
- double base = rnd.nextDouble();
- for (int i = 0; i <= measurementCount; ++i) {
- c.Measure(base + sigma * ((i & 0x01) == 0 ? -1.0 : 1.0));
- }
- assertTrue(Math.abs(Math.abs(sigma2) - Math.abs(c.getSigmas()[j])) < eps);
- }
- }
-}
diff --git a/app/src/test/java/com/example/lezh1k/sensordatacollector/GeoHashUnitTest.java b/app/src/test/java/com/example/lezh1k/sensordatacollector/GeoHashUnitTest.java
deleted file mode 100644
index 03354d1..0000000
--- a/app/src/test/java/com/example/lezh1k/sensordatacollector/GeoHashUnitTest.java
+++ /dev/null
@@ -1,93 +0,0 @@
-package com.example.lezh1k.sensordatacollector;
-
-import com.example.lezh1k.sensordatacollector.CommonClasses.GeoPoint;
-import com.example.lezh1k.sensordatacollector.Filters.GeoHash;
-
-import org.junit.Test;
-
-import java.util.Arrays;
-
-import static junit.framework.Assert.assertFalse;
-import static junit.framework.Assert.assertTrue;
-
-/**
- * Created by lezh1k on 12/6/17.
- */
-
-public class GeoHashUnitTest {
-
- class EncodeTestItem {
- double lat;
- double lon;
- int precision;
- String expected;
-
- EncodeTestItem(double lat, double lon, int precision, String expected) {
- this.lat = lat;
- this.lon = lon;
- this.precision = precision;
- this.expected = expected;
- }
- }
-
- @Test
- public void encodeTest() throws Exception {
- EncodeTestItem posTests[] = {
- new EncodeTestItem(44.87533558, -64.3057251, 8, "dxfr29mc"),
- new EncodeTestItem(46.76244305, -60.6362915, 8, "f8kfh0y4"),
- new EncodeTestItem(50.79204706, 61.47949219, 8, "v358zn2j"),
- new EncodeTestItem(-82.214234, 114.257834, 9, "n93k21252"),
- new EncodeTestItem(-21.45306863, 137.02148438, 9, "rh1myn84b"),
- new EncodeTestItem(44.87533558, -64.3057251, 7, "dxfr29m"),
- new EncodeTestItem(46.76244305, -60.6362915, 7, "f8kfh0y"),
- new EncodeTestItem(50.79204706, 61.47949219, 7, "v358zn2"),
- new EncodeTestItem(-82.214234, 114.257834, 8, "n93k2125"),
- new EncodeTestItem(-21.45306863, 137.02148438, 8, "rh1myn84"),
- };
-
- //random changes in right strings
- EncodeTestItem negTests[] = {
- new EncodeTestItem(44.87533558, -64.3057251, 8, "dxer29mc"),
- new EncodeTestItem(46.76244305, -60.6362915, 8, "f8kgh0y4"),
- new EncodeTestItem(50.79204706, 61.47949219, 8, "v338zn2j"),
- new EncodeTestItem(-82.214234, 114.257834, 9, "n93kgg1252"),
- new EncodeTestItem(-21.45306863, 137.02148438, 9, "rh12myn84b"),
- new EncodeTestItem(44.87533558, -64.3057251, 7, "dxfr2gm"),
- new EncodeTestItem(46.76244305, -60.6362915, 7, "f84fh0y"),
- new EncodeTestItem(50.79204706, 61.47949219, 7, "v318zn2"),
- new EncodeTestItem(-82.214234, 114.257834, 8, "143k2125"),
- new EncodeTestItem(-21.45306863, 137.02148438, 8, "43fmyn84"),
- };
-
- for (EncodeTestItem ti : posTests) {
- char buff[] = new char[ti.precision];
- GeoHash.encode(ti.lat, ti.lon, buff, ti.precision);
- assertTrue(Arrays.equals(ti.expected.toCharArray(), buff));
- }
-
- for (EncodeTestItem ti : negTests) {
- char buff[] = new char[ti.precision];
- GeoHash.encode(ti.lat, ti.lon, buff, ti.precision);
- assertFalse(Arrays.equals(ti.expected.toCharArray(), buff));
- }
- }
-
- @Test
- public void equationTest() throws Exception {
- GeoPoint geo1 = new GeoPoint(44.87533558, 72.5656988);
- GeoPoint geo2 = new GeoPoint(44.87533558, 72.5656988);
- GeoPoint geo3 = new GeoPoint(44.87533540, 72.5656988);
-
- final int prec = GeoHash.GEOHASH_MAX_PRECISION;
- char buff1[] = new char[prec];
- char buff2[] = new char[prec];
- char buff3[] = new char[prec];
-
- GeoHash.encode(geo1.Latitude, geo1.Longitude, buff1, prec);
- GeoHash.encode(geo2.Latitude, geo2.Longitude, buff2, prec);
- GeoHash.encode(geo3.Latitude, geo3.Longitude, buff3, prec);
-
- assertTrue(Arrays.equals(buff1, buff2));
- assertFalse(Arrays.equals(buff1, buff3));
- }
-}
diff --git a/app/src/test/java/com/example/lezh1k/sensordatacollector/MatrixUnitTest.java b/app/src/test/java/com/example/lezh1k/sensordatacollector/MatrixUnitTest.java
deleted file mode 100644
index a662590..0000000
--- a/app/src/test/java/com/example/lezh1k/sensordatacollector/MatrixUnitTest.java
+++ /dev/null
@@ -1,279 +0,0 @@
-package com.example.lezh1k.sensordatacollector;
-
-import com.example.lezh1k.sensordatacollector.CommonClasses.Matrix;
-
-import org.junit.Test;
-
-import java.util.Random;
-
-import static junit.framework.Assert.assertTrue;
-
-/**
- * Created by lezh1k on 12/6/17.
- */
-
-public class MatrixUnitTest {
- @Test
- public void matrixSetTest() throws Exception {
- Matrix m1, m2;
- m1 = new Matrix(3, 3);
- m1.setData(
- 1.0, 2.0, 3.0,
- 4.0, 5.0, 6.0,
- 7.0, 8.0, 9.0);
- assertEquals(m1.data[0][0] , 1.0);
- assertEquals(m1.data[0][1] , 2.0);
- assertEquals(m1.data[0][2] , 3.0);
- assertEquals(m1.data[1][0] , 4.0);
- assertEquals(m1.data[1][1] , 5.0);
- assertEquals(m1.data[1][2] , 6.0);
- assertEquals(m1.data[2][0] , 7.0);
- assertEquals(m1.data[2][1] , 8.0);
- assertEquals(m1.data[2][2] , 9.0);
- m2 = new Matrix(2, 1);
- m2.setData( 4.2, 3.3);
- assertEquals(m2.data[0][0] , 4.2);
- assertEquals(m2.data[1][0] , 3.3);
- }
-
- @Test
- public void matrixAddTest() throws Exception {
- Matrix ma, mb, mc;
- ma = new Matrix(2, 3);
- mb = new Matrix(2, 3);
- mc = new Matrix(2, 3);
-
- ma.setData(1.0, 2.0, 3.0,
- 4.0, 5.0, 6.0);
- mb.setData(
- 7.0, 8.0, 9.0,
- 10.0, 11.0, 12.0);
- Matrix.matrixAdd(ma, mb, mc);
- assertEquals(mc.data[0][0] , 8.0);
- assertEquals(mc.data[0][1] , 10.0);
- assertEquals(mc.data[0][2] , 12.0);
- assertEquals(mc.data[1][0] , 14.0);
- assertEquals(mc.data[1][1] , 16.0);
- assertEquals(mc.data[1][2] , 18.0);
-
- Matrix.matrixAdd(ma, mc, ma); //inplace test
- assertEquals(ma.data[0][0] , 9.0);
- assertEquals(ma.data[0][1] , 12.0);
- assertEquals(ma.data[0][2] , 15.0);
- assertEquals(ma.data[1][0] , 18.0);
- assertEquals(ma.data[1][1] , 21.0);
- assertEquals(ma.data[1][2] , 24.0);
- }
-
- @Test
- public void matrixSubstractTest() throws Exception {
- Matrix ma, mb, mc;
- ma = new Matrix(2, 3);
- mb = new Matrix(2, 3);
- mc = new Matrix(2, 3);
-
- ma.setData(
- 12.0, 11.0, 10.0,
- 9.0, 8.0, 7.0);
- mb.setData(
- 1.0, 2.0, 3.0,
- 4.0, 5.0, 6.0);
-
- Matrix.matrixSubtract(ma, mb, mc);
- assertEquals(mc.data[0][0] , 11.0);
- assertEquals(mc.data[0][1] , 9.0);
- assertEquals(mc.data[0][2] , 7.0);
- assertEquals(mc.data[1][0] , 5.0);
- assertEquals(mc.data[1][1] , 3.0);
- assertEquals(mc.data[1][2] , 1.0);
-
- Matrix.matrixSubtract(ma, mc, ma); //inplace test
- assertEquals(ma.data[0][0] , 1.0);
- assertEquals(ma.data[0][1] , 2.0);
- assertEquals(ma.data[0][2] , 3.0);
- assertEquals(ma.data[1][0] , 4.0);
- assertEquals(ma.data[1][1] , 5.0);
- assertEquals(ma.data[1][2] , 6.0);
- }
-
- @Test
- public void matrixSubstractFromIdentityTest() throws Exception {
- Matrix m;
- m = new Matrix(3, 3);
- m.setData(
- 1.0, 2.0, 3.0,
- 4.0, 5.0, 6.0,
- 7.0, 8.0, 9.0);
- m.subtractFromIdentity();
-
- assertEquals(m.data[0][0] , 0.0);
- assertEquals(m.data[0][1] , -2.0);
- assertEquals(m.data[0][2] , -3.0);
- assertEquals(m.data[1][0] , -4.0);
- assertEquals(m.data[1][1] , -4.0);
- assertEquals(m.data[1][2] , -6.0);
- assertEquals(m.data[2][0] , -7.0);
- assertEquals(m.data[2][1] , -8.0);
- assertEquals(m.data[2][2] , -8.0);
- }
-
- @Test
- public void matrixMultiplyTest() throws Exception {
- Matrix ma, mb, mc, md;
- ma = new Matrix(3, 3);
- mb = new Matrix(3, 3);
- mc = new Matrix(3, 3);
- md = new Matrix(3, 3);
-
- ma.setData(
- 1.0, 2.0, 3.0,
- 4.0, 5.0, 6.0,
- 7.0, 8.0, 9.0);
-
- mb.setData(
- 10.0, 11.0, 12.0,
- 13.0, 14.0, 15.0,
- 16.0, 17.0, 18.0);
-
- mc.setData(
- 84.0, 90.0, 96.0,
- 201.0, 216.0, 231.0,
- 318.0, 342.0, 366.0);
- Matrix.matrixMultiply(ma, mb, md);
- assertTrue(Matrix.matrixEq(md, mc, 1e-06));
- }
-
- @Test
- public void matrixMultiplyByTransposeTest() throws Exception {
- Matrix ma, mb, mc, md;
- ma = new Matrix(3, 3);
- mb = new Matrix(3, 3);
- mc = new Matrix(3, 3);
- md = new Matrix(3, 3);
-
- ma.setData(
- 1.0, 2.0, 3.0,
- 4.0, 5.0, 6.0,
- 7.0, 8.0, 9.0);
-
- mb.setData(
- 10.0, 11.0, 12.0,
- 13.0, 14.0, 15.0,
- 16.0, 17.0, 18.0);
-
- mc.setData(
- 68.0, 86.0, 104.0,
- 167.0, 212.0, 257.0,
- 266.0, 338.0, 410.0);
-
- Matrix.matrixMultiplyByTranspose(ma, mb, md);
- assertTrue(Matrix.matrixEq(mc, md, 1e-06));
- }
-
- @Test
- public void matrixTransposeTest() throws Exception{
- Matrix ma, mb, mc;ma = new Matrix(3, 1);
- mb = new Matrix(1, 3);
- mc = new Matrix(1, 3);
- ma.setData( 1, 2, 3);
- mb.setData( 1, 2, 3);
- Matrix.matrixTranspose(ma, mc);
- assert(Matrix.matrixEq(mb, mc, 1e-06));
- }
-
- @Test
- public void matrixEqTest() throws Exception {
- Matrix m1, m2;
- int r, c;
- m1 = new Matrix(3, 3);
- m2 = new Matrix(3, 3);
- Random rnd = new Random();
- for (r = 0; r < 3; ++r) {
- for (c = 0; c < 3; ++c) {
- m1.data[r][c] = m2.data[r][c] = rnd.nextDouble();
- }
- }
- assertTrue(Matrix.matrixEq(m1, m2, 1e-06));
- }
-
- @Test
- public void matrixScaleTest() throws Exception{
- Matrix ma, mb;
- double scalar = 2.5;
- ma = new Matrix(2, 2);
- mb = new Matrix(2, 2);
-
- ma.setData(
- 1.0, 2.0,
- 3.0, 4.0);
- mb.setData(
- 2.5, 5.0,
- 7.5, 10.0);
- ma.scale(scalar);
- assertTrue(Matrix.matrixEq(ma, mb, 1e-06));
- }
-
- @Test
- public void matrixIdentityTest() throws Exception {
- Matrix ma, mb, mc, md;
- ma = new Matrix(2, 2);
- mb = new Matrix(2, 2);
- mb.setData(1.0, 0.0, 0.0, 1.0);
- ma.setIdentity();
- assertTrue(Matrix.matrixEq(ma, mb, 1e-06));
-
- mc = new Matrix(3, 5);
- md = new Matrix(3, 5);
- double mdval[] = {
- 1.0, 0.0, 0.0, 0.0, 0.0,
- 0.0, 1.0, 0.0, 0.0, 0.0,
- 0.0, 0.0, 1.0, 0.0, 0.0
- };
- mc.setIdentityDiag();
- md.setData(mdval);
- assertTrue(Matrix.matrixEq(mc, md, 1e-06));
- }
-
- @Test
- public void matrixDestructiveInvertTest() throws Exception {
- Matrix ma, mb, mc;
- ma = new Matrix(3, 3);
- mb = new Matrix(3, 3);
- mc = new Matrix(3, 3);
-
- ma.setData(
- 5.0, 2.0, 3.0,
- 8.0, 12.0, 22.0,
- 39.0, 3.0, 11.0);
-
- mc.setData(
- 33.0 / 269.0, -13.0 / 538.0, 4.0 / 269.0,
- 385.0 / 269.0, -31.0 / 269.0, -43.0 / 269.0,
- -222.0 / 269.0, 63.0 / 538.0, 22.0 / 269.0);
-
- Matrix.matrixDestructiveInvert(ma, mb);
- assertTrue(Matrix.matrixEq(mb, mc, 1e-06));
- }
-
- @Test
- public void matrixCloneTest() throws Exception {
- Matrix ma, mb;
- final int cols = 3;
- final int rows = 3;
- final double eps = 1e-06;
- ma = new Matrix(rows, cols);
- mb = new Matrix(rows, cols);
- Random rnd = new Random();
-
- for (int r = 0; r < rows; ++r) {
- for (int c = 0; c < cols; ++c) {
- ma.data[r][c] = rnd.nextDouble();
- mb.data[r][c] = ma.data[r][c] + rnd.nextDouble();
- }
- }
-
- assertTrue(!Matrix.matrixEq(ma, mb, eps));
- Matrix.matrixCopy(ma, mb);
- assertTrue(Matrix.matrixEq(ma, mb, eps));
- }
-}
diff --git a/app/src/test/java/com/example/lezh1k/sensordatacollector/MiskUnitTest.java b/app/src/test/java/com/example/lezh1k/sensordatacollector/MiskUnitTest.java
deleted file mode 100644
index 5eb1c40..0000000
--- a/app/src/test/java/com/example/lezh1k/sensordatacollector/MiskUnitTest.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package com.example.lezh1k.sensordatacollector;
-
-import com.example.lezh1k.sensordatacollector.CommonClasses.SensorGpsDataItem;
-
-import org.junit.Test;
-
-import java.util.Queue;
-import java.util.concurrent.PriorityBlockingQueue;
-
-import static org.junit.Assert.assertTrue;
-
-/**
- * Example local unit test, which will execute on the development machine (host).
- *
- * @see Testing documentation
- */
-public class MiskUnitTest {
-
-
- @Test
- public void PriorityQueueOrderTest() throws Exception {
- SensorGpsDataItem it1 = new SensorGpsDataItem(1.0,
- 0.0,0.0,0.0,0.0,
- 0.0,0.0,0.0,0.0, 0.0, 0.0, 0.0);
- SensorGpsDataItem it2 = new SensorGpsDataItem(2.0,
- 0.0,0.0,0.0,0.0,
- 0.0,0.0,0.0,0.0, 0.0,0.0, 0.0);
- SensorGpsDataItem it3 = new SensorGpsDataItem(3.0,
- 0.0,0.0,0.0,0.0,
- 0.0,0.0,0.0,0.0, 0.0,0.0, 0.0);
-
- Queue q =
- new PriorityBlockingQueue();
- q.add(it2);
- q.add(it1);
- q.add(it3);
-
- assertEquals(it1, q.poll());
- assertEquals(it2, q.poll());
- assertEquals(it3, q.poll());
- assertEquals(null, q.poll());
-
- q.add(it2);
- q.add(it1);
- q.add(it3);
-
- q.clear();
- assertTrue(q.isEmpty());
- }
-}
\ No newline at end of file
diff --git a/madlocationmanager/src/androidTest/java/com/example/gpsacckalmanfusion/ExampleInstrumentedTest.java b/madlocationmanager/src/androidTest/java/mad/location/manager/androidTest/ExampleInstrumentedTest.java
similarity index 94%
rename from madlocationmanager/src/androidTest/java/com/example/gpsacckalmanfusion/ExampleInstrumentedTest.java
rename to madlocationmanager/src/androidTest/java/mad/location/manager/androidTest/ExampleInstrumentedTest.java
index 1833a37..6be2328 100644
--- a/madlocationmanager/src/androidTest/java/com/example/gpsacckalmanfusion/ExampleInstrumentedTest.java
+++ b/madlocationmanager/src/androidTest/java/mad/location/manager/androidTest/ExampleInstrumentedTest.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion;
+package mad.location.manager.androidTest;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
diff --git a/madlocationmanager/src/main/AndroidManifest.xml b/madlocationmanager/src/main/AndroidManifest.xml
index 5e149af..c7f72ea 100644
--- a/madlocationmanager/src/main/AndroidManifest.xml
+++ b/madlocationmanager/src/main/AndroidManifest.xml
@@ -1,5 +1,5 @@
+ package="mad.location.manager" >
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/Coordinates.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Commons/Coordinates.java
similarity index 97%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/Coordinates.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Commons/Coordinates.java
index 8dbf1e8..f4809d2 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/Coordinates.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Commons/Coordinates.java
@@ -1,6 +1,6 @@
-package com.example.gpsacckalmanfusion.Lib.Commons;
+package mad.location.manager.lib.Commons;
-import com.example.gpsacckalmanfusion.Lib.Filters.GeoHash;
+import mad.location.manager.lib.Filters.GeoHash;
import java.util.HashMap;
import java.util.List;
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/GeoPoint.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Commons/GeoPoint.java
similarity index 82%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/GeoPoint.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Commons/GeoPoint.java
index a72cd65..0d4daf9 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/GeoPoint.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Commons/GeoPoint.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion.Lib.Commons;
+package mad.location.manager.lib.Commons;
/**
* Created by lezh1k on 2/13/18.
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/Matrix.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Commons/Matrix.java
similarity index 99%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/Matrix.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Commons/Matrix.java
index 468904d..b4f509e 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/Matrix.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Commons/Matrix.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion.Lib.Commons;
+package mad.location.manager.lib.Commons;
/**
* Created by lezh1k on 2/13/18.
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/SensorGpsDataItem.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Commons/SensorGpsDataItem.java
similarity index 97%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/SensorGpsDataItem.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Commons/SensorGpsDataItem.java
index af944e4..6d7de86 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/SensorGpsDataItem.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Commons/SensorGpsDataItem.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion.Lib.Commons;
+package mad.location.manager.lib.Commons;
import android.support.annotation.NonNull;
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/Utils.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Commons/Utils.java
similarity index 93%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/Utils.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Commons/Utils.java
index 81f476d..cea34a2 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Commons/Utils.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Commons/Utils.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion.Lib.Commons;
+package mad.location.manager.lib.Commons;
/**
* Created by lezh1k on 2/13/18.
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Filters/GPSAccKalmanFilter.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Filters/GPSAccKalmanFilter.java
similarity index 97%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Filters/GPSAccKalmanFilter.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Filters/GPSAccKalmanFilter.java
index c643045..7ddb5d1 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Filters/GPSAccKalmanFilter.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Filters/GPSAccKalmanFilter.java
@@ -1,6 +1,6 @@
-package com.example.gpsacckalmanfusion.Lib.Filters;
+package mad.location.manager.lib.Filters;
-import com.example.gpsacckalmanfusion.Lib.Commons.Matrix;
+import mad.location.manager.lib.Commons.Matrix;
/**
* Created by lezh1k on 2/13/18.
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Filters/GeoHash.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Filters/GeoHash.java
similarity index 96%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Filters/GeoHash.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Filters/GeoHash.java
index 6f21f5e..f5f8f3f 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Filters/GeoHash.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Filters/GeoHash.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion.Lib.Filters;
+package mad.location.manager.lib.Filters;
/**
* Created by lezh1k on 2/13/18.
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Filters/KalmanFilter.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Filters/KalmanFilter.java
similarity index 97%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Filters/KalmanFilter.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Filters/KalmanFilter.java
index f8c088f..d6f30f3 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Filters/KalmanFilter.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Filters/KalmanFilter.java
@@ -1,6 +1,6 @@
-package com.example.gpsacckalmanfusion.Lib.Filters;
+package mad.location.manager.lib.Filters;
-import com.example.gpsacckalmanfusion.Lib.Commons.Matrix;
+import mad.location.manager.lib.Commons.Matrix;
/**
* Created by lezh1k on 2/13/18.
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Filters/MadgwickAHRS.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Filters/MadgwickAHRS.java
similarity index 99%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Filters/MadgwickAHRS.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Filters/MadgwickAHRS.java
index 33e4839..7b82f37 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Filters/MadgwickAHRS.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Filters/MadgwickAHRS.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion.Lib.Filters;
+package mad.location.manager.lib.Filters;
/**
* Created by lezh1k on 2/13/18.
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Interfaces/ILogger.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Interfaces/ILogger.java
similarity index 68%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Interfaces/ILogger.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Interfaces/ILogger.java
index 61350fe..cbb64a5 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Interfaces/ILogger.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Interfaces/ILogger.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion.Lib.Interfaces;
+package mad.location.manager.lib.Interfaces;
/**
* Created by lezh1k on 2/26/18.
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Interfaces/LocationServiceInterface.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Interfaces/LocationServiceInterface.java
similarity index 75%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Interfaces/LocationServiceInterface.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Interfaces/LocationServiceInterface.java
index f3175ab..03cd866 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Interfaces/LocationServiceInterface.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Interfaces/LocationServiceInterface.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion.Lib.Interfaces;
+package mad.location.manager.lib.Interfaces;
import android.location.Location;
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Interfaces/LocationServiceStatusInterface.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Interfaces/LocationServiceStatusInterface.java
similarity index 83%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Interfaces/LocationServiceStatusInterface.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Interfaces/LocationServiceStatusInterface.java
index b3608a6..fbd7945 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Interfaces/LocationServiceStatusInterface.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Interfaces/LocationServiceStatusInterface.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion.Lib.Interfaces;
+package mad.location.manager.lib.Interfaces;
/**
* Created by lezh1k on 2/13/18.
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Interfaces/SimpleTempCallback.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Interfaces/SimpleTempCallback.java
similarity index 67%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Interfaces/SimpleTempCallback.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Interfaces/SimpleTempCallback.java
index e3a4bd5..caaa307 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Interfaces/SimpleTempCallback.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Interfaces/SimpleTempCallback.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion.Lib.Interfaces;
+package mad.location.manager.lib.Interfaces;
/**
* Created by lezh1k on 2/13/18.
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Loggers/GeohashRTFilter.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Loggers/GeohashRTFilter.java
similarity index 95%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Loggers/GeohashRTFilter.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Loggers/GeohashRTFilter.java
index 4fb1d80..c56d033 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Loggers/GeohashRTFilter.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Loggers/GeohashRTFilter.java
@@ -1,12 +1,12 @@
-package com.example.gpsacckalmanfusion.Lib.Loggers;
+package mad.location.manager.lib.Loggers;
import android.location.Location;
-import com.example.gpsacckalmanfusion.Lib.Commons.Coordinates;
-import com.example.gpsacckalmanfusion.Lib.Commons.GeoPoint;
-import com.example.gpsacckalmanfusion.Lib.Commons.Utils;
-import com.example.gpsacckalmanfusion.Lib.Filters.GeoHash;
-import com.example.gpsacckalmanfusion.Lib.Interfaces.ILogger;
+import mad.location.manager.lib.Commons.Coordinates;
+import mad.location.manager.lib.Commons.GeoPoint;
+import mad.location.manager.lib.Commons.Utils;
+import mad.location.manager.lib.Filters.GeoHash;
+import mad.location.manager.lib.Interfaces.ILogger;
import java.util.ArrayList;
import java.util.Arrays;
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/SensorAux/DeviationCalculator.java b/madlocationmanager/src/main/java/mad/location/manager/lib/SensorAux/DeviationCalculator.java
similarity index 98%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/SensorAux/DeviationCalculator.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/SensorAux/DeviationCalculator.java
index fdb03ae..0905008 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/SensorAux/DeviationCalculator.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/SensorAux/DeviationCalculator.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion.Lib.SensorAux;
+package mad.location.manager.lib.SensorAux;
/**
* Created by lezh1k on 2/13/18.
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/SensorAux/SensorCalibrator.java b/madlocationmanager/src/main/java/mad/location/manager/lib/SensorAux/SensorCalibrator.java
similarity index 98%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/SensorAux/SensorCalibrator.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/SensorAux/SensorCalibrator.java
index 3cec294..ad36c94 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/SensorAux/SensorCalibrator.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/SensorAux/SensorCalibrator.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion.Lib.SensorAux;
+package mad.location.manager.lib.SensorAux;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Services/KalmanLocationService.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Services/KalmanLocationService.java
similarity index 97%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Services/KalmanLocationService.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Services/KalmanLocationService.java
index b16a434..1e58cb2 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Services/KalmanLocationService.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Services/KalmanLocationService.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion.Lib.Services;
+package mad.location.manager.lib.Services;
import android.Manifest;
import android.annotation.SuppressLint;
@@ -24,15 +24,15 @@
import android.support.v4.app.ActivityCompat;
import android.util.Log;
-import com.example.gpsacckalmanfusion.Lib.Commons.Coordinates;
-import com.example.gpsacckalmanfusion.Lib.Commons.GeoPoint;
-import com.example.gpsacckalmanfusion.Lib.Commons.SensorGpsDataItem;
-import com.example.gpsacckalmanfusion.Lib.Commons.Utils;
-import com.example.gpsacckalmanfusion.Lib.Filters.GPSAccKalmanFilter;
-import com.example.gpsacckalmanfusion.Lib.Interfaces.ILogger;
-import com.example.gpsacckalmanfusion.Lib.Interfaces.LocationServiceInterface;
-import com.example.gpsacckalmanfusion.Lib.Interfaces.LocationServiceStatusInterface;
-import com.example.gpsacckalmanfusion.Lib.Loggers.GeohashRTFilter;
+import mad.location.manager.lib.Commons.Coordinates;
+import mad.location.manager.lib.Commons.GeoPoint;
+import mad.location.manager.lib.Commons.SensorGpsDataItem;
+import mad.location.manager.lib.Commons.Utils;
+import mad.location.manager.lib.Filters.GPSAccKalmanFilter;
+import mad.location.manager.lib.Interfaces.ILogger;
+import mad.location.manager.lib.Interfaces.LocationServiceInterface;
+import mad.location.manager.lib.Interfaces.LocationServiceStatusInterface;
+import mad.location.manager.lib.Loggers.GeohashRTFilter;
import java.util.ArrayList;
import java.util.List;
diff --git a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Services/ServicesHelper.java b/madlocationmanager/src/main/java/mad/location/manager/lib/Services/ServicesHelper.java
similarity index 94%
rename from madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Services/ServicesHelper.java
rename to madlocationmanager/src/main/java/mad/location/manager/lib/Services/ServicesHelper.java
index 0e31e2b..ed5832f 100644
--- a/madlocationmanager/src/main/java/com/example/gpsacckalmanfusion/Lib/Services/ServicesHelper.java
+++ b/madlocationmanager/src/main/java/mad/location/manager/lib/Services/ServicesHelper.java
@@ -1,4 +1,4 @@
-package com.example.gpsacckalmanfusion.Lib.Services;
+package mad.location.manager.lib.Services;
import android.content.ComponentName;
import android.content.Context;
@@ -6,9 +6,9 @@
import android.content.ServiceConnection;
import android.os.IBinder;
-import com.example.gpsacckalmanfusion.Lib.Interfaces.LocationServiceInterface;
-import com.example.gpsacckalmanfusion.Lib.Interfaces.LocationServiceStatusInterface;
-import com.example.gpsacckalmanfusion.Lib.Interfaces.SimpleTempCallback;
+import mad.location.manager.lib.Interfaces.LocationServiceInterface;
+import mad.location.manager.lib.Interfaces.LocationServiceStatusInterface;
+import mad.location.manager.lib.Interfaces.SimpleTempCallback;
import java.util.ArrayList;
import java.util.List;
diff --git a/madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/CoordinatesUnitTest.java b/madlocationmanager/src/test/java/mad/location/manager/test/CoordinatesUnitTest.java
similarity index 90%
rename from madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/CoordinatesUnitTest.java
rename to madlocationmanager/src/test/java/mad/location/manager/test/CoordinatesUnitTest.java
index 8978a5c..3c719b3 100644
--- a/madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/CoordinatesUnitTest.java
+++ b/madlocationmanager/src/test/java/mad/location/manager/test/CoordinatesUnitTest.java
@@ -1,7 +1,7 @@
-package com.example.gpsacckalmanfusion;
+package mad.location.manager.test;
-import com.example.gpsacckalmanfusion.Lib.Commons.Coordinates;
-import com.example.gpsacckalmanfusion.Lib.Commons.GeoPoint;
+import mad.location.manager.lib.Commons.Coordinates;
+import mad.location.manager.lib.Commons.GeoPoint;
import org.junit.Test;
diff --git a/madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/DeviationsCalculatorTest.java b/madlocationmanager/src/test/java/mad/location/manager/test/DeviationsCalculatorTest.java
similarity index 89%
rename from madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/DeviationsCalculatorTest.java
rename to madlocationmanager/src/test/java/mad/location/manager/test/DeviationsCalculatorTest.java
index ad1f71f..bc2acc3 100644
--- a/madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/DeviationsCalculatorTest.java
+++ b/madlocationmanager/src/test/java/mad/location/manager/test/DeviationsCalculatorTest.java
@@ -1,6 +1,6 @@
-package com.example.gpsacckalmanfusion;
+package mad.location.manager.test;
-import com.example.gpsacckalmanfusion.Lib.SensorAux.DeviationCalculator;
+import mad.location.manager.lib.SensorAux.DeviationCalculator;
import org.junit.Test;
diff --git a/madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/GeoHashUnitTest.java b/madlocationmanager/src/test/java/mad/location/manager/test/GeoHashUnitTest.java
similarity index 95%
rename from madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/GeoHashUnitTest.java
rename to madlocationmanager/src/test/java/mad/location/manager/test/GeoHashUnitTest.java
index 8ee0537..e279e9e 100644
--- a/madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/GeoHashUnitTest.java
+++ b/madlocationmanager/src/test/java/mad/location/manager/test/GeoHashUnitTest.java
@@ -1,7 +1,7 @@
-package com.example.gpsacckalmanfusion;
+package mad.location.manager.test;
-import com.example.gpsacckalmanfusion.Lib.Commons.GeoPoint;
-import com.example.gpsacckalmanfusion.Lib.Filters.GeoHash;
+import mad.location.manager.lib.Commons.GeoPoint;
+import mad.location.manager.lib.Filters.GeoHash;
import org.junit.Test;
diff --git a/madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/MatrixUnitTest.java b/madlocationmanager/src/test/java/mad/location/manager/test/MatrixUnitTest.java
similarity index 98%
rename from madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/MatrixUnitTest.java
rename to madlocationmanager/src/test/java/mad/location/manager/test/MatrixUnitTest.java
index 79b226f..62c509c 100644
--- a/madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/MatrixUnitTest.java
+++ b/madlocationmanager/src/test/java/mad/location/manager/test/MatrixUnitTest.java
@@ -1,6 +1,6 @@
-package com.example.gpsacckalmanfusion;
+package mad.location.manager.test;
-import com.example.gpsacckalmanfusion.Lib.Commons.Matrix;
+import mad.location.manager.lib.Commons.Matrix;
import org.junit.Test;
diff --git a/madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/SensorGpsDataItemQueueUnitTest.java b/madlocationmanager/src/test/java/mad/location/manager/test/SensorGpsDataItemQueueUnitTest.java
similarity index 91%
rename from madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/SensorGpsDataItemQueueUnitTest.java
rename to madlocationmanager/src/test/java/mad/location/manager/test/SensorGpsDataItemQueueUnitTest.java
index 855299b..198cb1e 100644
--- a/madlocationmanager/src/test/java/com/example/gpsacckalmanfusion/SensorGpsDataItemQueueUnitTest.java
+++ b/madlocationmanager/src/test/java/mad/location/manager/test/SensorGpsDataItemQueueUnitTest.java
@@ -1,6 +1,6 @@
-package com.example.gpsacckalmanfusion;
+package mad.location.manager.test;
-import com.example.gpsacckalmanfusion.Lib.Commons.SensorGpsDataItem;
+import mad.location.manager.lib.Commons.SensorGpsDataItem;
import org.junit.Test;