Stop scan on sensor when no monitoring application 52/225152/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200220.050514 accepted/tizen/5.5/unified/wearable/hotfix/20201027.115057 submit/tizen_5.5/20200218.012516 submit/tizen_5.5_wearable_hotfix/20201026.184303
authorAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 17 Feb 2020 08:43:39 +0000 (14:13 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 18 Feb 2020 00:35:57 +0000 (09:35 +0900)
commitd5690ce95dbb91e127b56bfb8d8a11c0706908d0
treeadeb5666f97eddc71c8a869d0e92b09af2aad5bd
parentd11d32c5449c22f3980dc1e29fbf7f245ba8a7f9
Stop scan on sensor when no monitoring application

Issue: Presence/absence scanning on BLE/wifi plugin was not able to
stop in case only presence or only absence was started by application.

Reason: Even if only presence or only absence is started by application
ua-manager simultaneoulsy starts both presence and absence to keep their
detection cycle in sync.

Solution: Stop both presence and absence detection when stop detection
is called, if no application is monitioring on this sensor.

Change-Id: I8a49e9c558e352dc54530dc03478f7bf69fbbcbc
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
packaging/ua-manager.spec
ua-daemon/src/pm/ua-plugin-manager.c
ua-daemon/src/ua-manager-core.c