1 /* 2 * Copyright (C) 2024 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 #ifndef _ANDROID_SERVER_GNSS_GNSSASSITANCECALLBACK_H 18 #define _ANDROID_SERVER_GNSS_GNSSASSITANCECALLBACK_H 19 20 #pragma once 21 22 #ifndef LOG_TAG 23 #error LOG_TAG must be defined before including this file. 24 #endif 25 26 #include <android/hardware/gnss/gnss_assistance/BnGnssAssistanceCallback.h> 27 #include <log/log.h> 28 29 #include "Utils.h" 30 #include "jni.h" 31 32 namespace android::gnss { 33 34 void GnssAssistanceCallback_class_init_once(JNIEnv* env, jclass clazz); 35 36 /* 37 * GnssAssistanceCallback class implements the callback methods required by the 38 * android::hardware::gnss::gnss_assistance::IGnssAssistanceCallback interface. 39 */ 40 class GnssAssistanceCallback : public hardware::gnss::gnss_assistance::BnGnssAssistanceCallback { 41 public: GnssAssistanceCallback()42 GnssAssistanceCallback() {} 43 binder::Status injectRequestCb() override; 44 }; 45 46 } // namespace android::gnss 47 48 #endif // _ANDROID_SERVER_GNSS_GNSSASSITANCECALLBACK_H 49