Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a896b12c authored by Yu-Han Yang's avatar Yu-Han Yang
Browse files

Add back geofencing JNI code

These were accidentially removed in ag/15919852

Bug: 201253590
Test: atest VtsHalGnssTargetTest
Change-Id: Ic32583ed692af847591dad85d2456882902ec9f9
parent 7fc3b633
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1664,6 +1664,13 @@ static void android_location_gnss_hal_GnssNative_init_once(JNIEnv* env, jobject
        }
    }

    auto gnssGeofencing = gnssHal->getExtensionGnssGeofencing();
    if (!gnssGeofencing.isOk()) {
        ALOGD("Unable to get a handle to GnssGeofencing");
    } else {
        gnssGeofencingIface = gnssGeofencing;
    }

    if (gnssHalAidl != nullptr && gnssHalAidl->getInterfaceVersion() >= 2) {
        sp<IGnssBatchingAidl> gnssBatchingAidl;
        auto status = gnssHalAidl->getExtensionGnssBatching(&gnssBatchingAidl);