Hridya Valsaraju | e596a71 | 2016-09-22 14:07:22 -0700 | [diff] [blame] | 1 | package android.hardware.gnss@1.0; |
| 2 | import IGnssXtraCallback; |
| 3 | |
| 4 | /* |
| 5 | * This interface is used by the GNSS HAL to request the framework |
| 6 | * to download XTRA data. |
| 7 | */ |
| 8 | interface IGnssXtra { |
| 9 | /* |
| 10 | * Opens the XTRA interface and provides the callback routines |
| 11 | * to the implementation of this interface. |
| 12 | * |
| 13 | * @param callback Handle to the IGnssXtraCallback interface. |
| 14 | * |
| 15 | * @return success True if the operation is successful. |
| 16 | */ |
| 17 | setCallback(IGnssXtraCallback callback) generates (bool success); |
| 18 | |
| 19 | /* |
| 20 | * Inject the downloaded XTRA data into the GNSS receiver. |
| 21 | * |
| 22 | * @param xtraData GNSS XTRA data. |
| 23 | * |
| 24 | * @return success True if the operation is successful. |
| 25 | */ |
| 26 | injectXtraData(string xtraData) generates (bool success); |
| 27 | }; |