Yu-Han Yang | 3fcb7bf | 2020-06-10 14:59:50 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.hardware.gnss@3.0; |
| 18 | |
| 19 | import @1.0::IGnssXtraCallback; |
| 20 | |
| 21 | /** |
| 22 | * This interface is used by the GNSS HAL to request download data from Predicted Satellite Data |
| 23 | * Service (PSDS). |
| 24 | */ |
| 25 | interface IGnssPsdsCallback extends @1.0::IGnssXtraCallback { |
| 26 | /** |
| 27 | * Callback to request the client to download PSDS data. The client should |
| 28 | * download PSDS data and inject it by calling injectPsdsData(). |
| 29 | * |
| 30 | * psdsType represents the type of PSDS data requested. |
| 31 | * - Value 1 represents the Long-Term type PSDS data, which lasts for many hours to several days |
| 32 | * and often provides satellite orbit and clock accuracy of 2 - 20 meters. |
| 33 | * - Value 2 represents the Normal type PSDS data, which is similar to broadcast ephemeris in |
| 34 | * longevity - lasting for hours and providings satellite orbit and clock accuracy of 1 - 2 |
| 35 | * meters. |
| 36 | * - Value 3 represents the Real-Time type PSDS data, which lasts for minutes and provides brief |
| 37 | * satellite status information such as temporary malfunction, but does not include satellite |
| 38 | * orbit or clock information. |
| 39 | */ |
| 40 | downloadRequestCb_3_0(int32_t psdsType); |
| 41 | }; |