platform/core/connectivity/ua-manager.git
5 years agoFix param sequence in start/stop detection APIs
Atul Rai [Wed, 26 Dec 2018 03:14:08 +0000 (08:44 +0530)]
Fix param sequence in start/stop detection APIs

This patch fixes param sequence in _uam_pm_start_detection and
_uam_pm_stop_detection APIs. It also combines absence and presence
start/stop functions and fixed typo error sesors -> sensors.

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded/modified sensor bitmasks in ua-manager
Atul Rai [Fri, 21 Dec 2018 11:25:36 +0000 (16:55 +0530)]
Added/modified sensor bitmasks in ua-manager

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded implementation for detection APIs
Atul Rai [Fri, 21 Dec 2018 11:12:21 +0000 (16:42 +0530)]
Added implementation for detection APIs

This patch adds implementation for following detection APIs:
1/ UAM_REQUEST_SET_DETECTION_THRESHOLD
2/ UAM_REQUEST_START_PRESENCE_DETECTION
3/ UAM_REQUEST_STOP_PRESENCE_DETECTION
4/ UAM_REQUEST_START_ABSENCE_DETECTION
5/ UAM_REQUEST_STOP_ABSENCE_DETECTION

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoSet/update registered device to plugins
Atul Rai [Fri, 21 Dec 2018 08:32:13 +0000 (14:02 +0530)]
Set/update registered device to plugins

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdd Presence/Absence detected events
Atul Rai [Thu, 20 Dec 2018 11:51:25 +0000 (17:21 +0530)]
Add Presence/Absence detected events

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded user added/remoced events
Atul Rai [Thu, 20 Dec 2018 09:45:45 +0000 (15:15 +0530)]
Added user added/remoced events

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded device added/removed events
Atul Rai [Thu, 20 Dec 2018 09:17:49 +0000 (14:47 +0530)]
Added device added/removed events

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdd sensor state (Ready<->Not Ready) changed event
Atul Rai [Thu, 20 Dec 2018 05:58:40 +0000 (11:28 +0530)]
Add sensor state (Ready<->Not Ready) changed event

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoImplement device and user related APIs
Mayank Haarit [Thu, 20 Dec 2018 06:40:06 +0000 (12:10 +0530)]
Implement device and user related APIs

This patch includes implementation of :
1) _uam_get_default_user
2) _uam_add_user
3) _uam_remove_user
4) _uam_request_get_user_by_account
5) _uam_request_get_user_by_deviceid
6) _uam_request_get_user_by_mac
7) _uam_request_remove_device
8) _uam_request_remove_device_by_deviceid
9) _uam_request_remove_device_by_mac
10) _uam_request_get_device_by_deviceid
11) _uam_request_get_device_by_mac
12) _uam_request_get_devices
13) _uam_request_get_user_devices

Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
5 years agoModify ua-api headers as per capi to ua-api interface
Mayank Haarit [Wed, 19 Dec 2018 10:26:42 +0000 (15:56 +0530)]
Modify ua-api headers as per capi to ua-api interface

Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
5 years agoAdds functions and structures in ua-api
Mayank Haarit [Thu, 20 Dec 2018 06:09:36 +0000 (11:39 +0530)]
Adds functions and structures in ua-api

This patch adds new functions and structures as per
new capi and ua-daemon request handler.

Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
5 years agoModify "email" -> "account"
Atul Rai [Thu, 20 Dec 2018 05:50:13 +0000 (11:20 +0530)]
Modify "email" -> "account"

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoImplement is_device_added() API
Atul Rai [Thu, 20 Dec 2018 04:04:43 +0000 (09:34 +0530)]
Implement is_device_added() API

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded implementation for remove device requests
Atul Rai [Tue, 18 Dec 2018 09:50:51 +0000 (15:20 +0530)]
Added implementation for remove device requests

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded implementation for dbus GET requests
Atul Rai [Tue, 18 Dec 2018 07:24:19 +0000 (12:54 +0530)]
Added implementation for dbus GET requests

This patch adds implementation for following dbus requests:
1/ UAM_REQUEST_GET_USER_BY_EMAIL
2/ UAM_REQUEST_GET_USER_BY_DEVICE_ID
3/ UAM_REQUEST_GET_USER_BY_MAC
4/ UAM_REQUEST_GET_USERS
5/ UAM_REQUEST_GET_DEVICE_BY_DEVICE_ID
6/ UAM_REQUEST_GET_DEVICE_BY_MAC
7/ UAM_REQUEST_GET_DEVICES
8/ UAM_REQUEST_GET_USER_DEVICES

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoImplement VD requirement of MAX 6 devices in UA DB
Atul Rai [Mon, 17 Dec 2018 04:17:18 +0000 (09:47 +0530)]
Implement VD requirement of MAX 6 devices in UA DB

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoImplement BLE Plugin callback handler functions
Atul Rai [Thu, 13 Dec 2018 11:43:57 +0000 (17:13 +0530)]
Implement BLE Plugin callback handler functions

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoFix Remove user functionality
Atul Rai [Thu, 13 Dec 2018 04:56:29 +0000 (10:26 +0530)]
Fix Remove user functionality

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdd request handler implementation for DBUS requests
Atul Rai [Thu, 13 Dec 2018 04:49:59 +0000 (10:19 +0530)]
Add request handler implementation for DBUS requests

This patch adds implementation to handle following DBUS requests from
application:
1/ UAM_REQUEST_IS_SENSOR_READY
2/ UAM_REQUEST_GET_DEFAULT_USER
3/ UAM_REQUEST_ADD_USER
4/ UAM_REQUEST_DELETE_USER
5/ UAM_REQUEST_ADD_DEVICE
6/ UAM_REQUEST_DELETE_DEVICE

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoImplement device added cb in ble plugin handler
Atul Rai [Wed, 12 Dec 2018 10:45:50 +0000 (16:15 +0530)]
Implement device added cb in ble plugin handler

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoHandle user added event in ua-manager-core
Atul Rai [Wed, 12 Dec 2018 09:44:14 +0000 (15:14 +0530)]
Handle user added event in ua-manager-core

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoDefined unknown user id value in ua-plugin.h
Atul Rai [Wed, 12 Dec 2018 09:28:29 +0000 (14:58 +0530)]
Defined unknown user id value in ua-plugin.h

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoModified device register/unregister APIs
Atul Rai [Wed, 12 Dec 2018 07:06:51 +0000 (12:36 +0530)]
Modified device register/unregister APIs

This patch modifies device register/unregister APIs in plugin manager.
It also refactors code by moving utility functions to ua-pm-util.c.

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdd supported technology data field in device info
Atul Rai [Wed, 12 Dec 2018 04:46:23 +0000 (10:16 +0530)]
Add supported technology data field in device info

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded implementation for ua-manager core APIs
Atul Rai [Tue, 11 Dec 2018 10:19:01 +0000 (15:49 +0530)]
Added implementation for ua-manager core APIs

This patch adds following core functionalities in ua-daemon:
1/ _uam_core_add_user
2/ _uam_core_remove_user
3/ _uam_core_add_device
4/ _uam_core_remove_device
5/ _uam_core_get_default_user
6/ _uam_core_get_available_sensors
7/ _uam_core_is_sensor_ready

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoFixed segmentation fault.
saerome kim [Tue, 11 Dec 2018 09:31:05 +0000 (18:31 +0900)]
Fixed segmentation fault.

Signed-off-by: saerome kim <saerome.kim@samsung.com>
5 years agoFixed typo
saerome kim [Tue, 11 Dec 2018 09:26:11 +0000 (18:26 +0900)]
Fixed typo

Signed-off-by: saerome kim <saerome.kim@samsung.com>
5 years agoAdded ua-light-plugin-handler
saerome kim [Tue, 11 Dec 2018 04:25:53 +0000 (13:25 +0900)]
Added ua-light-plugin-handler

Signed-off-by: saerome kim <saerome.kim@samsung.com>
5 years agoImplement start/stop detection in ua-plugin manager
Atul Rai [Fri, 7 Dec 2018 05:42:06 +0000 (11:12 +0530)]
Implement start/stop detection in ua-plugin manager

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoImplement sensor setting APIs in ua-plugin manager
Atul Rai [Fri, 7 Dec 2018 04:11:57 +0000 (09:41 +0530)]
Implement sensor setting APIs in ua-plugin manager

This patch adds implementation for following APIs in ua-plugin manager.
1/ _uam_pm_set_registered_devices
2/ _uam_pm_set_detection_params
3/ _uam_pm_set_detection_threshold

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoImplement device registration APIs
Atul Rai [Fri, 7 Dec 2018 03:35:05 +0000 (09:05 +0530)]
Implement device registration APIs

This patch adds implementation for following APIs in ua-plugin manager.
1/ _uam_pm_register_device
2/ _uam_pm_unregister_device

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded plugin manager APIs and structure
Atul Rai [Fri, 7 Dec 2018 03:23:14 +0000 (08:53 +0530)]
Added plugin manager APIs and structure

This patch add ua-plugin manager APIs and structures based on new plugin
interface. This patch also removes old ua-manager-core implementation.

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded set_detection_threshold() API in ua-plugin.h
Atul Rai [Thu, 6 Dec 2018 10:27:24 +0000 (15:57 +0530)]
Added set_detection_threshold() API in ua-plugin.h

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoMerge pull request #1 from TizenUserAwareness/sk-dev
김새롬/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 [Thu, 6 Dec 2018 05:06:56 +0000 (14:06 +0900)]
Merge pull request #1 from TizenUserAwareness/sk-dev

Change ua-plugin API

5 years agoChange ua-plugin API
saerome kim [Wed, 5 Dec 2018 07:17:23 +0000 (16:17 +0900)]
Change ua-plugin API

- Add a parameter to start_detection/stop_detection
- Add a parameter to set_detection_params

Signed-off-by: saerome kim <saerome.kim@samsung.com>
5 years agoAdded common UA Plugin Interface
Atul Rai [Mon, 26 Nov 2018 11:59:40 +0000 (17:29 +0530)]
Added common UA Plugin Interface

This patch adds new common UA plugin interface and modifies
ua-plugin manager accordingly.

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded ua-plugins for UA plugin interface files
Atul Rai [Fri, 16 Nov 2018 10:06:16 +0000 (15:36 +0530)]
Added ua-plugins for UA plugin interface files

This patch adds ua-plugins in ua-manager. It consists of plugin
interface header files to be used by plugin developers to develop
various plugins (BLE/WiFi/Light/Motion/Cloud etc.) to be used in
User awareness framework.

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoMerge changes from 'atul_dev' branch
saerome kim [Fri, 16 Nov 2018 00:29:30 +0000 (09:29 +0900)]
Merge changes from 'atul_dev' branch

- This patch only brought some of Atul's PHASE1 jobs.
In other words, this guarentee successful build.

Signed-off-by: saerome kim <saerome.kim@samsung.com>
5 years agoChanged prefix from 'ua' to 'uam'
saerome kim [Thu, 15 Nov 2018 04:57:39 +0000 (13:57 +0900)]
Changed prefix from 'ua' to 'uam'

Signed-off-by: saerome kim <saerome.kim@samsung.com>
5 years agoUpdate ua-manager
saerome kim [Wed, 14 Nov 2018 11:07:11 +0000 (20:07 +0900)]
Update ua-manager

- dbus name change: net.ua
- modified plugin interface
- modified to load plugins (For Test)
- changed daemon uid/gid: network_fw
- added capabilities for network management

Signed-off-by: saerome kim <saerome.kim@samsung.com>
5 years agochange plugin-path & plugin name
saerome kim [Tue, 13 Nov 2018 12:05:12 +0000 (21:05 +0900)]
change plugin-path & plugin name

Signed-off-by: saerome kim <saerome.kim@samsung.com>
5 years agoRename uafw-manager to ua-manager
saerome kim [Tue, 13 Nov 2018 11:55:02 +0000 (20:55 +0900)]
Rename uafw-manager to ua-manager

Signed-off-by: saerome kim <saerome.kim@samsung.com>
5 years agoAdded implementation for in memory user database
Atul Rai [Thu, 4 Oct 2018 09:47:05 +0000 (15:17 +0530)]
Added implementation for in memory user database

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoHandle Presence detection, Ambient ON/OFF events
Atul Rai [Thu, 4 Oct 2018 09:43:54 +0000 (15:13 +0530)]
Handle Presence detection, Ambient ON/OFF events

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded implementation for User awareness APIs
Atul Rai [Thu, 4 Oct 2018 04:05:21 +0000 (09:35 +0530)]
Added implementation for User awareness APIs

This patch adds support for following:
1/ _uafw_get_registered_users()
2/ _uafw_is_device_registered()
3/ _uafw_enable_ambient_mode()
4/ _uafw_disable_ambient_mode()

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoImplemented user presence monitoring APIs
Atul Rai [Wed, 3 Oct 2018 03:26:33 +0000 (08:56 +0530)]
Implemented user presence monitoring APIs

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoImplement plugin manager core APIs
Mayank Haarit [Fri, 28 Sep 2018 15:26:27 +0000 (20:56 +0530)]
Implement plugin manager core APIs

This patch adds plugin manager interface APIs
implementation.

Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
5 years agoAdd the base plugin manager and plugin interface APIs
Mayank Haarit [Thu, 27 Sep 2018 09:12:44 +0000 (14:42 +0530)]
Add the base plugin manager and plugin interface APIs

This patch adds the following functionalities:
1) Plugin interface APIs.
2) Implementation of loading and initialization of plugins
from plugin manager.

Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
5 years agoFix CMake lib linking error and code rule errors
Atul Rai [Fri, 28 Sep 2018 12:07:40 +0000 (17:37 +0530)]
Fix CMake lib linking error and code rule errors

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdd UA frwk req handler implementation for user monitoring APIs
Atul Rai [Thu, 27 Sep 2018 06:12:03 +0000 (11:42 +0530)]
Add UA frwk req handler implementation for user monitoring APIs

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded implementation for user monitoring APIs
Atul Rai [Thu, 27 Sep 2018 06:08:10 +0000 (11:38 +0530)]
Added implementation for user monitoring APIs

This patch adds implementation for following APIs
1/ _uafw_init()
2/ _uafw_deinit()
3/ _uafw_get_supported_sensors()
4/ _uafw_start_presence_detection()
5/ _uafw_stop_presence_detection()

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded dbus request handler and event sender
Atul Rai [Fri, 21 Sep 2018 05:28:00 +0000 (10:58 +0530)]
Added dbus request handler and event sender

This patch adds dbus request handler and event sender
functionalities in uafw-manager daemon.

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded dbus request sender and event handler
Atul Rai [Thu, 20 Sep 2018 05:18:33 +0000 (10:48 +0530)]
Added dbus request sender and event handler

This patch adds dbus request sender and event handler
functionalities in uafw-api.

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoAdded UA framework manager base files
Atul Rai [Tue, 18 Sep 2018 09:25:19 +0000 (14:55 +0530)]
Added UA framework manager base files

This patch adds initial files for creating following:
1/ uafw-api - Shared lib implementing DBus client for uafw daemon
2/ uafw-plugins - Shared libs for UA framework plugins
3/ uafw-manager - UA framework daemon

Signed-off-by: Atul Rai <a.rai@samsung.com>
5 years agoInitial commit
Atul Kumar Rai/Advanced SW Team /SRI-Delhi/Engineer/삼성전자 [Wed, 12 Sep 2018 09:16:46 +0000 (14:46 +0530)]
Initial commit