Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices
MrYoranimo 508a86b8ed Xiaomi: fix determining fall asleep time
Because the previous implementation of determining the time the user
falls asleep in a given time range would take the 24 hours in advance
into account, graphs displaying sleep data would erroneously indicate
that the user has been asleep since the start of the timeframe if
the user was asleep during the rollover of the time frame 24 hours
before.

This commit change the algorithm to only fetch the last sleep stage
sample and sleep range sample from the database that occurred before
the given time range. This saves having to process 24 hours worth of
samples before the time range in both cases, and prevents taking into
account irrelevant sleep ranges.
2024-05-07 13:33:52 +02:00
..
amazfitbip Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
asteroidos Cleanup and update AsteroidOS 2024-03-28 12:30:20 -07:00
banglejs bangle.js: normalized activity intensity 2024-04-27 05:22:48 +00:00
binary_sensor Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
casio Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
cmfwatchpro Nothing CMF Watch Pro: Add weather support 2024-03-25 22:45:36 +00:00
divoom Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
domyos Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
femometer Plotting Temperature (#3381) 2024-03-09 14:00:09 +00:00
fitpro Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
flipper/zero Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
galaxy_buds Galaxy Buds 2: Fix recognition of some versions 2024-05-04 11:06:07 +01:00
hplus HPlus: Migrate global preferences to device-specific 2024-04-28 19:02:20 +01:00
huami feature: Sleep as android support 2024-04-20 12:15:42 +03:00
huawei [Huawei] refactor: removed isExperimental override 2024-05-01 22:35:12 +02:00
id115 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
itag Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
jyou Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
lefun Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
lenovo Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
liveview Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
makibeshr3 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
miband Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
mijia_lywsd Mijia MHO-C303: Initial support 2024-01-17 17:55:15 +00:00
miscale2 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
no1f1 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
nothing Generalize auto-pickup and read-notifications-aloud features 2024-04-13 14:10:54 +00:00
nut Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
pebble Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
pinetime Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
qc35 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
qhybrid Fossil/Skagen Hybrids: Update device settings to new structure 2024-04-09 06:55:53 +00:00
roidmi Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
scannable Fix crash during discovery 2024-03-30 09:02:18 +00:00
smaq2oss Add support for multiple weather locations 2024-03-29 21:10:40 +00:00
soflow Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
sony Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
sonyswr12 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
supercars Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
test Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
tlw64 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
um25 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
vesc Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
vibratissimo Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
vivomovehr Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
waspos Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
watch9 Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
withingssteelhr Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
xiaomi Xiaomi: fix determining fall asleep time 2024-05-07 13:33:52 +02:00
xwatch Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
zetime Bangle.js: Add screenshot support 2024-03-25 20:38:37 +00:00
AbstractBLClassicDeviceCoordinator.java Xiaomi: introduce XiaomiSppSupport 2024-01-17 20:16:38 +00:00
AbstractBLEDeviceCoordinator.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AbstractDeviceCoordinator.java feature: Sleep as android support 2024-04-20 12:15:42 +03:00
AbstractSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AbstractSampleToTimeSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AbstractTimeSampleProvider.java Xiaomi: fix determining fall asleep time 2024-05-07 13:33:52 +02:00
DeviceCoordinator.java feature: Sleep as android support 2024-04-20 12:15:42 +03:00
DeviceManager.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
EventHandler.java feature: Sleep as android support 2024-04-20 12:15:42 +03:00
InstallHandler.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
SampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
SleepAsAndroidFeature.java feature: Sleep as android support 2024-04-20 12:15:42 +03:00
TimeSampleProvider.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
UnknownDeviceCoordinator.java Dashboard view (#3478) 2024-04-04 19:28:04 +00:00