Migrate phone apps foreground sensor to new data stream

pull/128/head
Meng Li 2021-03-08 22:23:37 -05:00 committed by JulioV
parent 6b13c80e40
commit 824523e32c
4 changed files with 47 additions and 0 deletions

View File

@ -84,6 +84,25 @@ Stream columns named `FLAG_TO_MUTATE` means they are extracted from the `FLAG_AS
src/data/streams/mutations/phone/aware/activity_recogniton_ios_unification.R src/data/streams/mutations/phone/aware/activity_recogniton_ios_unification.R
``` ```
??? info "PHONE_APPLICATIONS_FOREGROUND"
=== "ANDROID"
**COLUMN_MAPPINGS**
| RAPIDS column | Stream column |
|--------------------|--------------------|
| TIMESTAMP | timestamp |
| DEVICE_ID | device_id |
| PACKAGE_NAME | package_name |
| APPLICATION_NAME | application_name |
| IS_SYSTEM_APP | is_system_app |
**MUTATION_SCRIPTS**
None
??? info "PHONE_CONVERSATION" ??? info "PHONE_CONVERSATION"
=== "ANDROID" === "ANDROID"

View File

@ -24,6 +24,17 @@ This is a description of the format RAPIDS needs to process data for the followi
| CONFIDENCE | An integer (ranged from 0 to 100) that denotes the prediction accuracy | | CONFIDENCE | An integer (ranged from 0 to 100) that denotes the prediction accuracy |
??? info "PHONE_APPLICATIONS_FOREGROUND"
| RAPIDS column | Description |
|--------------------|---------------------------------------------------------------------------|
| TIMESTAMP | An UNIX timestamp (13 digits) when a row of data was logged |
| DEVICE_ID | A string that uniquely identifies a device |
| PACKAGE_NAME | Applications package name |
| APPLICATION_NAME | Applications localized name |
| IS_SYSTEM_APP | Devices pre-installed application |
??? info "PHONE_CONVERSATION" ??? info "PHONE_CONVERSATION"
| RAPIDS column | Description | | RAPIDS column | Description |

View File

@ -36,6 +36,16 @@ PHONE_ACTIVITY_RECOGNITION:
MUTATION_SCRIPTS: MUTATION_SCRIPTS:
- "src/data/streams/mutations/phone/aware/activity_recogniton_ios_unification.R" - "src/data/streams/mutations/phone/aware/activity_recogniton_ios_unification.R"
PHONE_APPLICATIONS_FOREGROUND:
ANDROID:
COLUMN_MAPPINGS:
TIMESTAMP: timestamp
DEVICE_ID: device_id
PACKAGE_NAME: package_name
APPLICATION_NAME: application_name
IS_SYSTEM_APP: is_system_app
MUTATION_SCRIPTS: # List any python or r scripts that mutate your raw data
PHONE_CONVERSATION: PHONE_CONVERSATION:
ANDROID: ANDROID:
COLUMN_MAPPINGS: COLUMN_MAPPINGS:

View File

@ -12,6 +12,13 @@ PHONE_ACTIVITY_RECOGNITION:
- ACTIVITY_NAME - ACTIVITY_NAME
- CONFIDENCE - CONFIDENCE
PHONE_APPLICATIONS_FOREGROUND:
- TIMESTAMP
- DEVICE_ID
- PACKAGE_NAME
- APPLICATION_NAME
- IS_SYSTEM_APP
PHONE_CONVERSATION: PHONE_CONVERSATION:
- TIMESTAMP - TIMESTAMP
- DEVICE_ID - DEVICE_ID