1 /*
2  * Copyright (C) 2016 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 #ifndef android_hardware_gnss_V1_0_GnssUtil_H_
17 #define android_hardware_gnss_V1_0_GnssUtil_H_
18 
19 #include <hardware/fused_location.h>
20 #include <hardware/gps.h>
21 #include <android/hardware/gnss/1.0/types.h>
22 
23 namespace android {
24 namespace hardware {
25 namespace gnss {
26 namespace V1_0 {
27 namespace implementation {
28 
29 /*
30  * This method converts a GpsLocation struct to a GnssLocation
31  * struct.
32  */
33 GnssLocation convertToGnssLocation(GpsLocation* location);
34 
35 /*
36  * This method converts an FlpLocation struct to a GnssLocation
37  * struct.
38  */
39 GnssLocation convertToGnssLocation(FlpLocation* location);
40 
41 }  // namespace implementation
42 }  // namespace V1_0
43 }  // namespace gnss
44 }  // namespace hardware
45 }  // namespace android
46 
47 #endif
48