blob: 5004570574163642f2f6d6bb0272012b986c7364 [file] [log] [blame]
Yu-Han Yang3fcb7bf2020-06-10 14:59:50 -07001/*
2 * Copyright (C) 2020 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@3.0;
18
19import @1.0::IGnssXtra;
20import IGnssPsdsCallback;
21
22/**
23 * This interface is used by the GNSS HAL to request the framework to download Predicted Satellite
24 * Data Service data.
25 */
26interface IGnssPsds extends @1.0::IGnssXtra {
27 /**
28 * Opens the PSDS interface and provides the callback routines to the implementation of this
29 * interface.
30 *
31 * @param callback Handle to the IGnssPsdsCallback interface.
32 *
33 * @return success True if the operation is successful.
34 */
35 setCallback_3_0(IGnssPsdsCallback callback) generates (bool success);
36
37 /**
38 * Inject the downloaded PSDS data into the GNSS receiver.
39 *
40 * @param psdsType Type of PSDS as defined in IGnssPsdsCallback.hal
41 * @param psdsData GNSS PSDS data. Framework must not parse the data since the data format is
42 * opaque to framework.
43 *
44 * @return success True if the operation is successful.
45 */
46 injectPsdsData_3_0(int32_t psdsType, string psdsData) generates (bool success);
47};
48