In detection_stopped event, consider when no environmental sensors exist
authorLokesh <l.kasana@samsung.com>
Mon, 11 Nov 2019 01:43:55 +0000 (07:13 +0530)
committersaerome.kim <saerome.kim@samsung.com>
Fri, 15 Nov 2019 09:11:09 +0000 (18:11 +0900)
commitd9c90d818984150c1d86e733f7314ef6af7b9ef5
treebc2078ede7aa165b14141bbca1953b470958b617
parentfb85cbef0f170ebcae7a51137d5f99d83132efdb
In detection_stopped event, consider when no environmental sensors exist

1/ If there is no environmental sensor, send UAM_DETECTION_CYCLE_END only once.
2/ First update service->remaining_time, then start various detections.
3/ Environmental sensors may send detection_stopped before start_detection of
connectivity sensor, which results in multiple detection stopped events to CAPI
within a detection window.

Change-Id: I1c149fe8be8f3f86bf053ac8167df765948df72e
Signed-off-by: Lokesh <l.kasana@samsung.com>
include/ua-api.h
ua-daemon/src/ua-manager-core.c