xref: /aosp_15_r20/hardware/interfaces/gnss/aidl/vts/GnssGeofenceCallback.h (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1 /*
2  * Copyright (C) 2021 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 #include <android/hardware/gnss/BnGnssGeofenceCallback.h>
20 #include <vector>
21 #include "GnssCallbackEventQueue.h"
22 
23 /** Implementation for IGnssGeofenceCallback. */
24 class GnssGeofenceCallback : public android::hardware::gnss::BnGnssGeofenceCallback {
25   public:
GnssGeofenceCallback()26     GnssGeofenceCallback() {}
~GnssGeofenceCallback()27     ~GnssGeofenceCallback() {}
28 
29     android::binder::Status gnssGeofenceTransitionCb(
30             int geofenceId, const android::hardware::gnss::GnssLocation& location, int transition,
31             int64_t timestampMillis) override;
32     android::binder::Status gnssGeofenceStatusCb(
33             int availability, const android::hardware::gnss::GnssLocation& lastLocation) override;
34     android::binder::Status gnssGeofenceAddCb(int geofenceId, int status) override;
35     android::binder::Status gnssGeofenceRemoveCb(int geofenceId, int status) override;
36     android::binder::Status gnssGeofencePauseCb(int geofenceId, int status) override;
37     android::binder::Status gnssGeofenceResumeCb(int geofenceId, int status) override;
38 };
39