diff options
author | Saurabh Srivastava <ssrivast@codeaurora.org> | 2021-04-28 15:47:20 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2021-07-08 01:58:02 -0700 |
commit | db4c55e4becbe562f045101b98d45d9bf644508a (patch) | |
tree | 595a8aadff13fb0d2b7ee08e4c65b958270ad798 | |
parent | a10ad89300be5935429ba0545d13085467501731 (diff) |
BatchingAdapter to handle engine up after init
Change-Id: I40eff9342215e3080557efda6b256655f1f75c3f
CRs-Fixed: 2924711
-rw-r--r-- | batching/BatchingAdapter.cpp | 8 | ||||
-rw-r--r-- | geofence/GeofenceAdapter.cpp | 8 |
2 files changed, 13 insertions, 3 deletions
diff --git a/batching/BatchingAdapter.cpp b/batching/BatchingAdapter.cpp index d9f7945..4f1a43c 100644 --- a/batching/BatchingAdapter.cpp +++ b/batching/BatchingAdapter.cpp @@ -37,7 +37,9 @@ using namespace loc_core; BatchingAdapter::BatchingAdapter() : - LocAdapterBase(0, LocContext::getLocContext(LocContext::mLocationHalName)), + LocAdapterBase(0, + LocContext::getLocContext(LocContext::mLocationHalName), + false, nullptr, true), mOngoingTripDistance(0), mOngoingTripTBFInterval(0), mTripWithOngoingTBFDropped(false), @@ -50,6 +52,10 @@ BatchingAdapter::BatchingAdapter() : LOC_LOGD("%s]: Constructor", __func__); readConfigCommand(); setConfigCommand(); + + // at last step, let us inform adapater base that we are done + // with initialization, e.g.: ready to process handleEngineUpEvent + doneInit(); } void diff --git a/geofence/GeofenceAdapter.cpp b/geofence/GeofenceAdapter.cpp index f024e3f..1aeea0a 100644 --- a/geofence/GeofenceAdapter.cpp +++ b/geofence/GeofenceAdapter.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2020, The Linux Foundation. All rights reserved. +/* Copyright (c) 2013-2021, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -38,9 +38,13 @@ using namespace loc_core; GeofenceAdapter::GeofenceAdapter() : LocAdapterBase(0, LocContext::getLocContext(LocContext::mLocationHalName), - true /*isMaster*/) + true /*isMaster*/, nullptr, true) { LOC_LOGD("%s]: Constructor", __func__); + + // at last step, let us inform adapater base that we are done + // with initialization, e.g.: ready to process handleEngineUpEvent + doneInit(); } void |