Dennis Guse
442e23b106
Cleanup: EGM2008CorrectionManager returns Altitude.
2023-05-27 08:07:33 +02:00
Dennis Guse
6d61206782
Renamed GPSHandler to GPSManager.
2023-03-28 20:58:23 +02:00
Dennis Guse
b9dedef292
Refactor: introduced SensorManager.
2023-03-28 20:58:23 +02:00
Dennis Guse
e16780277f
Refactor: introduced SensorConnector interface.
2023-03-27 22:59:31 +02:00
Dennis Guse
14b6746dff
Handle LocationManager callbacks with TrackRecordingService's handler.
...
Fixes #1328 .
2022-10-28 22:35:36 +02:00
Dennis Guse
a5eca8fa64
Test: do not request GPS permissions for test that use fake locations anyhow.
2022-10-28 18:41:54 +02:00
Leon Marz
a1eb5fb15f
Check if the device has GPS
...
Fixes #1380
2022-09-28 21:39:33 +02:00
Dennis Guse
0ada9a2463
Android13: request NOTIFICATION_POST permission.
...
Fixes #1353 .
Part of #1210 .
2022-08-18 08:07:37 +02:00
Dennis Guse
63d1c9ee5e
GPS: set signal lost threshold to 30s.
2022-08-14 20:18:37 +02:00
Dennis Guse
1502b0cfa7
Gain/loss: handle events in our TrackRecordingService.handler (avoids potential race conditions).
2022-07-07 18:27:56 +02:00
Dennis Guse
40d2bf0c22
Bluetooth: use TrackRecording handler for callback.
...
Otherwise the thread is not defined and a SecurityException may be triggered when inserting data into the ContentProvider.
Sadly, below API26 this needs to be done manually.
Fixes #1165 .
2022-05-11 20:56:52 +02:00
Dennis Guse
18b21a6a3e
Bugfix: prevent race condition in TrackPointCreator.
...
This race condition leads to a crash in TrackStatisticsUpdater as the time might appear to move backwards if the created TrackPoints are not stored in order. Might happen if multiple sensors (BLE or GPS) are used in simultaneously.
Every method affected by a race condition is now synchronized.
Problem was introduced in c4b8082efc
Fixes #1151 .
2022-04-23 12:48:19 +02:00
Peter Storch
e61b065f2b
fix #1139 CI build
...
- fix NPEs in TrackPointCreator.fill()
- fix locale dependant tests
- wait for UI components
- extract utility functions into EspressoUtils
2022-03-13 01:28:10 +01:00
Dennis Guse
0848897ed0
Bugfix: speed showed sometimes 0.0 in UI.
...
Fixes #1117 .
2022-02-17 18:19:17 +01:00
Román Ginés
7ca6925e7d
Recording without GPS: show a Snackbar to warn user that recording is not using GPS.
2022-02-15 17:20:44 +01:00
Dennis Guse
5c06c7548f
GPS is now optional: request GPS access in TrackRecordingActivity.
...
Fixes #1061 .
2022-02-14 22:17:10 +01:00
Dennis Guse
78519883c0
Refactored ExportServiceResultReceiver to make TrackRecordingService simpler.
2022-02-14 22:01:52 +01:00
Dennis Guse
708245bd50
TrackRecordingServices: managers register for sharedPreference changes.
2022-01-27 22:04:45 +01:00
Dennis Guse
5998f9127d
TrackPointCreator needs to reset GPSHandler as it might have been running beforehand.
2022-01-27 22:04:45 +01:00
Dennis Guse
864bc8fad9
Cleanup.
2022-01-15 23:16:53 +01:00
Dennis Guse
88c4e1a109
Package structure: moved sensors.
...
Part of #963 .
2022-01-15 22:24:59 +01:00
Dennis Guse
0645628d7e
Package structure: moved models and database.
...
Part of #963 .
2022-01-15 22:24:59 +01:00
Dennis Guse
522d8b41d8
Bugfix: use monotonic clock.
...
Fixes #800 .
2022-01-15 19:52:27 +01:00
Dennis Guse
cd7bf36aa9
TrackRecordingService: add integration tests.
2022-01-09 18:28:35 +01:00
Dennis Guse
8b5320e40e
TrackRecordingService: cleanup tests.
2022-01-09 18:28:35 +01:00
Dennis Guse
c4b8082efc
Bluetooth sensors: event-driven TrackPoint creation.
...
Part of #500 .
2022-01-06 22:12:53 +01:00
Dennis Guse
d6cc7a0321
TrackPointCreator: only try fill TrackPoint with sensor data if started.
2021-12-28 13:05:24 +01:00
Dennis Guse
f8cc257895
KMZ/KML: Export/Import SENSORPOINTs.
...
Part of #500 .
2021-12-28 13:05:23 +01:00
Dennis Guse
ba66c45005
Recording data from BLE sensors alone (need to provide distance).
...
GPS is optional in this case, but no coordinates will be available.
Naive implementation tries to store data every second using the UI timer.
Part of #500 .
2021-12-28 13:05:23 +01:00
Dennis Guse
45125bcda3
Refactor: rename LocationHandler to GPSHandler.
2021-12-28 13:05:23 +01:00
Dennis Guse
62401b2c5c
Cleanup.
2021-11-07 22:19:02 +01:00
Dennis Guse
52a110d998
Bugfix: reset on SensorDataSet should only take place if the TrackPoint was stored
...
Fixes #969 .
2021-10-16 10:23:09 +02:00
Dennis Guse
b6b4c5aa39
Cleanup: move PreferencesUtils into settings package.
...
Part of #963
2021-10-12 22:24:51 +02:00
Dennis Guse
eac3d4b3db
Cleanup: SharedPreference as static variable.
...
Fixes #961 .
2021-10-12 22:24:51 +02:00
Dennis Guse
9cb3d8c1bb
Finished renaming: TrackPointCreator was still referenced as HandlerServer.
2021-08-30 17:24:51 +02:00
Dennis Guse
b32e87e10b
PeriodTaskFactory: refactor interfaces.
2021-08-30 17:24:51 +02:00
Dennis Guse
68c447f77e
Removed AdaptiveLocationListenerPolicy.
...
Fixes #886 .
2021-08-24 18:26:09 +02:00
Dennis Guse
1f84e44a8d
Bugfix: LocationHandler should ignore locations after stopping.
2021-08-15 14:30:57 +02:00
Dennis Guse
6f3efd9ff2
Bugfix: reset TrackRecordingManager properly.
...
Fixes #901 .
2021-08-07 19:37:14 +02:00
Dennis Guse
a3872581bb
Cleanup: Renamed HandlerServer to TrackPointCreator.
2021-08-01 18:40:38 +02:00
Dennis Guse
54be1b74fb
Lint: fix AGP7.0.0 found linting errors.
2021-07-29 22:54:57 +02:00
Dennis Guse
9ab34eb846
TrackRecordingService: EGM2008 computation should only be done for UI.
...
Reverting 16483d4261ff780f940fe4ea223957c898023e14
2021-07-22 17:18:31 +02:00
Dennis Guse
997ddbb4f1
ExportImportTest: made tests deterministic (simulate GPS/sensors).
...
Fixes #761 .
2021-07-22 17:18:31 +02:00
Dennis Guse
3bd00c906a
LocationHandler.onStop(): reset state.
2021-07-22 17:18:31 +02:00
Dennis Guse
d42d1214ea
While recording: UI updates altitude, speed, and bearing to most recently received value.
...
Fixes #866 .
2021-07-22 17:18:31 +02:00
Dennis Guse
db24639829
Cleanup: horizontal accuracy is now a Distance (and named consistently).
2021-07-22 17:18:31 +02:00
Dennis Guse
0f6480197b
Cleanup.
2021-07-22 17:18:31 +02:00
Dennis Guse
18702bb6b3
Cleanup.
2021-07-22 17:18:31 +02:00
Dennis Guse
65e920e8b6
ExportImportTest: made tests deterministic.
...
Fixes #761 .
2021-07-22 17:18:31 +02:00
Dennis Guse
7d24262b38
TrackRecordingService: generate timestamps for TrackPoints in HandlerServer.
...
Part of #822 .
2021-07-22 17:18:31 +02:00