Commit Graph

140 Commits

Author SHA1 Message Date
Dennis Guse 4ae9d24960 Implemented MarkerIterator. 2025-11-26 21:42:11 +01:00
Dennis Guse 0b0b1a0d8d Cleanup. 2025-11-26 20:07:39 +01:00
Dennis Guse 090cdbf712 Cleanup: ContentProviderUtils.getMarkerCursor() has an optional parameter. 2025-11-26 20:05:27 +01:00
Dennis Guse 8258d607c3 Cleanup: ContentProviderUtils.getMarkerCursor() had an unused parameter. 2025-11-26 19:56:32 +01:00
Dennis Guse 686a2a9b8f Cleanup: removed method that was only used for testing in ContentProviderUtils. 2025-11-25 19:34:41 +01:00
Dennis Guse 7ddb6b32bb Cleanup: TrackDataHub doesn't need to query the id of the last TrackPoint. 2025-11-25 18:46:20 +01:00
Dennis Guse 5cd639c852 Cleanup: TrackDataHub only needs in-sample. 2025-11-25 18:42:02 +01:00
Dennis Guse ae9906fb18 Cleanup. 2025-11-25 07:40:01 +01:00
Dennis Guse 1672ba99ad Cleanup: in TrackImporter create Track object when all data got loaded. 2025-11-25 07:31:49 +01:00
Dennis Guse a6d4a05839 Statistics requires startTime and stopTime.
This is now enforced for import as wells.
2025-11-25 07:31:48 +01:00
Dennis Guse 92cecb6f3a For TrackStatisticsUpdater there may no pre-existing Statistics. 2025-11-22 13:14:50 +01:00
Dennis Guse e6bdc9a41d Altitude extremities is now null instead of (0,0) if no altitude was received (yet). 2025-11-22 13:03:52 +01:00
Dennis Guse 73d6ca6ca6 Cleanup: SegmentStatisticUpdater is always initialized. 2025-11-21 16:30:29 +01:00
Dennis Guse 1ef7a6ecc4 Move .merge() from SegmentStatisticUpdater to Statistics.
This is a functional change as maxSpeed is now determined by Segment (rather than the joined Segment).
2025-11-21 16:15:18 +01:00
Dennis Guse 94a0b57362 Simplify construction of TrackStatisticsUpdater. 2025-11-21 13:37:14 +01:00
Dennis Guse 4307dceb70 Cleanup: rename to totalDuration and movingDuration. 2025-11-17 22:22:44 +01:00
Dennis Guse 653352255e Cleanup: SegmentStatisticUpdater. 2025-11-17 22:22:44 +01:00
Dennis Guse ebcdd87481 Cleanup: use Duration.ZERO. 2025-11-17 22:22:44 +01:00
Dennis Guse 221b61c7f1 Aggregate statistics are now computed in the database. 2025-11-06 21:54:30 +01:00
Dennis Guse ca64f2c749 Tracks table: remove unused columns and rename existing columns. 2025-11-06 21:54:30 +01:00
Dennis Guse 3d083928eb Cleanup. 2025-11-06 21:54:30 +01:00
Dennis Guse 6e4d46a14d Distance.ZERO as constant. 2025-11-06 21:54:30 +01:00
Dennis Guse fffeb40200 Speed.ZERO as constant. 2025-11-06 21:54:30 +01:00
Dennis Guse 7791ff8659 Cleanup: Track simplify constructors. 2025-11-06 21:54:30 +01:00
Dennis Guse 28da32f573 Fixed TrackRecordingServiceRecordingTest: disable the real GPS (finally). 2025-11-01 10:13:52 +01:00
Dennis Guse f31e146cda Cleanup: TrackPoint uses AltitudeGainLoss. 2025-10-30 22:33:00 +01:00
Dennis Guse 696939112a Cleanup: Statistics doesn't need isIdle.
isIdle is only used by SegmentStatisticsUpdater.
2025-10-30 21:52:00 +01:00
Dennis Guse 11f1b6e72d Cleanup: TrackPointIterator is now package private. 2025-10-30 07:54:05 +01:00
Dennis Guse 8f537f33a7 Cleanup: removed Track.setTrackStatistics(SegmentStatisticsUpdater). 2025-10-30 07:54:05 +01:00
Dennis Guse 4db72230ff Refactored VoiceAnnouncementUtilsTest. 2025-10-30 07:54:05 +01:00
Dennis Guse 05e45b6870 TrackStatisticsUpdater now provides Statistics.
Used for non-testing code.
2025-10-30 07:54:04 +01:00
Dennis Guse c227d54f26 Cleanup: SegmentStatisticUpdater and Track do not need equal(). 2025-10-30 07:54:04 +01:00
Dennis Guse bc62320b9f Track only has Statistics (instead of SegmentStatisticsUpdater). 2025-10-30 07:54:04 +01:00
Dennis Guse 0ad32f676c Create SegmentStatisticUpdater by passing Statistics (2/2). 2025-10-30 07:54:04 +01:00
Dennis Guse fff5f2d406 Create SegmentStatisticUpdater by passing Statistics (1/2). 2025-10-30 07:54:04 +01:00
Dennis Guse be653b73ee Added value object: AltitudeExtremities. 2025-10-30 07:54:04 +01:00
Dennis Guse 4580f2a7bb ContentProviderUtils use Statistics for saving. 2025-10-30 07:54:04 +01:00
Dennis Guse 5dd56892fb Cleanup: move Statistics to package models. 2025-10-30 07:54:04 +01:00
Dennis Guse e3460d94ed Statistics: used when only the data is needed (instead of passing SegmentStatisticUpdater). 2025-10-30 07:54:04 +01:00
Dennis Guse 920ad5129a Introduced Statistics as a value object. 2025-10-30 07:54:04 +01:00
Dennis Guse fba08fe8dd Cleanup: rename TrackStatistics to SegmentStatisticsUpdater. 2025-10-30 07:54:04 +01:00
Dennis Guse 1a1a8a851b Cleanup: use Stream.toList()
Replaces Stream.collect(Collection.toList() | Collectors.toCollection()).
2025-10-19 18:26:49 +02:00
Dennis Guse daeb972c8a Cleanup: simplify stream by using List operations (desugar). 2025-10-18 21:10:26 +02:00
Dennis Guse 73872e8926 Cleanup. 2025-10-18 21:09:21 +02:00
Dennis Guse e9d1080e5d Cleanup: SpeedFormatter doesn't support decimal places. 2025-10-18 09:40:54 +02:00
Dennis Guse 2e13054042 Cleanup: TrackPoint exposes Position. 2025-06-27 15:51:51 +02:00
Dennis Guse 90446639b0 Cleanup: remove TrackUtils by inlining functionality. 2025-06-25 19:44:38 +02:00
Dennis Guse 8744724c0f Enable to edit timezone offset for recorded tracks.
Fixes #2014.
2025-06-25 19:44:38 +02:00
Dennis Guse 074484393e Bugfix: Markers without photo could not be deleted (created pre v4.18.0).
Introduced in 1b33184835

Fixes #2071.
2025-03-15 20:36:00 +01:00
Dennis Guse ea4193a562 Bugfix: GPS-based data in UI should not drop back to zero.
Likely introduced b9ed5e28e0.
2025-03-07 17:45:31 +01:00