summaryrefslogtreecommitdiff
path: root/android/location_api/GeofenceAPIClient.cpp
diff options
context:
space:
mode:
authorBaili Feng <bailif@codeaurora.org>2018-01-08 16:21:29 +0800
committerBaili Feng <bailif@codeaurora.org>2018-04-10 08:24:34 +0800
commitd856a9414d745634c9dff7650a4d3dc48b8563f0 (patch)
tree5a596bcff98c58d78025c40170f6bddb7888c0f7 /android/location_api/GeofenceAPIClient.cpp
parentab95d2dc2e128793d6616f65916e40d25a82cedd (diff)
downloadgps-d856a9414d745634c9dff7650a4d3dc48b8563f0.tar.gz
hidl gnss hal 1.1 implementation
Implement new apis for IGnss 1.1 Change-Id: I2c98c32355f6d9681d51b709697e49ec735fe1cf CRs-fixed: 2133458
Diffstat (limited to 'android/location_api/GeofenceAPIClient.cpp')
-rw-r--r--android/location_api/GeofenceAPIClient.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/android/location_api/GeofenceAPIClient.cpp b/android/location_api/GeofenceAPIClient.cpp
index 6167177..93d175e 100644
--- a/android/location_api/GeofenceAPIClient.cpp
+++ b/android/location_api/GeofenceAPIClient.cpp
@@ -1,4 +1,4 @@
-/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2017-2018, 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
@@ -39,9 +39,11 @@
namespace android {
namespace hardware {
namespace gnss {
-namespace V1_0 {
+namespace V1_1 {
namespace implementation {
+using ::android::hardware::gnss::V1_0::IGnssGeofenceCallback;
+using ::android::hardware::gnss::V1_0::GnssLocation;
GeofenceAPIClient::GeofenceAPIClient(const sp<IGnssGeofenceCallback>& callback) :
LocationAPIClientBase(),
@@ -158,7 +160,7 @@ void GeofenceAPIClient::onGeofenceBreachCb(GeofenceBreachNotification geofenceBr
auto r = mGnssGeofencingCbIface->gnssGeofenceTransitionCb(
geofenceBreachNotification.ids[i], gnssLocation, transition,
- static_cast<GnssUtcTime>(geofenceBreachNotification.timestamp));
+ static_cast<V1_0::GnssUtcTime>(geofenceBreachNotification.timestamp));
if (!r.isOk()) {
LOC_LOGE("%s] Error from gnssGeofenceTransitionCb description=%s",
__func__, r.description().c_str());
@@ -267,7 +269,7 @@ void GeofenceAPIClient::onResumeGeofencesCb(size_t count, LocationError* errors,
}
} // namespace implementation
-} // namespace V1_0
+} // namespace V1_1
} // namespace gnss
} // namespace hardware
} // namespace android