summaryrefslogtreecommitdiffstats
path: root/services/core/jni
diff options
context:
space:
mode:
authordestradaa <destradaa@google.com>2014-07-25 15:11:56 -0700
committerDaniel Estrada Alva <destradaa@google.com>2014-07-30 23:35:08 +0000
commitf9a274c9b8578dda6afeda422bff18b1577028b9 (patch)
treeff9dbed8a193d895ca2465a50f6eb85025b0b01b /services/core/jni
parent6a7d8c42890451e01ca7b4baba03d430808265bc (diff)
downloadframeworks_base-f9a274c9b8578dda6afeda422bff18b1577028b9.zip
frameworks_base-f9a274c9b8578dda6afeda422bff18b1577028b9.tar.gz
frameworks_base-f9a274c9b8578dda6afeda422bff18b1577028b9.tar.bz2
Add support for sources in Geofencing APIs.
Support setting the source when adding geofences. b/14117199 Surface the source when FLP geofence changes state. b/14119200 Change-Id: I50dc40a9caee400594e1778c98e284e0db0d5e66
Diffstat (limited to 'services/core/jni')
-rw-r--r--services/core/jni/com_android_server_location_FlpHardwareProvider.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/core/jni/com_android_server_location_FlpHardwareProvider.cpp b/services/core/jni/com_android_server_location_FlpHardwareProvider.cpp
index c2fccc1..2519ff8 100644
--- a/services/core/jni/com_android_server_location_FlpHardwareProvider.cpp
+++ b/services/core/jni/com_android_server_location_FlpHardwareProvider.cpp
@@ -364,7 +364,9 @@ static void TranslateGeofenceFromGeofenceHardwareRequestParcelable(
"()I");
options->last_transition = env->CallIntMethod(geofenceRequestObject, getLastTransition);
- // TODO: set data.sources_to_use when available
+ jmethodID getSourceTechnologies =
+ env->GetMethodID(geofenceRequestClass, "getSourceTechnologies", "()I");
+ options->sources_to_use = env->CallIntMethod(geofenceRequestObject, getSourceTechnologies);
env->DeleteLocalRef(geofenceRequestClass);
}