1package android.hardware.gnss@1.0; 2import IGnssXtraCallback; 3 4/** 5 * This interface is used by the GNSS HAL to request the framework 6 * to download XTRA data. 7 */ 8interface 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}; 28