summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Lin <waynewhlin@google.com>2021-09-24 18:38:52 +0800
committerWayne Lin <waynewhlin@google.com>2021-10-18 06:55:20 +0000
commitd6518599639d2ff056ed91f52b5ced1f58d7e81c (patch)
tree64172d8ac3230ec509af61098c92286fd28a07ab
parent2931e6e771428e8d8eb8e8ffcf90ff06196f015b (diff)
downloadgps-d6518599639d2ff056ed91f52b5ced1f58d7e81c.tar.gz
BatchingAdapter to handle engine up after initandroid12L-dev
CRs-Fixed: 2924711 Bug: 194266415 Change-Id: Ib9916e78dc0732c248073c4281736f8c3005e31a
-rw-r--r--batching/BatchingAdapter.cpp4
-rw-r--r--geofence/GeofenceAdapter.cpp4
2 files changed, 5 insertions, 3 deletions
diff --git a/batching/BatchingAdapter.cpp b/batching/BatchingAdapter.cpp
index d1bd308..e36ed45 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),
diff --git a/geofence/GeofenceAdapter.cpp b/geofence/GeofenceAdapter.cpp
index fa45e88..9349acd 100644
--- a/geofence/GeofenceAdapter.cpp
+++ b/geofence/GeofenceAdapter.cpp
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2019, 2021 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,7 +38,7 @@ 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