blob: 7cfef2eab899eee7f55e644db686e4146b36543e [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/*
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 <hardware/gps_mtk.h>
22#include <android/hardware/gnss/1.0/types.h>
23
24namespace android {
25namespace hardware {
26namespace gnss {
27namespace V1_0 {
28namespace implementation {
29
30/*
31 * This method converts a GpsLocation struct to a GnssLocation
32 * struct.
33 */
34GnssLocation convertToGnssLocation(GpsLocation_ext* location);
35
36/*
37 * This method converts an FlpLocation struct to a GnssLocation
38 * struct.
39 */
40GnssLocation convertToGnssLocation(FlpLocation* location);
41
42} // namespace implementation
43} // namespace V1_0
44} // namespace gnss
45} // namespace hardware
46} // namespace android
47
48#endif