Stop scan on sensor when no monitoring application 53/225153/1 accepted/tizen/unified/20200218.145853 submit/tizen/20200218.012430
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:36:57 +0000 (09:36 +0900)
commitbf9415cf78aec055e5443ba888bdad309431cf1b
tree35dfa3a863208b1986a76ac6f84c7213fcb269ba
parent35a87a15764f37358f607d39bfeaf30900db5ec5
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: I1e54bad283932dfe3128628e98369a0070f9e623
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