blob: 1cdd2c02f42ed58fa8a6e693d6da5649c3cfcf08 [file] [log] [blame]
gomo1da4b5c2018-12-02 02:49:10 -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
17package android.hardware.gnss@2.0;
18
19import @1.0::IGnssCallback;
20import @1.1::IGnssCallback;
21
22/**
23 * The interface is required for the HAL to communicate certain information
24 * like status and location info back to the platform, the platform implements
25 * the interfaces and passes a handle to the HAL.
26 */
27interface IGnssCallback extends @1.1::IGnssCallback {
28
29 /** Flags for the gnssSetCapabilities callback. */
30 @export(name="", value_prefix="GPS_CAPABILITY_")
31 enum Capabilities : @1.0::IGnssCallback.Capabilities {
32 /** GNSS supports line-of-sight satellite identification measurement Corrections */
33 MEASUREMENT_CORRECTIONS_LOS_SATS = 1 << 8,
34 /** GNSS supports per satellite excess-path-length measurement Corrections */
35 MEASUREMENT_CORRECTIONS_EXCESS_PATH_LENGTH = 1 << 10,
36 /** GNSS supports reflecting planes measurement Corrections */
37 MEASUREMENT_CORRECTIONS_REFLECTING_PLANE = 1 << 20
38 };
39
40 /**
41 * Callback to inform framework of the GNSS engine's capabilities.
42 *
43 * @param capabilities Capability parameter is a bit field of the Capabilities enum.
44 */
45 gnssSetCapabilitiesCb_2_0(bitfield<Capabilities> capabilities);
46
47};