blob: 8c621bb24a590589494380145f65797f6e508fa7 [file] [log] [blame]
Yu-Han Yang9c6c20b2018-11-06 14:12:49 -08001/*
2 * Copyright (C) 2018 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_HARDWARE_GNSS_V2_0_GNSSMEASUREMENT_H
18#define ANDROID_HARDWARE_GNSS_V2_0_GNSSMEASUREMENT_H
19
20#include <android/hardware/gnss/2.0/IGnssMeasurement.h>
21#include <hidl/MQDescriptor.h>
22#include <hidl/Status.h>
23
24namespace android {
25namespace hardware {
26namespace gnss {
27namespace V2_0 {
28namespace implementation {
29
30using ::android::sp;
31using ::android::hardware::hidl_array;
32using ::android::hardware::hidl_memory;
33using ::android::hardware::hidl_string;
34using ::android::hardware::hidl_vec;
35using ::android::hardware::Return;
36using ::android::hardware::Void;
37
38struct GnssMeasurement : public IGnssMeasurement {
39 // Methods from V1_0::IGnssMeasurement follow.
40 Return<V1_0::IGnssMeasurement::GnssMeasurementStatus> setCallback(
41 const sp<V1_0::IGnssMeasurementCallback>& callback) override;
42 Return<void> close() override;
43
44 // Methods from V1_1::IGnssMeasurement follow.
45 Return<V1_0::IGnssMeasurement::GnssMeasurementStatus> setCallback_1_1(
46 const sp<V1_1::IGnssMeasurementCallback>& callback, bool enableFullTracking) override;
47
48 // Methods from V2_0::IGnssMeasurement follow.
49 Return<V1_0::IGnssMeasurement::GnssMeasurementStatus> setCallback_2_0(
50 const sp<V2_0::IGnssMeasurementCallback>& callback, bool enableFullTracking) override;
51};
52
53} // namespace implementation
54} // namespace V2_0
55} // namespace gnss
56} // namespace hardware
57} // namespace android
58
59#endif // ANDROID_HARDWARE_GNSS_V2_0_GNSSMEASUREMENT_H