From f44dff3adc606c8d9403726182566e4b28c42a0e Mon Sep 17 00:00:00 2001 From: Aditya Mishra Date: Thu, 6 Jul 2023 14:48:52 +0530 Subject: [PATCH 1/3] Added schema for Activity Transition event --- .../google_activity_transition_event.avsc | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 commons/passive/google/google_activity_transition_event.avsc diff --git a/commons/passive/google/google_activity_transition_event.avsc b/commons/passive/google/google_activity_transition_event.avsc new file mode 100644 index 00000000..0ee2b214 --- /dev/null +++ b/commons/passive/google/google_activity_transition_event.avsc @@ -0,0 +1,22 @@ +{ + "namespace": "org.radarcns.passive.google", + "type": "record", + "name": "GoogleActivityTransitionEvent", + "doc": "Represents an activity transition event, for example start to walk, stop running etc.", + "fields": [ + { "name": "time", "type": "double", "doc": "The UNIX epoch time (s) for the moment when the activity takes place.." }, + { "name": "timeReceived", "type": "double", "doc": "Device receiver timestamp in UTC (s)." }, + { "name": "activity", "type": { + "name": "ActivityType", + "type": "enum", + "doc": "The detected activity of the device. \nIN_VEHICLE indicates the device is in a vehicle, such as a car. \nON_BICYCLE indicates the device is on a bicycle. \n ON_FOOT indicates the device is on a user who is walking or running. \nRUNNING indicates the device is on a user who is running. This is a sub-activity of ON_FOOT. \nSTILL indicates the device is still (not moving). \nTILTING indicates the device angle relative to gravity changed significantly. This often occurs when a device is picked up from a desk or a user who is sitting stands up. \nWALKING indicates the device is on a user who is walking. This is a sub-activity of ON_FOOT. \nUNKNOWN indicates activity is not detected.", + "symbols": ["IN_VEHICLE", "ON_BICYCLE", "ON_FOOT", "RUNNING", "STILL", "TILTING", "WALKING", "UNKNOWN"] + }, "doc": "Gets the type of the activity of the transition.", "default": "UNKNOWN" }, + { "name": "transition", "type": { + "name": "TransitionType", + "type": "enum", + "doc": "Represents the transition associated with an activity listed in ActivityType. For instance start to walk, stop running etc. \nENTER represents user enters the given activity from ActivityType. \nEXIT represents user exits the given activity from ActivityType.", + "symbols": ["ENTER", "EXIT", "UNKNOWN"] + }, "doc": "Represents the transition associated with an activity listed in ActivityType.", "default": "UNKNOWN" } + ] +} From 7e27ae439e7d3627eb5079320c91e0ff96b15226 Mon Sep 17 00:00:00 2001 From: Aditya Mishra Date: Thu, 6 Jul 2023 14:49:41 +0530 Subject: [PATCH 2/3] Added new specification for google-activity-recognition --- .../passive/android_google_api-1.0.0.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 specifications/passive/android_google_api-1.0.0.yml diff --git a/specifications/passive/android_google_api-1.0.0.yml b/specifications/passive/android_google_api-1.0.0.yml new file mode 100644 index 00000000..7e0cf437 --- /dev/null +++ b/specifications/passive/android_google_api-1.0.0.yml @@ -0,0 +1,14 @@ +#======================================== Google APIs =============================================# +vendor: GOOGLE +model: API +version: 1.0.0 +data: + #Google Activity Recognition + - type: ACTIVITY_TRANSITION_EVENT + app_provider: .google.GoogleActivityProvider + unit: NON_DIMENSIONAL + processing_state: RAW + topic: android_google_activity_transition_event + value_schema: .passive.google.GoogleActivityTransitionEvent + sample_rate: + dynamic: true From c9324e5c37933f1b0ff84c3cd1068a7f0873099c Mon Sep 17 00:00:00 2001 From: Aditya Mishra Date: Thu, 6 Jul 2023 15:14:55 +0530 Subject: [PATCH 3/3] renamed model and specification file --- ...android_google_api-1.0.0.yml => google_activity-1.0.0.yml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename specifications/passive/{android_google_api-1.0.0.yml => google_activity-1.0.0.yml} (83%) diff --git a/specifications/passive/android_google_api-1.0.0.yml b/specifications/passive/google_activity-1.0.0.yml similarity index 83% rename from specifications/passive/android_google_api-1.0.0.yml rename to specifications/passive/google_activity-1.0.0.yml index 7e0cf437..591e297e 100644 --- a/specifications/passive/android_google_api-1.0.0.yml +++ b/specifications/passive/google_activity-1.0.0.yml @@ -1,6 +1,6 @@ -#======================================== Google APIs =============================================# +#======================================= Google Activity ==========================================# vendor: GOOGLE -model: API +model: ACTIVITY version: 1.0.0 data: #Google Activity Recognition