blob: 38d4b2d056dc604da5bef03e6942ab94b9a3267e [file] [log] [blame]
Hridya Valsaraju29dc1e02016-10-21 14:41:12 -07001/*
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
Wyatt Riley8791e7b2017-01-17 12:12:25 -080019#include <hardware/fused_location.h>
Hridya Valsaraju29dc1e02016-10-21 14:41:12 -070020#include <hardware/gps.h>
21#include <android/hardware/gnss/1.0/types.h>
22
23namespace android {
24namespace hardware {
25namespace gnss {
26namespace V1_0 {
27namespace implementation {
28
29/*
30 * This method converts a GpsLocation struct to a GnssLocation
31 * struct.
32 */
33GnssLocation convertToGnssLocation(GpsLocation* location);
34
Wyatt Riley8791e7b2017-01-17 12:12:25 -080035/*
36 * This method converts an FlpLocation struct to a GnssLocation
37 * struct.
38 */
39GnssLocation convertToGnssLocation(FlpLocation* location);
40
Hridya Valsaraju29dc1e02016-10-21 14:41:12 -070041} // namespace implementation
42} // namespace V1_0
43} // namespace gnss
44} // namespace hardware
45} // namespace android
46
47#endif