Skip to content

Commit dfa11ac

Browse files
Meng6ChinW97
andauthored
Updated phone battery test data and results (carissalow#165)
Co-authored-by: Weiyu <[email protected]>
1 parent da633c5 commit dfa11ac

40 files changed

+867
-28
lines changed

docs/change-log.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Change Log
2+
## v.1.7.0
3+
- Add tests for phone battery features
24
## v1.6.0
35
- Refactor PHONE_CALLS RAPIDS provider to compute features based on call episodes or events
46
- Refactor PHONE_LOCATIONS DORYAB provider to compute features based on location episodes

docs/developers/test-cases.md

+24-22
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The following is a list of the sensors that testing is currently available.
1111
| Phone Accelerometer | RAPIDS | Y | Y | Y |
1212
| Phone Activity Recognition | RAPIDS | Y | Y | Y |
1313
| Phone Applications Foreground | RAPIDS | Y | Y | Y |
14-
| Phone Battery | RAPIDS | Y | Y | N |
14+
| Phone Battery | RAPIDS | Y | Y | Y |
1515
| Phone Bluetooth | Doryab | Y | Y | Y |
1616
| Phone Bluetooth | RAPIDS | Y | Y | Y |
1717
| Phone Calls | RAPIDS | Y | Y | Y |
@@ -28,7 +28,7 @@ The following is a list of the sensors that testing is currently available.
2828
| Fitbit Data Yield | RAPIDS | Y | Y | Y |
2929
| Fitbit Heart Rate Summary | RAPIDS | Y | Y | Y |
3030
| Fitbit Heart Rate Intraday | RAPIDS | Y | Y | Y |
31-
| Fitbit Sleep Summary | RAPIDS | N | N | N |
31+
| Fitbit Sleep Summary | RAPIDS | Y | Y | Y |
3232
| Fitbit Sleep Intraday | RAPIDS | Y | Y | Y |
3333
| Fitbit Sleep Intraday | PRICE | Y | Y | Y |
3434
| Fitbit Steps Summary | RAPIDS | Y | Y | Y |
@@ -46,7 +46,7 @@ Description
4646
- One episode before the time switch (`Sun 00:02:00`) and one episode after the time switch (`Sun 04:18:00`)
4747
- Multiple episodes within one min which cause variance in magnitude (`Fri 00:10:25`, `Fri 00:10:27` and `Fri 00:10:46`)
4848

49-
Checklist:
49+
Checklist
5050

5151
|time segment| single tz | multi tz|platform|
5252
|-|-|-|-|
@@ -69,7 +69,7 @@ Description
6969
- Two episodes locate in the same daily segment (`Fri 11:57:56.385` and `Sat 10:54:10.000`)
7070
- One episode before the time switch (`Sun 00:48:01.000`) and one episode after the time switch (`Sun 06:21:01.000`)
7171

72-
Checklist:
72+
Checklist
7373

7474
|time segment| single tz | multi tz|platform|
7575
|-|-|-|-|
@@ -158,24 +158,26 @@ Checklist
158158

159159
## Battery
160160

161-
Due to the difference in the format of the raw battery data for iOS and Android as well as versions of iOS the following is the expected results the `battery_deltas.csv`. This would give a better idea of the use cases being tested since the `battery_deltas.csv` would make both the iOS and Android data comparable. These files are used to calculate the features for the battery sensor.
162-
163-
- The battery delta data file contains data for 1 day.
164-
- The battery delta data contains 1 record each for a `charging` and
165-
`discharging` episode that falls within an `epoch` for every
166-
`epoch`. Thus, for the `daily` epoch there would be multiple
167-
`charging` and `discharging` episodes
168-
- Since either a `charging` episode or a `discharging` episode and
169-
not both can occur across epochs, in order to test episodes that
170-
occur across epochs alternating episodes of `charging` and
171-
`discharging` episodes that fall across `night` to `morning`,
172-
`morning` to `afternoon` and finally `afternoon` to `night` are
173-
present in the battery delta data. This starts with a
174-
`discharging` episode that begins in `night` and end in `morning`.
175-
- There is one battery data file each, for testing both iOS and
176-
Android data formats.
177-
- There is also an additional empty data file for both android and
178-
iOS for testing empty data files
161+
Description
162+
163+
- The 4-day raw data is contained in `phone_battery_raw.csv`
164+
- One discharge episode acrossing two 30-min time segements (`Fri 05:57:30.123` to `Fri 06:04:32.456`)
165+
- One charging episode acrossing two 30-min time segments (`Fri 11:55:58.416` to `Fri 12:08:07.876`)
166+
- One discharge episode and one charging episode locate within the same 30-min time segement (`Fri 21:30:00` to `Fri 22:00:00`)
167+
- One episode before the time switch (`Sun 00:24:00.000`) and one episode after the time switch (`Sun 21:58:00`)
168+
- Two episodes locate in the same daily segment
169+
170+
Checklist
171+
172+
|time segment| single tz | multi tz|platform|
173+
|-|-|-|-|
174+
|30min|OK|OK|android|
175+
|morning|OK|OK|android|
176+
|daily|OK|OK|android|
177+
|threeday|OK|OK|android|
178+
|weekend|OK|OK|android|
179+
|beforeMarchEvent|OK|OK|android|
180+
|beforeNovemberEvent|OK|OK|android|
179181

180182
## Bluetooth
181183

0 commit comments

Comments
 (0)